Medicine may be used to treat an infection caused by gangrene. Intravenous antibiotics are special drugs used to fight off harmful bacteria. They are usually given if your health care provider prescribes antibiotics, it is important that you take them exactly as prescribed until all of the medication is gone.