Antibiotics can be used to treat some fungal infections. They can also treat infections caused by certain types of parasites.