The Expulsion of Poles by Germany was a prolonged anti-Polish campaign of ethnic cleansing by violent and terror-inspiring means lasting nearly half a century. It began with the concept of Pan-Germanism developed in the early 19th century and culminated in the racial policy of Nazi Germany that asserted the superiority of the Aryan race. The removal of Poles by Germany stemmed from historic ideas of expansionist nationalism. It was implemented at different levels and different stages by successive German governments. It ended with the defeat of Nazi Germany in 1945.