When sunlight hits the PV cells on a solar panel, it excites electrons, creating an electric current. This current is then passed through an inverter that converts DC power into alternating current (AC), which is typically used by most electrical devices, including street lights.