Bacterial infections are treated with antibiotics such as amoxicillin, erythromycin and ciprofloxacin. There are many different types of antibiotic, with different ways of working; the choice depends on the type of infection you have. Fungi commonly cause skin infections such as athlete's foot and ringworm.