Who Invented the Gasoline Engine?

Nikolaus August Otto invented and patented the gasoline engine in 1876. The gasoline engine uses a four stroke cycle to convert gas to motion.