Heart failure affects millions of people worldwide, with men exhibiting a higher incidence than women. Our previous work has shown that mosaic loss of the Y chromosome (LOY) in leukocytes is causally associated with an increased risk for heart failure. Here, we show that LOY macrophages from the failing hearts of humans with dilated cardiomyopathy exhibit widespread changes in gene expression that correlate with cardiac fibroblast activation. Moreover, we identify the ubiquitously transcribed t et ratricopeptide Y-linked (Uty) gene in leukocytes as a causal locus for an accelerated progression of heart failure in male mice with LOY. We demonstrate that Uty disruption leads to epigenetic alterations in both monocytes and macrophages, increasing the propensity of differentiation into profibrotic macrophages. Treatment with a transforming growth factor-β-neutralizing antibody prevented the cardiac pathology associated with Uty deficiency in leukocytes. These findings shed light on the mechanisms that contribute to the higher incidence of heart failure in men.