During the 1930s and early 1940s, Hungary was preoccupied with the regaining the vast territories and huge amount of population lost in the Trianon peace treaty at Versailles in 1920. This required strong armed forces to defeat the neighbouring states and this was something Hungary could not afford. Instead, the Hungarian Regent, Admiral Miklós Horthy, made an alliance with German dictator Adolf Hitler's Third Reich. In exchange for this alliance and via the First and Second Vienna Awards, Hungary received back parts of its lost territories from Yugoslavia, Romania, and Czechoslovakia. Hungary was to pay dearly during and after World War II for these temporary gains.