Gypsum in cement manufacturing is used to control cement setting time and prevent flash setting during hydration. By regulating the reaction between clinker and water, gypsum ensures workability, consistency, and predictable performance in both fresh and hardened cement.