The process of removing liquid from a solid or a gas, by either heat transfer or the use of an adsorbent.