The Soviet Union and its Eastern European satellite states engaged in the Cold War, a prolonged global ideological and political struggle against the United States and its Western Bloc allies, which it ultimately lost in the face of economic troubles and both domestic and foreign political unrest. In the late 1980s, the last Soviet leader Mikhail Gorbachev tried to reform the state with his policies of perestroika and glasnost, but the Soviet Union collapsed and was formally dissolved in December 1991 after the abortive August coup attempt. The Russian Federation assumed its rights and obligations.