The Russian Soviet Federative Socialist Republic, previously known as the Russian Socialist Federative Soviet Republic and the Russian Soviet Republic, and unofficially as Soviet Russia, was a socialist state from 1917 to 1922, and afterwards the largest and most populous constituent republic of the Soviet Union from 1922 to 1991, until becoming a sovereign part of the Soviet Union with priority of Russian laws over Union-level legislation in 1990 and 1991, the last two years of the existence of the USSR. From Wikipedia