Eat a plant-based diet: Eating a diet rich in fruits, vegetables, whole grains, and legumes can help reduce your chance of developing several types of cancer. These foods are rich in fibre, antioxidants, vitamins, minerals, and fibre, all of which help to prevent cancer.