We employ a unique central bank dataset of foreign exchange operations to study the impact of FX intervention on domestic credit. Using loan-level data in the credit registry, we find that sterilized purchases of dollars by the central bank dampen the flow of new domestic corporate loans. The impact is particularly strong for borrowers with larger currency mismatches and for banks with thinner capital buffers. Our analysis sheds light on the role of FX intervention as part of the macroprudential toolkit during credit booms associated with episodes of capital inflow surges.