What is the optimal fiscal policy response to a recession when the government is subject to sovereign risk? We study this question in a model of endogenous sovereign default with nominal rigidities. Increasing spending in a recession reduces unemployment, but exposes the government to a debt crisis. We quantitatively analyze this trade-off between stimulus and austerity and find that expanding government spending may be undesirable even in the presence of sizeable Keynesian stabilization gains and inequality concerns. Consistent with these findings, we show that sovereign risk is a key driver of the observed fiscal procyclicality in the data.