Step-by-step explanation:
Why is the UK leaving?
A public vote - or referendum - was held on Thursday 23 June 2016, to decide whether the UK should leave or remain.
Leave won by 52% to 48%. The referendum turnout was very high at 72%, with more than 30 million people voting - 17.4 million people opting for Brexit.