king. The resulting Engagement with the King led to a Second Civil War and a defeat for a Scottish invading army at Battle of Preston, by the New Model Army led by Oliver Cromwell. After the coup of the Whiggamore Raid, the Kirk Party regained control in Scotland. Commonwealth After the execution of the king in January 1649 England was declared a commonwealth and the Scots declared his son king as Charles II. The English responded with an armed invasion and after defeats for the Scots at Dunbar in 1650 and Worcester in 1651, the English occupied the country in 1652 and Scotland was declared part of the Commonwealth. The Kirk became deeply divided, partly in the search for scapegoats for defeat. Different factions and tendencies produced rival resolutions and protests, which gave their names to the two major parties as Resolutioners, who were willing to make an accommodation with royalism, and more hard line Protesters who wished to purge the Kirk of such associations. Subsequently, the divide between rival camps became almost irrevocable. The regime accepted Presbyterianism as a valid system, but did not accept that it was the only legitimate form of church organisation and the Kirk functioned much as before. Toleration, did not extend to Episcopalians and Catholics, but if they did not call attention to themselves they were largely left alone. Restoration After the Restoration of the Monarchy in 1660, Scotland regained its kirk, but also the bishops. Legislation was revoked back to 1633, removing the Covenanter gains of the Bishops' Wars, but the discipline of kirk sessions, presbyteries and synods were renewed. The reintroduction of episcopacy was a source of particular trouble in the south-west of the country, an area with strong Presbyterian sympathies. Abandoning the official church, many of the people here began to attend illegal field assemblies led by excluded ministers, known as conventicles. Official attempts to suppress these led to a rising in 1679, defeated by James, Duke of Monmouth, the King's illegitimate son, at the Battle of Bothwell Bridge. In the early 1680s a more intense phase of persecution began, in what was later to be known in Protestant historiography as "the Killing Time", with dissenters summarily executed by the dragoons of James Graham, Laird of Claverhouse or sentenced to transportation or death by Sir George Mackenzie, the Lord Advocate. Glorious Revolution Charles died in 1685 and his brother succeeded him