Complex sentence: Before 1772 the area was part of Kingdom of Poland, 1772-1945 Prussia and Germany (East Prussia).
Split into simpler sentences: Before 1772 the area was part of Kingdom of Poland. From 1772-1945 it was part of Prussia and then Germany (East Prussia).