A cancer vaccine is a type of immunotherapy designed to either treat existing cancer or prevent the development of cancer. Unlike traditional vaccines that protect against infections, cancer vaccines aim to stimulate the immune system to recognize and combat cancer cells.