Sir Robert Hamilton (1650–1701), second baronet of Preston, was one of the leaders of the Scottish Covenanters.
He was the younger son of Sir Thomas Hamilton of Preston Tower, a Royalist, who fought as lieutenant-colonel at the battle of Dunbar in 1650, and at the battle of Worcester, in the cause of the Stuarts. After his death in 1672 a baronetcy was conferred in 1673 on his eldest son. Sir William. He then took part in the expedition of Archibald Campbell, 9th Earl of Argyll in 1685, escaped to Holland, accompanied the Prince of Orange to England in 1688, but died at Exeter, when the troops were on the march to London.
Robert Hamilton, the younger son, was educated at the University of Glasgow under the care of Gilbert Burnet, whose sister was his step-mother. He began to attend conventicles, and became an extreme Covenanter.
Along with Thomas Douglas and Hackston of Rathillet he, in 1679, drew up what became known as the "Rutherglen declaration", which they intended on 29 May, the king's birthday, to nail to the market-cross of Glasgow. The advance of the troops of John Graham of Claverhouse prevented that, and Rutherglen, about two miles to the east of Glasgow, was chosen instead. They extinguished the bonfire in the king's honour and lit another, where they proceeded to burn all the acts of parliament and royal proclamations made since the Restoration. They then retired towards Evandale and Newmilns, preparing to hold an armed convention on the following Sunday at Loudon Hill.
Claverhouse, who had gone to Rutherglen, came suddenly in sight of the gathering. Sending away their women and children the covenanters drew up in battle array on the farm of Drumclog, a little to the east. Nominally Hamilton was in command, but the experienced officers, such as Hackston and Cleland, led the separate detachments of the Covenanters, defeating Claverhouse was due.