The Treaty of Versailles, split Danzig from Germany. The treaty made the people living in the city citizens of the Free City. German inhabitants lost their German nationality, if they wanted to stay German they had to go and live outside the Free City's territory.