In the years following the death of Vladimir Lenin in 1924, Stalin rose to become the leader of the Soviet Union. ... Stalin's connections helped him to gain influential positions behind the scenes in the new Soviet government, eventually being appointed General Secretary in 1922.
Hope this helps