Alterations in gut microbiota are linked to worse health-related quality of life in inflammatory bowel disease, with microbial diversity showing stronger associations than disease activity.