BRUSSELS – European leaders on Thursday seized control of Britain’s departure from the European Union, sparing British Prime Minister Theresa May the economic earthquake of an uncontrolled split from the European Union next week but demanding that she pass a deal or come up with an alternative by April 12.

The decision was a harsh verdict on May’s political acumen. Nearly two hours of withering cross-examination led her fellow leaders to believe she had no political strategy to pass a divorce deal nor knew how Britain would weather an uncontrolled Brexit next week.

May had promised the British people that Brexit would help them take back control from Europe. Instead, she found that her 27 fellow EU leaders took back decision-making from her, dictating a political calendar for the coming weeks that gives both sides a time to prepare for the worst-case scenario.

If British lawmakers approve a divorce deal they have twice rejected, they can leave the European Union on May 22. If they reject it, they must plan an alternative by April 12 or fall off the same no-deal cliff that evening.

Either way, the decisions will be forced earlier than the three-month delay May was seeking in Brussels.

May told reporters that she was satisfied with the extension. She said it was now “very clear” what the options and deadlines are for British lawmakers.

“What the decision today underlines is the importance of the House of Commons passing a Brexit deal next week so that we can bring an end to the uncertainty and leave in a smooth and orderly manner,” she said.

May appeared to be relatively upbeat and matter of fact, and she took pains to reach out to lawmakers. Gone was the hectoring, accusatory attitude of the night before, when she lashed out at Parliament and said it was lawmakers’ fault that Brexit was being delayed.

But European leaders made little secret that they were fed up.

“The EU, to put it clearly, is facing a British political crisis,” said French President Emmanuel Macron, who argued for an uncompromising stance during the talks. “British politicians are unable to deliver what the people asked them to do. The people voted for Brexit, but we are in a situation where the British Parliament is telling us they are not voting for the agreement we negotiated for two years.”

Leaders felt May was so removed from political realities that one European diplomat said her assessments were “a bit like coming from another planet.” The official and others spoke on the condition of anonymity to recount the talks.

In footage of the EU leaders greeting one another in Brussels before settling in for business, May joked with Luxembourg’s prime minister, who just minutes before had threatened to cast Britain out of the EU without a deal. She exchanged a tense and unsmiling double-cheek peck with European Commission President Jean-Claude Juncker, with whom she has tangled and who has taken a particularly hard line against her.

One leader after another went around a round table to hammer May about her political strategy, her preparations for a no-deal departure and why she wanted three months more. On each question, they found her wanting, diplomats said, after she ate up much of her opening discussion time to read off a letter that leaders had already seen the day before. In all, she was grilled for nearly two hours – an eternity in the tightly choreographed world of high-stakes summits.

“You could feel the patience running thin,” an official said.

After she was dismissed from the room, leaders talked and talked, disinviting May from dinner of duck a l’orange to keep hammering out a deal. The Bulgarian ambassador to the European Union tweeted a photo of a scrum of senior officials clustered in a corridor, some of them crouching on the ground, as they fought back and forth over the details.

By late evening – after May had stewed outside the room for four hours – European Council President Donald Tusk delivered the news. She had won a reprieve – but not the one she requested.

The extension provides “so many options,” Tusk told reporters afterward. He said Britain will still have the choice of a deal, no deal, a long delay or canceling Brexit.

Until April 12, he said, “all options will remain open and the cliff edge date will be delayed.”

The April date is the deadline to organize late-May elections for European Parliament, a necessary step, EU leaders believe, if Britain is to stay inside the union beyond them.

The stuttering sequence of deadlines increases pressure on British lawmakers to cut across party lines to approve some sort of deal. It also gives EU leaders political cover with their own voters if Britain departs without a safety net, since they can say they did everything possible to avoid it.

Economists and political analysts have warned that a no-deal Brexit could result in the halting of trade and travel and a hit to the British and European economies.

“This delay is a matter of personal regret to me,” she told reporters when she arrived at the EU summit Thursday, standing in the glass entrance of a building where Britain’s Union Jack may soon be removed from the row of flags. “But a short extension would give Parliament the time to make a final choice that delivers on the result of the referendum.”

Economists and political analysts have warned that a no-deal Brexit could result in the halting of trade and travel and a hit to the British and European economies.

In London, May’s allies said she was under “extraordinary pressure.” Foreign Secretary Jeremy Hunt told the BBC, “No prime minister in living memory has been tested in the way that she has.”

In footage of the EU leaders greeting one another in Brussels before settling in for business, May joked with Luxembourg’s prime minister, who just minutes before had echoed French President Emmanuel Macron and threatened to cast Britain out of the EU without a deal. She exchanged a tense and unsmiling double-cheek-peck with European Commission President Jean-Claude Juncker, with whom she has tangled and who has taken a particularly hard line against her.

May opened the session with other heads of state by reading part of the letter she sent a day earlier, a move that frustrated leaders hoping for explanations of her plans. Then the leaders, sitting around a ring-shaped table, peppered her with questions about how she could pass the deal in Parliament despite it having failed twice already, according to an EU official familiar with what happened in the room.

“You could feel the patience running thin,” the official said. The official and others spoke on the condition of anonymity to discuss the closed-door discussions.

Another diplomat described the discussion as “a bit like coming from another planet.” May presented no convincing details about her political strategy, no insights into what she would do if Britain crashed out without a deal and no willingness to make concessions, the diplomat said.

“EU leaders do not have a lot of illusions. And they are pretty limited in how to help her,” the diplomat said.

The cross-examination lasted longer than planned – at least 90 minutes. Then they kicked out May and started to discuss what to do. May retired to the British mission to the EU, a modern building around the corner from where the summit is being held, to wait out the verdict.

Ahead of the meeting, some leaders offered her some grudging respect on Thursday, if only for her tenacity.

“I try as a colleague to put myself in her shoes, and I am absolutely not sure I can fill those shoes,” said Dutch Prime Minister Mark Rutte, who recently compared May with a Monty Python character who keeps fighting even after all of his limbs have been severed by another medieval knight.

“Because what she is up to is almost unhuman: to fight so many people and to make sure that the United Kingdom is not going over the cliff next week on Friday,” Rutte said.

By now, many EU policymakers no longer hold out hope for a second referendum that could reverse the Brexit decision and think it best to break up and move on.

“We don’t want in the coming months, in the coming years, to be busy with Brexit,” said Guy Verhofstadt, the European Parliament’s Brexit coordinator, who used to post wistful videos on Twitter appealing Britons to abandon Brexit. “We want to be busy with the renewal of the European Union,” he told reporters before the meeting.

When May triggered the two-year Brexit window, confident Brexiteers said squabbling European countries would quickly succumb to the crack British team of negotiators. Instead, the Europeans have remained unusually united, while the first two British Brexit ministers resigned to protest the deals they themselves agreed on.

May and British lawmakers are now blaming each other for failing to have agreed on how to leave.

May’s deal was defeated by 149 votes on March 12 – and by 230 votes on Jan. 15. Both votes were widely described as humiliations. Many members of her Conservative Party voted against the prime minister’s exit plan, and have vowed to do so again.

May needs to convince at least 75 lawmakers to back the exit deal, including the 10 members of Northern Ireland’s Democratic Unionist Party, which props up her minority government. She also needs at least some of the most rebellious, hardcore Tory Brexiteers, plus some Labour Party lawmakers to cross over. This will not be easy.

Some of the 48 percent of people who voted to remain in the European Union in the June 2016 Brexit referendum were growing increasingly nervous about what might happen over the next few days.

An online public petition calling on May to cancel Brexit attracted more than a million signatures in mere hours, crashing from the surge in traffic.

– – –

Booth reported from London. Karla Adam in London and James McAuley in Paris contributed to this report.