Amid the growing trend of political polarization and nationalization of US politics, the link between federal and local governments has become increasingly significant in the American public policy process. Consequently, the president, as party leader, has increasingly supported co-partisan candidates, not only in federal elections but also in subnational ones. Incorporating 1,124 contested partisan local elections for 399 cities with populations exceeding 50,000 between 2005 and 2020, we investigate how the president strategically employs federal funds to assist co-partisan mayoral candidates. Using two-way fixed effects models, we find that the president distributes more block and project grants to swing cities with co-partisan mayors during mayoral election years. We do not find that the president disproportionately allocates grants to co-partisan mayors in swing cities during non-mayoral election years; instead, jurisdictions are rewarded irrespective of their electoral value.