Sir David Dalrymple, 1st Baronet, of Hailes (1665 – 3 December 1721) was a Scottish advocate and politician who sat in the Parliament of Scotland from 1698 to 1707 and in the British House of Commons from 1707 to 1721.
In 1709 he was promoted from solicitor-general to the post of Lord Advocate of Scotland .Also in 1709, he bought Broughton House, renaming it Newhailes after the Dalrymple's Castle Hailes.
On 4 April 1691 in Edinburgh, Midlothian, Scotland, he married his second wife, Janet, daughter of Sir James Rocheid of Inverleith, the widow of Alexander Murray of Melgund.
[3] By his second wife he had two sons, James (1692-1751) & Hugh (1695-1741), and four daughters, Magdalin (1696-), Janet (1698-1766), Margaret (1705-1705) and Rachel ( -1801):[5] Dalrymple died on 3 December 1721.
[5] Dalrymple was an enthusiastic bibliophile and added a remarkable Library Wing to Newhailes to accommodate his large book collection.