A judge allowed a Brooklyn man who called in a death threat last year to a US senator because of her views on reproductive rights to walk free on probation at a sentencing hearing on Friday — citing in part a political atmosphere where threats are more common.

Michael Brogan, 52, of Marine Park, was sentenced to three years of supervised release and Brooklyn federal Judge Nicholas Garaufis said the telephone tough guy has to spend the first six months of his light sentence in home confinement.

At his sentencing hearing, Garaufis cited the fact that Brogan lives with and cares for his mother, who has dementia, and with an intellectually disabled older brother in his decision to let him avoid jail.

But Garaufis also said that Brogan made the call at a time when political discourse has become less than civil.

“There are many people saying terrible things about other people based on their beliefs,” the judge said. “And from this court’s vantage point, it’s happening on many levels, from the president on down.”

Prosecutors sought to put Brogan behind bars for one year. The US Attorney’s Office in Brooklyn declined to comment on the sentence.

Brogan admitted to calling the office of a US senator, who has not been named by authorities, and unleashing a profane and threat-filled tirade in which he told the senator he’s going to “put a bullet in ya.”

Brogan felt incited to leave a message with the senator’s office after seeing a video of her discussing her position on reproductive rights and criticizing President Donald Trump.

“You watch your a–. If I see you on the streets, I’m gonna f–king light you up with f–king bullets,” Brogan said during the call, according to court documents.