The estates eventually became governed by the Kingdom of Poland. First the western part of Prussia, which became known as Royal Prussia after the Second Peace of Thorn ended the Thirteen Years' War in 1466, and later the eastern lands, known as Ducal Prussia, after the Prussian Homage in 1525, became part of the kingdom. On 10 December 1525 at their session in Königsberg the Prussian estates established the Lutheran Church in Ducal Prussia by deciding the Church Order.