Urease inhibitors can be considered as a tool to control the damaging effect of ureolytic bacteria infections in humans which occur commonly in the developed countries. Computer-aided optimization of the aminomethylphosphinate structures by modifying both their N- and P-termini led to the invention of a novel group of inhibitors of bacterial ureases. Introduction of P-hydroxymethyl group into the molecule resulted in considerable increase of the inhibitory activity against enzymes purified from Bacillus pasteurii and Proteus vulgaris as compared with their P-methyl counterparts described previously. The designed compounds represent a competitive reversible class of urease inhibitors. The most potent, N-methyl-aminomethyl-P-hydroxymethylphosphinic acid, displayed K(i) = 360 nM against P. vulgaris enzyme.