The National Covenant (Scottish Gaelic: An Cùmhnant Nàiseanta) was an agreement signed by many people of Scotland during 1638, opposing the proposed reforms of the Church of Scotland (also known as The Kirk) by King Charles I. The king's efforts to impose changes on the church in the 1630s caused widespread protests across Scotland, leading to the organisation of committees to coordinate opposition to the king. Facing royal opposition to the movement, its leaders arranged the creation of the National Covenant, which was designed to bolster the movement by tapping into patriotic fervour and became widely adopted throughout most of Scotland.
 The Covenant opposed changes to the Church of Scotland, and committed its signatories to stand together in the defence of the nation's religion. Charles saw this as an act of rebellion against his rule, leading to the Bishops' Wars, the result of which required him to call an English Parliament. This parliament passed acts limiting the king's authority, and these disputes ultimately led to the First English Civil War.
 The 16th century Reformation resulted in a Church of Scotland which was Presbyterian in structure and Calvinist in doctrine. In 1560, the Scottish Parliament designated the kirk as the sole form of religion in Scotland, and adopted the Scots Confession which rejected many Catholic teachings and practices, including bishops.
 The origins of the National Covenant arose from different perspectives on who held ultimate authority over the kirk; James VI argued the king was also head of the church, governing through bishops appointed by himself. The alternative view held the kirk was subject only to God, and its members, including James, were subject to the discipline of presbyteries, consisting of ministers and elders.
 James successfully imposed bishops on the kirk in 1596, but it remained Calvinist in doctrine; when he also became king of England in 1603, a unified Church of England and Scotland was the first step in building a centralised, Unionist state. The problem was that while both were nominally Episcopalian in structure, and Protestant in doctrine, the Church of England was very different from the kirk in its forms of worship, and even Scottish bishops objected to many of these.
 The outbreak of the Thirty Years' War in 1618 and the Counter Reformation led to a general perception that Protestant Europe was under attack, and increased sensitivity to changes in church practice. This was especially strong in Scotland, which had close economic and cultural links with the Dutch Republic, then fighting for independence from Catholic Spain. In addition, many Scots ministers were commonly educated in French Calvinist universities, which were suppressed in the Huguenot rebellions of the 1620s.
 After James died in 1625, attempts to create one church were continued by his son Charles I, who was raised in England and lacked familiarity with Scottish institutions. First imposed on the Church of England, many of his reforms were rejected by English Puritans who wanted a church similar to the kirk, creating opposition in both countries. In 1636, the Scottish Book of Discipline was replaced by a new Book of Canons, while anyone who denied the king's supremacy in church matters was subject to excommunication. When followed in 1637 by a new Book of Common Prayer, it resulted in a riot, supposedly started when a market-trader named Jenny Geddes threw a stool at the dean of St Giles' Cathedral. Protests quickly spread across Scotland, with hundreds of opponents gathering in Edinburgh.
 Following the Prayer Book riots, protestors became more organized, and in November 1637 began claiming councillors had encouraged them to elect commissioners to represent their case to the government. This action was endorsed by Sir Thomas Hope, the king's advocate, and the protestors created a nationwide network of committees known as 'Tables', with committee in each shire sending representatives to four Tables in Edinburgh, one each for nobles, shire commissioners, burgh commissioners and ministers. A fifth Table was elected by these four which coordinated the movement as a whole.
 In February 1638, Charles declared he was personally responsible for introducing the Prayer Book, rather than his bishops or councillors, and that anyone opposing it was a traitor. His opponents now recognized they were challenging Charles directly and for reasons of self-preservation introduced the Covenant in an attempt to unite the nation behind them. The document itself was drafted by Archibald Johnston, an Edinburgh lawyer, and Alexander Henderson, the minister of Leuchars in Fife.
 The National Covenant starts by repeating the Negative or King's Confession, signed in 1581 as an anti-Catholic statement by James VI. This is followed by a list of parliamentary statutes defining the polity and liturgy of the church in Scotland. The Covenant concludes with a bond committing the signatories to stand together to maintain the nation's religion and oppose any changes to it. Signatories were also committed to upholding the king's authority, although it was understood this did not include obedience to an ill-advised king.
 The Covenant had the appearance of working within constitutional precedent, contributing to its success in appealing to all areas of Scottish society by drawing on a sense of patriotic outrage at the rule and policies of Charles as an absentee monarch, as well as the provincialization of Scotland within a system dominated by England. The Covenant was also vague enough to avoid putting people off, for example by implicitly supporting Presbyterianism, without explicitly condemning episcopacy. The precise details were less important than the sense that political and religious authority started with the community, rather than with the king.
 The National Covenant was first signed on 28 February 1638 at a meeting at Greyfriars Kirk in Edinburgh, and copies were then distributed across Scotland. Many of those who were reluctant to sign were intimidated into doing so, with clergymen who opposed it being deposed. By the end of May the western highlands, Aberdeenshire and Banff were the only places the Covenant had not been widely accepted, with resistance in these areas being led by George Gordon, the Marquess of Huntly.
 In November 1638 the General Assembly of the Church of Scotland met in Glasgow, where it approved the Covenant and passed resolutions abolishing bishops and the use of the new Prayer Book. In August 1638 the privy council agreed that all the king's subjects should subscribe to it, although in November the act was removed from the council's register. In 1640 the Covenant was sanctioned by the Scottish Parliament, and this act would be published under the king's name in 1641.
 Following the signing of the Covenant it was clear to Charles that his Scottish subjects were in rebellion against him. This would be confirmed when they seized strongholds and began to raise forces. The king responded by hastily gathering his forces and marching on Scotland in 1639, starting the First Bishops' War, where his forces proved no match for the Covenanters. This would be followed in 1640 by the Second Bishops’ War, which concluded with the Treaty of Ripon allowing Scottish forces to remain in control of Northumberland and Durham until a final peace treaty was agreed with the English Parliament. Charles would not be able to disband this Parliament, which began to pass acts limiting his power and leading to the arrest of his councillors. In time, these disputes would lead to the First English Civil War, which started in 1642.
 The success of the Covenanters encouraged opponents of the king in his other realms of England and Ireland, with leaders of the Irish Rebellion of 1641 later admitting to being inspired by their example. In 1643 the Covenanters would sign the Solemn League and Covenant with the English Parliament, turning the tide in the First English Civil War.