Diffusion capacity refers to the ability of the lungs to transfer gas from inhaled air to the blood, primarily measured through the uptake of carbon monoxide. It is an essential diagnostic tool for assessing conditions that affect gas exchange, such as emphysema, pulmonary fibrosis, and pulmonary hypertension.