It is 8 km outside Medina in Dhul Hulaifah area on the path to Mecca.
The area is the Miqat for those who leave Medina for Mecca for Hajj or Umrah pilgrimage.
Miqat is a principal boundary at which pilgrims intending to perform the Ḥajj or ʿUmrah must enter the state of Ihram (become Muhrim).
After visiting the Prophet Mosque in Medina, Hajj pilgrims go to Shajareh Mosque to become Muhrim.
An individual may only become a Muhrim after cleansing the body, wearing the prescribed attire and making the appropriate Niyyah (intention) before the designated Miqat. Certain actions, such as cutting the hair or applying perfume, are prohibited for a Muhrim.