In 1231 the city of Kowalewo was captured by the Teutonic Knights. They soon built a castle, and in 1275 they granted city rights to this developing settlement. After the complete destruction of the city and the castle by the Tatars in 1286, relocation took place, most probably under the conditions of the Chełmno Law. The castle was rebuilt in 1278. Invasions of the Prussians, Tatars, and Lithuanians hastened the decision to build the defensive walls around the Kowalewo in the 14th century. In 1454 the city was invaded by the armies of the Prussia States who formed a rebellion against the Teutonic Knights.
Finally, in 1466 Kowalewo constituted a section of Poland. Since the 15th century in Kowalewo the Magistate Courts and Sejmik of the Chełmno Land had gathered. The city played a role of the local trade and craft center. During 1629, 1655-1657 the city was occupied and plundered by the Swedes, in 1713 by the Russians. In 1772 only 34 houses of the townspeople existed. The city walls were ruined, as well as the castle and church.
References:The Walls of Constantinople are a series of defensive stone walls that have surrounded and protected the city of Constantinople (today Istanbul) since its founding as the new capital of the Roman Empire by Constantine the Great. With numerous additions and modifications during their history, they were the last great fortification system of antiquity, and one of the most complex and elaborate systems ever built. They were also the largest and strongest fortification in both the ancient and medieval world.
Initially built by Constantine the Great, the walls surrounded the new city on all sides, protecting it against attack from both sea and land. As the city grew, the famous double line of the Theodosian Walls was built in the 5th century. Although the other sections of the walls were less elaborate, they were, when well-manned, almost impregnable for any medieval besieger.