A rocket engine burns propellant to push a rocket upwards. It carries both its fuel and the oxygen to burn it, because there is no air in space. The hot gas leaves through a nozzle at very high speed, and the rocket is pushed the other way.
Rocket engines are of three main kinds, named after their propellant. A solid motor is a tube filled with a rubbery block of fuel and oxidiser mixed together. Once lit, it burns until the block is used up, and it cannot be switched off. Solid motors are simple, can be stored for years and give a strong push, so they often form a rocket's first stages. A liquid engine pumps a liquid fuel and a liquid oxidiser into a chamber, where they burn. It can be throttled, switched off and, in some designs, started again. Some pairs of liquid propellants catch fire as soon as they touch, which makes an engine easy to restart.
A cryogenic engine is a liquid engine whose propellants are gases cooled until they turn to liquid. Oxygen becomes liquid at -183°C and hydrogen at -253°C. A cryogenic engine gives more push for each kilogram of propellant than solid or ordinary liquid propellants, but the very cold tanks and pipes are hard to build. A semi-cryogenic engine burns liquid oxygen with a fuel such as kerosene, which stays liquid at room temperature.
Many new engines are 3D printed. A printer builds the engine from metal powder, layer by layer, so the chamber, its cooling channels and the injector come out as one piece, with no welding. This saves months of machining and joining.
Consider a two-stage rocket built to lift a 100 kg satellite. Its first stage has a cluster of seven liquid engines. At lift-off they burn together for about 2 minutes. When the tanks are nearly empty, the engines stop and the stage drops away. The second stage's single engine then burns for about 6 minutes. It stops at a height of 500 km, when the speed has reached about 7.6 km a second, and the satellite is released in orbit.
The engines sit inside a launch vehicle. A satellite has its own much smaller engines, called thrusters, on its satellite bus. A space tug uses larger ones, as described under orbital transfer vehicle. A jet engine also pushes hot gas out of a nozzle, but it takes its oxygen from the air, so it cannot work in space.