After Lenin’s death in 1924, Stalin used his position as General Secretary to gain control of the Communist Party. He outmaneuvered rivals like Trotsky and by 1929 became the undisputed leader of the USSR, consolidating power through alliances, propaganda, and suppression of opponents.