During the early Slavic times a fishing settlement called "Bydgozcya" ("Bydgostia" in Latin), became a stronghold on the Vistula trade routes. The gród of Bydgoszcz was built between 1037 and 1053 during the reign of Casimir I the Restorer. In the 13th century it was the site of a castellany, mentioned in 1238, probably founded in the early 12th century during the reign of Bolesław III Wrymouth. In the 13th century, the church of Saint Giles was built as the first church of Bydgoszcz. It was later demolished by the Germans in the late 19th century.