Large round concrete pipes were brought in to make a safer, horizontal tunnel for the final stretch.
King Mohammed VI himself called Rayan's parents to offer his condolences, and they thanked the sovereign, the authorities and all the rescuers.
The boy, Rayan Awram, was pulled out Saturday night by rescuers after a lengthy operation that captivated global attention.