The Treaty of Trianon was an agreement following World War I, which was supposed to regulate the post-war situation of the Hungarian state. It was signed on June 4, 1920, at the Grand Trianon Palace at Versailles, France, reducing the size and population of Hungary by about two thirds. Hungary lost nearly all territories, which were not inhabited solely by Magyar population, usually leaving sizeable minorities in the adjacent countries:
The treaty was also meant to paralyse Hungarian economy and infrastructure (borders, especially towards Romania, were drawn so, that important railway lines and main roads were just out of Hungary's territory), considering Hungary an agressor in World War I.
Due to the treaty, Hungary lost the access to the sea it had through Croatia since 1102. Further provisions stated that its army be limited to 35,000 men, or that no railway shall be built with more than one track.
Hungary recovered some of the lost territories at the wake of World War II in 1939-1940, mainly upon the Agreements of Vienna, but the new boundaries agreed on at the Treaty of Paris in 1947 were nearly indentical with those of 1920.
see also History of Hungary, Treaty of Versailles