Jordan's Prince Hamza pledged allegiance to King Abdullah on Tuesday after mediation by the royal family, two days after he was placed under house arrest and accused of trying to destabilise the country.
Prince Hamza signed a letter in which he placed himself at the monarch's disposal after a meeting on Monday with Prince Hassan, the king's uncle, and other princes, the royal court said.
"I place myself in the hands of his majesty the king [...] I will remain committed to the constitution of the dear Hashemite Kingdom of Jordan," Prince Hamza said in the letter released by the palace.
An earlier royal palace tweet said the king had entrusted Prince Hassan, also a former crown prince, to take charge of the matter and that Prince Hamza had agreed to family mediation over the affair.
On Saturday, the military warned Prince Hamza over actions it said were undermining "security and stability" in Jordan, and he later said he was under house arrest. Several high-profile figures were also detained.
Officials said on Sunday Prince Hamza had liaised with people who had contacts with foreign parties in a plot to destabilise Jordan, an important ally of the United States, and that he had been under investigation for some time.
The half-brother of King Abdullah and former heir to the throne said in a voice recording released by Jordan's opposition on that he would not comply after being barred from any activity and told to keep quiet.
While Prince Hamza is not seen as a direct threat to the king, his actions suggested he wanted to shore up his position with the Jordanian public after being removed from the royal succession.
"For sure I won't obey when they tell you that you cannot go out or tweet or reach out to people but are only allowed to see the family. I expect this talk is not acceptable in any way," he said in the recording circulated to friends and contacts.
The intrigue shook Jordan's image as a haven of stability in the unpredictable Middle East.
It is unclear why the kingdom decided to crack down on Prince Hamza now, but he put himself at growing risk by stepping up visits in recent weeks to tribal gatherings where the king and his government have been criticised more openly.
Public anger has also increased since nine Covid-19 patients died when oxygen ran out in a newly built state hospital, exposing negligence blamed on official mismanagement and corruption. Protests were broken up with tear gas.
The prince went to the homes of those who died to pay condolences, hoping to upstage the monarch who had earlier gone to the hospital to defuse anger, officials say. It was the first such open rift in the royal family in many years.
Public frustrations
King Abdullah removed Prince Hamza from his position as heir to the throne in 2004.
In a video passed to the BBC by Prince Hamza's lawyer on Saturday, the prince accused Jordan's leaders of corruption, apparently hoping to tap into the public's frustrations.
Prince Hamza is not seen as a threat to the monarchy, which enjoys the support of the army and security services, but has gained sympathy among Jordanians sceptical of the government's accusations about his foreign links, saying it was a campaign to defame him.
"This is character assassination without evidence," said Ali R. Al Tarawneh in a tweet.
A supporter identified only as Razan said on Twitter there was "no good in a country that imprisons its prince".
Others felt he was driven only by revenge at being sidelined and wanted to win popularity in tribal gatherings by emulating, in tone and language, his late father, who is revered by many Jordanians.
Prince Hamza is the oldest son of the late King Hussein and his wife Noor, who had groomed him as a future monarch. He has served in the Jordanian armed forces.
He angered the royal palace by trying to endear himself to a poor tribal constituency that has felt the impact of a shrinking economy and the state's inability to keep creating jobs that have long absorbed tribesmen in rural and Bedouin areas.
Officials said between 14 and 16 people had been arrested in connection with the alleged plot.
The state news agency said those arrested included Bassem Awadallah, a US-educated confidant of the king who became minister of finance and adviser to Saudi Crown Prince Mohammed bin Salman, and royal family member Sharif Hassan Ben Zaid.
Jordan's neighbours and allies have expressed solidarity with King Abdullah over the security measures in the kingdom.