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
-
Ghana Energy Awards announces shortlisted nominees for the 8th edition
13 seconds -
Apathy in Ashanti Region only exists in isolated cases – Manhyia South PC
12 mins -
TECNO AI Vision unveiled at IFA Berlin 2024
19 mins -
Akosombo Dam spillage reveals systematic failures in disaster readiness – Research
33 mins -
Akwasi Agyeman outlines benefits of NPP’s Travel Protocol Service
34 mins -
CICMG urges government to introduce LI to regulate credit market
40 mins -
NDC won’t have a sweet victory without Hohoe seat – Ablakwa
42 mins -
No Ghanaian should drink contaminated water – Engineer
45 mins -
Ghana’s biggest lender is not who you think
51 mins -
Calls for ban on small-scale mining unfair – Small-Scale Miners Association
54 mins -
Akufo-Addo’s anti-galamsey committee won’t succeed – GNAT
57 mins -
Don’t ban small-scale mining – Association to government
59 mins -
OmniBSIC Bank and GIZ Ghana host successful financial literacy trainings for SMEs
1 hour -
WAPCEH Ghana Chapter gets 8 new executives
1 hour -
Youth-NREG urges government to take decisive action against galamsey
1 hour