Ofloxacin is used to treat certain infections including pneumonia, and infections of the skin, bladder, reproductive organs, and prostate (a male reproductive gland).