After the Mongol invasion in 1241, King Béla IV of Hungary invited German colonists to fill the gaps in population. Prešov became a German-speaking settlement, related to the Zipser German and Carpathian German areas, and was elevated to the rank of a royal free town in 1347 by Louis the Great.