A disgraced former Texas judge and a corrupt lawyer who paid him thousands of dollars in bribes to go easy on his clients were both hit with federal jail time this week, according to reports.

Former judge Rodolfo “Rudy” Delgado, 66, was sentenced to five years in prison Wednesday for giving crooked lawyer Noe Perez’s clients a break in his courtroom for up to eight years, Fox News reported.

Perez, who cooperated with the FBI, got two years, The Monitor newspaper reported.

The lawyer reportedly slipped the judge cash hidden inside six-packs of beer and at one point gave him a pickup truck worth $15,000 to establish a line of “credit,” according to Fox.

The cash bribes were as little as $520 and as much as $5,500, the US Attorney’s Office in Texas said.

The payoff scheme ran from 2008 to 2016, while Delgado was the presiding judge for the 93rd District Court of Texas, which handled criminal and civil cases in Hidalgo County.

He was elected to a new seat as a justice with the state’s 13th Court of Appeals last year, but resigned from the post after he was convicted at trial in July.

“The sentencing of Delgado sends a strong message to any public official who chooses to serve him or herself rather than their community,” FBI Special Agent in Charge Christopher Combs said.