At the onset of the outbreak of the coronavirus (COVID-19) pandemic, central banks and supervisors introduced dividend restrictions as a new policy instrument aimed at supporting lending to the real economy and strengthening banks' capacity to absorb losses. In this paper we estimate the impact of the ECB's dividend recommendationon on bank lending and risk-taking. To address identification issues, we rely on credit registry data and a direct measure that captures variation in compliance with the recommendation across banks in the euro area. The analysis disentangles the confounding effects stemming from the wide range of monetary and fiscal policies that supported credit during the pandemic-related downturn and investigates their interaction with the dividend recommendation. We find that dividend restrictions have been an effective policy in supporting financially constrained firms, adding capital space to banks, and limiting procyclical behaviour. The effects on lending are greater for small and medium-sized enterprises and for firms operating in sectors more vulnerable to the effects of the pandemic. At the same time, we do not find evidence of a significant increase in lending to riskier borrowers and "zombie" firms.