Gas, which is chemical potential energy, is ignited in a small space. The resulting explosion releases a great deal of energy which provides the motion for the car. The internal combustion engine is based on the Otto Cycle, which was invented by Nikolaus Otto, who invented it in 1867.