Some can remain on throughout the night, while others will last for a few hours. The number of hours a solar light will operate depends on several factors, such as whether it charged to full capacity during the day. Note that solar motion lights only turn on when they detect movement at night.