What came first petrol or diesel?

Petrol came first, as it was more obvious as a use of power than diesel because it was flammable and already in liquid form, yet diesel was discovered as a use of power for engines later.

I would say petrol because when they invented cars they made petrol cars and from the chemicals etc. in petrol they invented diesel