The invention relates to a method for preparing a 2-oxazolinone compound containing a trifluoromethyl group from an allyl amine compound in virtue of carbon dioxide. Specifically, the allyl amine compound as shown in a formula 1 which is described in the specification reacts with CO2 in a solvent in the presence of a copper catalyst, alkali and a trifluoromethylation reagent so as to prepare the 2-oxazolinone compound as shown in a formula 2 which is described in the specification. In the formula 2, R<1>, R<2>, R<4> and R<5> are independently selected from a group consisting of H, halogen, a cyano group, an alkyl group, a carbonyl group, an ester group, an aryl group, a heteroaryl group and the like, R4 or R5 can optionally form a ring with R1, and the alkyl group, the carbonyl group, the ester group, the aryl group and the heteroaryl group can be optionally substituted by halogen, the alkyl group or the like; and R3 is H, halogen, an alkyl group, an aryl group, or the like.