Cation exchange capacity (CEC) is a measure of a soil's ability to hold and exchange positively charged ions, which are crucial for soil fertility and plant nutrition. It is influenced by the soil's clay and organic matter content, affecting nutrient availability and soil pH balance.