In summary, we used the WGCNA and CIBERSORT bioinformatics algorithms to identify immune biomarkers in DCM with HF, and obtained two key modules and six hub genes, out of which MYG1, FLOT1, and ATG13, with good diagnostic values, may be potential diagnostic biomarkers and therapeutic targets. This evidence concerns the gene MYG1 and hydrops fetalis.