The invention discloses a beta-halogenated enamine acid ester compound and a preparation method thereof. The structure of the beta-halogenated enamine acid ester compound is shown as a formula I whichis described in the specification. In the formula I, R1 and R2 are selected from alkyl groups, morpholine, pyrrole, benzyl groups and hydrogen; X is Br or Cl; and EWG is an electron withdrawing group. The preparation method comprises the following steps: sequentially mixing dimethylformamide, an alkyne-terminated compound and secondary amine or derivatives thereof, carrying out stirring, mixing and sufficient reacting, adding triethylene diamine and N-halogenated imide, carrying out stirring and sufficient reacting at 0-50 DEG C, performing quenching with saturated edible salt water, and allowing a quenched product to pass through a column for purification so as to obtain the beta-halogenated enamine acid ester compound. According to the method, the enamine acid ester compound with high activity is prepared by utilizing metal catalysis-free multi-component reactions, operation is simple and convenient, assembly efficiency is high, automation can be easily realized, and the used raw materials are cheap and easy to obtain; and the method has the advantages of simple, mild and green reaction conditions and good substrate applicability, and can realize high yield in virtue of most amino compounds (especially the secondary amine).