Complex sentence: The town which had been a part of the Hanseatic League was for many centuries inhabited by Germans, Poles was made part of Poland in 1945 after several wars and land partitions.
Split into simpler sentences: The town which had been a part of the Hanseatic League was for many centuries inhabited by Germans and Poles. It was made part of Poland in 1945 after several wars and land partitions.