Why Did Germany Invade Poland?

The main reason Germany invaded Poland was to gain land, space, and resources. Germany used the excuse that Poland attacked and killed Germans in south Poland.