Who built the barrier against Gog and Magog?
The Qur'an attributes the barrier-building account in 18:93–98 to Dhul-Qarnayn.
Qur'an and authentic hadith · Source-based explainer
Gog and Magog, known as Ya'juj and Ma'juj, are mentioned in the Qur'an and hadith. The well-known account of a barrier made with iron and molten material belongs to the story of Dhul-Qarnayn. That account should not be confused with unproven claims that a particular modern monument is the barrier.
Qur'an 18:83–98 introduces Dhul-Qarnayn and describes his journey to a place where people appeal for protection from Ya'juj and Ma'juj. The verses describe a defensive structure built with pieces of iron and heated material poured over it. The story emphasises both human effort and the limits of that effort in relation to God's promise.
The account does not provide a modern construction plan, national border or archaeological catalogue entry. Even when readers interpret the physical language of the verses, identifying a surviving structure today requires evidence beyond resemblance.
Qur'an 18:98 links the eventual levelling of the barrier to a divine promise. Qur'an 21:96–97 refers to the release of Gog and Magog in the setting of events approaching the final promise. The texts establish a religious narrative; they do not specify a date that can be calculated from present-day headlines.
A claim that a particular wall, tunnel or mountain opening proves an imminent release is an interpretation added to the texts. The safest way to evaluate such a claim is to ask which verse or narration establishes the identification and whether independent evidence really supports it.
No verified identification establishes that the Great Wall of China is the barrier in Qur'an 18:93–98. The mere fact that both are called walls is not evidence that they share the same history, purpose, geography or religious role.
Many locations have been proposed in popular writing. The Qur'an does not name a currently mapped wall, and archaeological claims require historical documentation of their own. The distinction matters because presenting a speculative site as a discovered Qur'anic landmark creates false certainty.
Sahih Muslim 2880c includes a narration involving a warning about an opening in the barrier. Sahih Muslim 2937a is among the reports describing end-times events connected with Gog and Magog. These narrations should be read in context, rather than clipped into a countdown or matched automatically to unrelated current events.
Claims about their appearance, exact number, location today or date of release should not be stated as established unless an authoritative source supports the specific detail. Symbols and cinematic reconstructions are not photographs of unseen future events.
Medieval travel accounts and stories about expeditions to find the barrier are part of the later history of interpreting these verses. They are not equivalent to Qur'anic revelation or a verified modern discovery. Even a famous story, such as one about Sallam the Interpreter, must be assessed as historical reporting.
For readers, a useful three-part method is to separate the Qur'anic account, authenticated hadith, and later geographic speculation. That protects the source material from exaggerated internet claims and keeps the limits of our knowledge visible.
Read each cited passage directly and distinguish the original text from later speculation.
Qur'an 18:83–98 ↗
Dhul-Qarnayn, the appeal for protection and the construction of the barrier.
Qur'an 18:99 ↗
The continuation of the account and the divine promise.
Qur'an 21:96–97 ↗
References to the release of Gog and Magog and the approaching promise.
Sahih Muslim 2880c ↗
A narration concerning the barrier and a warning.
Sahih Muslim 2937a ↗
A narration concerning Gog and Magog in end-times accounts.
The Qur'an attributes the barrier-building account in 18:93–98 to Dhul-Qarnayn.
No modern identification is verified by the Qur'anic account itself.
No calendar date for the release is provided in the cited verses.