A cat kept by a 6-year-old boy in Shijingshan district, Beijing, prowled up a tree to raid a bird's nest last week.
Before the cat had a chance to dine on the little birds, it found itself under attack from a flock of protective adult magpies.
The unlucky feline was stranded on the tree limb, unable to climb down.
After enduring the attacking birds for three days, the cat was rescued on Thursday by a chef working nearby who is good at climbing trees.
By then, its back had been so thoroughly pecked by the birds that it had festered.