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 through 1945, it was part of Prussia and Germany (East Prussia).