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. He served as Lord Advocate, and eventually Auditor of the Exchequer in Scotland in 1720.