Background: Different transient receptor potential vanilloid 1 (TRPV1) variants may be differently activated by noxious stimuli. Aim: We investigated how TRPV1 variants modulated the prevalence of type 2 diabetes and specific gene-nutrient interactions. Methods: Among 8,842 adults aged 40-69 years in the Korean Genome Epidemiology Study, the associations between TRPV1 genotypes and the prevalence of type 2 diabetes as well as their gene-nutrient interactions were investigated after adjusting for the covariates of age, gender, residence area, body mass index, daily energy intake, and total activity. Results: The TRPV1 rs161364 and rs8065080 minor alleles lowered HOMA-IR and the risk of type 2 diabetes after adjusting for covariates. There were gene-nutrient interactions between TRPV1 variants rs161364 and rs8065080 and preference for oily taste, intake of oily foods, and fat intake after adjusting for covariates. Among subjects with the minor alleles of TRPV1 rs161364 and rs8065080, the group with a high preference for oily foods had a lower odds ratio for type 2 diabetes. Consistent with the preference for taste, among subjects with the minor alleles, the group with high fat intake from oily foods also exhibited a lower risk of type 2 diabetes than subjects with the major alleles. Conclusions: People with the minor alleles of the TRPV1 single nucleotide polymorphisms rs161364 and rs8065080 have a lower risk of diabetes with a high-fat diet, but people with the major alleles are at a higher risk of type 2 diabetes when consuming high-fat diets. The majority of people should be careful about a high fat intake.