Magdeburg rights (German: Magdeburger Recht; also Magdeburg Law) were a set of town privileges first developed by Otto I, Holy Roman Emperor (936–73) and based on the Flemish law, which regulated the degree of internal autonomy within cities and villages, granted by the local ruler. Named after the German city of Magdeburg, these town charters were perhaps the most important set of medieval laws in Central Europe thus far. They became the basis for the German town laws developed during many centuries in the Holy Roman Empire. Even more importantly, adopted and modified by numerous monarchs including the rulers of Bohemia, Hungary, and Poland, the laws were a milestone in urbanization of the entire region and prompted the development of thousands of villages and cities.
As with most medieval city laws, the rights were primarily targeted at regulating trade to the benefit of the local merchants and artisans, who formed the most important part of the population of many such cities. In medieval Poland, Jews were invited along with German merchants to settle in cities as part of the royal city development policy.
Jews and Germans were sometimes competitors in those cities. Jews lived under privileges that they carefully negotiated with the king or emperor. They were not subject to city jurisdiction. These privileges guaranteed that they could maintain communal autonomy, live according to their laws, and be subjected directly to the royal jurisdiction in matters concerning Jews and Christians. One of the provisions granted to Jews was that a Jew could not be made Gewährsmann, that is, he could not be compelled to tell from whom he acquired any object which had been sold or pledged to him and which was found in his possession. Other provisions frequently mentioned were a permission to sell meat to Christians, or employ Christian servants.
External merchants coming into the city were not allowed to trade on their own, but instead forced to sell the goods they had brought into the city to local traders, if any wished to buy them.
Being a member of the Hanseatic League, Magdeburg thus was one of the most important trade cities also, maintaining commerce with the Low countries (Flanders), the Baltic states, and the interior (for example Braunschweig).