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
-
Queenmother calls on President-elect Mahama to appoint more women in his government
9 minutes -
Atletico Madrid beat Barcelona to go top of La Liga
27 minutes -
Usyk breaks Fury’s heart with points win in rematch
29 minutes -
Ghana-Russia Centre to run Russian language courses in Ghana
6 hours -
The Hidden Costs of Hunger: How food insecurity undermines mental and physical health in the U.S.
7 hours -
18plus4NDC marks 3rd anniversary with victory celebration in Accra
9 hours -
CREMA workshop highlights collaborative efforts to sustain Akata Lagoon
9 hours -
2024/25 Ghana League: Heart of Lions remain top with win over Basake Holy Stars
11 hours -
Black Queens: Nora Hauptle shares cryptic WAFCON preparation message amid future uncertainty
11 hours -
Re-declaration of parliamentary results affront to our democracy – Joyce Bawah
11 hours -
GPL 2024/25: Vision FC score late to deny Young Apostles third home win
11 hours -
Enhancing community initiatives for coastal resilience: Insights from Keta Lagoon Complex Ramsar Site Workshop
11 hours -
Family Health University College earns a Presidential Charter
11 hours -
GPL 2024/25: Bibiani GoldStars beat Nsoatreman to keep title race alive
12 hours -
GPL 2024/25 Bechem United keep title hopes alive with narrow win over FC Samartex
12 hours