After such losses throughout the region, the Habsburg Crown recruited Germans to resettle the depopulated areas, particularly along the Danube River.
In 1809, Napoleon's armies occupied the city and held it for 110 days, following a short battle on the main square.