Tuberculosis (TB) is a bacterial infection that can be dangerous, but it’s almost always curable. Learn what medications are used for each type of the disease. Doctors prescribe antibiotics for 6 to 9 months to kill the bacteria that cause it completely. Quitting medication midway is dangerous and lethal.