After verifying the functions of hub genes, we verified them in the IBD validation datasets, which showed the important role of 7 shared hub genes (ITGB2, CYBB, IL1B, TLR2, CASP1, IL10RA, and BTK) in IBD patients with VD and genes IL1B, TLR2, and CASP1 might play an early diagnostic role in IBD complicated with VD. The gene discussed is BTK; the disease is sexually transmitted disease.