1519–1521, he coordinated the reconstruction and resettlement of the devastated southern Warmia. In 1565, Cardinal Stanislaus Hosius founded the Collegium Hosianum in Braniewo, which became the leading institution of higher learning in the region. After the Union of Lublin in 1569, the Duchy of Warmia was integrated more directly into the Polish Crown within the Polish–Lithuanian Commonwealth. At the same time, the territory continued to enjoy substantial autonomy, with many legal differences from neighbouring lands. For example, the bishops were by law members of Polish Senat and the land elected MP's to the Sejmik resp. Landtag of Royal Prussia as well as MP's to the Sejm of Poland. Warmia was under the Church jurisdiction of the Archbishopric of Riga until 1512, when Prince-Bishop Lucas Watzenrode received exempt status, placing Warmia directly under the authority of the Pope (in terms of church jurisdiction), which remained until the resolution of the Holy Roman Empire in 1806. Prussia and Germany By the First Partition of Poland in 1772, Warmia was annexed by the Kingdom of Prussia; the properties of the Archbishopric of Warmia were secularized by the Prussian state. In 1773 Warmia was merged with the surrounding areas into the newly established province of East Prussia. Ignacy Krasicki, the last prince-bishop of Warmia as well as Enlightenment Polish poet, friend of Frederick the Great (whom he did not give homage as his new king), was nominated to the Archbishopric of Gniezno (and thus Primate of Poland) in 1795. After the last partition of Poland and during his tenure as Primate of Poland and Prussian subject he was ordered by Pope Pius VI to teach his Catholic Poles to 'stay obedient, faithful, and loving to their new kings', Papal brief of 1795. The Prussian census in 1772 showed a total population of 96,547, including an urban population of 24,612 in 12 towns. 17,749 houses were listed and the biggest city was Braunsberg (Braniewo). Between 1773 and 1945 Warmia was part of the predominantly Lutheran province of East Prussia, with the exception that the people of Warmia remained largely Catholic. Most of the population of Warmia spoke High Prussian German, while a small area in the north spoke Low Prussian German; southern Warmia was populated by both Germans and Polish Warmiaks. The Polish population was subjected to intense Germanisation policies. Warmia was divided into four districts (Kreise) - Allenstein (Olsztyn), Rössel (Reszel), Heilsberg (Lidzbark Warmiński)