Latvia continued to represent the Republic of Latvia in exile, which continued to operate until the restoration of the independence of Latvia. During the occupation, there have been attempts to restore the freedom of the Republic of Latvia and establish a government. At the meeting of the Latvian Central Council on 8 September 1944, it adopted a Declaration on the Restoration of the State of Latvia, by which the speaker of the last legally elected Saeima, Pauls Kalniņš, became acting president of Latvia. After the death of Kalniņš on 26 August 1945, the Latvian Central Council announced on 26 April 1947 that according to the Satversme, the powers of the speaker of the Saeima and the acting president of Latvia were taken over by Vice-Speaker of the Saeima Jāzeps Rancāns. The establishment of government in exile under the occupation regime was unsuccessful due to various reasons. After the restoration of the independence of the Republic of Latvia, a separate post of President of Latvia was not created. During the transition period, Chairperson of the Supreme Council Anatolijs Gorbunovs undertook the duties of the head of state until the full restoration of the Satversme and the convening of the fifth convocation of the Saeima. The rights of the chairperson of the Supreme Council to perform the functions of the head of state were determined at that time based on the Law on the Organization of the Work of the Supreme Council of the Republic of Latvia until the convening of the Saeima of 25 August 1992 and the Law on the Head of State of the Republic of Latvia before the gathering of the Saeima of 15 September 1992. With the restoration of the Satversme in full, when the fifth convocation of the Saeima convened to the first session at noon on 6 July 1993, also meant the renovation of the institution of the president of Latvia. On 7 July 1993, the fifth convocation of the Saeima elected Guntis Ulmanis as president of Latvia, who gave the solemn oath of the president of Latvia on 8 July 1993. The sixth convocation of the Saeima re-elected Ulmanis as president of Latvia on 18 June 1996, and he gave the solemn oath on 8 July 1996. The seventh convocation of the Saeima elected Vaira Vīķe-Freiberga as president of Latvia on 17 June 1999, with her giving the solemn oath of the president of