Dietary factors associated with oral cancer were investigated in a case-control hospital-based study in the city of São Paulo, Brazil, from 1998 to 2002. A total of 835 subjects, 366 with histologically confirmed incident cases of oral-cavity or pharyngeal cancer and 469 controls participated in the study. Dietary data were collected with a food frequency questionnaire (FFQ). Odds ratios (OR) and 95% confidence intervals (95%CI) were obtained from unconditional logistic regression, adjusted for potential confounders. Inverse associations with risk of oral cancer were found for the highest intake of beans, OR = 0.37 (95%CI: 0.22-0.64), raw vegetables, OR = 0.51 (95%CI: 0.29-0.93) and the intermediate tertile of rice and pasta intake, OR = 0.56 (95%CI: 0.38-0.83). Positive associations were observed for the highest intake of eggs, OR = 1.84 (95%CI: 1.23-2.75), potatoes, OR = 2.22 (95%CI: 1.53-3.25), and milk, OR= 1.80 (95%CI: 1.09-2.98). Some traditional Brazilian foods like rice and beans emerged as protective factors against oral cancer, independently of other risk factors.