In 1772 First Partition of Poland most of Royal Prussia was annexed by the Kingdom of Prussia, which created out of its conquered territories the province of West Prussia following year, with the exception of Warmia, which became part of the Province of East Prussia. The Polish administrative and legal code was replaced by the Prussian system, and education improved; 750 schools were built from 1772 to 1775.Koch, p. 136 He also advised his successors to learn Polish, a policy followed by the Hohenzollern dynasty until Frederick III decided not to let William II learn the language.
