Boris Johnson’s government is considering imposing direct rule in Northern Ireland in the event of a no-deal Brexit, a senior minister had admitted.

Dominic Raab, the foreign secretary and Mr Johnson’s de facto deputy, said senior ministers were looking “very carefully” at whether legislation would be needed for the government to take direct control of the region.

The admission follows reports officials have warned ministers that the region would struggle to cope without a functioning government if the UK leaves the EU without a deal.

The executive at the Northern Ireland assembly collapsed in January 2017, and while talks to restore power-sharing are ongoing, it is far from clear that a resolution will be found by 31 October, the current Brexit deadline.

Mr Raab said the government would ensure there was “no vacuum” in the region in the event of no deal.

Boris Johnson's cabinet: Who's in and who's out Show all 40 1 /40 Boris Johnson's cabinet: Who's in and who's out Boris Johnson's cabinet: Who's in and who's out In: Jacob Rees-Mogg Jacob Rees Mogg appointed Leader of the Commons AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Esther McVey Esther McVey appointed housing secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Jo Johnson Jo Johnson appointed new business and energy secretary EPA Boris Johnson's cabinet: Who's in and who's out In: Brandon Lewis Brandon Lewis appointed immigration secretary Getty Boris Johnson's cabinet: Who's in and who's out In: James Cleverly James Cleverly appointed Conservative Party chairman PA Boris Johnson's cabinet: Who's in and who's out In: Baroness Evans Baroness Evans remains Leader of Lords PA Boris Johnson's cabinet: Who's in and who's out In: Julian Smith Julian Smith appointed Northern Irish secretary Reuters Boris Johnson's cabinet: Who's in and who's out In: Alister Jack Alister jack appointed Scottish secretary PA Boris Johnson's cabinet: Who's in and who's out In: Alun Cairns Alun Cairns remains Welsh secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Grant Shapps Grant Shapps appointed transport secretary Getty Boris Johnson's cabinet: Who's in and who's out In: Alok Sharma Alok Sharma appointed international development secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Robert Buckland Robert Buckland appointed justice secretary Getty Boris Johnson's cabinet: Who's in and who's out In: Amber Rudd Amber Rudd remains work and pensions secretary Getty Boris Johnson's cabinet: Who's in and who's out In: Robert Jenrick Robert Jenrick appointed housing and communities secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Andrea Leadsom Andrea Leadsom appointed business secretary Reuters Boris Johnson's cabinet: Who's in and who's out In: Nicky Morgan Nicky Morgan appointed culture secretary Getty Boris Johnson's cabinet: Who's in and who's out In: Gavin Williamson Gavin Williamson appointed education secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Theresa Villiers Theresa Villiers appointed environment secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Liz Truss Liz Truss is appointed international trade secretary Reuters Boris Johnson's cabinet: Who's in and who's out In: Ben Wallace Ben Wallace appointed defence secretary EPA Boris Johnson's cabinet: Who's in and who's out In: Stephen Barclay Stephen Barclay remains EU secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Dominic Raab Dominic Raab appointed foreign secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Priti Patel Priti Patel appointed home secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out In: Michael Gove Michael Gove given Chandellor of the Duchy of Lancaster AFP Boris Johnson's cabinet: Who's in and who's out In: Sajid Javid Sajid Javid is appointed Chancellor of the Exchequer AP Boris Johnson's cabinet: Who's in and who's out Out: Jeremy Hunt Jeremy Hunt sacked as foreign secretary Reuters Boris Johnson's cabinet: Who's in and who's out In: Matt Hancock Matt Hancock remains health secretary AFP/Getty Boris Johnson's cabinet: Who's in and who's out Out: Chris Grayling Chris Grayling resigned as transport secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: Jeremy Wright Jeremy Wright sacked as culture secretary PA Boris Johnson's cabinet: Who's in and who's out Out: Karen Bradley Karen Bradley sacked as Northern Ireland secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: James Brokenshire James Brokenshire sacked as housing and communities secretary Reuters Boris Johnson's cabinet: Who's in and who's out Out: Penny Mordaunt Penny Mourdaunt sacked as defence secretary Reuters Boris Johnson's cabinet: Who's in and who's out Out: Liam Fox Liam Fox sacked as international trade secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: Greg Clarke Greg Clarke sacked as business secretary PA Boris Johnson's cabinet: Who's in and who's out Out: David Mundell David Mundell sacked as Scottish secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: Damien Hinds Damien Hinds sacked as education secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: David Gauke David Gauke resigned as justice secretary EPA Boris Johnson's cabinet: Who's in and who's out Out: Rory Stewart Rory Stewart resigned as international development secretary Getty Boris Johnson's cabinet: Who's in and who's out Out: David Lidlington David Lidlington resigned as deputy Prime Minister PA Boris Johnson's cabinet: Who's in and who's out Out: Philip Hammond Philip Hammond resigned as Chancellor of the Exchequer AFP/Getty

Asked if the government would have to impose direct rule, he told BBC Radio 4’s Today programme: “We’ll make sure that arrangements are in place so that there’s no vacuum, so there’s the efficient conduct of government, but the number one priority is to see the parties in Northern Ireland revive the executive and the assembly so they can take responsibility and control.

“We’ll make sure – and there will of course need to be legislation considered across the no-deal scenario – that all the arrangements, whether they’re regulatory or administrative, are in place so that we don’t have a vacuum.”

Asked if legislation would be needed to enforce direct rule, he said: “The question will be the extent to which it can be done, and that’s something I know Julian Smith [the Northern Ireland secretary] will be looking at very carefully, along with Michael Gove [the Cabinet Office minister].“

Imposing direct rule would effectively suspend the Good Friday Agreement, which is based heavily on the idea of devolved government, and would infuriate the nationalist parties in Northern Ireland.

Mr Raab’s comments come as a new report by a respected think tank said direct rule should be introduced ”with immediate effect” from 31 October if there is a no-deal Brexit.

The Institute for Government said: “This will be extremely contentious, but without it Northern Ireland will be left even more exposed to the economic shocks of a no-deal Brexit than it is currently. That would itself raise the risk of political backlash.”

The report added: “Introducing direct rule could have immediate and long-lasting political repercussions. It would see the UK government rolling back devolution – and a key part of the Good Friday Agreement – as part of its decision to leave the EU without a deal. Nonetheless, a responsible government would have a bill providing for direct rule in the event of a no-deal exit on the statute book before 31 October.”

The think tank said a no-deal Brexit would see the union “come under unprecedented pressure”, with Northern Ireland facing “significant and lasting disruption to its economy” and the “potential for that to translate into increased political tension”. No deal would increase pressure for a second referendum on Scottish independence, and have a damaging impact on farming and manufacturing industries in Wales, the report added.

Downing Street confirmed on Monday that Mr Johnson is yet to speak to Leo Varadkar, the Irish premier and a key figure in the Brexit process.

Last week, Mr Varadkar questioned whether the UK government was “impartial” in Northern Irish politics, as it is supposed to be, because of the Conservatives’ electoral pact with the DUP.