The internal combustion engine is an engine in which the burning of a fuel occurs in a confined space called a combustion chamber. This exothermic reaction of a fuel with an oxidizer creates gases of high temperature and pressure, which are permitted to expand. The defining feature of an internal combustion engine is that useful work is performed by the expanding hot gases acting directly to cause movement, for example by acting on pistons, rotors, or even by pressing on and moving the entire engine itself.
This contrasts with external combustion engines, such as steam engines, which use the combustion process to heat a separate working fluid, typically water or steam, which then in turn does work, for example by pressing on a steam actuated piston.
The term Internal Combustion Engine (ICE) is almost always used to refer specifically to reciprocating engines, Wankel engines and similar designs in which combustion is intermittent. However, continuous combustion engines, such as Jet engines, most rockets and many gas turbines are also internal combustion engines.

Four-stroke cycle (or Otto cycle)
1. intake
2. compression
3. power
4. exhaust

A colorized
automobile engine
Internal combustion engines are most commonly used for mobile propulsion in automobiles, equipment, and other portable machinery. In mobile scenarios internal combustion is advantageous, since it can provide high power to weight ratios together with excellent fuel energy-density. These engines have appeared in almost all automobiles, motorcycles, boats, and in a wide variety of aircraft and locomotives. Where very high power is required, such as jet aircraft, helicopters and large ships, they appear mostly in the form of turbines. They are also used for electric generators and by industry.
Operation
All internal combustion engines depend on the exothermic chemical process of combustion: the reaction of a fuel, typically with air, although other oxidisers such as nitrous oxide may be employed. Also see stoichiometry.
The most common fuel in use today are made up of hydrocarbons and are derived from mostly petroleum. These include the fuels known as dieselfuel, gasoline and petroleum gas, and rare use of propane gas. Most internal combustion engines designed for gasoline can run on natural gas or liquified petroleum gases without major modifications except for the fuel delivery components. Liquid and gaseous biofuels, such as Ethanol and biodiesel, a form of diesel fuel that is produced from crops that yield [triglycerides]] such as soy bean oil, can also be used. Some can also run on Hydrogen gas.
All internal combustion engines must have a method for achieving ignition in their cylinders to create combustion. Engines use either an electrical method or a compression ignition system.
Gasoline Ignition Process
Electrical/Gasoline-type ignition systems (that can also run on other fuels as previously mentioned) generally rely on a combination of a lead-acid battery and an induction coil to provide a high voltage electrical spark to ignite the air-fuel mix in the engine's cylinders. This battery can be recharged during operation using an electricity-generating device, such as an alternator or generator driven by the engine. Gasoline engines take in a mixture of air and gasoline and compress to less than 170 psi and use a spark plug to ignite the mixture when it is compressed by the piston head in each cylinder.