The Ramsays of Dalhousie (or Dalwolsie) in Midlothian were a branch of the main line of Scottish Ramsays, of whom the earliest known is Simon de Ramsay, of Huntingdon, England, mentioned in 1140 as the grantee of lands in West Lothian at the hands of David I. A Sir William de Ramsay of Dalhousie swore fealty to Edward I in 1296, but is famous for having in 1320 signed the letter to the pope asserting the independence of Scotland; and his supposed son, Sir Alexander Ramsay (d. 1342), was the Scottish patriot and capturer of Roxburgh Castle (1342), who, having been made warder of the castle and sheriff of Teviotdale by David II, was soon afterwards carried off and starved to death by his predecessor, the Douglas, in revenge. Sir John Ramsay of Dalhousie (1580-1626), James VI's favourite, is famous for rescuing the king in the Gowrie conspiracy, and was created (1606) Viscount Haddington and Lord Ramsay of Barns (subsequently Baron of Kingston and Earl of Holderness in England). The barony of Ramsay of Melrose was granted in 1618 to his brother George Ramsay of Dalhousie (d. 1629), whose son William Ramsay (d. 1674) was made 1st Earl of Dalhousie in 1633.
Extracted from the entry for DALHOUSIE, JAMES ANDREW BROUN RAMSAY, 1ST MARQUESS AND 10TH EARL OF in the 1911 Encyclopedia Britannica, the text of which lies within the public domain.