rejection of the Lutheran "Augsburg Confession" at the Diet of Augsburg (1530), a separate Lutheran church emerged. From 1545 the Counter-Reformation began in Germany. Much of its impetus came from the newly founded (in 1540) Jesuit order. It restored Catholicism to many areas, including Bavaria. The Holy Roman Empire became religiously diverse; for the most part, the states of northern and central Germany became Protestant (chiefly Lutheran, but also Calvinist/Reformed) while the states of southern Germany and the Rhineland largely remained Catholic. In 1547 the Holy Roman Emperor Charles V defeated the Schmalkaldic League, an alliance of Protestant rulers. The Peace of Augsburg in 1555 brought recognition of the Lutheran faith. But the treaty also stipulated that the religion of a state was to be that of its ruler (cuius regio, eius religio). In 1608/1609 the Protestant Union and the Catholic League formed. The Thirty Years' War (1618–1648), one of the most destructive conflicts in European history, played out primarily in German lands, but involved most of the countries of Europe. It was to some extent a religious conflict, involving both Protestants and Catholics. Post-Thirty Years' War period and Protestant church unions (1648–1871) Two main developments reshaped religion in Germany after 1814. There was a movement to unite the larger Lutheran and the smaller Reformed Protestant churches. The churches themselves brought this about in Baden, Nassau, and Bavaria. However, in Prussia King Frederick William III was determined to handle unification entirely on his own terms, without consultation. His goal was to unify the Protestant churches, and to impose a single standardised liturgy, organisation, and even architecture. The long-term goal was to have fully centralised royal control of all the Protestant churches. In a series of proclamations over several decades the Evangelical Church of the Prussian Union was formed, bringing together the more numerous Lutherans and the less numerous Reformed Protestants. The government of Prussia now had full control over church affairs, with the king himself recognised as the leading bishop. Opposition to unification came from the "Old Lutherans" in Prussia and Silesia who followed the theological and liturgical forms they had followed since the days of Luther. The government attempted to crack down on them, so they went underground. Tens of thousands migrated to South Australia and the United States, where they formed the Missouri Synod. Finally, in 1845 the new king, Frederick William IV, offered a general amnesty and