While the human immune system is generally effective at fighting bacterial infections, sometimes the infection overpowers the body’s defenses. In that case, the administration of an antibiotic may be necessary. How does an antibiotic work with the immune system?.