 Brick buildings were constructed, including the Royal Wawel Castle with St. Felix and Adaukt Rotunda, Romanesque churches such as St. Adalbert's, a cathedral, and a basilica.The city was sacked and burned during the Mongol invasion of 1241.It was rebuilt practically identical, based on new location act and incorporated in 1257 by the high duke Bolesław V the Chaste who following the example of Wrocław, introduced city rights modelled on the Magdeburg law allowing for tax benefits and new trade privileges for the citizens.