How does a Gasoline Engine Work?

A gasoline engine works by using combustion. Air and fuel enter the engine and are compressed. The spark plugs ignite the the compressed gas causing the pistons to move and the crankshaft to turn. Look here for more information: