Bhasmasura was a devotee of the Lord Shiva who performed great penance to obtain a boon from the deity. Shiva became pleased and asked him to ask for a boon. Bhasmasura then asked that he be granted the power that anyone whose head he touched with his hand should burn up and immediately turn into ashes (bhasma). Bhasmasura then wanted to test his new found power by placing his hand on Shiva. So Shiva ran and prayed to Vishnu for help. Vishnu, in the form of Mohini, appeared in front of Bhasmasura. Mohini was so exceedingly beautiful that Bhasmasura immediately fell in love with Mohini. Bhasmasura asked her to marry him. She told him that she was very fond of dancing, and would marry him only if he could match her moves identically. Bhasmasura agreed to the match and hence they started dancing. The feat went for days at an end. As Bhasmasura matched the disguised Vishnu's move by move, he began to let his guard down. While still dancing, Mohini, struck a pose where her hand was placed on top of her own head. As Bhasmasura imitated her, he was tricked into touching his own head, and hence Bhasmasura immediately burnt up and turned into ashes, due to the power he had recently gained.