 Most of Polish Royal Prussia was annexed by King Frederick the Great of Prussia in the 1772 First Partition of Poland.The town of Marienwerder, previously in Ducal Prussia, became an administrative capital of the newly acquired territory, which became the Province of West Prussia on 31 January 1773.West Prussia was divided into the regions of Danzig and Marienwerder in 1815, following the Napoleonic Wars.