Levofloxacin is used to treat a variety of bacterial infections. This medication belongs to a class of drugs known as 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).