A judge at the highest court in Scotland has found Boris Johnson's planned prorogation of parliament lawful.
Legal action aimed at preventing the UK government suspending parliament ahead of the Brexit deadline of 31 October was considered at the Court of Session in Edinburgh.
Lord Doherty revealed his decision that the prorogation was lawful this morning.
It followed claims Mr Johnson wants to limit MPs' scrutiny and their attempts to stop a no-deal Brexit.
Announcing his decision, Lord Doherty said the decision on proroguing parliament was for politicians, and not for the courts.
He said: "In my view, the advice given in relation to the prorogation decision is a matter involving high policy and political judgement.
"This is political territory and decision-making, which cannot be measured by legal standards, but only by political judgements. Accountability for the advice is to parliament and, ultimately, the electorate, and not to the courts."
Lord Doherty added: "I do not accept the submission that the prorogation contravenes the rule of law and the claim is justiciable because of that.
"In my opinion, there has been no contravention of the rule of law.
"The power to prorogue is a prerogative power and the Prime Minister had the vires to advise the sovereign as to its exercise."
Labour Edinburgh South MP Ian Murray, who was one of the petitioners in the case, insisted afterwards: "The fight against Boris Johnson's assault on democracy and his plan to crash the UK out of the EU goes on.
"There will be an appeal on this ruling and there is another court case taking place in England.
"But the main battle is currently in parliament, where the prime minister has lost his majority and does not have the support of the house for his dangerous plan to impose a no-deal Brexit on the country.
"We have wrested control of parliamentary business and will attempt to pass a law that makes a no-deal Brexit illegal.
"We will also fight to secure a final say for the people of the UK on Brexit and we must campaign to remain in the EU."