Your surgeon might prescribe antibiotic therapy before or after the procedure, based on the severity and type of the infection. When bacteria have affected too much tissue and your body cannot fight the infection on its own, you may need prescription medication.