TB spreads through the air when an infected person coughs, sneezes, or speaks, releasing tiny droplets containing the bacteria.