Solar panels convert sunlight into electricity using photovoltaic (PV) cells. This electricity can be used directly in your home or stored in batteries.