Hyperuricemia(HUA) is associated with metabolic and cardiovascular comorbidities. Genetic factors, particularly the ABCG2 rs2231142 polymorphism, and dietary habits such as vegetarianism, significantly influence hyperuricemia risk. However, the interplay between these factors remains unclear in the Taiwanese population. To investigate the association of the ABCG2 rs2231142 polymorphism and vegetarian diet on the risk of hyperuricemia in a Taiwanese cohort. This population-based case-control study utilized data from 11,113 participants in the Taiwan Biobank. Participants carrying the ABCG2 rs2231142 polymorphism (GG and GT/TT genotypes) were analyzed alongside dietary habits (vegetarian vs. non-vegetarian) and various clinical confounders. Logistic regression was used to calculate odds ratios (ORs) and identify gene–diet interactions. Among 11,113 participants, the overall prevalence of HUA was 11.1