Solar panels convert sunlight into electricity using photovoltaic (PV) cells. When sunlight hits the panels, it generates direct current (DC) electricity, which is then converted into usable alternating current (AC) by an inverter. That electricity powers your home or business.