An engine is a machine that converts other forms of energy into mechanical energy, including internal combustion engines (such as gasoline engines), external combustion engines (such as Stirling engines and steam engines), electric motors, and so on.