 King Wenceslaus explicitly acknowledged the city rights in 1399.The town was again purchased by the Augustinians in 1494.As part of the Habsburg monarchy the town was devastated by the Thirty Years' War.