Hiranyaksha ( the golden_eyed demon) received a boon from Brahma after he practiced severe austerities in his devotion to Him. He asked to become king of the whole world, and that no human or animal which he mentioned by name should ever have the power to harm him. He enumerated all the animals but forgot to mention the boar. Hiranyaksha wreaked havoc, plundering everything of value from the creatures of the world, including the Hindu scriptures. He even took the earth down into the ocean as a hostage.
Vishnu assumed the boar form and plunged into the depths of the primeval ocean to rescue Earth. It took him one thousand years to kill Hiranyaksha and to lift the earth up with his great white tusks. He calmed it, and made it ready for human use by molding its mountains and continents.