Allium sativum (A. sativum) is one of the most important plants used in foods for its flavouring, prophylactic and therapeutic properties. It has been revealed that garlic has activity against bacteria and fungi. Aspergillus, Penicillium, Alternaria, and Fusarium are among the most common fungi that are mycotoxin producers, frequently isolated from foods. This study aimed to evaluate the antifungal activity of A. sativum extracts against saprophytic and toxigenic fungi isolated from contaminated mayonnaise sauce. The fungi grow on mayonnaise were transferred to sabouraud's dextrose agar supplemented with chloramphenicol and were identified based on macroscopic and microscopic features. Disc and well diffusion methods were applied to measure the inhibitory effects of the extracts against all targeted strains tested in the experiment; also, the minimum inhibitory concentration of each extract was determined. Aspergillus niger, A. flavus, A, fumigatus, Penicillium sp., Mucor sp., Rhizopus sp., Cladosporium sp., Fusarium sp., Alternaria sp., and Geotrichum sp. were identified. Aqueous extracts showed higher antifungal activity than the methanolic and ethanolic extracts. Fusarium and A. niger showed the highest and lowest sensitivity to all extracts, respectively. The MIC of the aquatic extract was determined to be 350 μ g/ml for A. niger, A. fumigatus, A. flavus, Mucor sp., Rhizopus sp., Penicillium sp., and Alternaria sp. and 300 μ g/ml for, Cladosporium sp., Fusarium sp. and Geotrichum sp. The MIC of methanolic and ethanolic extracts was higher than the corresponding figures for aqueous extracts. It seems that A. sativum can be used as an antifungal agent in some food products.