Mutations in genes encoding proteins involved in the M phase can lead to cancer. For instance, mutations in the TP53 gene, which encodes the p53 protein, can result in the loss of cell cycle regulation and apoptotic control. This allows cells with damaged DNA to continue dividing, thereby contributing to tumorigenesis.