The diverse mechanism of antimicrobial activity of Ag and AgBr nanoparticles against gram-positive and gram-negative bacteria and also against several strains of candida was explored in this study. The AgBr nanoparticles (NPs) were prepared by simple precipitation of silver nitrate by potassium bromide in the presence of stabilizing polymers. The used polymers (PEG, PVP, PVA, and HEC) influence significantly the size of the prepared AgBr NPs dependently on the mode of interaction of polymer with Ag+ ions. Small NPs (diameter of about 60-70 nm) were formed in the presence of the polymer with low interaction as are PEG and HEC, the polymers which interact with Ag+ strongly produce nearly two times bigger NPs (120-130 nm). The prepared AgBr NPs were transformed to Ag NPs by the reduction using NaBH4. The sizes of the produced Ag NPs followed the same trends--the smallest NPs were produced in the presence of PEG and HEC polymers. Prepared AgBr and Ag NPs dispersions were tested for their biological activity. The obtained results of antimicrobial activity of AgBr and Ag NPs are discussed in terms of possible mechanism of the action of these NPs against tested microbial strains. The AgBr NPs are more effective against gram-negative bacteria and tested yeast strains while Ag NPs show the best antibacterial action against gram-positive bacteria strains.