Ronaldinho has been released from a high-security jail in Paraguay and placed under house arrest while he is investigated over a fake passport.
The former Barcelona star, who won the World Cup with Brazil in 2002, has been ordered to serve house arrest at the luxury Palmaroga hotel in Asuncion after more than a month behind bars.
Ronaldinho and his brother Roberto de Assis have also been told to pay bail of around £650,000 each.
He told local authorities in a hearing that the document was a gift from a Brazilian businessman, Wilmondes Sousa Liria, who was also jailed.
Ronaldinho, 40, had his Brazilian passport seized at home due to an investigation into alleged environmental crimes, but the document was returned to him in September.
One month later he played in a friendly in Israel.
If convicted, Ronaldinho could spend up to five years in jail. Fourteen people are being investigated in the case.
Ronaldinho traveled to Paraguay to promote his autobiography. He was jailed in an improvised penitentiary in the south of Asuncion, which is used for 150 dangerous criminals, including convicts of drug dealing, corruption and rape.
During his stay he played football with inmates and took pictures with them that were shared on social media.
Ronaldinho was recently voted the second-best Barcelona player of all time, behind Diego Maradona, in a poll of the club’s fans.
The versatile star, who could play across the forward line or as an attacking midfielder, played for Barca from 2003 to 2008, when he joined AC Milan.