Brazil’s Supreme Court Justice Alexandre de Moraes has ordered the social media platform X to be blocked nationwide after the company refused to appoint a legal representative in the country.

Earlier on Wednesday, de Moraes gave X, owned by Elon Musk, a 24-hour deadline to designate a representative. X shut down its Brazil office on August 17, claiming that there were threats to detain its former legal representative.

X had been in conflict with de Moraes for months over the platform’s refusal to comply with court orders to remove profiles that promote coup-related content or undermine democracy.