"National Anthem of the Soviet Union" (1944–1990)
"The Patriotic Song" (1990–1991)
The Russian Soviet Federative Socialist Republic (Russian SFSR or RSFSR; Russian: Росси́йская Сове́тская Федерати́вная Социалисти́ческая Республика, tr. Rossiyskaya Sovetskaya Federativnaya Sotsialisticheskaya Respublika, IPA: ( listen)), also unofficially known as the Russian Federation, Soviet Russia, or Russia ( listen (help·info); Russian: Росси́я, tr. Rossiya, IPA: ; from the Greek: Ρωσία Rōsía — Rus'), was an independent state from 1917 to 1922, and afterwards the largest, most populous, and most economically developed union republic of the Soviet Union from 1922 to 1991 and then a sovereign part of the Soviet Union with priority of Russian laws over Union-level legislation in 1990 and 1991. The Republic comprised sixteen autonomous republics, five autonomous oblasts, ten autonomous okrugs, six krais, and forty oblasts. Russians formed the largest ethnic group. The capital of the Russian SFSR was Moscow and the other major urban centers included Leningrad, Novosibirsk, Yekaterinburg, Nizhny Novgorod, and Samara.
The economy of Russia became heavily industrialized, accounting for about two-thirds of the electricity produced in the USSR. It was, by 1961, the third largest producer of petroleum due to new discoveries in the Volga-Urals region and Siberia, trailing only the United States and Saudi Arabia. In 1974, there were 475 institutes of higher education in the republic providing education in 47 languages to some 23,941,000 students. A network of territorially organized public-health services provided health care. After 1985, the restructuring policies of the Gorbachev administration relatively liberalised the economy, which had become stagnant since the late 1970s, with the introduction of non-state owned enterprises such as cooperatives.
The Russian Soviet Republic was proclaimed on 7 November 1917 (October Revolution) as a sovereign state and the world's first constitutionally socialist state with the ideology of Communism. The first Constitution was adopted in 1918. In 1922 the Russian SFSR signed the Treaty on the Creation of the USSR. The 1977 Soviet Constitution stated "Union Republic is a sovereign ... state that has united ... in the Union" and "each Union Republic shall retain the right freely to secede from the USSR". On 12 June 1990, the Congress of People's Deputies adopted the Declaration of State Sovereignty, established separation of powers (instead of Soviet form of government), established citizenship of Russia, and stated that the RSFSR shall retain the right of free secession from the USSR. On 12 June 1991, Boris Yeltsin was elected the first President supported by the Democratic Russia pro-reform movement.
The 1991 August Soviet coup d'état attempt destabilised the Soviet Union. On 8 December 1991, the heads of Russia, Ukraine, and Belarus signed the Belavezha Accords. The agreement declared dissolution of the USSR by its founder states (i.e. denunciation of 1922 Treaty on the Creation of the USSR) and established the Commonwealth of Independent States (CIS). On 12 December the agreement was ratified by the Russian Parliament, therefore Russian SFSR denounced the Treaty on the Creation of the USSR and de facto declared Russia's independence from the USSR.
On 25 December 1991, following the resignation of Mikhail Gorbachev as president of the Soviet Union, the Russian SFSR was renamed the Russian Federation re-establishing the sovereign and independent state (see History of Russia (1991–present)). On 26 December 1991, the USSR was self-dissolved by the Soviet of Nationalities, which by that time was the only functioning house of the Supreme Soviet (the other house, Soviet of the Union, had already lost the quorum after recall of its members by the union republics). After dissolution of the USSR, Russia declared that it assumed the rights and obligations of the dissolved central Soviet government, including UN membership and permanent membership on the Security Council but originally excluding foreign debt and foreign assets of the USSR (also parts of the former Soviet Army and nuclear weapons remained under overall CIS command as CIS United Armed Forces).