AbstractIt has become crucial to biosynthesize efficient, secure, and affordable nanoparticles that we use for the treatment of various infections, including surgical site infection and wound infection, due to the rapid development of microbial resistance to numerous antibiotic drugs. The objective of the present study is to biosynthesize cobalt nanoparticles using an extract from the combined peels of garlic (Allium sativum) and onion (Allium cepa). Scanning electron microscopy (SEM), Fourier-transform infrared spectroscopy (FTIR), and X-ray diffraction were used to confirm the synthesis of cobalt nanoparticle (XRD). Well diffusion was used to measure antimicrobial activity.Escherichia coli, Proteus, Staphylococcus aureus, Staphylococcus cohnii, andKlebsiella pneumoniawere the bacterial strains employed Both the crude prepared extract and the biosynthesized cobalt nanoparticles demonstrated efficacy against all strains of bacteria, but the crude prepared extract displayed a low zone of inhibition ranging from 10 to 13 mm, while the biosynthesized cobalt nanoparticles displayed a high zone of inhibition ranging from 20 to 24 mm.