Galactal-l-yl-methylphosphonates 2a,b and uridine phosphate derivative 1 were prepared and their inhibitory activity towards β-galactosyl transferase from bovine milk investigated. 1 exhibited strong competitive inhibition.