The relationship between serum uric acid (SUA) and poor cognitive performance in patients with ischemic stroke is unclear. We hypothesized that the severity of renal function mediates the association between SUA and cognitive dysfunction.A retrospective analysis of 608 patients with ischemic stroke was conducted between 2016 and 2020. SUA was obtained from inpatient medical records. Global cognitive function via mini-mental state exam (MMSE) and Montreal Cognitive Assessment (MoCA) was determined one month after hospital discharge. The relationship between SUA and cognitive function was assessed by multiple linear and logistic regression analyses. Patients had a mean age of 66.6 years (SD: 4.1 years), and 52% were male. The mean SUA level was 298.6 ± 75.4 μmol/L. SUA increases were significantly positively associated with lower MMSE and MoCA scores and increased risk of moderate-severe cognitive impairment one month after stroke (p < 0.01), even after adjusting for factors including age, gender, BMI, diabetes and hypertension history. Adding a term for estimated glomerular filtration rate (eGFR) attenuated these associations such that SUA was no longer associated with cognitive performance. A fully adjusted stronger negative association between SUA and cognitive performance was found in those who had lower eGFR, with a significant eGFR interaction for MMSE (p-interaction = 0.016) and MoCA (p-interaction = 0.005). In patients with ischemic stroke, SUA showed an inverse association with cognitive function among those who have lower eGFR. The renal function might mediate the association between SUA and cognitive dysfunction.