Manhattan federal prosecutors urged a jury to convict four men accused of corrupting Gov. Andrew Cuomo’s “Buffalo Billion” program, saying they knew what they were doing was wrong when they rigged bids for taxpayer-funded construction contracts.

“Try as they might, these men…they could not hide what they did,” prosecutor Matthew Podolsky said in closing arguments Monday. “They lied, and deceived and committed fraud so that millions of dollars found their way into their pockets.”

Podolsky made the comments during marathon closing arguments in the case, which centers on alleged fraud in Cuomo’s program to revitalize upstate New York.

The trial, which kicked off on June 18, has dragged Cuomo’s name into yet another corruption case, but this time during an election season. Earlier this year, his former aide Joe Percoco was convicted of bribery.

The feds say Cuomo tapped Alain Kaloyeros, the ex-head of SUNY Polytechnic Institute, to dole out state funds for development projects in Syracuse and Buffalo because the nano-scientist had proven successful at getting tech companies to invest in Albany. But rather than choosing the best companies for the best price, Kaloyeros allegedly steered the contracts to LPCiminelli and Cor Development to curry favor with the governor, who had influence over his job prospects, the feds have said.

Executives of those companies — Louis Ciminelli of LPCiminelli and Joe Gerardi and Stephen Aiello of Cor Development — are also on trial.

The men have claimed that they are innocent and were duped by corrupt lobbyist Todd Howe, a former Cuomo associate who has pleaded guilty in this case as well as to the bribery scheme with Percoco.

But Podolsky sought to undermine the defense’s arguments that Howe is to blame, saying that the men worked with Howe to rig bids because they were after either money or power.

“If Todd Howe was up to no good, he was up to no good with the men sitting behind me,” Podolsky said in closing arguments.

“Todd Howe is a criminal and a fraudster, but don’t let the defendants distract you. He is the criminal and fraudster that these defendants picked and these defendants used,” Podolsky said.

Podolsky said the developers rigged bids for money, and Kaloyeros, 62, did it to keep his “rock star” status with the Cuomo administration.

“He wanted to be his own boss and to run his own university. He wanted to be a big deal,” Podolsky said.

“Our view flat-out is that it was a fair and competitive process,” Kaloyeros’ lawyer, Michael Miller, said in his closing remarks.

“Why would Alain Kaloyeros turn his back on everything he built for 20 years to rig bids…for two contractors he just met?” Miller said.