Ear mites are a common issue for pets, especially if they have not had regular veterinary care. This is a page about. "What causes ear mites?".
It is best to confirm with your vet that your pet does in fact have mites. Then using a medication and cleaning should remedy the problem.