Your identity document (for example your passport or identity card) will be checked when you arrive at a UK port or airport to make sure you're allowed to come into the country. It should be valid for the whole of your stay. You may also need a visa to come into or travel through the UK, depending on your nationality.