In the UK, you are legally required to show photo identification (ID) when voting at a polling station at some elections.

The name of your ID must be the same name as you register to vote.

See PDF booklet which explains registering to vote and which forms of photo ID you can use to vote.