There was evidence that significant bidirectional associations between psoriasis and inflammatory bowel diseases (IBDs), which influences management strategy of the patients, so the investigation on the mechanisms by which these two diseases co-occur is important. The Gene Expression Omnibus (GEO) database was used to download gene expression profiles of psoriasis and IBD. The differentially expressed genes (DEGs) between disease and health control groups for each data set were calculated, and Venn diagram was used to obtain for intersection. We performed Gene ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) enrichment analysis on the intersection, followed by developing a protein-protein interaction network and module construction, and identified hub genes by cytoHubba. Thereafter, least absolute shrinkage and selection operator algorithms was used to identify the co-biomarkers of psoriasis and IBD from the top 50 hub genes. The biomarkers were used to construct a screening model, the discriminatory capacity of which was verified by receiver operating characteristic (ROC) curves. CIBERSORT algorithm was utilized to estimate the compositional patterns of immune cell infiltration in biomarkers of psoriasis and IBD. Spearman rank correlation analysis was used to further evaluate the correlation between the identified biomarkers and immune cells. A total of 271 shared DEGs were screened. The GO and KEGG enrichment analysis indicated that the shared DEGs were mainly enriched in response to lipopolysaccharide, secretory granule lumen, cytokine activity, and interleukin (IL)-17 signaling pathway. Fifty genes such as IL1B, IL6, were identified as hub genes, based on which, FOS, IFI44, MMP9, MNDA, PTGS2, S100A9, and STAT1 were identified as biomarkers of psoriasis. CCL20, CD274, CTGF, CXCL1, CXCL10, CXCL2, CXCL9, FCGR3B, FOS, GBP1, GZMB, IFI27, IFI6, IL1RN, ISG15, ISG20, LCN2, LILRB2, MMP12, MMP7, S100A8, TLR8, and TNFSF13B were identified as biomarkers of IBD. FOS was the common biomarker of psoriasis and IBD. Screening models were validated in the validation data set (Psoriasis: area under the curve (AUC)=1.000, IBD: AUC=0.870). Immunocyte infiltration analysis showed the macrophages cells, mast cells resting, and T cells CD4 memory activated have the common characteristics in psoriasis and IBD. FOS may play a key role in the occurrence and development of psoriasis complicated with IBD and macrophages cells may be an entrance for treating this comorbidity.