New linear and cyclic guanidines were synthesized and tested in vitro for their antifungal activity toward clinically relevant strains of Candida species, in comparison to fluconazole. Macrocyclic compounds showed a minimum inhibitory concentration in the micromolar range and a biological activity profile in some cases better than that of fluconazole. One macrocyclic derivative was also tested against Aspergillus species and showed high antifungal activity comparable to that of amphotericin B and itraconazole.