X, formerly known as Twitter, has closed its office in Brazil over a censorship row.
The social media platform said a Brazilian Supreme Court judge, Alexandre de Moraes, threatened its legal representative in Brazil with arrest if it did not comply with his "censorship orders".
Brazil's Supreme Court has not commented.
People in Brazil are still able to use X, billionaire Elon Musk's platform said on Saturday.
Mr Moraes had ordered X accounts he has accused of spreading disinformation - many supporters of the former right-wing president Jair Bolsanaro - must be blocked while they are under investigation.
After X owner Musk criticised Mr Moraes, the judge ordered 100,000 reais ($19,774; £15,670) fines a day for any account that X reactivated and stressed the possible liability of the company's legal representatives in Brazil if this were to happen.
He also put Mr Musk under investigation for charges including the obstruction of justice.
X said in a statement that Brazilian staff had no responsibility or control over whether content is blocked but Mr Moraes has chosen to threaten staff in Brazil rather than respect the law.
"As a result, to protect the safety of our staff, we have made the decision to close our operation in Brazil, effective immediately," X said.
"The responsibility lies solely with Alexandre de Moraes.
"His actions are incompatible with democratic government."
Musk posted on X that there was "no question that Moraes needs to leave".
He added that the decision to close the office in Brazil was "difficult", but if the company agreed to Mr Moraes' "demands, there was no way we could explain our actions without being ashamed".
Mr Moraes is disliked by fans of the former president Mr Bolsonaro. During his presidency, he ordered investigations into some of the president’s allies.
Latest Stories
-
#TheManifestoDebate: We’ll provide potable water, expand water distribution network – NDC
5 mins -
IPR Ghana@50: Pupils educated to keep the environment clean
11 mins -
PenTrust CEO named ‘Best Pensions CEO’, company wins ‘Scheme Administrator Award’ at Ghana Accountancy & Finance Awards 2024
31 mins -
Alan Kyerematen’s ‘Brighter Future for Health Professionals’ in Ghana Revealed in Bono
41 mins -
#TheManifestoDebate: NPP will ensure a safer, cleaner and greener environment – Dr Kokofu
49 mins -
2024 Election: Police to deal with individuals who will cause trouble – IGP
50 mins -
Seychelles President’s visit rekindles historical and diplomatic ties with Ghana
56 mins -
Election 2024: EC destroys defective ballot papers for Ahafo and Volta regions
1 hour -
2024 Election: I am sad EC disqualified me, but I endorse CPP’s candidate – PNP’s Nabla
2 hours -
I want to build a modern, inclusive country anchored by systems and data – Bawumia to CSOs
2 hours -
Miss Health Ghana 2024: Kujori Esther Cachana crowned new Health Ambassador
2 hours -
Livestream: The manifesto debate on WASH and climate change
2 hours -
Alan Kyerematen saddened by NDC and NPP’s neglect of Krofrom Market in the Ashanti Region
2 hours -
CSIR Executive Director urges farmers to adopt technology for improved farming
2 hours -
Football Impact Africa’s Ghetto Love Initiative inspires change in Teshie
2 hours