BackgroundAlterations in kidney function and increased risk of kidney diseases in patients with inflammatory bowel disease (IBD) have been reported, but the causal relationship remains unclear. Herein, Mendelian randomization was employed to identify the causal effect of inflammatory bowel disease on kidney function and the risk of chronic kidney disease (CKD), urolithiasis, and IgA nephropathy.MethodsThe International Inflammatory Bowel Disease Genetics Consortium provided the summary-level genome-wide association study (GWAS) data that correlates with Crohn's disease (CD) and ulcerative colitis (UC). GWAS data for estimated glomerular filtration rate from serum creatinine (eGFRcrea), urine albumin–creatinine ratio (uACR), and CKD were obtained from the CKDGen Consortium, and GWAS data for urolithiasis were obtained from the FinnGen consortium. The summary-level GWAS data for IgA nephropathy were obtained from the meta-analysis of UK-biobank, FinnGen, and Biobank Japan. Inverse-variance weighted was used as the primary estimate. Furthermore, the Steiger test was used to validate the direction of causality.ResultsThe inverse-variance weighted data revealed that genetically predicted UC significantly increased uACR levels, while genetically predicted CD significantly increased the risk of urolithiasis.ConclusionsUC increases the levels of uACR, and CD increases the risk of urolithiasis.Supplementary InformationThe online version contains supplementary material available at 10.1186/s40001-023-01128-0.