<P> The capital of Germany is the city state of Berlin . It is the seat of the President of Germany, whose official residence is Schloss Bellevue . The Bundesrat ("federal council") is the representation of the Federal States (Bundesländer) of Germany and has its seat at the former Prussian Herrenhaus (House of Lords). Though most of the ministries are seated in Berlin, some of them, as well as some minor departments, are seated in Bonn, the former capital of West Germany . </P> <P> Prior to 1871, Germany was not a unified nation state, and had no capital city . The medieval German Holy Roman Empire, used to have Aachen as its preferred seat of government during Charlemagne's reign, and until 1531 it was the place where 31 Holy Roman Emperors were crowned Kings of the Germans . The coronation later moved to Frankfurt . However after Charlemagne, none of the subsequent Holy Roman Emperors moved to Aachen or Frankfurt, instead retaining their own original constituent kingdom or principality as base or moving into temporary Royal palaces dotted around the confederate realm known as Kaiserpfalz . The last imperial ruling house (the Habsburgs) had Vienna as its permanent seat of government . </P> <P> After the Congress of Vienna created the formal German Confederation in 1815, a Federal Assembly convened at the Free City of Frankfurt, representing not the people of the individual German Lands but their sovereigns . Subsequently, Frankfurt briefly became the official German capital during the short - lived Revolutions of 1848 in the German states . </P> <P> It was only during the 1871 Unification of Germany that the newly unified German Empire was first assigned an official capital . Since Berlin was the capital of Prussia, the leading state of the new Reich, it became the capital of Germany as well . Berlin had been the capital of Prussia since 1518 . Berlin remained the capital of the united Germany until 1945 . However, for a period of a few months following the First World War, the national assembly met in Weimar because civil war was ravaging Berlin . In 1945, Germany was occupied by the Allies as the outcome of World War II, and Berlin ceased to be the capital of a sovereign German state . </P>

When was berlin made the capital of germany