In mid-March 1939, Adolf Hitler gave Hungary permission to occupy the rest of Carpatho-Ukraine, taking territory further north up to the Polish border, thus creating a common Hungarian-Polish border, as had existed prior to the 18th-century Partitions of the Polish-Lithuanian Commonwealth. Before the end of the First World War and the Treaties of Trianon and Saint Germain, the Carpathian region of the former Kingdom of Hungary (Transleithania) in the Austro-Hungarian Empire had bordered to the north on the province of Galicia, which had been part of the Cisleithanian part of the Dual Monarchy.