The atmospheric gas engine was in turn replaced by Otto's four-stroke engine. The changeover to four-stroke engines was remarkably rapid, with the last atmospheric engines being made in 1877. Liquid-fuelled engines soon followed using diesel (around 1898) or gasoline (petrol) (around 1900).