The process by which soil becomes compressed, reducing pore space and affecting water movement and availability to plants.