What is an alternator for?

The alternator generates power to run the car and charge the battery.

An alternator in a vehicle generates Alternate Current (AC) instead of Direct Current (DC) electricity to power the vehicle.