He entered Parliament for Buteshire in 1868, a seat he held, with a brief interruption from April to July 60, until 1885, and later represented Ipswich from 1886 to 1906. He was created a baronet, of New Hailes in the County of Midlothian, in 1887, and sworn of the Privy Council, in 1905.
From 1894 to 1896 he was Grand Master of the Freemasons in Scotland.[3]
Dalrymple died on 20 June 1916, aged 76. He is buried in Inveresk churchyard. The grave lies in the north-west corner of the first Victorian cemetery extension, west of the main churchyard.
Family
He was married to Alice Mary Hunter Blair (1850–1889) daughter of Sir Edward Hunter Blair, 4th Baronet.[4]
They had three children, Christian Elizabeth Louisa (later Dumaresq) (1875–1932), David Charles Herbert, (1879–1932) and Alice Mary (1884–1959).
Their son, Lt Cmdr David Charles Herbert Dalrymple (1879–1932), inherited the estates when he became 2nd baronet.[5]