Complex sentence: After the Second Peace of Thorn (1466), from 1469-1641 it was a vassal of Poland.Since 1525 it was the capital of the Duchy of Prussia until 1701 when the capital was moved to Berlin.
Split into simpler sentences: After the Second Peace of Thorn (1466), from 1469-1641 it was a vassal of Poland. From 1525 it was the capital of the Duchy of Prussia until 1701 when the capital was moved to Berlin.