The primary mechanism of COVID-19 vaccines is to elicit an immune response that protects against future infection. mRNA vaccines, such as Pfizer-BioNTech and Moderna, use messenger RNA to instruct cells to produce a protein that triggers an immune response. Viral vector vaccines, like Johnson & Johnson, use a harmless virus to deliver genetic material into cells, prompting the same response.