This study suggests that ferroptosis related gene HSPB1 and MGST1 are closely related to immune cell infiltration, which may become therapeutic targets for DCM. Here, HSPB1 is linked to familial dilated cardiomyopathy.