Centromeres hold sister chromatids together and attach to spindle fibers, ensuring proper chromosome separation.