Immunotherapy works by manipulating the immune system to recognize and attack tumor cells. For instance, immune checkpoint inhibitors block proteins that prevent the immune system from attacking cancer cells, while cancer vaccines stimulate the immune system to target specific cancer antigens.