Fungal infections of the ear (medical term Otomycosis) can be caused by a number of different fungal species, but most are caused by Aspergillus spp. and Candida spp.
Aspergillus fungal species are usually found living in soil, compost, and decaying plant debris, but they can be easily dispersed by the wind.
Candida is a yeast and a normal constituent of the flora of the skin, mouth, and vagina.
The principle fungi are - Aspergillus fumigatus, Aspergillus niger, Candida albicans, and Candida tropicalis
There are a number of predisposing factors that can put people at increased risk of fungal ear infections. For example, they are more common in tropical countries, and in people where the ear has been damaged in some way - i.e. by cotton buds or hearing aids. Other predisposing factors include medical conditions such as asthma and eczema.
If you get water or shampoo in your ears they may itch. If you are tempted to scratch them you are in danger of causing a minor abrasion which is all the invitation that an opportunistic fungus needs to cause an infection.