Both the Revolutions of 1989 in the Eastern Bloc and the dissolution of the Soviet Union marked the end of the Cold War.
The following day, the Declaration 142-Н of the Supreme Soviet's upper chamber, the Soviet of the Republics, recognised self-governing independence for the former Soviet republics, formally dissolving the Union.
That evening at 7:32 p.m., the Soviet red banner was lowered from the Kremlin for the last time and replaced with the Russian tricolour flag. On December 25, Gorbachev resigned and turned over his presidential powers-including control of the nuclear launch codes-to Yeltsin, who was the president of the Russian Federation until 1999. All the republics, with the exception of Georgia and the Baltics, joined the CIS on December 21, signing the Alma-Ata Protocol. Kazakhstan was the last nation to leave the Union, proclaiming independence on December 16. The Belovezha Accords were arbitrarily signed on December 8 by President Boris Yeltsin of the Russian SFSR, President Kravchuk of Ukraine, and Chairman Shushkevich of Belarus, recognising each other's independence and creating the Commonwealth of Independent States (CIS) instead of the Soviet Union. The secession of the Baltic states was recognized in September 1991. The failure of the 1991 August Coup, when communist hardliners and military elites tried to overthrow Gorbachev and stop the failing reforms, led to the government in Moscow losing most of its influence, and many republics proclaiming independence in the following days and months. Lithuania was the first republic to officially break away from the USSR and declare independence in the Act of Ma(not counting the autonomy of Nakhchivan, which had declared independence from both the USSR and the Azerbaijan SSR a few weeks earlier, later rejoining Azerbaijan). Estonia was the first Soviet republic to declare state sovereignty inside the Union in 1988. The process began with growing unrest in the Union's various constituent national republics developing into an incessant political and legislative conflict between them and the central government.
Gorbachev had to resign his office as president and what was left of the parliament to formally acknowledge the Union's collapse as a fait accompli. In late 1991, the leaders of three of the Union's founding and largest republics (the Russian SFSR, the Ukrainian SSR and the Byelorussian SSR) declared that the Soviet Union no longer existed, and 11 more republics joined them shortly thereafter. The dissolution of the Soviet Union (1988–1991) was the process of internal political, economic and ethnic disintegration within the USSR as an unintended result of General Secretary Mikhail Gorbachev's effort of reform of the Soviet political and economic system in an attempt to end the Era of Stagnation, which resulted in the end of its existence as a sovereign state.