The primary function of a car's engine is to convert fuel into mechanical power through a series of controlled explosions.