A brave Filipino man battled a crocodile to save his 12-year-old son, who was attacked while swimming in a river in Balabac Town in Palawan, Philippines, on Monday.

Diego Abulhasan was swimming with his younger brother near their home when a crocodile attacked him and dragged him underwater. The child’s father Tejada heard his son’s cry for help and rushed to his aid, GMA News reported.

The child was grabbed on the right arm and pulled to the other side of the river. Tejada had a wooden plank and started hitting the crocodile, but it wouldn’t let go of the child. Tejada battled on against the crocodile and bit into its leg until it finally let go of the boy.

Tejada brought his son to shore and took him to a hospital for treatment. Superintendent Socrates Faltado, a spokesman for the Mimaropa regional police, said the child had not suffered serious injuries and stayed in the hospital for two nights.

“Fortunately, and due to the bravery of his father, the victim did not drown and only suffered wounds from crocodile bites,” Faltado said.