A series of substituted pyrazolines (2a-e, 3a-h and 6a-c) and isoxazolines (4a-e) were synthesized and their structures were established on the basis of IR, (1)H NMR, (13)C NMR and mass spectra. All the synthesized compounds were tested against two bacterial and four fungal strains and found to exhibit moderate to potent antifungal activity. Compounds 2b, 4c, 4d and 6a-c exhibited significant activity against all tested fungal strains. MIC values of all the active compounds were comparable with standard drug fluconazole. The results of the in silico molecular docking study supported the antifungal activity of the synthesized compounds.