Once, Lord Vishnu was reciting the Vedas to Lakshmi. After a long time, Lakshmi got bored. Angry, Lord Vishnu cursed her that she would be born on earth that very moment. She disappeared. Realizing his mistake, Lord Vishnu incarnates as Dhanaka, the son of King Kanaka of the Haihaya Dynasty. He married Lakshmi and their son was Krtavirya, the father of Kartavirya Arjuna. Later, Lord Dattatreya, blessed Kartavirya Arjuna with a thousand hands. But this made the king arrogant.