Britain is due to leave the European Union on Friday if an extension is not granted.
Britain should be given a reasonable amount of time to work out its exit from the European Union, though the delay to Brexit could be longer than British Prime Minister Theresa May has requested, German chancellor Angela Merkel said on Wednesday.
European Union leaders have agreed to delay Britain's departure from the bloc until October 31, handing British Prime Minister Theresa May some badly needed breathing room to win parliamentary approval for her Brexit deal.
May pleaded with them at an emergency summit to delay Britain's exit, due on Saturday, until June 30 while the United Kingdom sorts out the mess that Brexit has become.
Seeking support from European heavyweights Tuesday, May flew to Berlin and Paris to plead for good terms with Merkel and French President Emmanuel Macron, who has been taking a tough stance ahead of the Brussels summit.
Tusk said: 'Tonight the European Council chose to grant the United Kingdom a flexible extension of the Article 50 period until October 31.
"What's indispensable is that nothing should compromise the European project in the months to come", he said.The agreement has been rejected by Parliament three times and last week Ms.
The British leader is then briefed on the EU's decision by summit chairman Donald Tusk.
In contrast to some testy recent summits, there were signs of warmth and even humour.
WATCH Astronomers Reveal First Ever PHOTO of Black Hole
The scientists said Einstein's theory predicted the shape of the shadow would be nearly a ideal circle - as it turned out to be. This mass creates inescapable gravitational fields, which sucks in everything around it - including light.
However Mrs Merkel, who met Mrs May in Berlin on Tuesday ahead of the Brussels summit, suggested they "may well" go for a longer delay, although the United Kingdom would be allowed to leave "very quickly" if Parliament approves a withdrawal deal. She said before leaving Berlin that she favoured a delay of "several months" for May, who has pledged to quit if hardcore Brexit supporters in her own Conservative Party drop objections to her "soft Brexit" and help ratify the deal. "But it was not logical, in my view - and above all, it was neither good for us nor for the United Kingdom", he said.
"This means (an) additional six months for the United Kingdom to find the best possible solution", Tusk added on the eve of what would otherwise have been the day Britain crashed out of the bloc with no deal to smooth the departure for businesses and citizens.
In Luxembourg, EU affairs ministers discussed conditions for any long delay, which includes Britain holding European elections.
With Britain set to leave the European Union at 11pm on Friday without a deal unless an extension is agreed, Mrs May insisted she would be "pressing the case" in the Belgian capital for a shorter delay.
Despite the new agreement, May's future is uncertain.
Czech Prime Minister Andrej Babis said he expected EU leaders to delay Brexit for "much more time" than May asked, on condition that it holds European elections. Many Conservative Party lawmakers would like her to quit now and let a new leader take charge of the next stage of Brexit.
Every British initiative to get a deal has floundered. The two sides said they would resume their discussions Thursday.
"The public in this country want to leave".