When the sun shines on solar panels, they produce power. That means your solar panels will generate electricity even on cloudy days. The only time solar will not produce electricity is at night. However, because of the high cost of electricity, solar panels remain an excellent choice for cloudy or less sunny cities.