NEW YORK — Former New York Senate Majority Leader Dean Skelos was sentenced Thursday to 5 years in prison on corruption charges.

A jury convicted Skelos and his son, Adam, last year on extortion and other charges accusing them of using the Long Island Republican’s position to pressure businesses to provide the son with roughly $300,000 through consulting work, a no-show job and a payment of $20,000.

The government had told a judge each man deserves a stiff sentence. The defendants have asked for probation and community service.

Manhattan judge Kimba Wood told Skelos he caused “immeasurable damage” to New Yorkers’ confident in the integrity of government with his crimes. She said she wants to send a message to other politicians that they will suffer they break the law.

It’s the second time in two weeks that a New York lawmaker has been sentenced to prison time on corruption charges. Former Democratic Assembly Speaker Sheldon Silver received a 12-year prison term in a separate bribery case.

“In the span of just 16 months, we have seen the arrest, prosecution, conviction, and sentencing of both leaders of the New York State legislature,” U.S. Attorney Preet Bharara said in a statement after Skelos’ sentencing was handed down.

“The nearly simultaneous convictions of Sheldon Silver and Dean Skelos, whose corruption crimes were laid bare during fair and public trials, have no precedent. And while Silver and Skelos deserve their prison sentences, the people of New York deserve better.”