Embryonic and adult-derived resident cardiac macrophages are maintained through distinct mechanisms at steady state and during inflammation.