Imidazoles generally inhibit the conversion of lanosterol to ergosterol, resulting in a change in fungal cell membrane lipid composition. This structural change alters cell permeability and, ultimately, results in the osmotic disruption or growth inhibition of the fungal cell.