The internal combustion engine was developed over many decades through contributions from numerous scientists and engineers. George Brayton created the first safe and practical oil engine in 1873. Nikolaus Otto patented the first four-stroke engine in 1876. Gottlieb Daimler invented the prototype of the modern gasoline engine in 1885. Various other inventors contributed improvements to internal combustion engines throughout the 1800s and early 1900s, including the first commercial liquid-fueled engine by George Brayton in 1872, the compressed charge four-cycle engine by Nikolaus Otto, Gottlieb Daimler and Wilhelm Maybach in 1876, and the first compressed charge, compression ignition engine by Rudolf Diesel in 1892.