(CNN) — Diwali is one of the most important Hindu festivals in India, but the colorful customs and meanings associated with it can vary depending on where you travel in the country.
In the north, Diwali is often a raucous affair, marked by a cacophony of firecrackers on the streets and a flourish of ceremonial gambling in the home.
The wealthier urban dwellers splurge on gold, jewelry, clothes and expensive gifts such as electronics, which they buy for themselves and their loved ones.
In the quiet villages, such as those dotted around the vast state of Maharashtra in the west of India, the Festival of Lights celebration is generally a simpler affair, defined by humble offerings and wholesome feasts.
Few, if any, firecrackers are burst and many follow their own particular tribal traditions. Most villagers try to buy new clothes, but few can afford gold, jewelry or elaborate gifts.
The annual dates of Diwali are as fluid as types of revelry you'll find. It's generally celebrated for five days, with the biggest day being the third one. In 2018, northern India marks that day on Wednesday, November 7. However, it falls on Tuesday, November 6, in southern India, where it's called Deepavali.
Here's a look at some of the most popular ways to celebrate.
Some Diwali rituals are common across most of the subcontinent.
In both city and countryside, small oil lamps made of clay (diyas) are placed at the thresholds of homes, shops and offices throughout the five-day affair to celebrate the legend of the return of the Hindu god, Lord Rama, to his kingdom after 14 years in exile. According to mythology, his people lit diyas to welcome his return.
In villages, the rangolis are sometimes drawn on top of fresh cow dung.
Hindus in cities and villages also believe that during Diwali the Hindu goddess of wealth, Lakshmi, will visit their homes if they are lit, clean and beautifully decorated.
Windows and doors are left open to let the goddess in, and homes are cleaned from top to bottom.
Brightly colored rangolis are drawn using fingers on the ground at the entrances to homes and offices. These geometric designs are usually symbols of nature. Their purpose is to welcome guests and to encourage Lakshmi inside.
Gambling card games are often played in villages and cities, as it is generally considered auspicious to gamble during Diwali.
This springs from a legend that a Hindu deity played a dice game with his consort on the fourth day of Diwali and she won. Some Hindus believe Lakshmi can be invoked through gambling.
Place your bets
Gambling parties are an especially popular pastime during Diwali in Mumbai. The parties typically start at 10 p.m. in bungalows and farmhouses and continue until 5 a.m.
"People don't mind losing -- it's part of the ambiance and people are having fun," says Vikram Mehta, founder of Red Om Entertainment in Mumbai. "Everyone dresses up, everyone is on holiday, everyone is inviting each other to their homes, there is a lot of warmth."
Various games are played. The most popular is Teen Patti (three-card brag), and blackjack and poker are also favorites.
"People sit on mattresses on the floor. There are rooms where the kids play for fun and then other rooms with the higher stakes," Mehta says. The houses are decorated with diyas, people dress in traditional Indian dress, servants wander around with platters of kebabs, biryani and Indian sweets, he adds.
Across the country, Indian sweets -- known as mithai -- are exchanged and people have large family gatherings in their homes.
New year, new accounts
Diwali marks the start of the new Hindu financial year and many businesses open new accounts books.
Diwali also marks the start of the new Hindu financial year, and many businessmen, traders and shopkeepers open new account books. Business people in certain states, particularly Gujarat, worship their account books.
There are various other rituals celebrated in towns and villages on each of the five days. For example, on the last day of Diwali in many parts of India, a sister cooks for her brother and he bestows gifts on her in celebration of the love between siblings.
"The modern world is changing, and festivals are the only way to keep our culture and traditions alive. For us, Diwali is the victory of good over evil, the returning of good back into our lives and starting a new year with a positive approach and forgetting all the bad that has happened," says Mumbai housewife Heena Damle.
"You have tables ready with sweets to offer if someone comes to your home," adds her nephew Pranav Damle.
Lighting up the night
Typically firecrackers are set off from dusk, often throughout the night. The noise is believed to herald the defeat of evil and catch the attention of the gods.
Rag picker Santosh, whose family migrated from a Maharashtrian village to Mumbai, says: "People in the villages have limited means, so it's not very spectacular. In Mumbai, the rich celebrate it with a lot of pomp. We witness huge fireworks and can get such fancy crackers."
Some, however, are concerned that the original traditions of Diwali are being lost in cities.
Inir Pinheiro is managing director of Grassroutes, which promotes responsible village tourism, and takes urban Indians on trips to tribal villages. He says many of them want to "see an unadulterated way of celebrating Diwali, a less noisy place and to reconnect with the people."
"I think people in the cities are beginning to realize there is a lot of show in the way it is celebrated and a large materialistic aspect to it. People want to see if there is something more to the celebration," Pinheiro says.
Hopes for the harvest
In the 500-person village of Purushwadi in Maharashtra, families of five typically live in stone houses of two bedrooms. Dutta Kondar, a farmer from the Mahadeo Koli tribe, says that Diwali is a "celebration of the end of the harvest of kharif (rain-fed crops)."
Since harvest is when the villagers make money, villagers carry out Lakshmi puja (prayer ritual) on their assets at Diwali, giving thanks and praying for a good harvest to come.
"We conduct a small puja of our cattle, grain and cash," Kondar says. Family members hold a plate of offerings to the gods and chant prayers while rotating the plate around the assets, he explains.
"To make sure our bodies are prepared for the winter, we eat lots of oil and sweets," Kondar adds.
"Whenever anyone enters their house, the villagers offer each other sweets. But they don't buy presents for each other -- money being a big constraint," Pinheiro says.
Like many rural villages across India, Purushwadi has its own particular rituals. Pinheiro says one of the most popular is the local singing ceremony.
"This is when children go round the houses holding hand-made lanterns made of sticks and twigs and they sing Marathi songs for the benefit of residents of the homes. In return they are given oil and grain," Pinheiro says.
"The difference in how Diwali is celebrated in the villages is that it is done with more simplicity. It is the rare occasion when they buy clothes and eat nice food and they are celebrating after many months of hard work. In the cities, it is less community-oriented, noisier and more about spending money and showing off," Pinheiro adds.