A young girl in China was saved by the actions of a quick-thinking man and a trusty old mop after she was found dangling from a fourth-storey window earlier this week.

Wang Baoping was walking in his Shandong Province neighbourhood when he heard the little girl screaming for help with her neck stuck between the apartment’s window bars.

He ran to the building and climbed through a nearby window with a mop to support the child for almost 20 minutes, Yahoo News reported.

The video shows Mr Baoping dangerously hanging out the window until her parents were able to pull her inside, with a nearby resident admiring his heroic actions.

“I think his brave and courageous actions are worthy of praise,” the resident told CCTV.