COVID-19 vaccines work by stimulating the immune system to recognize and fight the virus. For instance, mRNA vaccines like Pfizer and Moderna use a small piece of the virus's genetic material to instruct cells to produce a protein that triggers an immune response. Vector vaccines use a different virus as a vector to deliver similar instructions.