In fungi, mutations in cyp51 cause resistance to azoles, a class of drugs that are used to treat invasive mycoses in mammals and in plants. Here, CYP51A1 is linked to opportunistic mycosis.