Initially, the alternator generates AC when it converts mechanical energy into electric current. But as the car needs DC, the current gets converted into DC using a device called a rectifier.