Former Democratic city councilman and Taxi & Limousine Commission chairman David Yassky is being ousted as dean of the Pace University Law School following controversies that included getting back into politics behind the backs of the school’s students.

Two Pace professors told the New York Law Journal that Yassky was forced to resign after officials at the school in White Plains learned he’d lost the faculty’s support.

“There was a lack of trust and a lack of confidence in Dean Yassky,” one professor told the paper.

“There was a lot of dishonesty and a lot of hiding the ball.”

A Pace professor also told The Post that Yassky, who taught classes including “Municipal Law & Metropolitan Government,” was “hated by the students.”

“The kids said he was condescending and had no patience with them,” the professor said.

“He got terrible, terrible reviews from the students.”

In September, it was revealed that Yassky was seeking to fill the state Senate seat vacated by Daniel Squadron, who abruptly resigned over the rampant corruption and “cynical political deals” infesting state government.

The Above The Law website reported that Pace students were “furious” when video of Yassky touting himself at a Democratic candidates forum was posted on YouTube.

“I guess Mr. Yassky doesn’t think that Pace Law School deserves his full-time attention, or that anyone might care that all the time he spends making the case that he should be picked for the vacant seat by party bosses is time he could spend on improving things at the Law School,” according to an email from an ATL tipster.

Yassky later sent emails to the faculty and student body saying he wouldn’t get the nod from county leaders, who instead picked Manhattan Assemblyman Brian Kavanagh, who was elected in November.

Yassky — who makes $10,000 a month as a consultant and Albany lobbyist for the Lyft ride-hailing system — also made enemies at Pace by slashing faculty pay by 10 percent and cutting positions shortly after his February 2014 hiring.

On Sunday, Yassky told The Post that he “decided not to seek reappointment” but added: “It’s hard to cut 20 percent of a budget and have everyone be happy at the end of the day.”

In an interview with the Law Journal, Yassky, who’s ducked questions about whether he was stepping down voluntarily, admitted that “for the next phase it would be good to have someone who doesn’t have all the baggage.”

Additional reporting by Shari Logan