X closes Brazilian office after judge threatens arrests over censorship orders

X owner Elon Musk called the judge 'an utter disgrace' for the legal threats

Social media giant X is closing its offices in Brazil due to legal threats from Brazilian judge Alexandre de Moraes.

The company claimed Saturday that executives were "forced to make this decision" after de Moraes threatened arrests if the platform did not take down content deemed problematic by the Brazilian government.

"Last night, Alexandre de Moraes threatened our legal representative in Brazil with arrest if we do not comply with his censorship orders," the X Global Government Affairs office announced via the platform. "He did so in a secret order, which we share here to expose his actions."

EU REGULATOR WARNS MUSK AGAINST X AMPLIFYING 'HAMRFUL CONTENT' AHEAD OF TRUMP INTERVIEW

Tesla CEO Elon Musk

Chief Executive Officer of SpaceX and Tesla and owner of Twitter, Elon Musk attends the Viva Technology conference in Paris, France.  (Photo by Chesnot/Getty Images / Getty Images)

"Despite our numerous appeals to the Supreme Court not being heard, the Brazilian public not being informed about these orders and our Brazilian staff having no responsibility or control over whether content is blocked on our platform, Moraes has chosen to threaten our staff in Brazil rather than respect the law or due process. As a result, to protect the safety of our staff, we have made the decision to close our operation in Brazil, effective immediately."

De Moraes ordered X to take down specific accounts earlier this year, accusing the platform of harboring "digital militias" he claims were spreading misinformation and hateful material regarding former President Jair Bolsonaro.

"Due to demands by "Justice" [de Moraes] in Brazil that would require us to break (in secret) Brazilian, Argentinian, American and international law, 𝕏 has no choice but to close our local operations in Brazil," X owner Elon Musk said on social media Saturday. "He is an utter disgrace to justice."

ELON MUSK MOCKS MEDIA FOR OVERWHELMINGLY NEGATIVE COVERAGE OF TRUMP'S X EVENT: 'SO PREDICTABLE'

Musk later followed-up on that message, writing, "The decision to close the 𝕏 office in Brazil was difficult, but, if we had agreed to [de Moraes]’s (illegal) secret censorship and private information handover demands, there was no way we could explain our actions without being ashamed."

Alexandre de Moraes

Alexandre de Moraes, justice of Brazil's Supreme Federal Court, speaks during a session at the Supreme Court building in Brasilia, Brazil. (Ton Molina/Bloomberg via Getty Images / Getty Images)

X representatives previously told the Supreme Court of Brazil that it would comply with legal rulings ordering the censorship of problematic accounts. 

However, when those measures failed to materialize, X's lawyers told the court that "operational faults" made it impossible to follow through on the orders. 

CLICK HERE TO GET THE FOX NEWS APP

Despite the closure of X's offices in Brazil, Musk claims citizens will reportedly still be able to access the social media platform.