For the UK to leave the EU it had to invoke Article 50 of the Lisbon Treaty which gives the two sides two years to agree the terms of the split. Theresa May triggered this process on 29 March, 2017, meaning the UK is scheduled to leave at 11pm UK time on Friday, 29 March 2019.