TOPSHOT - Union and EU fags flutter outside the Houses of Parliament in Westminster, London on March 28, 2019. - Faced with losing all control over the Brexit process, British Prime Minister Theresa May looks to have played her final card by announcing she will step down if MPs approve her Brexit deal. (Photo by Niklas HALLE'N / AFP)        (Photo credit should read NIKLAS HALLE'N/AFP/Getty Images)
PHOTO: NIKLAS HALLE'N/AFP/AFP/Getty Images
TOPSHOT - Union and EU fags flutter outside the Houses of Parliament in Westminster, London on March 28, 2019. - Faced with losing all control over the Brexit process, British Prime Minister Theresa May looks to have played her final card by announcing she will step down if MPs approve her Brexit deal. (Photo by Niklas HALLE'N / AFP) (Photo credit should read NIKLAS HALLE'N/AFP/Getty Images)
Now playing
03:06
Here's your 'WTF' guide to the Brexit chaos
PHOTO: Photo Illustration: Getty Images/CNN
Now playing
03:38
Here's what you need to know about Brexit
Britain's Prime Minister Theresa May leaves 10 Downing Street in London on March 25, 2019. - British Prime Minister Theresa May chaired a meeting of her cabinet amid reports of an attempted coup by colleagues over her handling of Brexit. (Photo by Isabel Infantes / AFP)        (Photo credit should read ISABEL INFANTES/AFP/Getty Images)
PHOTO: ISABEL INFANTES/AFP/Getty Images
Britain's Prime Minister Theresa May leaves 10 Downing Street in London on March 25, 2019. - British Prime Minister Theresa May chaired a meeting of her cabinet amid reports of an attempted coup by colleagues over her handling of Brexit. (Photo by Isabel Infantes / AFP) (Photo credit should read ISABEL INFANTES/AFP/Getty Images)
Now playing
01:44
Theresa May to resign when Brexit is done
Pro-EU demonstrators wave an mixed EU and Union flag as they protest against Brexit, outside of the Houses of Parliament in central London on June 11, 2018. - After a rollercoaster week of Brexit rows within her government and with Brussels, British Prime Minister Theresa May will on Tuesday seek to avoid another setback in a long-awaited showdown with parliament. MPs in the House of Commons will vote on a string of amendments to a key piece of Brexit legislation that could force the government's hand in the negotiations with the European Union. (Photo by Daniel LEAL-OLIVAS / AFP)        (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
PHOTO: DANIEL LEAL-OLIVAS/AFP/AFP/Getty Images
Pro-EU demonstrators wave an mixed EU and Union flag as they protest against Brexit, outside of the Houses of Parliament in central London on June 11, 2018. - After a rollercoaster week of Brexit rows within her government and with Brussels, British Prime Minister Theresa May will on Tuesday seek to avoid another setback in a long-awaited showdown with parliament. MPs in the House of Commons will vote on a string of amendments to a key piece of Brexit legislation that could force the government's hand in the negotiations with the European Union. (Photo by Daniel LEAL-OLIVAS / AFP) (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
Now playing
01:07
What's at stake if a Brexit deal falls through
Pedestrians waling through Waterloo Bridge with the skyline of the City of London in the background on October 27, 2016. 
Britain's economy won a double boost on October 27 on news of faster-than-expected growth following its vote for Brexit and a pledge by Nissan to build new car models in the UK. Gross domestic product expanded by 0.5 percent in the third quarter, official data showed.
 / AFP / Daniel Leal-Olivas        (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
PHOTO: DANIEL LEAL-OLIVAS/AFP/Getty Images
Pedestrians waling through Waterloo Bridge with the skyline of the City of London in the background on October 27, 2016. Britain's economy won a double boost on October 27 on news of faster-than-expected growth following its vote for Brexit and a pledge by Nissan to build new car models in the UK. Gross domestic product expanded by 0.5 percent in the third quarter, official data showed. / AFP / Daniel Leal-Olivas (Photo credit should read DANIEL LEAL-OLIVAS/AFP/Getty Images)
Now playing
02:13
Why Brexit uncertainty means companies plan for the worst
PHOTO: Getty Images
Now playing
03:45
What a fish can tell you about Brexit
Cyclists pass a sign calling for no border to be imposed between Ireland and Northern Ireland outside Newry, Northern Ireland, on November 14, 2018 near the Irish border. - British Prime Minister Theresa May defended her anguished divorce deal with the European Union before rowdy lawmakers on Wednesday before  trying to win the backing of her splintered cabinet with the so-called "Irish backstop" arrangement to guard against the imposition of a hard border between Ireland and Northern Ireland one of the contentious issues, according to reports. (Photo by Paul FAITH / AFP)        (Photo credit should read PAUL FAITH/AFP/Getty Images)
PHOTO: PAUL FAITH/AFP/AFP/Getty Images
Cyclists pass a sign calling for no border to be imposed between Ireland and Northern Ireland outside Newry, Northern Ireland, on November 14, 2018 near the Irish border. - British Prime Minister Theresa May defended her anguished divorce deal with the European Union before rowdy lawmakers on Wednesday before trying to win the backing of her splintered cabinet with the so-called "Irish backstop" arrangement to guard against the imposition of a hard border between Ireland and Northern Ireland one of the contentious issues, according to reports. (Photo by Paul FAITH / AFP) (Photo credit should read PAUL FAITH/AFP/Getty Images)
Now playing
02:06
Brexit: What is the Irish backstop?
PHOTO: CNN
Now playing
01:32
Why there is no easy path in the Brexit deal
EU supporters, calling on the government to give Britons a vote on the final Brexit deal, wave EU flags as they participate in the 'People's Vote' march in central London, Britain March 23, 2019. REUTERS/Henry Nicholls
PHOTO: Henry Nicholls/Reuters
EU supporters, calling on the government to give Britons a vote on the final Brexit deal, wave EU flags as they participate in the 'People's Vote' march in central London, Britain March 23, 2019. REUTERS/Henry Nicholls
Now playing
01:31
Massive crowds march against Brexit in London
Now playing
02:59
May puts the pressure on lawmakers in Brexit address
PHOTO: Parliament TV
Now playing
01:59
Parliament votes to seize control of Brexit process
PHOTO: Parliament TV
Now playing
02:12
Corbyn rips May, demands no confidence vote
PHOTO: parliamentlive.tv
Now playing
01:19
Theresa May's brexit deal suffers historic defeat
PHOTO: EBS
Now playing
02:32
How the EU negotiated its first-ever divorce
PHOTO: CNN
Now playing
01:24
Once pro-leave town feels Brexit uncertainty
Irish border drone footage
PHOTO: CNN
Irish border drone footage
Now playing
01:59
Why the Irish border is impacting Brexit
(CNN) —  

The British government has laid groundwork that would enable it to participate in the European Parliament elections next month, should the UK still find itself in the EU by the time the vote takes place.

The move signals a possibility that Brexit could be delayed beyond the May 23 election date – nearly three years after Britons voted in a referendum to leave the EU – locking the UK into participating in the European poll. But the Cabinet Office cautioned that taking the legal steps did not mean elections were “inevitable,” saying they would be canceled if the UK has quit the EU by the eve of the vote.

“It remains the government’s intention to leave the EU with a deal and pass the necessary legislation before 22 May, so that we do not need to participate in European Parliamentary elections,” a Cabinet Office spokesperson told CNN.

“As a responsible government today we have taken the necessary steps required by law should we have to participate.”

Those steps include tabling the Day of Poll Order, which sets the date for elections to take place in the UK on May 23.

“The Day of Poll Order provides Returning Officers with a date to hold potential European Parliamentary elections, but it does not make these elections inevitable, as leaving the EU before the date of election automatically removes our obligation to take part,” the Cabinet spokesperson said.

Prime Minister Theresa May will travel to Berlin and then Paris on Tuesday in a final bout of Brexit diplomacy ahead of an emergency EU summit in Brussels on Wednesday.

Leaders of the remaining 27 EU member states are due to decide on May’s request for a further extension to the Brexit process, to June 30, at the summit.

Unless the EU agrees to a delay, the UK will leave without a deal on April 12, a scenario that business leaders and economists have warned would trigger chaos.

Having failed three times to get lawmakers to back her Brexit deal, May changed tactics last week to focus on winning support from the opposition Labour Party, a decision that has roiled the Brexiteer wing of her Conservative Party.

The Prime Minister and Labour were in talks on Monday, staging a last-ditch effort to agree a withdrawal deal after negotiations broke down.

A Downing Street spokesman told CNN on Monday that the Prime Minister wants to reach an agreement with Labour “as soon as possible.”