The New York Times’ zeal to bash Donald Trump led it to publish a letter from a convicted pedophile — even though the paper reported his arrest.

Nicholas Puner — who pleaded guilty to having sex with two teenage boys in 1999 — got in the Gray Lady’s “Readers React” column Sunday slamming Trump and responding to a claim that Trump’s election would lead to the “twilight of democracy.”

Puner was the chairman of the New Castle Planning Board — which oversees Chappaqua, NY, where Bill and Hillary Clinton live — when he was busted.

He copped to two counts of sodomy and got 60 days in the slammer and five years’ probation.

But Puner, 74, was then caught engaging in lurid web chats with an undercover investigator who posed as a 14-year-old boy. He was sent to prison for nearly three years.