Solar power is the conversion of energy from sunlight into electricity, either directly using photovoltaics (PV).
First, sunlight hits a solar panel on the roof. The panels convert the energy to DC current, which flows to an inverter. The inverter converts the electricity from DC to AC, which you can then use to power your home. A net meter records the energy sent compared to the energy received from the grid.