After Georgia formally seceded from the Soviet Union on 9 April 1991, the Supreme Council voted, on 14 April, to create the post of executive president, and appointed Zviad Gamsakhurdia to the office pending the holding of direct elections. In the nationwide elections to this post, on 26 May 1991, Gamsakhurdia won a landslide victory, becoming the first president of the Republic of Georgia. Gamsakhurdia was ousted in a military coup d'état in January 1992.