The actual end of the empire came in several steps. The Peace of Westphalia in 1648, which ended the Thirty Years' War, gave the territories almost complete independence. Calvinism was now allowed, but Anabaptists, Arminians and other Protestant communities would still lack any support and continue to be persecuted well until the end of the Empire. The Swiss Confederation, which had already established quasi-independence in 1499, as well as the Northern Netherlands, left the Empire. The Habsburg Emperors focused on consolidating their own estates in Austria and elsewhere. The treaties of Westphalia brought to an end a calamitous period of European history which caused the deaths of approximately eight million people. Scholars have identified Westphalia as the beginning of the modern international system, based on the concept of Westphalian sovereignty, though this interpretation has been challenged.
But this golden age was not just some prosaic period of great expansion to the number and accessibility of the libraries of Europe; it was also a period of great conflict. The Reformation did not just inspire a redistribution of power but also a redistribution of wealth and knowledge. While the Thirty Years War (1618–1648) decimated the population of Europe (from 21 million at the beginning of the conflict to 13 million by the end) it also aided in the redistribution of this wealth and knowledge.