Bacterial ear infections happen when fluid build up in the ear cause bacteria to grow in your middle ear or ear canal, resulting in inflammation. Medications are intended to kill the bacteria causing the problem. Amoxicillin is one of the most common antibiotics used to treat bacterial ear infections, although it is not uncommon for children to be allergic to this medication. Other often-used alternative antibiotics include cefdinir, azithromycin, and cefpodoxime. It is important to note that medication that is intended to help with congestion or allergies do not help in treating bacterial ear infections.