TARIVID is used to treat a variety of bacterial infections. Ofloxacin belongs to a class of drugs called quinolone antibiotics. It works by stopping the growth of bacteria.This antibiotic treats only bacterial infections. It will not work for viral infections (such as common cold, flu).