The invention discloses a petroleum antiknock agent, and relates to the technical field of antiknock agent preparation. The petroleum antiknock agent is prepared from the following raw materials: 2 to 60 parts of glyceryl stearate, 5 to 56 parts of epoxy rice bran oleic acid butyl ester, 3 to 70 parts of sorbitol, 3 to 38 parts of an anti-coking agent, 3 to 37 parts of methylparaben, 2 to 16 parts of methylcyclopentadienyl manganese tricarbonyl, 2 to 20 parts of cyclopentadienyl manganese tricarbonyl, 2 to 25 parts of an inert inhibitor, 2 to 40 parts of a compound dispersing agent and 2 to 100 parts of ethyl alcohol. According to the antiknock agent prepared in the invention, the petroleum octane value is improved, metal settlings cannot be generated inside an engine, and serious accidents such as cylinder wear, poor spark plug ignition, oxygen sensor and three-way catalyst poisoning cannot be caused; the ingredients of the antiknock agent cannot generate corrosion, and cannot product a negative effect for petroleum quality index, so that the antiknock agent generates few pollutes, is little in environmental protection without worrying the pollution of the antiknock agent on the environment, and can be extremely applied to the market.