A method for preparing glufosinate of formula or a salt, an enantiomer thereof or a mixture of the enantiomers in all ratios, characterized in that the method comprises the following steps: a) reacting a compound of formula or a salt, an enantiomer thereof or a mixture of the enantiomers in all ratios, with one or more compounds of formula or a mixture; the mixture being a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula, one or more compounds of formula and one or more compounds of formula; b) reacting the intermediate, no matter whether it is isolated or not, in the presence of water and an acid or a base to obtain the glufosinate or a salt, an enantiomer thereof or a mixture of the enantiomers in all ratios; wherein when PG is an amino protecting group, a step of removing the amino protecting group can be further comprised; wherein Hal 1 and Hal 2 are each independently halogen; PG is hydrogen or an amino protecting group; R 1, R 2, R 3 and R 4 are each independently alkyl, phenyl or substituted phenyl, and when the mixture comprises the mixture of one or more compounds of formula and one or more compounds of formula, or when the mixture comprises the mixture of one or more compounds of formula, one or more compounds of formula and one or more compounds of formula, R 2 is either R 3 or R 4; and the chiral carbon atom is labeled with *. a) reacting a compound of formula or a salt, an enantiomer thereof or a mixture of the enantiomers in all ratios, with one or more compounds of formula or a mixture; the mixture being a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula, one or more compounds of formula and one or more compounds of formula; with one or more compounds of formula or a mixture; the mixture being a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula and one or more compounds of formula; or a mixture comprising one or more compounds of formula, one or more compounds of formula and one or more compounds of formula; b) reacting the intermediate, no matter whether it is isolated or not, in the presence of water and an acid or a base to obtain the glufosinate or a salt, an enantiomer thereof or a mixture of the enantiomers in all ratios; wherein when PG is an amino protecting group, a step of removing the amino protecting group can be further comprised; wherein Hal 1 and Hal 2 are each independently halogen; PG is hydrogen or an amino protecting group; R 1, R 2, R 3 and R 4 are each independently alkyl, phenyl or substituted phenyl, and when the mixture comprises the mixture of one or more compounds of formula and one or more compounds of formula, or when the mixture comprises the mixture of one or more compounds of formula, one or more compounds of formula and one or more compounds of formula, R 2 is either R 3 or R 4; and the chiral carbon atom is labeled with *. wherein when PG is an amino protecting group, a step of removing the amino protecting group can be further comprised; wherein Hal 1 and Hal 2 are each independently halogen; PG is hydrogen or an amino protecting group; R 1, R 2, R 3 and R 4 are each independently alkyl, phenyl or substituted phenyl, and when the mixture comprises the mixture of one or more compounds of formula and one or more compounds of formula, or when the mixture comprises the mixture of one or more compounds of formula, one or more compounds of formula and one or more compounds of formula, R 2 is either R 3 or R 4; and the chiral carbon atom is labeled with *.