Scotland under the Commonwealth is the history of the Kingdom of Scotland between the declaration that the kingdom was part of the Commonwealth of England in February 1652, and the Restoration of the monarchy with Scotland regaining its position as an independent kingdom, in June 1660.
After the execution of Charles I in 1649, the Scottish Parliament declared his son Charles II to be King of Scotland, England and Ireland. The English responded with an invasion led by Oliver Cromwell, resulting in defeats for the Scots at Dunbar and then at Worcester, opening the way for the English conquest of the country. Under the Tender of Union, Scotland was declared part of a Commonwealth with England and Ireland in 1652, but despite repeated attempts, an act was not passed in Westminster to ratify the union until 1657. Under the terms of the union, the Scots gained 30 members of parliament, but many posts were not filled, or fell to English agents of the government, and had very little say at Westminster. Initially the government was run by eight commissioners and adopted a policy of undermining the political power of the nobility in favour of the "meaner sort". From 1655 it was replaced by a new Council of Scotland, headed by Irish peer Lord Broghill, and began attempts to win over the traditional landholders. The regime built a series of major citadels and minor forts at immense cost. The Scottish legal system was suspended, but some courts and institutions were gradually restored. Generally the regime was successful in enforcing law and order and suppressing banditry. There was a major Royalist rising in the Highlands in 1653–1655 led by William Cunningham, Earl of Glencairn and John Middleton. After initial success, it suffered from internal divisions and petered out after defeat at the Battle of Dalnaspidal in 1654.
The Commonwealth extended toleration to Protestants, including sectaries, but the only significant group were a small number of Quakers. The Kirk that had been established at the Reformation and had been largely united since the Declaration of the Covenant in 1638, was divided into Resolutioners and more hard line Protesters by the issue of co-operation with the crown. The regime tended to favour the Protestors giving them control over the universities. The country was relatively highly taxed, but gained access to English markets. The era was remembered by one Presbyterian divine as one of prosperity, but not everywhere benefitted from economic expansion. There was an attempt to create national symbols with the revival of the union flag and unite coin. After the death of Oliver Cromwell and the fall of his son Richard's regime, General Monck marched the army in Scotland south and facilitated the Restoration of Charles II in 1660.