Epoxides and hydroperoxide compounds having antifungal activities derived from the oxidation linalyl acetate, a major component of lavender oil, are disclosed. Also, disclosed are pharmaceutical composition and methods of treating and protecting a subject from fungal infection.