Slovakia, officially the (First) Slovak Republic, and from 14 March until 21 July 1939 officially known as the Slovak State, was a partially recognized client state of Nazi Germany which existed between 14 March 1939 and 4 April 1945 in Central Europe. The Slovak part of Czechoslovakia declared independence with German support one day before the German occupation of Bohemia and Moravia. It controlled most of the territory of present-day Slovakia, without its current southern parts, which were ceded by Czechoslovakia to Hungary in 1938. It was the first formally independent Slovak state in history. Bratislava was the capital city.