SummaryImpacts of aqueous and ethanolic extracts of garlic were investigated in suppressing bacterial growth and biogenic amine (BA) formation by selected foodborne pathogens (Candida albicans, Salmonella paratyphi A, Escherichia coli and Staphylococcus aureus) and fish spoilage bacteria (Enterococcus faecalis, Photobacterium damselae and Pseudomonas luteola). The spread‐plate method was used to monitor bacterial growth in histidine decarboxylase broth (HDB), whereas the rapid high‐performance liquid chromatographic (HPLC) method was used for BA analysis. Bacterial growth and their ammonia and BA production were monitored using HDB. The results showed that bacterial growth on HDB was in the range from 9.13, for P. luteola, to 9.54 log CFU (colony‐forming units) mL−1, for S. aureus and C. albicans. The presence of garlic extracts in HDB resulted considerably in lowering bacterial growth and BA formation (P < 0.05). The highest inhibitory activities of ethanolic and water garlic extracts were obtained for Gram‐positive S. aureus with 1.4 and 1.5 logarithmic reduction on bacterial growth, followed by Gram‐negative Salmonella Paratyphi A and E. coli. Application of garlic extracts, mainly ethanolic ones, showed a significant inhibitory effect on bacterial ammonia production, with 4‐100‐fold lower ammonia accumulation (P < 0.05). Bacteria produced all tested BAs, mainly dopamine, agmatine and tryptamine. The highest levels of histamine and tyramine (61.99 and 36.45 mg L−1) were produced by S. aureus. In the presence of aqueous or ethanolic garlic extracts, putrescine production by E. faecalis was around 110‐fold lower than that of the control group. Results revealed that both garlic extracts are potent antimicrobials that can control the growth of foodborne pathogens and their harmful BA formation.