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").