(CNN) -- Mexico on Tuesday filed a brief in federal court in Arizona supporting a lawsuit challenging the constitutionality of a tough new immigration law, Mexico's foreign ministry said.
The lawsuit seeks to overturn SB 1070, a recently passed law due to go into effect late next month, which stipulates that police can ask the residency status of people being investigated for a crime.
"The government of Mexico has requested the court that SB 1070 be declared unconstitutional and that it does not enter into force," the foreign ministry said in a written statement.
The Mexican government gave its support to the lawsuit filed by a group of civil rights organizations, including the Mexican American Legal Defense Fund, the National Immigration Law Center and the American Civil Liberties Union.
In its brief, Mexico "underscored that it is fundamental and imperative that the human and civil rights of its citizens are duly respected while present in Arizona or in any other state of the United States," the foreign ministry said.
In filing the brief, Mexico said it was upholding its duty to protect its nationals in the United States and ensure that they are not discriminated against based on their ethnicity.
The case is Friendly House, et al v. Michael B. Whiting, et al.