A desiccant is a hygroscopic substance that functions as a drying agent, i.e. it withdraws moisture from other materials. It can retain water through capillarity or adsorption or by reacting chemically. Desiccants are used to dry solvents, gases and solids and lose their function as their water retention increases. Silica gel and molecular sieves are examples of commonly used desiccants.