Despite teachers' efforts to beckon the boy inside, he refused to budge until his mother mentioned her son's love of superheroes, prompting fireman Sonchai Yoosabai to take a novel approach to the problem.
The rescuer dashed back to his fire station and made a quick change into a Spider-Man costume before returning to the boy, he said.
"I told him Spider-Man is here to rescue you, no monsters are going to attack you and I told him to walk slowly towards me as running could be dangerous," Somchai told local television.
The young boy immediately stood up and walked into his rescuer's arms, police said.
From the Upcoming ueue, submitted by .