Solar panels need sunlight to produce electricity. They can operate on cloudy days, but the brighter the sun, the more power they generate.