It borders Poland to the north, Germany to the west and north-west, Austria to the south, and Slovakia to the east.