The second temple, built on the site of the Romanesque basilica, is a small Gothic single-aisle chapel built at the initiative of Casimir the Great. The relics of this church, which was dedicated to St. Maria of Egypt, have survived in the form of a profiled arcade of a triumphal arch and stairs, which led to the presbytery from the palace courtyard.