Joseph Stalin, the General Secretary of the Communist Party of the Soviet Union from 1922 to 1952 and Chairman of the Council of Ministers from 1941 until his death in 1953, governed the country as its General Secretary from the late 1920s until his death. He had initially been part of the country's informal collective leadership with Lev Kamenev and Grigory Zinoviev after the death of Vladimir Lenin in 1924, but consolidated his power within the party and state, especially against the influences of Leon Trotsky and Nikolai Bukharin, in the mid-to-late 1920s.
Prior to the October Revolution of 1917, Stalin was a revolutionary who had joined the Bolshevik faction of the Russian Social Democratic Labor Party (RSDLP) led by Vladimir Lenin, in 1903. In Lenin's first government, Stalin was appointed leader of the People's Commissariat of Nationalities. He also took military positions in the Russian Civil War and Polish-Soviet War. Stalin was one of the Bolsheviks' chief operatives in the Caucasus and grew closer to Lenin, who saw him as tough, loyal, and capable of getting things done behind the scenes. Stalin played a decisive role in engineering the 1921 Red Army invasion of Georgia. His successes in Georgia propelled him into the ranks of the Politburo in late 1921. At the 11th Congress of the Russian Communist Party (Bolsheviks) in 1922, the leaders decided to expand the party's Central Committee. This decision led to the creation of the office of the General Secretary which Stalin assumed on 3 April. Stalin soon learned how to use his new office to gain advantages over key persons within the party. He prepared the agenda for the Politburo meetings, directing the course of meetings. As General Secretary, he appointed new local party leaders, establishing a patronage network loyal to him.