This paper proposes a model to investigate the effects of monetary policy in an emerging market economy that experiences a sudden stop of capital inflows. The model features credit frictions, debt denominated in foreign currency, imported inputs, and households that have access to the international capital market only indirectly, through their ownership of leveraged firms. The sudden stop is modeled as a change in the perceptions of foreign lenders that brings about an increase in the cost of borrowing. I show that the higher the elasticity of foreign demand, the lower the contraction in output—leading, at the extreme, to the possibility of an expansion, depending on policy. A second result is that the recession is most severe in a fixed exchange rate regime. Taylor rules that react to inflation and output are more stabilizing. A comparison of alternative rules shows that low commitment to inflation stabilization allows for less contraction in output and even expansion but at the cost of much stronger contraction in capital inflows and higher interest rates. Credibility is also shown to have an important role, with low credibility and the risk of loose policy implying increased trade-offs, stronger contraction of the economy, and higher interest rates.