The invention relates to a synthetic oilfield flooding compounded
corrosion inhibitor which takes
imidazole type
ionic liquid synthesized by a two-
step method as a controlled-release host and the other added compounds as auxiliary controlled-release agents. A preparation method of the
corrosion inhibitor for the novel
ionic liquid oil field water comprises the following steps: (1) at a certain temperature, mixing N-methylimidazole with n-
butyl bromide or
benzyl chloride, reacting while stirring, washing and removing unreacted substances after reaction is carried out for hours, thus obtaining
halide of N-methylimidazole; (2) mixing the product obtained in the step (1) with a selected compound, adding a
solvent, stirring for reacting for a period of time at a certain temperature, extracting a reaction solution, washing, and removing the
solvent, thus obtaining the target products; and (3) compounding the products obtained in the step (2) with urotropine, OP-10,
potassium iodide and
thiourea in a certain proportion, thus obtaining the
corrosion inhibitor with extremely high corrosion inhibition efficiency. The preparation method of the
corrosion inhibitor for the novel
ionic liquid oil field water has the advantages that raw materials are simple and available, the operational process is easy and safe, the reaction time is short, the cost is low, the yield is high, the corrosion inhibition performance is strong, the
corrosion inhibitor for the novel ionic liquid
oil field water is applicable to industrial large-scale production, and the practicability is strong.