A method for treating candidiasis includes administering to a human or animal subject in need thereof, a therapeutically effective amount of an anti-candidiasis compound. The anti-candidiasis compound can include 3β-diglucoside-5, 12-28-oic acid. The anti-candidiasis can be isolated from an extract of Petriella setifera or other Petriella species.