Saudi Arabia has ended an anti-corruption drive launched in November 2017 that saw senior princes, ministers and prominent businessmen rounded up.
The Royal Court said a committee led by Crown Prince Mohammed bin Salman had recovered $107bn (£81bn) in settlements including property, companies and cash.
A total of 381 individuals were summoned by the commission.
Eighty-seven agreed to settle, eight refuse and 56 were denied settlements because of already existing charges.
The Royal Court did not identify them, but those reported to have been released include the billionaire investor Prince Alwaleed bin Talal and Prince Miteb bin Abdullah, a son of the late King Abdullah.
Many of the detainees were initially held at the Ritz-Carlton hotel in Riyadh.
The purge of the kingdom’s elite was a huge shock to the system, BBC Arab affairs analyst Sebastian Usher says. It also unsettled some foreign investors.
Our correspondent adds that the Saudi government must now hope that drawing a line under the purge will convince investors it is safe to put money into the kingdom. According to the UN, foreign investments totalled $3.5bn last year, double what it was in 2017 but down from $12bn in 2012.
Prince Mohammed has rejected as “ludicrous” suggestions that the anti-corruption campaign was a power grab. He said many of those detained had pledged allegiance to him when he was named first in line to the throne in June 2017.
The crown prince’s reputation has also been tarnished by the murder of the journalist Jamal Khashoggi, a prominent critic, – inside the Saudi consulate in Istanbul in October, as well as by Saudi Arabia’s role in the war in Yemen.