▴

History of Diwali: The Legends and the Recorded History of the Festival of Lights

Updated

The history of Diwali runs on two tracks. One is the body of legends that explain why lamps are lit: Rama's return to Ayodhya, Lakshmi rising from the ocean, Krishna's defeat of Narakasura, the Pandavas' homecoming and King Mahabali's yearly visit. The other is the historical record: plays, inscriptions and travellers' accounts that show the festival being celebrated for at least 1,300 years, alongside the Jain and Sikh events that give Diwali its meaning for those faiths. This page covers both, and separates what is tradition from what is documented.


How did Diwali begin?

Diwali has no single founding moment. It most likely grew out of ancient autumn lamp festivals held at the end of the harvest, on the darkest new-moon night of the month of Kartika. Over time, different communities attached their own stories to the same night: Hindus remember Rama's return to Ayodhya, Lakshmi's emergence and Krishna's victory; Jains mark Mahavira's nirvana; Sikhs mark Guru Hargobind's release. The earliest clear written reference is in Emperor Harsha's 7th-century play Nagananda.

Rama, Sita and Lakshmana returning to Ayodhya, welcomed with lamps and celebrations
Rama, Sita and Lakshmana return to Ayodhya: the best-known origin story of Diwali.

The legends behind Diwali

These stories come from the Hindu epics and the Puranas. They are told as the reason the lamps are lit, and different regions give pride of place to different ones.

Rama's return to Ayodhya (Ramayana)

The best-known story comes from the Ramayana. Prince Rama of Ayodhya was sent into exile in the forest for 14 years at the command of his father, King Dasharatha, and was accompanied by his wife Sita and his brother Lakshmana. During the exile Ravana, the demon king of Lanka, abducted Sita. With the help of Hanuman and an army of vanaras, Rama crossed to Lanka, defeated Ravana and rescued her. His victory is celebrated on Dussehra. When the exile ended and Rama, Sita and Lakshmana returned home, the people of Ayodhya lit rows of lamps to welcome them, and that homecoming is what North India celebrates on Diwali.

The Pandavas' return to Hastinapura (Mahabharata)

A second story, told mainly in parts of North India, links Diwali to the Mahabharata. The five Pandava brothers lost their kingdom to their cousins, the Kauravas, in a rigged game of dice and were sent into exile for 13 years, the last of them in disguise. According to this tradition, they returned to Hastinapura with their mother Kunti and their wife Draupadi on the new moon of Kartika, and their subjects lit earthen lamps across the city to welcome them back.

The Pandavas on horseback entering Hastinapura, lit with rows of diyas
The Pandavas return to Hastinapura after their exile, a Diwali origin story told in parts of North India.

Lakshmi and the churning of the ocean

The Puranas describe the Samudra Manthan, the churning of the cosmic ocean of milk by the devas (gods) and asuras (demons) in search of amrita, the nectar of immortality. Among the treasures that rose from the ocean was Goddess Lakshmi, the goddess of wealth and fortune, who chose Lord Vishnu as her consort. Many traditions hold that she emerged on the new moon of Kartika, which is one reason she is worshipped on Diwali night, and why homes are cleaned and lit to welcome her.

Goddess Lakshmi rising from the churning of the ocean as gods and demons pull the serpent
Lakshmi emerges from the churning of the ocean, the Samudra Manthan.

Vamana and King Mahabali

King Mahabali, the grandson of Prahlada, was a generous ruler who conquered the three worlds and drove the gods from heaven. Vishnu came to him as Vamana, a dwarf Brahmin, and asked for as much land as he could cover in three steps. When Mahabali agreed, Vamana grew to a cosmic size, covered the earth and the heavens in two steps, and with the third placed his foot on Mahabali's head, sending him to the underworld. Moved by the king's devotion, Vishnu allowed him to return to his people once a year. That return is celebrated as Bali Pratipada the day after Diwali, especially in Karnataka and Maharashtra.

Vamana, the dwarf avatar of Vishnu, placing his foot on the head of King Mahabali
Vamana takes his third step and sends King Mahabali to the underworld; Bali Pratipada celebrates the king's yearly return.

Krishna and Narakasura

Narakasura was a demon king who conquered the heavens and the earth and held thousands of women captive in his palace. Lord Krishna, an avatar of Vishnu, defeated him with the help of his wife Satyabhama and freed the prisoners. The victory is remembered on Naraka Chaturdashi, the day before the main Diwali night, and in Tamil Nadu and much of South India this day is Deepavali itself.

Goddess Kali

In the Devi Mahatmya, Kali emerges from the forehead of Goddess Durga during her battle with the demons. In the popular telling, after destroying them her fury could not be stopped until Lord Shiva lay down in her path; when she stepped on him, she halted, which is the image of Kali with her tongue out that is worshipped across Bengal. In Bengal, Assam and Odisha, the Diwali new-moon night is Kali Puja.

Goddess Kali standing over Lord Shiva after destroying the demons
Kali stops her rampage when she steps on Shiva, the image worshipped on Kali Puja.

Diwali in Jain history: Mahavira's nirvana

For Jains, Diwali marks the day Lord Mahavira, the 24th and last Tirthankara, attained nirvana at Pawapuri in present-day Bihar. Jain tradition dates this to 527 BCE, though some scholars place Mahavira in the 5th century BCE, as a contemporary of the Buddha. According to Jain tradition, the kings gathered there lit lamps to mark the passing of his light of knowledge, which is the Jain explanation of Diwali's lamps.

Diwali in Sikh history: Bandi Chhor Divas

Sikh involvement in Diwali begins with Guru Amar Das, the third Guru, who built an 84-step well (baoli) at Goindwal and made Baisakhi and Diwali occasions for Sikhs to gather there.

The festival's main Sikh meaning comes from Guru Hargobind, the sixth Guru, who was imprisoned in Gwalior Fort by the Mughal emperor Jahangir. Sikh tradition holds that when he was released, he secured the freedom of 52 imprisoned kings by letting them hold on to the tails of his robe as he walked out, and returned to Amritsar during Diwali. The year of his release is debated; accounts range from about 1612 to 1619. Sikhs call the day Bandi Chhor Divas, "the day of release of prisoners", a name formally adopted in the Nanakshahi calendar in 2003.

Amritsar's own story is tied to these years: its sacred tank was completed in 1577 under Guru Ram Das, and the foundation stone of the Harmandir Sahib, the Golden Temple, was laid in December 1588 by the Sufi saint Mian Mir at Guru Arjan's invitation. Today the Golden Temple is lit with lamps and fireworks for Bandi Chhor Divas.

The historical record: Diwali in texts, inscriptions and travellers' accounts

Alongside the legends, written sources show Diwali being celebrated across India for well over a thousand years, under names such as Dipapratipadotsava, Dipamalika and Dipotsava, all meaning a festival or garland of lamps.

Early historical references to Diwali
DateSourceWhat it records
7th century CENagananda, a play by Emperor HarshaCalls the festival Dipapratipadotsava; lamps lit and gifts given to newly engaged couples
7th–10th century CEPadma Purana and Skanda PuranaSanskrit texts that link lamps to the month of Kartika
Around 900 CEKavyamimamsa by RajashekharaCalls it Dipamalika; homes whitewashed and streets lit with oil lamps
939–967 CECopper plate of the Rashtrakuta king Krishna IIIMentions Dipotsava, the festival of lamps
10th century CEJain inscription at Saundatti, KarnatakaRecords a donation of oil for Diwali rituals
11th century CEAl-Biruni, Persian scholarRecords Hindus celebrating Deepavali on the new moon of Kartika
c. 1211 CEInscription at Jalore, RajasthanRecords a hall dedicated on Diwali
Early 15th centuryNiccolò de' Conti, Italian travellerDescribes countless oil lamps on temples and rooftops, new clothes and feasting
16th centuryDomingo Paes, Portuguese travellerDescribes Dipavali in October in the Vijayanagara Empire
1799Sir William Jones, scholarDescribes four of the five Diwali days in a paper on the Hindu lunar year

Together these records show that the core of Diwali, lamps lit on the new moon of Kartika with clean homes, new clothes and feasting, has stayed remarkably constant for over a millennium.

Later history and modern milestones

King Vikramaditya and the Vikram Samvat

Popular tradition says Diwali marks the coronation of the legendary King Vikramaditya of Ujjain, who is credited with founding the Vikram Samvat calendar era in 57 BCE after defeating the Shakas. The link survives because the Vikram Samvat year begins the day after Diwali in Gujarat, where it is New Year's Day. Historians, however, treat Vikramaditya as legendary: no inscription or coin confirms a king of that name in the 1st century BCE, and the era was only linked to his name from around the 9th century CE.

Swami Dayananda Saraswati

The reformer Swami Dayananda Saraswati, who founded the Arya Samaj in 1875, died on the morning of Diwali, 30 October 1883, at Bhinai near Ajmer. Arya Samaj followers observe Diwali as his Nirvan Divas.

UNESCO recognition

In December 2025, Deepavali was inscribed on UNESCO's Representative List of the Intangible Cultural Heritage of Humanity, becoming India's 16th element on the list. Read more key facts on the About Diwali page.

For how the festival is celebrated today, see Diwali traditions and customs and Diwali celebrations across India.

History of Diwali: frequently asked questions

How did Diwali start?

Diwali has no single founding date. It grew out of ancient autumn festivals of lamps held at the end of the harvest, and different communities link it to different stories: Rama's return to Ayodhya, the emergence of Goddess Lakshmi, Krishna's victory over Narakasura, Mahavira's nirvana for Jains and Guru Hargobind's release for Sikhs. The earliest clear written references date from the 7th century CE.

How old is Diwali?

Diwali is at least 1,300 years old as a recorded festival. Emperor Harsha's 7th-century play Nagananda describes it as Dipapratipadotsava, a festival of lamps, and inscriptions and travellers' accounts mention it regularly from the 10th century onwards. Its roots in lamp-lighting and harvest customs are believed to be much older.

What is the earliest historical record of Diwali?

One of the earliest dated references is in Nagananda, a Sanskrit play by Emperor Harsha written in the 7th century CE, which calls the festival Dipapratipadotsava and describes lamps being lit. Later records include Rajashekhara's Kavyamimamsa, a 10th-century Rashtrakuta copper plate that mentions Dipotsava, and Al-Biruni's 11th-century account of Hindus celebrating Deepavali on the new moon of Kartika.

Why do Sikhs celebrate Diwali?

Sikhs celebrate Diwali as Bandi Chhor Divas, the day Guru Hargobind returned to Amritsar after his release from Gwalior Fort, where he had been held by the Mughal emperor Jahangir. Sikh tradition says he also secured the release of 52 imprisoned kings. Earlier, Guru Amar Das had already made Diwali one of the occasions when Sikhs gathered at Goindwal.

Why do Jains celebrate Diwali?

Jains celebrate Diwali as the day Lord Mahavira, the 24th Tirthankara, attained nirvana at Pawapuri in Bihar, traditionally dated to 527 BCE. Jain tradition holds that the assembled kings lit lamps to mark the passing of his light of knowledge, which is how Jains explain the lamps of Diwali.

Did King Vikramaditya start Diwali?

There is no historical evidence for it. Vikramaditya is a legendary king, and popular tradition credits him with founding the Vikram Samvat calendar era in 57 BCE. That calendar's new year begins the day after Diwali in Gujarat, which is how his name became attached to the festival, but historians have found no record of a king of that name from the period.

Why is Kali worshipped on Diwali?

In Bengal, Assam and Odisha the Diwali new-moon night is Kali Puja. Goddess Kali, who in the Devi Mahatmya emerges from Durga's forehead to destroy the demons, is worshipped as the force that destroys evil and darkness, which matches the meaning of the festival of lights.

What happened on Diwali in 1883?

Swami Dayananda Saraswati, founder of the Arya Samaj reform movement, died on the morning of Diwali, 30 October 1883, at Bhinai near Ajmer in Rajasthan. Arya Samaj followers mark Diwali as his Nirvan Divas.

Usage terms

Images on this page are © KidsGen.com and may be shared for personal, non-commercial use with a link back to this page. Please do not resell them, republish them on other websites or use them in advertising.

close Change Language: