UK prime minister Boris Johnson was shouted at by man who told him to "get back to Parliament" and sort out "the mess you created."

The exchange came during the prime minister's speech in the north of England on Friday.

It followed Scotlnad's highest court ruling that Johnson's move to shut down parliament was unlawful.

Johnson was also confronted by a woman about the effects of his government's spending cuts.

Visit Business Insider's homepage for more stories.

Boris Johnson's latest campaign speech was interrupted on Friday by a man shouting at him to go back to parliament and sort out "the mess you created."

The prime minister was speaking at an event in Rotheram, in the north of England, when a man in the audience shouted: "Why are you not with them in parliament sorting out the mess you created?"

He added: "Get back to parliament Boris."

Johnson replied: "I'm very happy to get back to parliament soon." The man was then escorted out by security.

Watch Boris Johnson heckled during speech

—Sky News Politics (@SkyNewsPolitics) September 13, 2019

The exchange came after judges in Scotland's highest court ruled this week that Johnson's decision to close parliament for five weeks was unlawful.

Read more: Boris Johnson could soon be forced to resign as prime minister and make way for Jeremy Corbyn

Read more: 'Please leave my town': Boris Johnson is berated by members of the public as his election campaign launch goes wrong

The prime minister later denied that he had misled the Queen by advising her to suspend parliament. The issue will be ruled on by the Supreme Court next week.

Earlier on Friday Johnson was challenged by a woman during a walkabout in Doncaster, Yorkshire.

The woman told Johnson that his spending promises were a "fantasy" and said he had a "cheek" to boast about Conservative government's record as "people have died because of austerity."

Watch Johnson confronted by woman on campaign walkabout

—Channel 4 News (@Channel4News) September 13, 2019