PHOENIX (AP) -- Newly released emails reveal conversations between the main players who wrote Arizona's landmark law cracking down on immigration, including discussions about doing the bidding of Sheriff Joe Arpaio and language that critics say played on immigration stereotypes.
The emails emerged in a court case in which civil rights groups are seeking to have the remaining parts of the law thrown out on the grounds that it is discriminatory.
They alleged the law known as SB1070 was motivated by a desire to discriminate against Latinos and Mexicans.
Lawyers challenging the law say it was aimed at protecting the contentious immigration crackdowns carried out by Arpaio. They cite emails involving the architect of the bill, Kris Kobach, then an adviser to the sheriff, and the bill's legislative sponsor, then-Sen. Russell Pearce.
An email unearthed in the challenge shows Kobach told Pearce in November 2009 that he was working to help defend Arpaio's office against the American Civil Liberties Union and the U.S. Justice Department. "To that end, there is one more sentence that needs to be added to the bill," Kobach wrote.
Kobach then advocated for a provision that would let police arrest people without warrants in cases where the arrested person has committed an offense that makes them eligible to be deported from the United States.
The attorneys challenging the law also said Kobach repeatedly suggested a provision that would let police officers legally stop drivers if they have reasonable suspicion to believe the drivers are in violation of civil traffic laws.
Messages left for Kobach, Pearce and Arpaio's office weren't immediately returned Friday.
"I think the legislators who were behind SB1070 wanted to use Arpaio's model around the state and mandate it around the state," said Cecillia Wang, an American Civil Liberties Union lawyer who is among the attorneys pushing the challenge.
Coalition lawyers also cited an April 2010 email from Kobach to Pearce that they said played on stereotypes of immigrants. Kobach is currently the secretary of state in Kansas.
The email in question shows Pearce and Kobach were talking about including provisions in the 2010 law that would have made it a misdemeanor to have an overcrowded vehicle and let police start inquiries of people who had cars on blocks in their yards or had too many people into a rental home. Neither provision was enacted into law.
Arpaio is known for his immigration crackdowns but walked away from the last vestiges of his immigration enforcement late last year as his actions have been repeatedly repudiated by the courts.
In 2010, Kobach served as an immigration-enforcement training adviser to Arpaio's office and helped Pearce write the 2010 law.
The courts have upheld SB1070's contentious requirement that police, while enforcing other laws, must question people's immigration status if they are suspected of being in the country illegally. But much of the law has been gutted by the courts, including a requirement that immigrants carry registration papers and a ban on immigrants soliciting work in a public place.
Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.