For nearly all of the 41 years that Germany was split into two countries, the Federal Republic of Germany (West Germany) claimed to be the sole legitimate successor to the German Reich that existed from 1871 to 1945. This claim was initially based solely on the government's mandate by virtue of free elections. To that end, it claimed Berlin, capital of united Germany from 1871 to 1945, as its capital, with the provisional capital in Bonn.