HOW SOLAR WORKS
Solar panels contain photovoltaic cells comprised of semi-conducting material such as silicon.
When sunlight is absorbed by the semiconductor, the electrons within the material are freed.
The flow of the electrons creates a current, thus beginning the generation of electricity.
An inverter is used to transform the direct current into AC (alternating current, such as in a wall socket).
The electricity is then connected to your power grid and distributed to your site. All excess electricity generation is stored in the grid. This excess energy is what causes your electricity meter to run backwards.
Click on image to enlarge.