In 1405 the town's city rights were confirmed and it was granted with the Magdeburg Law, which allowed the burghers limited self-governance. This move made the development of the area faster and Kołomyja, as it was called then, attracted many settlers from many parts of Europe. Apart from the local Ukrainians and Poles, many Armenians, Jews, and Hungarians settled there. In 1411 the fortress-city was given away for 25 years to the Vlach Hospodar Olexander as a gift for his support in the war against Hungary. In 1443, a year before his death, King Wladislaus II of Poland granted the city yet another privilege which allowed the burghers to trade salt, one of the most precious minerals of the Middle Ages.