Antibiotics for ear infections work the same way they do for other parts of the body. Some antibiotics seek out bacteria and attack the wall surrounding them. This leads to either death of the bacteria or their inability to reproduce. When bacteria are killed or fail to grow, the infection gets better and eventually clears up.