Three novel 5-(2-haloethyl)pyrimidine derivatives were synthesized and characterized by 1H-NMR, 13C-NMR, MS, IR spectra and elemental analysis. Iodine and chlorine atoms in the C-5 side chain were introduced by reaction of 5-(2-hydroxyethyl)pyrimidine with hydroiodic acid and phosphoryl chloride, respectively. The structure of the intermediate alpha-(1-carbamyliminomethylene)-gamma-butyrolactone was determined by X-ray crystal structure analysis. The molecule deviates very slightly from planarity. Three N-H...O hydrogen bonds link the molecules into one-dimensional chains of edge-fused rings.