During the Hussite Wars (1419–1434), the town was several times besieged and conquered. In 1427, Prokop the Great defeated the crusaders in the Battle of Tachov. The Thirty Years' War (1618–1648) damaged the town considerably. In 1664, Count Johann Anton Losy became the new proprietor. The Losy family began conversion of the medieval castle to a large baroque château. In 1784, the title passed to the Windisch-Graetz family. The Windisch-Graetzs, in their turn, rebuilt the house in the classical style at great expense.