Who invented the diesel engine? Who is the main inventor of gasoline engine for automobile?

Rudolf Dissel invented the first diesel engine in the world.

1876, the German Otto invented the gasoline engine, which provided the power source for the development of motorcycles. Daimler improved it. 1885, he installed an improved gasoline engine on a two-wheeled vehicle, and made the world's first motorcycle driven by a gasoline engine, named "monorail", with a speed of12 km/h. In the same year, we obtained the patent and invention priority.