In an abrupt reversal, the social network’s lawyers said it was complying with court orders that it had previously defied. Brazil’s Supreme Court could allow the site to return next week.

Elon Musk suddenly gave up.

After defying court orders in Brazil for three weeks, Mr. Musk’s social network, X, has capitulated. In a court filing on Friday night, the company’s lawyers said that X had complied with orders from Brazil’s Supreme Court in the hopes that the court would lift a block on its site.

The decision was a surprise move by Mr. Musk, who owns and controls X, after he said he had refused to obey what he called illegal orders to censor voices on his social network. Mr. Musk had dismissed local employees and refused to pay fines. The court responded by blocking X across Brazil last month.

Now, X’s lawyers said the company had done exactly what Mr. Musk vowed not to: take down accounts that a Brazilian justice ordered removed because the judge said they threatened Brazil’s democracy. X also complied with the justice’s other demands, including paying fines and naming a new formal representative in the country, the lawyers said.

Brazil’s Supreme Court confirmed X’s moves in a filing on Saturday, but said the company had not filed the proper paperwork. It gave X five days to send further documentation.

The abrupt about-face from Mr. Musk in Brazil appeared to be a defeat for the outspoken businessman and his self-designed image as a warrior for free speech. Mr. Musk and his company had loudly and harshly criticized Brazil’s Supreme Court for months, even publicly releasing some of its sealed orders, but neither had publicly mentioned their reversal by Saturday morning.

The moment showed how, in the yearslong power struggle between tech giants and nation-states, governments have been able to keep the upper hand.

We are having trouble retrieving the article content.

Please enable JavaScript in your browser settings.


Thank you for your patience while we verify access. If you are in Reader mode please exit and log into your Times account, or subscribe for all of The Times.


Thank you for your patience while we verify access.

Already a subscriber? Log in.

Want all of The Times? Subscribe.