The Treaty of Versailles was a peace agreement signed on June 28, 1919, that officially ended World War I between the Allied Powers and Germany. It imposed heavy reparations and territorial losses on Germany, aiming to prevent future conflicts but ultimately contributing to political instability and economic hardship in the country, which played a significant role in the rise of tensions leading to World War II.