 In the years 1796–1804, by decision of the King of Prussia, the Grudziądz Castle was demolished.During the Napoleonic invasion in Prussia in 1806/07, the fortress was successfully defended by General of Infantry Wilhelm René de l'Homme de Courbière against attacks by French troops.In 1871 Graudenz became part of the unified German Empire.