A California boy is recovering after being attacked Tuesday by a neighbor's dog -- and you might be surprised by who rescued him from harm.

His hero? The little boy's pet cat.

KERO-TV, an ABC affiliate in Bakersfield, posted a video that shows the boy playing in a driveway when a dog comes around a parked SUV and grabs him at the leg. The dog starts to drag the boy when the cat runs toward the dog, scaring it away.