As a result, while Pomerelia remained a subject of contention, the treaty was followed by 66 years of peace between the Kingdom of Poland and the Teutonic Order, until the conflict erupted again in the Polish–Lithuanian–Teutonic War of 1409. By the Second Peace of Thorn in 1466, the Crown of the Kingdom of Poland regained the Pomerelian lands, which were then incorporated into Royal Prussia.