When operating the engine, the generator anchor is rotated. The electromagnetic field created by him is converted into electric current.
Further, the current through a special rectifier is converted and enters the electric network of the car. Battery is necessary for the car,