"His Majesty King Mohammed VI called the parents of the boy Rayan who died after falling down the well, and expressed his condolences to them", the royal palace said in a statement obtained by Sputnik.
According to the release, King Mohammed VI had been following the rescue efforts closely and had taken all the necessary measures to try to save the boy.
Rayan fell into a deep disused well in his home village of Ighrane, located in the hills near the city of Chefchaouen in northern Morocco, on Tuesday. The well was too narrow for rescuers to descend into it, so they had to dig in the well first, but because the walls could collapse in on the child, rescuers then decided to use bulldozers to create a horizontal tunnel to reach Rayan.
The 5-year-old was finally pulled from the well on Saturday night. Earlier in the operation, rescuers supplied Rayan with oxygen and water using tubes. According to Moroccan media reports, the child had a head injury. When he was finally taken into an ambulance, his condition was not immediately clear.