A diet that includes plenty of fruits, vegetables, legumes, and whole grains can help reduce the risk of certain cancers. Limit the intake of sugars, saturated fats, and processed foods. Reducing alcohol consumption is also important, as alcohol is linked to several types of cancer, including liver, breast, and colorectal cancers.