The capacity of a soil to remove harmful compounds from the water that it holds.