The immune system plays a dual role in cancer. It can protect against cancer by recognizing and destroying cancerous cells. However, some cancer cells develop mechanisms to evade the immune system, such as upregulating checkpoint proteins like PD-L1 that inhibit immune responses. Understanding these interactions has led to the development of immunotherapies that enhance the immune system’s ability to fight cancer.