Solar panels require a certain amount of sunlight each day to function effectively. Even if you live in an area with less sun exposure, panels can still work. This common perception, however. In order for solar panels to effectively generate electricity, they require sunlight that fulfills certain criteria, primarily in terms of intensity and duration. When sunlight hits the solar cells in the panels, it excites electrons, creating an electric current. They may be covered by shade from surrounding buildings or trees, are turned away from the sun, or are simply affected by weather conditions like clouds, rain, or snow.