During the process of mitosis, Kinesin 5 functions primarily during the metaphase and anaphase stages. It is essential for the formation of the bipolar spindle, a structure composed of microtubules that segregate duplicated chromosomes into two daughter cells. By sliding microtubules apart, Kinesin 5 generates the necessary force to elongate the spindle and ensures that chromosomes are evenly distributed.