Immunotherapy works by harnessing the body's immune system to fight cancer. It includes treatments like checkpoint inhibitors, which help the immune system recognize and attack cancer cells, and cancer vaccines, which stimulate the immune system to target cancer-specific antigens. Another promising approach is the use of immune checkpoint inhibitors such as pembrolizumab and nivolumab.