Solar cars use photovoltaic cells to convert sunlight into electricity that powers the car's battery and motor. The cells absorb light through semiconductors, which frees electrons and creates a flow that generates electricity to directly power the car's motor or charge its battery. Solar cars thus use energy from the sun instead of gasoline to run.