the First Partition of Poland in 1772, the town was annexed by the Kingdom of Prussia and in 1773 it became part of the newly established province of West Prussia. At that time, the officials used the rather neglected castle as a poorhouse and barracks for the Prussian Army. The last Jesuits left the castle in 1780. In 1794 David Gilly, a Prussian architect and head of the Oberbaudepartement, made a structural survey of the castle, to decide about its future use or demolition. Gilly's son, Friedrich Gilly, produced several engravings of the castle and its architecture, which he exhibited in Berlin and had published by Friedrich Frick from 1799 to 1803. These engravings led the Prussian public to "rediscover" the castle and the history of the Teutonic Knights. Johann Dominicus Fiorillo published another edition of the engravings on 12 February 1803, also wanting to encourage public interest. Max von Schenkendorf criticized the defacement of the castle. Throughout the Napoleonic period, the army used the castle as a hospital and arsenal. Napoleon has visited the castle in 1807 and 1812. After the War of the Sixth Coalition, the castle became a symbol of Prussian history and national consciousness. Initiated by Theodor von Schön, Oberpräsident of West Prussia, in 1816, restoration of the castle was begun. In 1910 the Naval Academy Mürwik in Flensburg was built. The Marienburg was a pattern for this new Red Castle. The restoration of the Marienburg was undertaken in stages until World War II started. With the rise of Adolf Hitler to power in the early 1930s, the Nazis used the castle as a destination for annual pilgrimages of both the Hitler Youth and the League of German Girls. The Teutonic Castle at Marienburg served as a blueprint for the Order Castles of the Third Reich built under Hitler's reign. In 1945 during World War II combat in the area, more than half the castle was destroyed. After World War II At the conclusion of the war, the city of Malbork and the castle became again part of Poland. The castle has been mostly reconstructed, with restoration ongoing since 1962 following a fire in 1959 which caused further damage. A significant recent restorative effort was of the main church in the castle (i.e., The Blessed Virgin Mary Church). After being restored just before World War II and then destroyed in battle, it was in a state