 During the Thirty Years' War, in 1643 and 1645, Brno was the only city to succeed in defending itself against Swedish sieges, thereby allowing the Austrian Empire to regroup its armies and to repel the Swedes.In recognition of its services, the city was rewarded with a renewal of its city privileges.In the years following the Thirty Years' War, the city became an impregnable Baroque fortress.