Gypsum is added to cement to retard or slow down its setting time. This is crucial for construction applications where extended workability is needed. Gypsum controls the flash setting of cement by reacting with C3A (tricalcium aluminate) to form ettringite, preventing immediate hardening.