With that said, there are clearly situations where antibiotics are necessary to treat bacterial infections, such as of the lung (pneumonia), skin, or urinary tract. In these settings, treatment should be initiated at the recommendation of a physician and taken for a fixed duration of time (rarely more than 7-10 days).