May the festival of lights throw light on the mind and intellect which will lead to proper understanding of one's own swadharma or right - duties at a given time.
Diwali, deepawali, deepmaalika, deepotsav is a combination of history, nature, psychology, sociology, economics. The mythological angle pints towards the implied meaning. The number of days depends from region to region. In eastern India it is the Kali Puja (deity of strength - a female form of almighty) is performed for one hight. In some parts, it is celebrated for one day by worshipping the deity of wealth, Lakshmi, with Ganesh.
Historically, Ram returned Ayodhya after 14 years of exile and that also he stayed in the forest. A youth who was about to become a ruler went happily. Reasons and implications includes one angle less discussed - a ruler must be familiar with the roots and the lifestyle of those living far away from the capital, especially in the forest. The lesson of the closeness with nature and the importance of natural resources for the existence of creatures is of paramount importance. Normally, a ruler does not have direct contact with the rural and forest areas and depends on the staff. This dimension is discussed in yaksha yudhisthira samvad. When he returned, the whole city celebrated and the coronation ceremony took place in the late evening of Amavasya, Krishna paksha of Kartik month.
A normal query - why five days were added / connected with this and each day is given a separate name?
On the other hand, people stay busy with their livelihood and quite often there is no time for other things. The festivals bring the society closer. The psyche developed due to hectic schedule gets the needed break.
As already mentioned directly - indirectly via books, festivals help the economical growth of the society by generating employment, teaching craftsmanship, developing creativity, making a bridge between rural and urban sector, growth of cities around big temples, development of infrastructure and so on.
The concept of five days:-
First day - Dhanvantari Jayanti and dhanteras. According to the mythology it is the birth of the founder of Ayurveda (Indian system of medicine), Dhanvantari.
Dhanteras word talks about dhan (wealth) and teras (the thirteenth day of Kartik, Krishna paksha). Here, wealth is a healthy body (gross, subtle and causal) and antahkarana ( inner functional status consisting of four divisions based on functions. They are mind / mun - thinking level, buddhi - decision making, chitt - after taking the decision due to any sudden thought or input coming from sense organs or combination of both or with / without the help of STM, LTM, a picture is created - in other words planning and the blue print, ego / ahankar - impure consciousness influenced by doer enjoyer / karta bhokta). The word 'teras' also means yours which asks a person to look after the wealth obtained to meet cosmic requirements. They are not mine (impure consciousness - flowing with body level) but yours (name - form are all simply illustrations. There is no real and permanent ownership of any entity. Symbolically it means the consciousness which is beyond name - form).
Second day - Narak chaturdashi / roop chaturdashi / Roop Chaudas. A story talks about Krishna killing the demon Narakasura on this day. Addition of this event with diwali is more spiritualistic and philosophical in nature than historical. It signifies the removal of inner impurities or at least trying seriously, continuously to remove them. After all, the essence of the first day helps in doing this. It is not limited to physical decoration.
Third day - Fifteenth day is the amavasya / new moon. It signifies inner cleansing and renewal required to maintain a balance between behavior and spiritualism. Slowly-slowly a person becomes a seeker and starts the spiritual journey. After all, it is the inner preparation based on self - discipline and self - control. Though new moon is not the accurate translation, taken as a phase of the moon, it signifies the path of spiritual journey influenced by ups and downs. Whatever one night celebration in the form of Kali puja is done, the implied meaning teaches us to remove inner impurities with full strength. The power can not differentiate between good and evil and is present in both. It is the form (manifestation) which helps in removing so in short but brief, strong will power is needed to stand before the storms of circumstances, symbolized by that form. The small diyas glowing during amavasya denotes the struggle for existence.
Fourth day - The fourth day of Diwali is known as Balipratipada / Bali-Padyami / Padwa / Virapratipada / Dyutapratipada / Govardhan Puja.
Mythologically, Balipratipada is celebrated to honor the return of the Bali to earth and the day marks the victory of Vaman incarnation of Vishnu. Concept of Govardhan Puja came from paranic literature, Shreemad Bhagwat Maha Purana. Few other stories and their versions are popular but instead of searching the historical background let us try to grasp the essence.
Trinity of Hinduism, Brahma (creator), Vishnu (maintenance) and Mahesh / Shiv (destroyer) denote three types of cosmic energy / waves related with three functions. Due to them, nature stays balanced. The sequence of the days asks us to respect nature and natural things. Uncontrolled or over development destroys the natural resources. Action - reaction depending on the concept of flowing with the situation and misuse of power. In cosmic administration, authorities are asked to perform the assigned duties. Even deities and incarnations in Hinduism are not shown as the possessor of absolute power. The amount of power differs from case to case but they work within that. The story of Bali (in Balipratipada) and Indra (in govardhan puja) are only meant to show that every one follows cosmic laws. Even in the case of incarnations, Ram, Krishna, could not change the mind of Ravan and kans, respectively. Therefore, fourth day teaches us to stay away from diluted ego (Satvik rajsi, tamasi). Do not take it as pure ego which is needed for existence.
Fifth day - Bhai dooj /Bhau beej / Bhav bij / Bhai phota / Bhatri dwitiya / Yama dwitiya.
The chronological order of the events points towards the social bond and the inner power of the sisters in standing before the divine hurdle of their brothers. To develop that inner power, preparation starts from the first day. It also shows the weightage given to the females in Hinduism.