In agriculture, leaching is the loss of water-soluble plant nutrients from the soil, due to rain and irrigation. Soil structure, crop planting, type and application rates of fertilizers, and other factors are taken into account to avoid excessive nutrient loss. Leaching may also refer to the practice of applying a small amount of excess irrigation where the water has a high salt content to avoid salts from building up in the soil (salinity control).