Of these, the territory ceded to Poland amounted to nearly 20000 sqmi , and, coupled with the establishment of Danzig as an independent state, which was also imposed upon Germany, this loss had the effect of cutting off East Prussia from the main territory of Germany.