Natamycin is a polyene antifungal that binds to ergosterol in fungal cell membranes. This interaction disrupts normal membrane function and contributes to its antifungal activity.