A New Hampshire man who kidnapped, raped and tortured a teenage girl for nine months has pleaded guilty to his heinous crimes and will sit behind bars for decades — and his victim, who confronted her captor in court, forgave him.

“Some people might call you a monster, but I’ve always looked at you as human,” the girl told Nathaniel Kibby yesterday. “I want you to know that even though life became a lot harder after that, I still forgive you.”

Kibby, 35, will face 45 to 90 years in prison after pleading guilty to aggravated felonious sex assault, kidnapping, criminal threatening, witness tampering and other counts. Prosecutors said the plea agreement means he won’t face federal charges.

The hellish ordeal began on Oct. 19, 2013, when Kibby offered to give the girl, then 14, a ride home from school. She had blisters, according to prosecutors, and accepted the offer.

The short ride home turned into a nine-month nightmare and brought national attention to Conway and Gorham, N.H. — two small towns in the shadows of the White Mountains.

“He handcuffed her, put a baseball hat on her head and a jacket over her,” Associate Attorney General Jane Young said yesterday. “He asked the victim at that time what her age was, and she told him 14. His response was: ‘Oh, I thought you were older.’ ”

Kibby said he would “only keep her for an hour,” according to Young.

He then drove her to his Gorham home — tasing her repeatedly along the way.

“He asked the victim whether the tasing hurt. She said it did. He said, ‘Well now you know what it feels like,’ ” Young said.

Kibby tied her up, put a ball gag in her mouth and sexually assaulted her, Young said. He taped her eyes shut and he put her in chains, according to prosecutors.

The girl returned to her home in North Conway on July 20, 2014. She revealed Kibby’s identity a week later.

“I never look at sunshine in the same way,” she said. “I never think about fresh air in the same way. And I also just want to thank you for giving me my freedom back.”

Kibby apologized to the victim, but said he couldn’t explain why he did it.

“I know that some people want answers and some closure, and I actually want that, too,” he said

The victim’s mother said: “There’s a part of me that hates you, and there’s a part of me that wants peace. Only you can explain it. I don’t understand why.”