 Charles II gave the Cockpit to Princess Anne, daughter of Charles's brother James, Duke of York, in 1683.Anne and her closest friend, Sarah, Lady Churchill were imprisoned here during the Glorious Revolution; both their husbands, Prince George of Denmark and John, Baron Churchill switched their allegiances from James II to William of Orange.Sarah and Anne escaped to Nottingham shortly afterwards.