Solar-powered cars use photovoltaic panels to harness solar energy, converting it into electricity to power the vehicle.