William Rapfogel, the once powerful head of the Metropolitan Council on Jewish Poverty, was sentenced on Wednesday to 3-1/3 to 10 years in prison for his role in a 20-year scheme to siphon millions of dollars from the charity he controlled.

The sentencing was announced by state Attorney General Eric Schneiderman and Comptroller Tom DiNapoli.

“This sentence sends the message that there has to be one set of rules for everyone, no matter how rich or powerful, and that those who rip off the neediest New Yorkers will be prosecuted,” said Schneiderman in a statement. “New York has the greatest nonprofit sector in the country, and this case reminds us that we must vigilantly protect it. I am committed to using every tool at my disposal to prevent people from abusing the public trust and cheating charities out of the funds they need to perform vital services.”

Rapfogel, a longtime political power broker with ties to Assembly Speaker Sheldon Silver, pleaded guilty to his role a in complex kickback scheme in which he stole $3 million.

Rapfogel is the husband of Judy Rapfogel, an aide to Silver.

“The fraud that occurred over two decades by the people at the top of the Metropolitan Council on Jewish Poverty was shocking and very damaging to an organization that has literally helped countless people,” DiNapoli said. “Those involved in this scam have been held accountable for their wrongdoing and this should serve as an example of what happens when individuals lose their way and become more focused on filling their own pockets than doing good works. Attorney General Schneiderman and his team deserve credit for aggressively and thoroughly pursuing this case. Through our Joint Task Force on Public Integrity, the Comptroller’s office and the Attorney General’s office will continue to fight corruption and find those individuals misusing the public’s money.”