As the Germans started to retreat on 18 September 1944, Jüri Uluots, the last Prime Minister of the Estonian Republic prior to Soviet occupation, assumed the responsibilities of president (as dictated in the Constitution) and appointed a new government while seeking recognition from the Allies. On 22 September 1944, as the last German units pulled out of Tallinn, the city was re-occupied by the Soviet Red Army. The new Estonian government fled to Stockholm, Sweden, and operated in exile from 1944 until 1992, when Heinrich Mark, the prime minister of the Estonian government in exile acting as president, presented his credentials to incoming president Lennart Meri.