During a brief truce that same year, he took part in a tournament against English knights at Berwick.[4]
Ramsay and his men recaptured Roxburgh Castle from the English at around dawn on 30 March 1342 by means of a night escalade.[5] The titular constable of the Castle, Sir William Douglas, had several times tried unsuccessfully to retake it. In reward, King David II appointed Sir Alexander constable of Roxburgh and Sheriff of Teviotdale, which outraged Douglas.
On 20 June 1342, Ramsay held court at Hawick, in accordance with his duty as sheriff. Douglas came with an armed retinue and entered the church where Ramsay was holding court. Douglas and his men attacked Ramsay, dragging him bleeding and in chains to Hermitage Castle. Ramsay was imprisoned in a dungeon at Hermitage Castle, where he died. Legend has it that he survived for seventeen days by eating small quantities of grain that fell through the cracks in the floor of the castle granary above the dungeon.[6]
His brother, Sir William Ramsay of Inverleith, succeeded Sir Alexander at Dalhousie in 1342 and was well-known for his raid around Norham Castle, as well as the ensuing Battle of Nisbet Muir in 1355.