Our findings revealed a positive and causal correlation between SHBG and total testosterone with IBD. Here, SHBG is linked to inflammatory bowel disease.