An 11-year-old Surrey, B.C., boy can thank a quick-thinking neighbour for saving him from the jaws of a pit bull on Sunday.

Surrey RCMP say the boy was attacked while he was playing in the grounds of the Cedar Hills Elementary school at around 4.30 p.m.

But after hearing a series of screams, a neighbour saw what was happening, grabbed a baseball bat and ran to the scene. By wielding his bat, he was able to stop the attack, and corner the dog until police arrived.

Police say the boy suffered a series of puncture wounds to his legs, arms and head, and was taken to a local hospital.

The dog has also been turned over to the B.C. Society For The Prevention of Cruelty to Animals (SPCA).