During the Wars of Scottish Independence, Sir William Douglas the Hardy, Lord of Douglas was governor of Berwick-upon-Tweed when the town and Berwick Castle were besieged by the English. Douglas was captured and was released only after he had agreed to accept the claim of the Edward I of England to be overlord of Scotland. He subsequently joined William Wallace in fighting for Scottish independence, but was captured and taken to England, where he died in 1298, a prisoner in the Tower of London.