The immune system can detect cancer cells through antigens presented on the surface of these cells. These antigens, known as tumor-associated antigens (TAAs) or neoantigens, arise from genetic mutations within the cancer cells. The major histocompatibility complex (MHC) presents these antigens to T cells, initiating an immune response.