Right to work in UK

What is the basis of your right to work in the UK?