Tuberculosis, or TB, is a bacterial infection of the lungs. When a child gets TB, it is called pediatric tuberculosis.