In summary, this research highlights the roles of TRUB1, PLEKHA7, and FABP6 as hub genes, the underlying pathways and TF–miRNA networks, and the potential impact of these genes on immune cell activity in the development of depression and COVID-19. Here, TRUB1 is linked to COVID-19.