Twitter has mounted a legal challenge in India against government orders to take down content.
The social media giant has filed a petition with the high court in Karnataka state resisting "several" such orders, sources told the BBC.
Twitter was reacting to a letter from the government in June warning of "serious consequences" of non-compliance of such orders.
Twitter has more than 24 million users in India, by one estimate.
Hours after the petition was filed, federal minister Rajeev Chandrasekhar tweeted that all foreign Internet platforms had to comply with Indian laws.
Sources familiar with the matter said the government had warned Twitter in June, saying it was the company's "last opportunity" to comply with a number of blocking orders.
They fall under India's information technology law which allows the government to block online content that "threatens the security of the state" and public order among other things.
They said Twitter had chosen to go to court due to the "seriousness of the threats" as failure to comply with the law could lead to criminal proceedings.
The social media giant believes that the orders are "procedurally and substantially deficient" of the requirements of the law and many of them "demonstrate excessive use of power and are disproportionate," sources said.
Comments