The Nilamata Purana (), also known as the Kasmira Mahatmya, is an ancient text (6th to 8th century CE) from Kashmir which contains information on its history, geography, religion, and folklore. It was used by Kalhana as one of sources of his history.

Date

The dating of the text to 6th to 8th century CE is based on the following reasoning: "The textual study of the work shows that some philosophical changes had been made in it after the ninth or tenth century A.D. in order to incorporate into it the Kashmiri shaivism. Had the Nilamata been composed after the ninth century A.D. there would have been no scope for such change. The lower limit of the date thus may be eighth century A. D. and the upper one about the sixth century A.D. as Buddha began to be regarded as an incarnation of Visnu from about 550 A.D."

Nilamata Purana

According to scholar Ved Kumari Ghai: "If the Rajatarangini is important from the point of view of the political history of 'Kasmira', the Nilamata is no less important for the cultural history of that part of the country." Its critical edition was published in 1924. It is the national epic of Kashmir along with Rajatarangini encompassing modern day regions of modern-day India, Pakistan, Afghanistan, Khorasan, Tajikistan, Modern Dardic regions of world.

Nilamata Purana

Summary of the contents

The Nilamata opens with Janamejaya's enquiry from Vaisampayana as to why the king of Kashmir did not participate in the war of the Mahabharata although his kingdom was not less important than any other in the country. Vaisampayana states that some time before the Mababharata war was fought, king Gonanda of Kashmir had been invited by his relative Jarasandha to help him in a war against the yadavas. Gonanda complied with his request and was slain on the battle field by Lord Krishna's brother, Balarama. In order to avenge his father's death, Gonanda's son Damodara went to Gandhara to fight with lord Krishna who had gone there to attend a Svayamvara. Krishna killed Damodara in the fight but taking into consideration the high sanctity of Kashmir he crowned his rival's pregnant widow Yasovati. Damodara's Posthumous son Bala Gonanda was a minor at the time of the great war, so he did not join either the Kauravas or the Pandavas. Vaisampayana points out the importance of Kashmir by referring to its numerous charms and its identification with Uma. He points out further that the valley was originally a lake known as Satisaras. This leads to the question about the origin of 'Kashmir' to which Vaisampayana replies by relating a dialogue held previously between Gonanda and the sage Brahadasva.

Nilamata Purana

Brahadasva gives at first the account of the divisions of time, the destruction of the world at the end of manvantara, the preservation of Manu and the seeds in a ship, the birth of the land and the lake, of Sati, the origin of various tribes from Kasyapa and Visnu's allotment of Satisaras to the Nagas. Then follows the story of the demon Jalodbbava born in the waters and reared by the Nagas. Having obtained boons from Brahma, the demon began to destroy the descendants of Manu dwelling in the lands of Darvabhisara, Gandbars Jubundura, the Sakas, the Khasas etc. Seeing this devastation, Nila the king of the Nagas approached his father Kasyapa and prayed to him to intercede with the gods to punish the evil-doer and to save the innocent victims. He requested the gods, Brahma, Visnu and Siva to do the needful. Visnu followed by Brahma, Siva and various other deities, proceeded to Naubandhana to punish the demon. The demon was imperishable in the waters; so Visnu asked Ananta to make an outlet for the waters by breaking forth the mountain-barriers. He did accordingly. Visnu then cut off the demon's head with his disc. Now the dry land being available in the valley, Kasyapa expressed the desire that it should be inhabited by the Nagas as well as by the descendants of Manu. The Nagas, however, flatly refused to have Manavas as their co-hahitants. Filled with rage Kasyapa cursed them to live with the Pisacas. At the request of Nila the curse was modified to the extent that the Pisacas would go every year for a period of six months to the sea of sand and the Manavas would live in the land jointly with the Nagas during that period. Visnu further assured the Nagas that the occupation of Kasmira valley by the Pisacas would last for four ages only.