The Agni Purana mentions the obliteration of the demon Hiranyaksha as Varaha's main purpose. The Linga Purana and the Kurma Purana narrate that the daitya (demon; lit. son of Diti) Hiranyaksa defeats the gods and entraps the earth in the subterranean realm. Taking the Varaha form, Vishnu slays the demon by piercing him by his tusks. Later, he uplifts the earth from the netherworld and restores her to her original position. The Linga Purana continues further: Later, Vishnu discards his boar body and returns to his heavenly abode; the earth cannot bear the weight of his tusk. Shiva relieves the earth by using the same as an ornament.