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. Here, FLOT1 is linked to familial dilated cardiomyopathy.