We identified four mental disorder-related genes, i.e., QDPR, DBI, MAX and HP and their downstream pathways that played crucial role in the susceptibility of IBD and UC, suggesting their potential as intervention and therapeutic targets for gut-brain axis diseases in the future. This evidence concerns the gene DBI and mental disorder.