In the late 1930s, Horthy's foreign policy led him into a reluctant alliance with Germany against the Soviet Union. With the grudging support of Adolf Hitler, Hungary was able to redeem certain areas ceded to neighboring countries by the Treaty of Trianon. Under Horthy's leadership, Hungary gave support to Polish refugees in 1939 and participated in a supportive (as opposed to front-line) role in the Axis invasion of the Soviet Union in 1941.