During mitosis, the mitotic spindle forms from centrosomes, which migrate to opposite poles of the cell. Microtubules emanating from these centrosomes attach to the kinetochores on chromosomes, aligning them at the metaphase plate. The microtubules then shorten, pulling the sister chromatids apart to opposite poles, ensuring each new cell inherits an identical set of chromosomes.