Ergosterol confers stability to fungal cell membranes.
Ergosterol is a sterol found in fungi and protists.
It plays an important role in fungal cell membrane structure providing rigidity, fluidity, and permeability.
Ergosterol helps fungal cells to deal with the highly fluctuating environments in the habitats (animal and plant surfaces and soil) that they occupy.
Ergosterol is more expensive in terms of energy consumption than its counterpart cholesterol in eukaryotic organisms.
However the advantages it brings to the fungal cell outweigh the costs.
C28H44O is the molecular formula for ergosterol.