Ex-Nissan boss Carlos Ghosn leaves Tokyo detention centre after paying bail
Ghosn walked solemnly out of the Tokyo Detention House with one of his lawyers by his side.
They got into a dark van without speaking and drove off, watched by dozens of journalists who had been waiting for his release for hours.
Prosecutors had fought to keep him in custody, contending he could tamper with evidence or influence witnesses.
But the Tokyo District Court decided in the evening he should be released.
In a new twist, the court also decided to restrict Ghosn's contact with his wife, Carole Ghosn, targeting her as someone related to the latest allegations, according to his legal team.
Ghosn was arrested in November, released on bail in early March, but re-arrested and detained again April 4 on new allegations.
The latest bail comes on top of the one billion yen Ghosn posted for his earlier release.
He has been charged with under-reporting his post-retirement compensation and breach of trust in diverting Nissan money and allegedly having it shoulder his personal investment losses.
Ghosn, 65, a Brazilian-born Frenchman of Lebanese ancestry, says he is innocent.
He contends the compensation he allegedly under-reported was never decided on or paid and the payments were for legitimate services.
For the earlier release, his defence team offered special conditions such installing a surveillance camera at the entrance to a specified residence for the former star executive and promising to use a cellphone and the internet only under specified conditions.
The latest release requires similar restrictions, including not leaving the country, according to the court.
"I am so relieved. I had been worried," Ghosn's lawyer Junichiro Hironaka told reporters about the court decision.
Mr Hironaka said the bail conditions require advance notice of contacts between Ghosn and Carole Ghosn.
She is mentioned in the latest allegations that centre around payments by an Oman business to operations allegedly run by Ghosn, which reportedly have some links to his wife's business.
She was called in for questioning earlier this month.
Carole Ghosn has said both her husband and she are innocent.
She has been a vocal proponent, appealing to public opinion and human rights groups about Ghosn's treatment.
Mr Hironaka said he had expected the restrictions because bail conditions generally prohibit contact with people linked to the case.
He said the legal team will work to moderate the restrictions.
Another of his lawyers, Takashi Takano, has denied Japanese media reports that Carole Ghosn had contacted people related to the allegations and stressed Ghosn's entire family has been abiding by the terms of his bail agreement.
"If they had done such a thing, the release on bail would end, and they would lose bail money," he said in a recent blog post.
Japanese social media and media had been buzzing with speculation over how Ghosn would appear when he left detention.
When he was released on March 4 after more than 100 days in detention, he wore a cap, mask and what appeared to be a construction worker's outfit.
Ghosn was still easily recognisable, and the "disguise" provoked widespread amusement and commentary.
Ghosn's case has reignited criticism, both internally and internationally, against lengthy detentions without a trial or conviction in Japan, which critics call "hostage justice".
Although prolonged detentions are routine in Japan, rearresting a person who has cleared bail is unusual.
Ghosn led Nissan for two decades and was credited with steering the success of the global alliance with Renault SA of France and smaller Japanese carmaker Mitsubishi Motors Corp.
Renault owns 43% of Yokohama-based Nissan, while Nissan owns 15% of Renault.
His departure has raised concern over a potential leadership vacuum at Nissan, which he dominated until his arrest, and about the future of its alliance with Renault and Mitsubishi.
In a video statement released April 9, Ghosn said a few Nissan executives had plotted against him in "a conspiracy".
A date for Ghosn's trial has not been set. In Japan, trial preparations tend to take months.
Both sides have said that the case is complex.
The allegations against him involve payments to a Saudi dealership, as well as the funds paid to an Oman business.