Gypsum is a mineral that can undergo dehydration, where it loses water molecules and transforms into bassanite or anhydrite. The reverse process of hydration occurs when bassanite or anhydrite are exposed to water, causing them to reabsorb water molecules and re-form as gypsum. Dehydration and hydration of gypsum is dependent on factors like temperature and the presence of water.