California is asking a court to block Donald Trump’s “illegal” tariffs, accusing the president of overstepping his authority and threatening trade in a state with the world’s fifth-largest economy.

The lawsuit, brought by California’s governor, Gavin Newsom, and attorney general, Rob Bonta, challenges Trump’s invocation of emergency powers to unilaterally impose tariffs on imports, which have rattled stock markets and raised fears of recession.

The complaint argues that the law does not give the US president the authority to impose tariffs without the consent of Congress. It asks the court to declare Trump’s tariff orders “unlawful and void” and to order the Department of Homeland Security and Customs and Border Protection to stop enforcing them.