The Bhagavata Purana describes Markandeya worshipping Vishnu for six manvanataras (an age of Manu). Alarmed by the sage's prowess, Indra tasked a number of apsaras, gandharvas, and the god of love, Kamadeva, to disrupt his ascetic practice. The celestial beings travelled to the hermitage of the sage, located on the Himalayas along the banks of the river Pushpabhadra. The sage remained undisturbed by the songs, dances, and attempts of seduction by the beings, after which they fled. Impressed by Markandeya, Vishnu appeared before him in his form of the sage-brothers Nara-Narayana. Markandeya extolled the sage-brothers, and requested that he be granted a sight of Vishnu's maya (illusion), which was granted. One evening, while Markandeya prayed, he experienced a vision of the pralaya, the dissolution of the universe. A great deluge submerged the earth, destroying all living beings, and the sage found himself being the only creature left alive, thrashed by the waters. Even as the torrent propelled him, the sage observed a banyan tree, upon whose branch he saw a dazzling baby upon a leaf. Markandeya marvelled at the sight of its wondrous form. Entering the form of the baby, he witnessed the entire universe, the passage of the ages, all living beings, as well as a vision of his own hermitage. Leaving the baby's form and returning to the vision of the pralaya, the sage attempted to hug the baby, knowing it to be Vishnu himself. The baby vanished, and the maya was subsequently dispelled, returning Markandeya back to his hermitage. Even as Markandeya extolled Vishnu, Shiva and Parvati appeared before the sage, and the latter sang their praises. Pleased by the sage, Shiva offered him a boon. The sage asked for the devotees of Vishnu and Shiva to be blessed. Shiva granted this boon, declaring that Markandeya would also be immortal, gain great religious merit, and also blessed with the authorship of a Purana.[4][5]