RNA vaccines use messenger RNA (mRNA) to instruct cells to produce a protein that is part of a pathogen or cancer cell. When the immune system detects this protein, it mounts a response. This mechanism primes the body to recognize and attack the actual cancer cells if they arise.