Solar Street Light works on the principle of solar panel. Solar panel absorb solar energy during the day, then convert the solar energy into electrical energy and then store energy into battery.
During night time, the solar street light turns on automatically and consumes the energy already stored in the battery.
During day time, the battery gets recharged through solar power and the process keep on repeating.
Solar energy → Electric energy → Battery charging → LED Light source.