Solar panels use photovoltaic cells to convert sunlight directly into electricity. When sunlight hits the cells, it knocks electrons loose, creating an electric current. Multiple cells are connected to form panels, and multiple panels form a solar array that generates enough electricity to power homes or businesses.