South Prussia
After the Second Partition of Poland, Wągrowiec in 1793 was annexed by the Kingdom of Prussia and was confiscated from the Cistercians in 1797. Initially a part of the newly created province of South Prussia, it was in 1807 transferred to the Duchy of Warsaw, a state allied to the Napoleonic France. After Napoleon's defeat and the Congress of Vienna in 1815, Wągrowiec was again annexed by Prussia; this time it was made a part of the autonomous Grand Duchy of Poznań.