The siege of Dundee took place from 23 August to 1 September 1651 as part of the Anglo-Scottish war of 1650–1652 after an English force under George Monck confronted the town of Dundee in Scotland and its garrison commanded by the town's governor, Robert Lumsden. An English army under Oliver Cromwell had invaded Scotland on the orders of the republican Commonwealth the previous year and defeated the Scots at the Battle of Dunbar. In July 1651 the Scots were defeated again, at the Battle of Inverkeithing, and their capital, Perth, captured. In desperation the Scots, commanded by David Leslie and King Charles II, invaded England with what remained of their army. Cromwell followed with most of the English force, leaving Monck with 5,000 men to mop up the remaining resistance in Scotland.