The prevention or slowing of an unwanted process — corrosion, scale, hydrate formation or clay swelling.