Ergosterol is a sterol compound that is an essential component of fungal cell membranes, playing a role similar to that of cholesterol in animal cells. It is commonly found in the cell membranes of fungi, including yeasts and molds. Ergosterol is crucial for maintaining cell membrane integrity and fluidity. Its presence is often used as a biomarker to detect and quantify fungal biomass in various environmental and clinical samples.