Antibiotics fight infections caused by bacteria. They should not be used to treat infections caused by viruses (such as the flu) or types of fungi, which include yeasts and molds.