This medication is used to treat a variety of bacterialinfections. Levofloxacin belongs to a class of drugs known asquinolone antibiotics. It works by stopping the growth of bacteria.Levofloxacin injection is used if you cannot take the medication by mouth.