The invention discloses a preparation method of a tree-shaped 
Schiff base corrosion inhibitor. The method comprises the following steps: 1, uniformly mixing 
ethylene diamine, trichloromethane and K2CO3, adding 4-trifluoromethylbenzaldehyde at 40DEG C, heating to 65DEG C, reacting for 6h to obtain a dark-brown transparent liquid, concentrating, 
drying, and re-crystallizing to obtain a 
Schiff base monomer; and 2, uniformly mixing the 
Schiff base monomer, 
dichloromethane and K2CO3, adding trimesoyl 
chloride at 35DEG C, heating to 50DEG C, reacting for 8h to obtain a milky yellow liquid, concentrating, and 
drying to obtain the tree-shaped Schiff base 
corrosion inhibitor. A reaction 
solvent with a low 
boiling point is selected to participate in reactions in the preparation process, so the 
reaction temperature is reduced to 65DEG C, the cost is reduced, and side reactions are few; and a mixed 
solvent is adopted to re-crystallize and purify a crude product, so the yield is improved, the novel tree-shaped Schiff base 
corrosion inhibitor prepared in the invention has many adsorption sites, and the corrosion performance of the tree-shaped Schiff base 
corrosion inhibitor is improved.