As per Hindu legend, once there was an argument between Saraswathi, the consort of Brahma and Lakshmi on superiority. They went to Indra, the king of celestial deities. Indra judged Lakshmi as superior and not satisfied with his argument, Saraswathi went to her husband, Brahma. He also chose Lakshmi to be the superior one. Saraswathi was unhappy with the decision and decided to stay away from Brahma. Brahma did a severe penance praying to Vishnu and did an Aswametha Yagna. Saraswathi was still angry that the yagna, which usually is done along with consorts was done alone by Brahma. She tried to disrupt the penance in various ways, but Vishnu interfered in all her attempts. After all the demons were killed by Vishnu, who were sent by Saraswati to destroy the yagna(penance) done by Brahma, she sent Kapalika, a demon. Lord Vishnu took the form of Narhari to kill the demon.