Diesel Engines use pressure start innovation to smolder fuel. That implies the fuel is compacted till it blazes. That requires a specific sort of fuel, which doesn’t smolder sporadically when subjected to pressure. Petrol does not fall in this class. Thus it isn’t utilized as a part of diesel motors.
That being said, Homogeneous Charge Compression Ignition (HCCI) motors can blaze petrol.