In modern cars, alternator turns energy into AC or a current from the electrical energy that is created by the mechanical energy it generates while turning. It actually keeps the car running and recharging the power that the battery uses while driving, despite the common opinion of the engine doing the same job.