Staphylococcus aureus and methicillin-resistant Staphylococcus aureus (MRSA) are the leading aetiological pathogens of nosocomial infections worldwide. These bacteria form biofilms on both biotic and abiotic surfaces causing biofilm-associated infections. Within the biofilm, these bacteria might develop persistent and antimicrobial resistant characteristics resulting in chronic infections and treatment failures. Garlic exhibits broad pharmaceutical properties and inhibitory activities against S. aureus. We investigated the effects of aqueous fresh garlic extract on biofilm formation in S. aureus ATCC25923 and MRSA strains under chemopreventive and chemotherapeutic conditions. The viable bacteria and biofilm levels were quantified through colony count and crystal violet staining, respectively. The use of fresh garlic extract under both conditions significantly inhibited biofilm formation in S. aureus strains ATCC25923 and MRSA. Garlic could be developed as either a prophylactic or therapeutic agent to manage S. aureus biofilm-associated infections.