In March 2017, the UK triggered Article 50, which set off a two-year countdown before the UK officially leaves the EU on 29 March 2019 (EUR-Lex). The process for extending the deadline is included in Article 50 and the European Court of Justice has recently ruled that the UK can also revoke its notification (BBC).