The Treaty of Versailles was a peace agreement signed in 1919 that officially ended World War I, imposing heavy reparations and territorial losses on Germany while redrawing national boundaries in Europe. This treaty aimed to prevent future conflicts but instead sowed discontent and contributed to the rise of extremism in the following decades.