NEW YORK — Turkish President Recep Tayyip Erdogan said Tuesday that the New York trial of a Turkish banker is a U.S. conspiracy being staged to “blackmail” and “blemish” his country.

His comments in Ankara, Turkey, came as the trial of Halkbank executive Mehmet Hakan Atilla continued in its second week, with Turkish-Iranian gold trader Reza Zarrab describing criminal activities he was forced to divulge after he pleaded guilty to seven charges in October and became a government cooperator.

Zarrab’s testimony likely will win him leniency against charges that otherwise could carry a prison term of up to 130 years.

Erdogan said the trial was a ploy to distract Turkey while Washington hatches plans to strengthen Syrian Kurdish groups Turkey considers to be “terrorists.”

“Turkey has no plans against the United States, but it is clear that the U.S. has plans against us,” Erdogan said.

Acting U.S. Attorney Joon H. Kim has called claims the prosecution is driven by Turkish politics “ridiculous on their face.”

“Frankly, it displays a fundamental misunderstanding of how our justice system works,” he said. “The defendants are charged with serious crimes. … That’s why the case is being brought, and that’s the only reason. Beyond that, I’ll let the evidence speak for itself.”

Atilla’s defense team has said he is “not corrupt.”

U.S. authorities arrested Zarrab in March 2016 when he entered the United States with his wife, his daughter and four other people for a trip to Disney World. Zarrab was charged in a conspiracy to help Iran ignore U.S. economic sanctions and flood financial institutions with a billion dollars of oil revenue.

In Zarrab’s fifth day on the witness stand, he was subjected to cross-examination from attorney Cathy Fleming, who elicited confessions from Zarrab about his proclivity to use bribes to get what he wants, even after he was jailed in the United States.

Zarrab testified that he never paid Atilla a bribe and that Atilla never asked him for money.

In a plea agreement entered as evidence in the trial, Zarrab admitted conspiring to bribe a guard at the Metropolitan Correctional Center to smuggle him alcohol and cellphones, which he used to call his relatives and a Turkish lawyer.

He said he paid the guard $45,000 to provide those items, along with some cold medicine that wasn’t sold at the commissary. And he admitted smoking synthetic marijuana in the lockup, which is next to Manhattan’s federal courthouses.

According to the plea agreement, Zarrab also paid bribes to foreign officials and corporate representatives between 2002 and March 2016 in return for personal benefits, favorable business dealings and the protection of government officials. He admitted that he understated his revenues on tax returns in Turkey from 2002 to 2016 and procured prostitutes for other people in 2013.

Zarrab estimated that he made from $100 million to $150 million between 2010 and 2016 by carrying out various illegal schemes, including helping Iran dodge U.S. sanctions with hundreds of millions of dollars.

As part of the plea deal, he has agreed to give up any illicit profits. He testified that he might be permitted to be released on bail once the trial is finished.

Turkish authorities have detained 17 people linked to Zarrab in an investigation launched after he cooperated with U.S. authorities.