Dunbar Hamilton Douglas, 4th Earl of Selkirk FRSE (1 December 1722 – 24 June 1799) was a Scottish peer.
Born Dunbar Hamilton, he adopted the name Dunbar Douglas upon his succession to the Earldom of Selkirk in 1744. He was a grandson of Lord Basil Hamilton, a sixth son of William Hamilton, Duke of Hamilton and Anne Hamilton, 3rd Duchess of Hamilton.
He attended Glasgow University from 1739, being greatly influenced by Francis Hutcheson, Professor of Moral Philosophy. In 1745 he was granted the honorary Doctorate of Civil Law.
Selkirk was a supporter of the government during the Jacobite Rising of 1745. He was Rector of the University of Glasgow from 1766 to 1768. He served as Lord Lieutenant of Kirkcudbright and, from 1787, as a representative peer for Scotland.
He succeeded to the title of 4th Earl of Selkirk (creation of 1646 in the Peerage of Scotland) and 4th Lord Daer and Shortcleuch (creation of 1646 in the Peerage of Scotland) on 3 December 1744.
In 1778, during the American Revolutionary War, Selkirk was the target of a raid by John Paul Jones, who was sailing in the service of the Continental Navy. Jones landed his ship, the Ranger on the shore of St Mary's Isle, intending to kidnap the Earl. Finding only the countess and her young family at home, his men made off instead with the silver of the household. The story is told more fully here.
In 1782, he became a member of the radical Society for Constitutional Information.
In 1785 he was elected a Fellow of the Royal Society of Edinburgh. His proposers were Dugald Stewart, James Hutton, and Adam Smith.
Lord Selkirk died on the 24 June 1799 at his residence on George Street, Edinburgh and was buried at Holyrood Abbey on the 31st of that month
Lord Selkirk married Helen Hamilton, daughter of Hon. John Hamilton and Margaret Home, on 3 December 1758. He had seven sons, six of whom predeceased him. The youngest, Thomas, succeeded him as 5th Earl of Selkirk in 1799.