In the context of cancer, MHC molecules are vital for the immune system to recognize and attack tumor cells. Tumor cells often express abnormal or mutated proteins. These proteins are processed into peptides and presented on the cell surface by MHC molecules. If the immune system recognizes these peptides as foreign, it can mount an immune response to destroy the tumor cells.