If the Sun shines,the DC current can flow from the panel ,through the controller and into the lamp. If the Sun doesn't shine,the current can flow from the battery,through the controller and into the lamps. If the lamps are off,the current can flow from the panel,through the controller,and into the battery.