Cohesion is established during the S phase of the cell cycle when DNA is replicated. The cohesin complex, a protein complex, plays a crucial role in this process. Cohesin forms a ring structure that encircles the sister chromatids, holding them together until they are ready to be separated. This process is tightly regulated to ensure proper timing and function.