As early as the twelfth century, a wooden fortress was erected on the site of today's Krzepice. It was later converted into a stone construction, of which an outline of the moat has remained to the present day The contemporary spatial layout of dates to the foundation of the town by Casimir the Great in the mid-fourteenth century. Of course, it is also partly the result of the extension of the town in the coming centuries. The church of James the Apostle is associated with the foundation of the town, but its present shape results from later rebuilding works.