Most ear infections in dogs are caused by an overgrowth of the bacteria and yeast that live in the ear canal all the time. If the environment of the ear canal becomes moist, warm or traumatised, these bugs can overgrow and produce more ear wax than usual, and sometimes pus.
This is uncomfortable for your dog, causing them to shake their head and rub their ears. This in turn causes more trauma and continues the vicious circle.
Sometimes ear infections are caused by bacteria that are not meant to be in the ears at all, but can get in there through activities like swimming. Cleaning ears out after water-based activities can help prevent these infections.
The majority of otitis seen in veterinary practice these days are caused by underlying skin allergies. This is because the ear canal is made of skin, just like anywhere else on the body – only rolled into a tube where it can get warmer!
Many dogs with allergies show only ear disease as their symptoms, so any recurrent problems are worth looking into further.
Ear infections caused by parasites (such as ear mites) are rarely seen apart from in young puppies, or as part of a more generalised itching problem (such as a flea or fox mange infestation).