In the context of cancer, viral vectors are primarily used in oncolytic virotherapy and gene therapy for cancer. Oncolytic viruses selectively infect and kill cancer cells while sparing normal cells. Genetic material delivered via viral vectors can also enhance the immune system's ability to fight cancer, or correct genetic defects that contribute to cancer progression.