On the 7th of September 1736, Captain Porteous was dragged from prison and lynched by an angry mob in Edinburgh.
The "Porteous Riots" had erupted in April 1736, when Andrew Wilson, a smuggler, was hanged in the Grassmarket for robbing a customs officer. The public rioting that followed Wilson's death was quashed by the locally born John Porteous, when he ordered his troops to open fire on the angry crowd, killing and wounding up to 30 people. Porteous was sentenced to death but later reprieved, leading to the lynch mob descending in fury on the prison, enraged that Porteous's appeal had been successful, and that he'd escaped the fate that had been meted out to a common man. The angry growd stormed the Tolbooth, escorted Porteous to the Grassmarket, and hanged him from a dyer's pole. Incidents of the Porteous Riots are used by Walter Scott in "The Heart of Midlothian".