It is used to treat bacterial infections. It may be given to you for other reasons. Talk with the doctor.