WATCH: 'Spiderman' hero saves child dangling from balcony

(CBS News) - France will give residence papers to an illegal immigrant from Mali who scaled the facade of a Paris apartment block to save a boy who was about to fall from a fourth-floor balcony, President Emmanuel Macron said on Monday.

Video shows Mamoudou Gassama, 22, risking his life on Sunday as he climbed up the balconies to rescue a four-year-old clinging to a railing and glancing at the ground below, while horrified onlookers watched.

The video went viral and Gassama, who has been nicknamed "Spider-Man" for reaching the boy in time, was swiftly granted granted citizenship during a meeting with President Emmanuel Macron at the Elysee Palace on Monday (May 28).

Gassama told Macron he tried to cross the Mediterranean in March 2014 to reach Italy, but was caught by police.

Macron congratulated Gassama for "an exceptional act" and said France will give him residence papers and a job in the emergency services.

Ministers said the citizenship process would be sped up, although Gassama can't legally be granted it right away.

The boy's father was arrested and told police he had left his son alone to go shopping and returned home later than planned because he was playing Pokemon Go, an enhanced reality game, on his smartphone.

Mobile County

Baldwin County

Northwest Florida