The execution of a man in Texas accused of killing a police officer went ahead Wednesday night over the concerns of the State Department. 

The State Department had called for months to delay the execution of Mexican national Edgar Tamayo because he was not offered access to his consulate after his arrest in 1994, a privilege under an international agreement. 

The execution came Wednesday night, after the Supreme Court denied a last-minute appeal. 

Secretary of State John KerryJohn Forbes Kerry2020 Dems compete for top campaign operatives Kentucky candidate takes heat for tweeting he'd like to use congressman for target practice Breitbart editor: Biden's son inked deal with Chinese government days after vice president’s trip MORE had sent a letter to Texas Gov. Rick Perry (R) in September voicing his concerns, and officials from the State and Justice departments had met with the Texas attorney general’s office about the case this month. 

"It doesn't matter where you're from," Perry spokeswoman Lucy Nash told The Associated Press. "If you commit a despicable crime like this in Texas, you are subject to our state laws, including a fair trial by jury and the ultimate penalty."

The State Department had argued Tamayo’s execution without a review could undercut the United States’ efforts to protect U.S. citizens in foreign countries. 

“And we need to not, in any way, have that message undercut by not allowing the same thing of other countries’ nationals when they’re here in the United States,” State Department spokeswoman Marie Harf said earlier this week. 

The department had asked for a review to see whether denying Tamayo access to his consular, which is allowed under the Vienna Convention, tainted the outcome of the case. 

"We’ve made our position very clear that this is an issue that could impact the consular access we get to American citizens overseas who are arrested,” Harf added.