Many cancers can be prevented by not smoking, maintaining a healthy weight, not drinking too much alcohol, eating plenty of vegetables, fruits and whole grains, being vaccinated against certain infectious diseases, not eating too much processed and red meat, and avoiding too much exposure to sunlight.