The condensation of 2-chloroethyl isocyanate (I) with diethyl 1-aminoethylphosphonate (II) in chloroform gives diethyl 1-[3-(2-chloroethyl)ureido]ethylphosphonate (III), which is then treated with sodium nitrite and formic acid.