From the Puranas
Lakshmi rises from the ocean of milk
Why do families welcome Lakshmi into their homes on Diwali night?
Once, the gods, called the devas, had grown weak and lost their luck and power. Their old rivals, the asuras, were growing strong. The devas went to Lord Vishnu for help.
Vishnu told them that deep in the ocean of milk lay amrit, the drink that makes one immortal, along with many other treasures. To reach them, the ocean had to be churned, like butter is churned from milk. The work was too big for the devas alone, so they asked the asuras to join them, promising to share what came up.
They used the great mountain Mandara as a churning rod, and wrapped the serpent king Vasuki around it as a rope. The devas held one end and the asuras the other, and they pulled, back and forth, back and forth. When the mountain began to sink into the ocean, Vishnu took the form of a giant tortoise, Kurma, and held it up on his back.
The first thing to rise was a terrible poison that could have destroyed the world. Lord Shiva drank it to protect everyone, and held it in his throat, which turned blue. Then, one by one, wonders rose from the waves: a wish-granting cow, a white elephant, a flying horse, the moon, and many more.
And then the ocean grew calm. Rising from the waters, seated on a pink lotus and shining like gold, came the goddess Lakshmi, the goddess of wealth, good fortune and beauty. Everyone fell silent. Lakshmi looked at all the gods gathered there and chose Lord Vishnu, placing a garland of flowers around his neck. With Lakshmi beside them again, the devas found their strength and good fortune returning.
Many people believe that Lakshmi rose from the ocean, or chose Vishnu, on the night of Diwali. That is why Diwali night is the night of Lakshmi Puja.
Where this story comes from
The churning of the ocean, Samudra Manthan, is told in several ancient texts, including the Vishnu Purana, the Bhagavata Purana and the Mahabharata; the Padma Purana is among those that link Lakshmi to the Diwali season. Details, such as the order in which the treasures rose, differ between tellings.
What it means at Diwali today
Before Diwali, homes are cleaned from top to bottom, doors are left open and lamps are lit, because Lakshmi is said to visit homes that are clean, bright and welcoming. Families perform Lakshmi Puja in the evening, often with a small plate of offerings and a lamp.