After the death of Sati, Lord Shiva became aloof and engaged himself in an austere penance. His lack of interest in performing his duties resulted into the predominance of sin in the world. A demon named Tarakasur had received a boon of invincibility from Lord Brahma. Only a child and nobody else could kill him. Tarakasur, being drunk with power started to torment the deities.
All the deities eulogized Lord Brahma and they heard a heavenly voice saying—
‘Nobody can kill Tarakasur except Shiva’s son. So you must put all your efforts to help Shiva get married.’
The deities were aware that after the death of Sati, Shiva had lost all interest in life and was living like a recluse. Nevertheless, they wanted to give a try. So they went to Himalaya, who had no progeny at that time and requested him to beget a girl. Himalaya agreed, as he was aware of the misdeeds of Tarakasur.In course of time, Himalaya’s wife, Mena gave birth to a girl child who was in fact the reincarnation of Sati. The girl child was named Girija. Girija was brought up with great love and care. When she attained the age of eight, Himalaya once took her to the cave where Lord Shiva was doing penance. Initially, Shiva was little hesitant to meet Himalaya because Girija was accompanying her father and he had vowed never to put his glance on any woman after the death of Sati. But, Later on he relented and allowed both of them to meet him whenever they liked. Now, Girija made it her habit to visit Lord Shiva regularly. She used to look after all the needs of Shiva while he was engrossed in his penance.
Even after the passage of a long time the deities’ wishes did not look like getting fulfilled, as Shiva remained as nonchalant as ever. So, the deities requested Kamadeva’s help in sowing the seeds of love and passion in Shiva’s heart. Kamadeva went to the place where Lord Shiva was doing his penance. He tried to sow seeds of compassion in Shiva’s heart only to receive his wrath. Lord Shiva was infuriated by the efforts of Kamadeva. He opened his third eye as the result of which Kamadeva was charred to death. Rati started wailing inconsolably at the death of her husband but Girija assured her that she would try to bring Kamadeva back to life. Girija commenced her penance to please Lord Shiva. There was a great turmoil in the world on account of her penance. Lord Vishnu led the deities to Shiva and requested him to marry Girija so that the world could be protected from the torments of Tarakasur. Finally, Shiva gave his conscent and went to the place where Girija was doing penance.