Before the palace was built, the bishopric of Kraków had been located at Wawel since the year 1000, where the remains of earlier buildings still exist. The palace, erected in its present location at ul. Franciszkańska 3 street across from the historic Franciscan Church in Kraków, was mentioned for the first time in the 14th century. It was consumed by fire in 1462 and then rebuilt. The palace was reconstructed with a new staircase and rusticated portals by Bishop Piotr Gembicki in 1642-1647. It was renovated after the Swedish invasion in 1655, and refurbished again in 1817-1820 by Szczepan Humbert. In 1850 a citywide fire burned most of the furnishings and exhibits of national mementoes. Architect Tomasz Pryliński supervised the renovation of the palace in 1881–1884. In spite of its turbulent history including fires and various national calamities such as the Partitions, the palace always served its original purpose.