Ofloxacin is a quinolone antibiotic useful for the treatment of a number of bacterial infections. When taken by mouth or injection into a vein, these include pneumonia, cellulitis, urinary tract infections, 
prostatitis, plague, and certain types of infectious diarrhea. Other uses, along with other medications, include treating multidrug resistant tuberculosis. An eye drop may be used for a superficial bacterial infection of the eye and an ear drop may be used for otitis media when a hole in the ear drum is present.When taken by mouth, common side effects include vomiting, diarrhea, headache, and rash. Other serious side effect include tendon rupture, numbness due to nerve damage, seizures, and psychosis. Use in pregnancy is typically not recommended. Ofloxacin is in the fluoroquinolone family of medications. It works by interfering with the bacteriums DNA.Ofloxacin was patented in 1980 and approved for medical use in 1985. It is on the World Health Organizations List of Essential Medicines. Ofloxacin is available as a generic medication. In 2017, it was the 278th most commonly prescribed medication in the United States, with more than one million prescriptions. Medical uses
Ofloxacin is used in the treatment of bacterial infections such as:

Acute bacterial exacerbations of chronic obstructive pulmonary disease (COPD)
Community-acquired pneumonia
Uncomplicated skin and skin structure infections
Nongonococcal urethritis and cervicitis
Epididymitis
Mixed Infections of the urethra and cervix
Acute pelvic inflammatory disease
Uncomplicated cystitis
Complicated urinary tract infections
Prostatitis
Acute, uncomplicated urethral and cervical gonorrheaOfloxacin has not been shown to be effective in the treatment of syphilis. Ofloxacin is no longer considered a first-line treatment for gonorrhea, because of bacterial resistance.
Susceptible bacteria
According to the product package insert, ofloxacin is effective against these microorganisms:Aerobic Gram-positive microorganisms:

Staphylococcus aureus (methicillin-susceptible strains)
Streptococcus pneumoniae (penicillin-susceptible strains)
Streptococcus pyogenesAerobic Gram-negative microorganisms 

Citrobacter koseri (Citrobacter diversus)
Enterobacter aerogenes
Escherichia coli
Haemophilus influenzae
Klebsiella pneumoniae
Neisseria gonorrhoeae
Proteus mirabilis
Pseudomonas aeruginosaOther microorganisms:

Chlamydia trachomatis

Adverse effects
In general, fluoroquinolones are well tolerated, with most side effects being mild to moderate. On occasion, serious adverse effects occur. Common side effects include gastrointestinal effects such as nausea, vomiting, and diarrhea, as well as headache and insomnia. The overall rate of adverse events in patients treated with fluoroquinolones is roughly similar to that seen in patients treated with other antibiotic classes. A U.S. Centers for Disease Control study found patients treated with fluoroquinolones experienced adverse events severe enough to lead to an emergency department visit more frequently than those treated with cephalosporins or macrolides, but less frequently than those treated with penicillins, clindamycin, sulfonamides, or vancomycin.Postmarketing surveillance has revealed a variety of relatively rare but serious adverse effects associated with all members of the fluoroquinolone antibacterial class. Among these, tendon problems and exacerbation of the symptoms of the neurological disorder myasthenia gravis are the subject of "black box" warnings in the United States. The most severe form of tendonopathy associated with fluoroquinolone administration is tendon rupture, which in the great majority of cases involves the Achilles tendon. Younger people typically experience good recovery, but permanent disability is possible, and is more likely in older patients. The overall frequency of fluoroquinolone-associated Achilles tendon rupture in patients treated with ciprofloxacin or levofloxacin has been estimated at 17 per 100,000 treatments.