NEW YORK — Raymond Harding, the former leader of New York State’s Liberal Party whose last years were marked by scandal, died Thursday of cancer. He was 77.

Mr. Harding was an influential power broker in New York’s sharp-elbowed political world, helping elect Rudy Giuliani as New York City mayor. .

In 2009, he admitted he took $800,000 for doing favors for the state comptroller. Felony charges were dropped and he was spared jail when sentenced for a misdemeanor.