On the side opposite from the Basilica is the municipal palace. It was constructed at the end of the 18th century of stone covered in sandstone tiles. It originally was a house, then a seminary, before its current function which began in 1938. During the War of Independence, it temporarily housed viceroy Felix Maria Calleja while he and his troops were pursuing Miguel Hidalgo.