Ergosterol is a sterol found mainly in the membrane of fungi.It is converted to vitamin D by ultraviolet light.Ergosterol and its biosynthetic pathway are important targets of some fungicides.