The reactions of stoichiometric amounts of sodium salts of 2-hydroxy-3-methyl-4-oxo-3,4-dihydropyrimidine or 2-hydroxy-3,6-dimethyl-4-oxo-3,4-dihydropyrimidine and dibromoalkanes in dimethylformamide were used to synthesize alpha,omega-bis(3-methyl- or 3,6-dimethyl-2,4-dioxo-1,2,3.4-tetrahydro-1-pyirimidinyl)alkanes with 1 and 3-5 methylene units in the hydrocarbon brigde.