Ofloxacin is used to treat certain bacterial infections in many different parts of the body. It may also be used for other problems as determined by your doctor. Ofloxacin may mask or delay the symptoms of syphilis. It is not effective against syphilis infections.