Myocarditis is a complex disease characterized by myocardial inflammatory cell infiltration. The purpose of our study was to investigate the gene and single-cell signature to explore the involvement of immune cells in myocarditis. Gene expressions merged from GSE35182 and GSE35182 datasets were subjected to differential expression gene (DEG) analysis and PPI network construction. The correlation analysis of DEGs with immune cell infiltration was performed. Single-cell RNA sequencing (scRNA-seq) was downloaded from GSE174458. A total of 58 DEGs were identified, including 51 DEGs upregulated and 7 DEGs downregulated in the myocarditis group compared with the control group. GO and KEGG enrichment analyses revealed that myocarditis triggered DEGs mainly involved in immune-related processes and pathways. PPI network analysis identified 20 central hub genes. Occurrence of myocarditis induced significant enrichment of conventional dendritic cell 2 (cDC2), plasmacytoid DC, and plasma cell in myocardial tissue. Mmp12, Gpnmb, and Atp6v0d2 expressions were positively correlated with cDC abundance, of which only Mmp1 and Gpnmb were shared with hub gene list. A total of 20972 cells in scRNA-seq yielded 26 cell clusters and annotated 9 cell types, including fibroblasts, neutrophils, stromal cells, monocytes, basophils, B cells, natural killer T cells, innate lymphoid cells, and T cells, and only proportion of natural killer T cells and monocytes were higher in the myocarditis than in control. Monocytes annotated 3 subclusters including DC, macrophage, and monocytes. Hub genes of Ctss, Mpeg1, Cybb, H2-Ab1, Ly86, CD74, and Lgals3 were highly expressed in monocytes cluster. Among DC-correlated DEGs, Mmp12 was mainly expressed in monocyte cluster, and Gpnmb was mainly expressed in fibroblast cluster, whereas Atp6v0d2 expression has a weaker signal and weaker cell preference. In conclusion, DC infiltration and its associated pivotal genes may be responsible for progression of myocarditis. Our study expands and provides novel information on the immune cell engagement of myocarditis.