 During the Wars of Scottish Independence Sir William Oliphant fought at the Battle of Dunbar (1296) and was captured and imprisoned at Devizes in England.He was released and appointed Constable of Stirling Castle.In 1304 Stirling was the final stronghold remaining in Scots hands.