Former State Senate Majority Leader Malcolm Smith has been sentenced to 7 years in federal prison for a bribery conspiracy to win a place on the ballot for the New York City mayoralty.

The sentence was imposed Wednesday by U.S. District Judge Kenneth Karas in White Plains.

Smith, a Democrat, was lured by an informant and an FBI undercover agent into a scheme to bribe Republican county leaders to give him a spot in the GOP mayoral primary.

He was defeated for re-election in his Queens district last year, and convicted in February.