A one-time upstate political power broker pleaded guilty Tuesday to steering an illegal $25,000 campaign contribution from a foreign national to Gov. Andrew Cuomo’s 2014 re-election campaign.

Former Erie County Democratic Party chairman Steve Pigeon fessed up to the crime in federal court just two weeks after pleading guilty in state court to bribing a judge in a separate case.

Under the plea deal, he could face up to 16 months in prison. His sentencing date is set for Jan. 25.

The $25,000 contribution was made during Cuomo’s 2014 re-election effort on behalf of a Canadian founder of Amaya, an online gambling business.

Under federal law, foreign nationals are prohibited from making donations to political campaigns in the United States.

The Justice Department noted that the Cuomo campaign rejected the donation when it realized it came from a Canadian.

But Pigeon then tried to mask the donation by funneling it through another employee of the company who was a legal US resident, federal prosecutors said.

“Steven Pigeon undermined the transparency and integrity of the electoral process by funneling foreign money into a campaign,” said Brian Benczkowski, the assistant US attorney for the Western District of New York.

Republican gubernatorial candidate Marc Molinaro pounced on the latest Cuomo associate to be convicted in what he called a “foreign money laundering scheme.”

“Andrew Cuomo spends his days pointing fingers at others while his own backyard is despicably dirty,” Molinaro said.

“His unquenchable lust for campaign dollars has landed ‘friend’ after ‘friend’ in federal prison while he skates free to point fingers yet again. Well the finger is now pointed directly at this governor, and he needs to answer questions about the clear laundering of $25,000 in illegal foreign money to his campaign.”

A federal judge last month sentenced Joe Percoco, a former top aide and confidante to Cuomo, to six years in prison for bribery.

Also convicted this year was Alain Kaloyeros, the man Cuomo tapped to help run his “Buffalo Billion” economic development program.

“As the facts demonstrate, our campaign was defrauded by Mr. Pigeon’s illegal actions,” Cuomo campaign spokeswoman Abbey Collins said in a statement. “The contribution in question will be immediately donated, and we trust the court will handle Mr. Pigeon accordingly.”

Pigeon had strong ties to top Democratic officials, including Sen. Chuck Schumer and Bill and Hillary Clinton, as well as Cuomo.

But he also worked with Republicans and third-party candidates.