After more than a year of rising tensions over the country’s sweeping 2021 IT law, Twitter is suing India’s government. The New York Times reports the company filed a complaint on Tuesday with the Karnataka High Court in Bangalore to challenge a recent order to censor content within the country. According to Twitter, it had until Monday to block about a dozen accounts and posts or face possible criminal action. While the company complied with the order, it’s now also seeking legal relief.

Twitter declined to comment. The challenge comes after the company reportedly told the Indian government last summer it was compliant with the country’s IT rules. As part of the law, Twitter was required to hire a domestic compliance officer and a point of contact for local authorities.

Before that point, Twitter’s relationship with India had been strained for much of 2021. In February, the government threatened to jail Twitter employees unless the company removed content related to the farmer protests held that year. Two months later, India ordered Twitter to pull tweets that criticized the country’s response to the COVID-19 pandemic.

More recently, the government ordered Twitter to block tweets from Freedom House, a nonprofit organization that said India was an example of a country where freedom of the press is on the decline. “Freedom House is concerned that the Indian government ordered Twitter to restrict our tweets last year,” the group said. “We think that both governments and tech companies should uphold free expression, privacy and other fundamental freedoms.”

All products recommended by Engadget are selected by our editorial team, independent of our parent company. Some of our stories include affiliate links. If you buy something through one of these links, we may earn an affiliate commission.