A court has been asked to dismiss a legal challenge to the election of former Scottish Secretary Alistair Carmichael.
Four of the Liberal Democrat MP's Orkney and Shetland constituents have raised a case at the Court of Session in Edinburgh, claiming he misled voters during the general election campaign over the leaking of a memo about First Minister Nicola Sturgeon's meeting with a French ambassador.
As the full hearing got under way today, Mr Carmichael's lawyer told the court the petition lodged in a bid to oust him should be dismissed as it is "irrelevant" and "bound to fail".
Mr Carmichael, Scotland's only Liberal Democrat MP, was not present in court for the first day of the hearing.
The hearing, at a specially-convened Election Court, began with judge Lady Paton saying it would focus on legal debate surrounding Section 106 of the Representation of the People Act 1983.
It makes it a criminal offence to release a "false statement" about the character and conduct of an election candidate.
Lady Paton said the only people entitled to address the court were the lawyers for both sides and stressed that anybody who interrupted proceedings would have to leave the court.
Opening the legal debate, Roddy Dunlop QC, representing Mr Carmichael, asked the court to "dismiss the petition as irrelevant" and added that it is "bound to fail" in law.
The former Scottish secretary came under pressure to quit as an MP after admitting responsibility for a leaked memo written by a civil servant which wrongly suggested Ms Sturgeon wanted David Cameron to win the general election.
Cabinet Secretary Sir Jeremy Heywood ordered an inquiry after the memo, which claimed Ms Sturgeon told French ambassador Sylvie Bermann that she would prefer to see the Conservatives remain in power, became public.
Following the investigation, Mr Carmichael, who had previously insisted he was unaware of the memo, admitted he had allowed his special adviser Euan Roddin to release details of the document which appeared in the Daily Telegraph on April 3.
Mr Dunlop today said it was accepted that Mr Carmichael's claim in a Channel 4 interview that he had no prior knowledge of the leak was "not correct".
The QC also called for a strict interpretation of the Representation of the People Act on the grounds of the "extreme results" that would flow from being found in breach. These include disqualification from standing for election and not being allowed to vote for three years, the court heard.
The legal challenge - funded via a crowd-funding appeal - is being broadcast live in what is believed to be a television first for a court hearing in Scotland.
The Election Court could sit for two days to hear the case, which is thought to be the first election petition brought in Scotland since 1965.
It is being heard by two judges, Lady Paton and Lord Matthews.