When Vishnu arrives he creates several Mātṛkā goddesses who vanquish the demons. When Shiva returns, Andhaka returns in another attempt to abduct Parvati. Shiva and Vishnu wage battle against Andhaka and his army. Shiva succeeds in impaling Andhaka on his trident and begins to dance. By his mere touch, Andhaka's sins are burned away and he begs for forgiveness. He is later named a Gaṇa chief. Shiva also makes Andhaka a handsome man who then prostrates before Parvati in repentance. Parvati forgives him and accepts him as her son.