While virtually all currency crisis models recognise that the fate of a currency peg depends on how tenaciously policy makers defend it, they seldom model how this is done. We incorporate the mechanics of speculation and the interest rate defence against it in the model of Morris and Shin (American Economic Review 88, 1998). Our model captures that the interest rate defence reduces speculators' profits and thus postpones the crisis. It predicts that well before the fall of a currency interest rates are increased to offset the buildup of exchange market pressure, and this then unravels in a sharp depreciation. This pattern is at odds with predictions of standard models, but we show that it fits well with reality.