The Flensburg Government (German: Flensburger Regierung), also known as the Flensburg Cabinet (Flensburger Kabinett), the Dönitz Government (Regierung Dönitz), or the Schwerin von Krosigk Cabinet (Kabinett Schwerin von Krosigk), was the rump government of Nazi Germany during a period of three weeks around the end of World War II in Europe. The government was formed following the suicide of Adolf Hitler on 30 April 1945 during the Battle of Berlin. It was headed by Grand Admiral Karl Dönitz as Reichspräsident and Lutz Graf Schwerin von Krosigk as the Leading Minister. The administration was referred to as the "Flensburg Government" because Dönitz's command relocated to Flensburg in northern Germany near the Danish border on 3 May 1945. The sports school at the Mürwik Naval School was used as the government headquarters. The cabinet was not legitimised according to the Weimar Constitution, which was still formally in force.
At the time of its formation, forces loyal to the Nazi regime still held control of most of Austria and the Sudetenland, which was annexed by Germany in 1938. They also still controlled most of the Protectorate of Bohemia and Moravia which was partially annexed in 1939 when the remainder of Czechoslovakia was occupied, although after Hitler's death those Czech lands still occupied were effectively controlled by the SS with little meaningful oversight from Flensburg. Furthermore, the German military continued to occupy other non-German-speaking territories in disparate and isolated locations across Europe, such as Denmark, Norway, parts of the Netherlands, the Atlantic pockets in France and the British Channel Islands. However, in addition to losing most of its wartime conquests by this point, German forces had already been driven out of the vast majority of Germany's post-Anschluss territory, in addition to Luxembourg as well as the Polish and French territories Germany had either annexed or placed under direct German administration in the early stages of the war.