Machine learning helps in cancer detection and prognosis in several ways. It can analyze large datasets to identify patterns related to cancer susceptibility, recurrence, and survivability. Supervised and unsupervised machine learning have been used to extract meaningful features from gene expression and medical imaging data to classify cancers and segment tumors. This reduces errors, improves accuracy, and eliminates manual, time-consuming analysis compared to methods relying solely on human expertise. Machine learning is advancing medical research and cancer treatment by allowing vast amounts of data to be processed efficiently.