Diyas symbolize goodness and purity, and lighting them denotes dispelling darkness and going into the light. And since Deepavali is celebrated on the new moon day, a time of darkness everywhere; light these lamps are a means to get rid of darkness.