A poor pup in New Jersey was killed in a fight with a porcupine — which left quills inside and outside the pooch’s body.

“They said at the animal hospital they have never seen quills that bad in their entire life,” said Miranda DeGennaro to NJ.com on Tuesday, a few days after her family’s dog Chester succumbed to his horrific wounds.

The 9-year-old pitbull mix had gotten into a fight with the porcupine on the deck of the family’s home in Montague, Sussex County, early Sept. 2 and been ailing ever since with quills in his face, chest and stomach, DeGennaro told the outlet.

“We saw him running and barking, so we ran down the deck, but it was too late,” the owner said.

DeGennaro said some of the quills ended up inside Chester.

“Being that he swallowed some, they just went everywhere,” she said.

The dog succumbed to his wounds this weekend after the Sept. 2 attack.

Chester, a pitbull mix, died after a fight with a porcupine.

The dog also swallowed some of the quills, complicating this medical treatment.

The quills covered Chester’s body and went inside of him.

A family friend set up a GoFundMe page to help with the dog’s medical bills before the pooch underwent surgery and died over the weekend.

In the posting, the pal called Chester “a very energetic boy,’’ adding, “Well, this past week, he decided to take on a porcupine; needless to say, it didn’t end well.”

While a vet “successfully removed the quills from his face and mouth … there were well over 20 quills stuck in his chest/abdomen. They removed as many as possible, but the fear now is that the remaining quills will begin to migrate into his body rather than out,’’ said the posting, which had raised nearly $3,000 for the dog.

Doctors were afraid to further operate to prevent more injuries.

DeGennaro told NJ.com that the vet was concerned one of the moving needles might stab Chester’s heart and agreed to costly surgery.

But her dog died — and now the owner, a housekeeper, is stuck with a veterinary bills of more than $19,500, the outlet said.

“I really thought he was going to make it,” DeGennaro said. “I’m devastated.”