Local media reported the boy’s father said he had been repairing the 32-meter well near his home Tuesday when his son fell in.
First responders confirmed the boy, named Rayan, was alive by lowering a video camera down the well’s narrow shaft. The MAP news agency said rescuers had been able to send him oxygen and water through pipes.
With the well’s shaft too narrow for rescuers to reach the bottom and the soil too loose to risk widening it, heavy construction equipment was brought in to dig a parallel hole alongside it. State media reports early Friday rescuers were about six meters from the child.
Efforts to reach the boy were streamed on social media, capturing public attention, and sparking an outpouring of sympathy online, with the Arabic hashtag #SaveRayan going viral across North African, including in neighboring Algeria.
The coverage has also brought crowds of onlookers to the scene to watch the rescue, though officials have kept them a good distance away.
Local television reports showed a medivac helicopter standing by at the scene to take the child to a hospital once he is freed.
Some information for this report was provided by the Associated Press, Reuters and Agence France-Presse.