Sati, the better-half of Lord Shiva, was the daughter of the Daksha Prajapati. and Daksha Prajapati was a direct descendant of Lord Brahma. Sati married Lord Shiva against her father's wishes. Because of this, and with a view to insult Lord Shiva, the vain king Daksha performed a great havana ritual, which he invited all the gods and goddesses to - but he intentionally did not invite his son-in-law, Mahadev Shiva and his daughter, Sati.
Sati came to know about the yajna from Narad Muni and she sought Lord Shiva’s permission to attend. She argued that she, being the king's daughter, did not require any invitation from her father. Shiva realised that Daksha had the intention of insulting him. He also added that the sacrifice would not be fruitful even if Sati attended it. So He forbade Sati from attending.