Tuberculosis is primarily caused by the bacterium Mycobacterium tuberculosis, which spreads through the air when an infected person coughs, sneezes, or talks.