When Brahmadev gave a boon to all three of Tarkasur's sons, they became powerful and attacked the Gods. The Gods were losing to the Asurs and were dying when their saviour - Lord Shiv arrived.