Fibroblast growth factor 23 (FGF23) gene variants could influence the production of FGF23 in subjects at risk for chronic kidney disease (CKD). Our purpose was to analyze the association of serum levels of FGF23 and two FGF23 gene variants with metabolic and renal function parameters in Mexican patients with Type 2 Diabetes (T2D) and/or essential hypertension (HTN). The study included 632 individuals diagnosed with T2D and/or HTN, of which 269 (43%) were diagnosed with CKD. FGF23 serum levels were determined and FGF23 gene variants rs11063112 and rs7955866 were genotyped. Genetic association analysis included binary and multivariate logistic regressions adjusted for age and sex. Patients with CKD were older, had higher systolic blood pressure, uric acid, and glucose levels than those without CKD. Also, patients with CKD had higher FGF23 levels (106 vs. 73 pg/mL p=0.003). No correlation of any gene variants with FGF23 levels was found, but minor allele for rs11063112 and haplotype rs11063112A-rs7955866A were associated with low probability of CKD (Odds Ratio [OR]=0.62 and 0.58, respectively). Conversely, the haplotype rs11063112T-rs7955866A was associated with increased FGF23 levels and risk for CKD (OR=6.90). In addition to the traditional risk factors, levels of FGF23 are higher in Mexican patients with diabetes and/or essential hypertension and CKD, compared to those without renal damage. In contrast, the two minor alleles of two variants of the FGF23 gene, rs11063112 and rs7955866, as well as the haplotype carrying these two alleles, were found to be protective against renal disease in this Mexican patients' sample.