On 21 September 1991, Armenia officially declared its statehood after the failed August coup in Moscow, RSFSR. Levon Ter-Petrosyan was popularly elected the first President of the newly independent Republic of Armenia on 16 October 1991. He had risen to prominence by leading the Karabakh movement for the unification of the Armenian-populated Nagorno-Karabakh. On 26 December 1991, the Soviet Union ceased to exist and Armenia's independence was recognised.