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. This evidence concerns the gene CD3D and atrial fibrillation.