The sun's energy is used to charge a battery in these miniature solar lights. When the sun sets, a photoresistor detects the absence of light and activates an LED light. The light is powered by the energy stored in the battery.