The invention provides a fluorine-containing cationic imidazoline corrosion inhibitor and a preparation method thereof. The method comprises the following steps: adding an organic carboxylic acid and diethylenetriamine into a reactor in a molar ratio of 1:(0.1-2); adding a benzene solvent, heating, and performing a reaction at the temperature of 130-165 DEG C; heating, and performing a cyclization reaction at the temperature of 190-210 DEG C; cooling to 80-110 DEG C after the cyclization reaction; dripping perfluoroalkglsulfonyl fluoride after cooling, and performing a thermostatic reaction; and dripping a quaternizing reagent after the thermostatic reaction, and performing a thermostatic reaction to prepare the fluorine-containing cationic imidazoline corrosion inhibitor. The corrosion inhibitor is a rufous sticky liquid and can be miscible with water in any proportion, wherein the flash point is more than 60 DEG C, the condensation point is less than minus 10 DEG C, and the density is between 0.86g/ml and 0.99g/ml. The fluorine-containing cationic imidazoline corrosion inhibitor has the advantages of good metal surface adsorption, easily formed oleophobic metal surface, less possibility of dropping and the like, and can be used for reducing the friction of organic media, such as crude oil, finished product oil and the like, to a vessel surface.