Queen Elizabeth II sought advice on how she could sack UK Prime Minister Boris Johnson after he unlawfully shut down Parliament for five weeks, according to a new report.

The monarch reportedly sought advice on the circumstances and process by which she could get rid of Johnson after he asked her permission to shut down the House of Commons in September, according to a report published Sunday in Britain’s i newspaper.

It was the first time in her 67-year reign that the Queen had asked for clarification on how to dismiss a British prime minister, the report claimed.

Last week, the British Supreme Court unanimously ruled that Johnson acted unlawfully when he suspended Parliament — a move meant to give lawmakers no time to delay Brexit ahead of the Oct. 31 deadline.

Johnson has promised to ram through a no-deal Brexit, which would see the UK withdraw from the European Union without a transition arrangement.

But a new law passed in September known as the Benn Act — passed after Johnson replaced Theresa May as prime minister in July — will force Johnson to ask for a three-month extension if an EU deal has not been reached by Oct. 19.

Retired Conservative MP Dominic Grieve told Sky News on Monday that Johnson would be “dismissed” by the Queen if he fails to adhere to the Benn Act.

“He’ll be out in five minutes. He’ll be dismissed,” Grieve said in an interview.

“Dismissed by the Queen?” asked Sky News anchor Adam Boulton.

“Yes. It’s a rather hypothetical position,” Grieve said. “If he intends to continue behaving in this completely ludicrous fashion, yes, perhaps.”

Johnson’s critics have repeatedly called on him to resign in the wake of the Supreme Court ruling, with opposition leader Jeremy Corbyn promising to do everything possible to stop a no-deal Brexit.