In a eukaryotic cell - during interphase, the cell works, grows, and makes a copy of its DNA.
Following that, in the mitotic phase, the cell separates its DNA into two sets and divides the nucleus, thus completing mitosis. After which, the cell divides its cytoplasm through cytokinesis, forming two identical cells.