In the mid-1980s, the last Soviet leader, Mikhail Gorbachev, sought to further reform and liberalize the economy through his policies of "glasnost" and "perestroika". The goal was to preserve the Communist Party while reversing economic stagnation. The Cold War ended during his tenure and in 1989, Warsaw Pact countries in Eastern Europe overthrew their respective Marxist-Leninist regimes. Strong nationalist and separatist movements broke out across the USSR. Gorbachev initiated a referendum—boycotted by the Baltic republics, Armenia, Georgia, and Moldova—which resulted in the majority of participating citizens voting in favor of preserving the Union as a renewed federation. In August 1991, a coup d'état was attempted by Communist Party hardliners. It failed, with Russian President Boris Yeltsin playing a high-profile role in facing down the coup. The main result was the banning of the Communist Party. The republics led by Russia and Ukraine declared independence. On 25 December 1991, Gorbachev resigned. All the republics emerged from the dissolution of the Soviet Union as independent post-Soviet states. The Russian Federation (formerly the Russian SFSR) assumed the Soviet Union's rights and obligations and is recognized as its continued legal personality in world affairs.