It is not known when Lowicz received town charter. First document which calls it oppidium (town) dates back to 1298, and was issued by Duke Boleslaw I of Płock. Before that, in 1263, Łowicz was ransacked and burned in a Lithuanian raid. In 1350, a Polish-Danish alliance was formed in Łowicz. According to chronicler Jan of Czarnkow, in ca. 1355 Archbishop Jaroslaw of Bogoria and Skotnik built a brick Gothic castle in the location of the former gord. The castle became one of residences of Archbishops of Gniezno and Primates of Poland. Furthermore, in ca. 1358, he granted Magdeburg rights to the newly established New Town (Nowe Miasto). New "Civitas of Lowicz" was located east of the old gord, along the Bzura and around the wooden church, which stood in the location of contemporary Cathedral Basilica.