Allah (the Glorified and Exalted) created the well to provide Hajira, the wife of Prophet Ibrahim (Abraham) (peace be upon him), and her baby Prophet Ismail (Ishmael) (peace be upon him) with water in the hot and dry valley they were in.
In her desperate search for water, Hajira ran seven times back and forth in the scorching heat between the two hills of Safa and Marwa to provide for her baby who was dying of thirst.
The Zamzam Well is located approximately 20 meters (66 ft) east of the Kaaba.