Our findings reveal a previously unknown function of endothelial cell HSPA12B in the regulation of the cardiac macrophage population and phenotype within the myocardium following MI. Here, HSPA12B is linked to myocardial infarction.