Spindle fibers are microtubule structures that attach to chromosomes during mitosis. Their primary function is to pull the sister chromatids apart and move them to opposite poles of the cell, ensuring that each daughter cell receives a complete set of chromosomes.