reign of the Salian emperors (1024–1125), although the emperors lost power through the Investiture Controversy.
Under the Hohenstaufen emperors (1138–1254), the German princes increased their influence further south and east into territories inhabited by Slavs, preceding German settlement in these areas and further east (Ostsiedlung). Northern German towns grew prosperous as members of the Hanseatic League. Starting with the Great Famine in 1315, then the Black Death of 1348–50, the population of Germany plummeted. The edict of the Golden Bull in 1356 provided the basic constitution of the empire and codified the election of the emperor by seven prince-electors who ruled some of the most powerful principalities and archbishoprics.
Martin Luther publicised The Ninety-Five Theses in 1517, challenging the Roman Catholic Church and initiating the Protestant Reformation. A separate Lutheran church became the official religion in many German states after 1530. Religious conflict led to the Thirty Years' War (1618–1648), which devastated German lands. The population of the German states was reduced by about 30%. The Peace of Westphalia (1648) ended religious warfare among the German states, but the empire was de facto divided into numerous independent principalities. In the 18th century, the Holy Roman Empire consisted of approximately 1,800 such territories. From 1740 onwards, dualism between the Austrian Habsburg Monarchy and the Kingdom of Prussia dominated German history. In 1806, the Imperium was overrun and dissolved as a result of the Napoleonic Wars.
German Confederation and Empire
Following the fall of Napoleon, the Congress of Vienna convened in 1814 and founded the German Confederation (Deutscher Bund), a loose league of 39 sovereign states. Disagreement with restoration politics partly led to the rise of liberal movements, followed by new measures of repression by Austrian statesman Metternich. The Zollverein, a