The Russian Civil War broke out after the Bolshevik revolution of 1917 as various opposition groups opposed the Bolsheviks' seizure of power. These groups included monarchists, socialists, and foreign powers. The main triggers for conflict were the Bolsheviks dissolving the Constituent Assembly and signing the Treaty of Brest-Litovsk, which ceded territory to Germany. The opposing sides formed the Red Army led by Trotsky for the Bolsheviks and the multi-factioned White Army. The civil war involved over 20 factions and lasted from 1918 to 1921, with the Red Army eventually defeating the White Army and allowing the Bolsheviks to consolidate control over Russia.