A court in Saudi Arabia has sentenced five people to death and jailed three others over the murder of the journalist Jamal Khashoggi last year.
Khashoggi, a prominent critic of the Saudi government, was killed inside the kingdom's consulate in the Turkish city of Istanbul by a team of Saudi agents.
The Saudi authorities said it was the result of a "rogue operation" and put 11 unnamed individuals on trial.
A UN expert said the trial represented "the antithesis of justice".
"Bottom line: the hit-men are guilty, sentenced to death. The masterminds not only walk free. They have barely been touched by the investigation and the trial," Special Rapporteur Agnes Callamard wrote on Twitter.
A report released by Ms Callamard concluded in June that Khashoggi's death was an "extrajudicial execution" for which the Saudi state was responsible, and that there was credible evidence warranting further investigation that high-level officials, including Crown Prince Mohammed bin Salman, were individually liable.
The prince denied any involvement, but in October he said he took "full responsibility as a leader in Saudi Arabia, especially since it was committed by individuals working for the Saudi government".
A senior aide, Saud al-Qahtani, was sacked and investigated over the killing but not charged "due to insufficient evidence", the public prosecution said. Former Deputy Intelligence Chief Ahmad Asiri was put on trial but acquitted on the same grounds.
The Turkish foreign ministry said the decision of the Saudi court "falls short of the expectations of Turkey and the international community for the clarification of all aspects of this murder and the serving of justice".
Khashoggi's fiancée, Hatice Cengiz, called the Saudi announcement "not acceptable".
The publisher of the Washington Post, for whom Khashoggi wrote columns, said: "The complete lack of transparency and the Saudi government's refusal to co-operate with independent investigators suggests that this was merely a sham trial."
But Khashoggi's son Salah, who lives in Saudi Arabia, tweeted: "We affirm our confidence in the Saudi judiciary at all levels, that it has been fair to us and that justice has been achieved."
The shadow cast by the grisly murder of Jamal Khashoggi has hung over Saudi Arabia's international reputation for more than a year now. The ruling princes, especially the all-powerful Crown Prince Mohammed bin Salman, will be hoping Monday's verdicts draw a line under the whole affair. That may be wishful thinking.
The two most senior suspects - dubbed "the masterminds" - have walked free after a trial shrouded in secrecy. The reaction from the UK's foreign secretary has been a carefully-worded call for everyone to be held to account.
Agnes Callamard, the UN special rapporteur who investigated the murder, has been rather more explicit. The trial, she said, was "the antithesis of justice", and "a mockery".
And yet Saudi Arabia, with its vast oil wealth and allies in the White House, will doubtless be expecting that any outrage will soon give way to business as usual.
How did Jamal Khashoggi die?
The 59-year-old journalist, who went into self-imposed exile in the US in 2017, was last seen entering the Saudi consulate on 2 October 2018 to obtain papers he needed to marry Ms Cengiz.
After listening to purported audio recordings of conversations inside the consulate made by Turkish intelligence, Ms Callamard concluded that Khashoggi was "brutally slain" that day.
Saudi Arabia's deputy public prosecutor Shalaan Shalaan told reporters in November 2018 that the murder was ordered by the head of a "negotiations team" sent to Istanbul by the Saudi deputy intelligence chief to bring Khashoggi back to the kingdom "by means of persuasion" or, if that failed, "by force".
Investigators concluded that Khashoggi was forcibly restrained after a struggle and injected with a large amount of a drug, resulting in an overdose that led to his death, Mr Shalaan said. His body was then dismembered and handed over to a local "collaborator" outside the consulate, he added. The remains were not found.
At a news conference in Riyadh on Monday, Mr Shaalan said the public prosecution's investigations had shown that "there was no premeditation to kill at the beginning of the mission".
"The investigation showed that the killing was not premeditated... The killing was in the spur of the moment, when the head of the negotiating team inspected the premises of the consulate and realised that it was impossible to move the victim to a safe place to resume negotiations.
"The head of the negotiating team and the perpetrators then discussed and agreed to kill the victim inside the consulate," he added.
Ms Callamard dismissed as "utterly ridiculous" the assertion that the killing was not premeditated, noting that in one of the purported audio recordings from the consulate two Saudi officials were heard discussing how to cut up and transport Khashoggi's body before he entered the consulate.
"I do not believe for one moment that the dismemberment of a body can be done in the spur of a moment," she told the BBC. "I do not believe for one second that the presence of a forensic doctor was an accident. And I certainly do not believe for a moment that the same doctor speaking of dismemberment, two hours before the killing and dismemberment actually happened, was accidental."
Who was put on trial?
A statement by the Saudi public prosecution said a total of 31 individuals were investigated over the killing and that 21 of them were arrested. Eleven were eventually referred to trial at the Riyadh Criminal Court and the public prosecutor sought the death penalty for five of them.
Human Rights Watch said the trial, which took place behind closed doors, did not meet international standards and that the Saudi authorities had "obstructed meaningful accountability".
On Monday, the Riyadh Criminal Court sentenced five individuals to death for "committing and directly participating in the murder of the victim", according to the public prosecution's statement.
Three others were handed prison sentences totalling 24 years for "covering up this crime and violating the law", while the remaining three were found not guilty.
The public prosecution said it would decide whether to review the court's rulings and decide whether to appeal. The death sentences must be upheld by the Court of Appeal and the Supreme Court.
Ms Callamard said in June that the five people facing the death penalty were Fahad Shabib Albalawi; Turki Muserref Alshehri; Waleed Abdullah Alshehri; Maher Abdulaziz Mutreb, an intelligence officer who the US said worked for Mr Qahtani; and Dr Salah Mohammed Tubaigy, a forensic doctor with the interior ministry.
The other six defendants were Mr Asiri, Mansour Othman Abahussain; Mohammed Saad Alzahrani; Mustafa Mohammed Almadani; Saif Saad Alqahtani; Muflih Shaya Almuslih, reportedly a member of the consulate staff.
According to interviews conducted by Ms Callamard, the defendants' lawyers argued in court that they were state employees and could not object to the orders of their superiors, and that Mr Asiri insisted that he never authorised the use of force to bring Khashoggi back to Saudi Arabia.