After Lenin's death in 1924, Stalin engaged in a power struggle against Trotsky and other prominent figures in the Communist Party. Serving as General Secretary, Stalin leveraged his position to fill important roles with his supporters, strategically dismissing rivals like Trotsky in 1925 and later Zinoviev and Kamenev in 1927.