Our study reveals that immune cells (Tfh cells) disorders caused by hub immune-related genes (CD48 and CD3D) may be the common pathogenesis of DCM combined with AF, which lays a foundation for further immune mechanism research. Here, CD48 is linked to familial dilated cardiomyopathy.