We identified four key genes and their downstream pathways, specifically QDPR, DBI, MAX and HP genes, linking the mental disorders and susceptibility to the development of IBD. Here, QDPR is linked to inflammatory bowel disease.