EU leaders have agreed a plan which would delay Brexit from March 29 to May 22 on condition that MPs approve Theresa May's withdrawal deal next week, the European Council has confirmed.
Speaking at a Brussels press conference, European Council president Donald Tusk said: "Prime Minister May repeated her request to extend the Article 50 period to the end of 30th of June and to approve the so-called Strasbourg Agreement.
"During the discussion between the EU27, the leaders accepted the request in a positive spirit.
"The European Council decided to approve the Strasbourg agreement."
It came after a long night of talks among the EU's 27 leaders - a statement was expected at 18:30 Thursday but the plan wasn't revealed until after 22:30.
If the deal is rejected in its third "meaningful vote" in the Commons, the UK would be given until April 12 to come to the European Council with its proposals for the way forward.