Almost in every Hindu home a lamp is lit daily before the altar of the Lord. In some houses it is lit at dawn, in some, twice a day - at dawn and dusk - and in a few it is maintained continuously - Akhanda Deepa. All auspicious functions commence with the lighting of the lamp, which is often maintained right through the occasion. Light symbolizes knowledge, wisdom and elimination of darkness - ignorance. The Lord is the "Knowledge Principle" (Chaitanya) who is the source, the illuminator of all knowledge. Hence light is worshiped as the Lord himself.
Knowledge removes ignorance just as light removes darkness. Also knowledge is a lasting inner wealth by which all outer achievement can be accomplished. Hence we light the lamp to bow down to knowledge as the greatest of all forms of wealth.
Why not light a bulb or tube light? That too would remove darkness. But the traditional oil lamp has further spiritual significance. The lamp is lit with sesame oil, or coconut oil or castor oil, or ghee or a mix of oils while each having a significance. The oil or ghee in the lamp symbolizes our negative tendencies and the wick, the ego. When lit by spiritual knowledge, they get slowly exhausted and the ego too finally perishes. The flame of a lamp always burns upwards. Similarly we should acquire such knowledge as to take us towards higher ideals. Whilst lighting the lamp we thus pray:
Deepajyothi parabrahma
Deepa sarva tamopahaha
Deepena saadhyate saram
Sandhyaa deepo namostute
Meaning: I prostrate to the dawn/dusk lamp; whose light is the Knowledge Principle (the Supreme Lord), which removes the darkness of ignorance and by which all can be achieved in life.