We analyze how firms’ climate change-related regulatory risks affect banks’ lending. Exploiting the Paris Agreement in a difference-in-differences setting, we find that effects depend on how borrowers will be affected by regulation as well as the stringency of the existing regulatory environment where firms are located. Firms that benefit from regulation receive more credit only if located in more stringent regulatory environments. Conversely, firms hurt by regulation receive more credit if located in less stringent environments or if linked to banks with a portfolio tilted towards lending to negatively impacted firms.