TikTok has sued to block the US state of Montana from banning residents from accessing its social media platform.
Monday's lawsuit comes after last week Montana became the first US state to pass a sweeping ban on the Chinese-owned video-sharing platform.
In a statement, TikTok said the ban conflicts with US free speech rights.
TikTok has come under scrutiny from authorities around the world over concerns that data could be passed to the Chinese government.
The lawsuit filed on Monday in the United States District Court for the District of Montana says it is suing to overturn the "unlawful" ban.
"We are challenging Montana's unconstitutional TikTok ban to protect our business and the hundreds of thousands of TikTok users in Montana," a spokesperson said in a statement.
"We believe our legal challenge will prevail based on an exceedingly strong set of precedents and facts."
The TikTok lawsuit argues that the ban violates the constitutional First Amendment right to free speech.
The company's complaint states that the ban was "unconstitutionally shutting down the forum for speech for all speakers on the app".
The ban is due to take effect in January 2024. It will make it illegal for app stores to offer TikTok, but does not ban people who already have TikTok from using it.
Montana, which has a population of just over one million, banned the app on government devices last December.
TikTok says it has 150m American users. Although the app's user base has expanded in recent years, it is still most popular with teenagers and users in their 20s.
However, there are concerns across the US political spectrum that TikTok could be a national security risk.
The social media platform is owned by ByteDance – a Chinese company. ByteDance has repeatedly denied it is controlled by the Chinese government.
The lawsuit also argues that Montana has overstepped its authority by concerning itself with users' data and national security – which is the purview of the federal government.
It says the ban is based on the "unfounded speculation" that China's government could access TikTok data.
Lawyers for Montana's government have previously said that they expected lawsuits, and that they are prepared to defend the ban in courts.
You may also be interested in:
This video can not be played
Watch: The fight over TikTok explained in 60 seconds
First state-wide TikTok ban in US signed into law
What could a TikTok ban mean for creators?
TikTok defends app following government phone ban
The good and bad of ADHD content on TikTok
TikTokers give their lives Wes Anderson treatment
Montana becomes first US state to pass TikTok ban
Biden and McCarthy in tentative debt ceiling deal
Counting under way in Turkish run-off election
Kyiv hit by massive Russian drone attack
Katty Kay: A growing case of transatlantic heartburn
The European capital where rent is triple the minimum wage
'No-one else should have to use rags for sanitary pads'
Why Australia decided to quit its vaping habit
Why cholera outbreaks have sparked unrest in Mozambique
The secret tunnel that saved a besieged city. Video
Friend to foe: How Imran Khan took on Pakistan's army
Cairo masterplan threatens ancient City of the Dead
Fanfare, flags and fire: Photos of the week
Why it's 'imperative' to start using AI
Jellyfish blooms: Why not just eat them?
A 5,000-year-old craft under threat
© 2023 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.