In this paper we propose a new channel through which fiscal austerity affects the macroeconomy. To this end, we introduce endogenous migration both for the unemployed and the employed members of the household in a small open economy New Keynesian model with labour market frictions. Our model-based simulations for the austerity mix implemented in Greece over the period 2010-2015 show that the model is able to match the total size of half a million emigrants and output drop of 25%, while the model without migration generates an output drop of 20%. Having established that the model delivers empirically plausible results, we then use it to investigate (i) the two-way relation between migration and austerity, and (ii) the role of migration as shock absorber. We find that tax hikes induce prolonged migration outflows, while the effect of spending cuts is hump-shaped. In turn, emigration implies an increase in both the tax hike and time required to achieve a given size of debt reduction. As a result of the labour-reducing effect of these higher tax hikes, the unemployment gains from migration are only temporary in the presence of austerity and are substantially reversed over time.