Solar panels installed on your roof work best during daylight hours. When the sun is shining directly onto them, sunlight can be converted into electricity. Your solar panel efficiency drops at night because there is no sunlight to convert to electricity and solar panels can't generate power in darkness.