The first draft of the Magna Carta was written at St Albans Abbey in 1213. It contained significant provisions still in force to this day, including the principle of "habeas corpus" (which was first invoked in court in 1305). Two years later, King John was in St Albans when he learned of the Archbishop of Canterbury's suspension. Though John agreed to the Magna Carta, he did not adhere to it, and Hertfordshire was the main battlefield in the civil war that followed. On 16 December 1216, during the First Barons' War, Hertford Castle surrendered after a siege from Dauphin Louis (later Louis VIII of France), whom the English barons had invited to England to replace John as King. Berkhamsted Castle surrendered around the same time.