During daylight hours the solar panel recharges B1. At night Q1 switches on and applies current to the led.