The invention provides a preparation method of a reinforced concrete corrosion inhibitor. The preparation method comprises the following steps: mixing 2,4,6-tri(4-carboxyl phenyl)-1,3,5-triazine, 1-(chloromethyl) adamantane and diethyl ether, stirring to react, distilling, conducting suction filtration, washing and drying in vacuum to obtain an ionic liquid, dissolving in deionized water, adding magnesium hydrate, filtering after stirring, distilling at the reduced pressure, and conducting suction filtration to obtain a magnesium salt compound, soaking the magnesium salt compound in an aqueoussolution of sodium monofluorophosphate, stirring, and drying in vacuum to obtain the reinforced concrete corrosion inhibitor. The magnesium ion in the prepared corrosion inhibitor improves the chloride penetration resistance of the concrete; the triazine substance corrosion inhibitor is adsorbed on the surface of a rebar to play a role in inhibiting the corrosion of the rebar; the carboxylate radical and the chloride ion form an adsorption film on the surface of the rebar so as to protect the rebar; and the monofluorophosphate forms a unimolecule protection film on the surface of the rebar, so that the corrosion speed of the rebar is slowed down. In addition, the used materials are nontoxic and harmless, are green, protect the environment, and are environmentally friendly.