On cloudy days, solar panels will still produce electricity, but at a reduced rate. At night, they do not produce electricity. To maintain power during these times, you can draw electricity from the grid (if connected) or store excess energy generated during the day in a solar battery storage system.