The first Archbishop residing mainly in Uniejów in the city was Bogumilus in the 12th century.[2] In the late 13th century, Archbishop Jakub Świnka founded Church of the Holy Spirit and a hospital, and in 1331, Uniejów was burned by the Teutonic Knights.[2] The town was rebuilt, and in the late 14th-early 15th century, it was a local center of commerce and crafts. For centuries, Uniejów enjoyed several privileges, granted to it by the Archbishops of Gniezno.