A massive alligator was no match for a brave man in Florida who refused to lose his loyal companion to the jaws of the 13-foot beast.

So, to save his furry friend, he jumped in the water and fought the gator until it finally let go.

Trent Tweddale and his dog, Loki, were on a morning walk on their farm in Wesley Chapel farm when the gator appeared out of nowhere and attacked his dog.

“The dog had his front paws in the river here that swelled after all the rain,” Tweddale told News Channel 8.

That’s when the gator grabbed Loki, his 6-year-old rescue pup, and pulled him into the water.

“I grabbed the dog’s collar to try to pull him back and I ended up in a tug of war match with this gator and the gator was not letting go,” Tweddale said. “So I let go of the collar and I got about knee-deep into the water and started pounding on the gator’s head until he eventually let go.”

Tweddale only suffered minor scratches, but Loki had to undergo emergency surgery.

“When I pulled him back up, the bones were out and it looks like the arm was just hanging by a shred,” said Tweddale. “They put metal plates and screws in and were able to reconstruct it that way. We’re hoping that he can regain full use of his paws after this.”

With the help of Florida Fish and Wildlife, he has set a trap for the gator on his property, because Tweddale said he won’t rest until he catches their attacker.