It stores the energy produced by sunlight throughout the day in a battery and uses the lamp at night.