 The country occupies a thin strip of land between Zambia and Mozambique, extending southwards into Mozambique along the valley of the Shire River.In the north and north east it also shares a border with Tanzania.Malawi is connected by rail to the Mozambican ports of Nacala and Beira.