After five hours of talks late into the night, leaders agreed to extend the new Brexit deadline until 31 October, with a potential summit in June to review the situation.
Before the deal was offered, Theresa May travelled to Paris and Berlin to conduct emergency meetings with Emmanuel Macron and Angela Merkel in an attempt to garner support for her deal.
It appeared that the prime minister’s trip to Germany got off to a rocky start – what with the German chancellor being absent from the welcome wagon- but they appear to be best buddies now if pictures of them giggling at an iPad in the Brussels parliament is anything to go by.
And like all things Brexit, it quickly received the meme treatment.
Merkel has just shown Theresa May something on her iPad and the two of them are laughing their heads off. Wonder what it says
You've got to take the Brexit banter where you can...
Earlier this week the German Chancellor threw her support behind a longer extension to Article 50, saying it should be flexible enough to allow the UK's departure from the European Union "very quickly" once the UK had approved the withdrawal agreement.