A heroic dad repeatedly punched a shark that almost killed his daughter in a terrifying attack in North Carolina, according to his family.

Paige Winter, 17, lost a leg and some fingers after getting mauled in the water at Fort Macon beach on Sunday.

She was airlifted 80 miles to Vidant Medical Center in Greenville, where a rep told NewsChannel 12 that her “heroic father … saved her life.”

“Thank God our son was with her,” Paige’s grandmother Janet Winter said of Charlie Winter, a former US Marine who is also a local firefighter. “He said he punched the shark in the face 5 times before it let go.”

The grandma asked for “many prayers” in a Facebook post and revealed that Paige would “lose one leg above the knee and some fingers.”

The teen’s mom, Marcy Winter, also asked for “thoughts, prayers, vibes, manifestations, whatever you can for my Bear.”

“Paige is out of surgery and awake, she’s still pretty groggy but cracking jokes,” she wrote. “She wants everyone to know that sharks are still good people.”

Friends later launched a GoFundMe campaign to raise $5,000 for the family.

“A family’s life changed in a matter of seconds,” the campaign said, confirming the amputation.

“Charlie, Paige’s father, Marine, Firefighter, and Paramedic has served his Country and his community for the last 20 years. Now it’s time for us to rally around him and his family to help them in their time of need.”