The Quran and the Wall of Dhul-Qarnayn: A Tafsir of Power, Mercy, and the Barrier That Holds Back the End
When a king with dominion over the earth chose to build rather than conquer, the Quran revealed what true power looks like before God.
A King Without a Name
He is one of the most enigmatic figures in the entire Quran. He is given no genealogy, no tribal affiliation, no prophetic title. He is called only Dhul-Qarnayn—"the one of two horns" or "the one of two ages"—and yet God grants him what few figures in scripture receive: an extended narrative, a divine endorsement, and a role that stretches from the rising of the sun to its setting and beyond, to the very edge of civilization itself.
His story occupies a remarkable passage in Surah al-Kahf (18:83–101), and it arrives in response to a question. The Quraysh, prompted by the People of the Book, asked the Prophet Muhammad ﷺ about this figure as a test of his prophethood. The answer they received was not a dry historical record. It was a revelation about the nature of power, the ethics of empire, and the construction of a barrier that the Quran links to the unfolding of the Last Day.
To read the story of Dhul-Qarnayn is to encounter a political theology—a vision of what authority looks like when it is wielded by someone who remembers that every dominion is borrowed from God.
The Three Journeys
The Quran structures Dhul-Qarnayn's narrative around three journeys. In each, he travels to a limit of the known world and encounters a people. In each, God watches how he uses the power he has been given.
In the first journey, he reaches the setting place of the sun and finds it setting in a murky spring, near a people whom God gives him full authority over. The Quran records the divine instruction: "O Dhul-Qarnayn, either you punish them or treat them with goodness" (18:86). His response is immediate and principled. He declares that he will punish the wrongdoers among them, who will then be returned to God for a greater punishment, but whoever believes and does righteous deeds will receive a good reward and gentle command (18:87–88).
This is not the logic of empire as the ancient world knew it. There is no mass subjugation, no indiscriminate destruction. Dhul-Qarnayn distinguishes between the oppressor and the righteous. He punishes with restraint and rewards with gentleness. The Arabic word yusrā—ease—appears in his promise to the believers. A man with the power to crush chooses instead to calibrate.
In the second journey, he reaches the rising place of the sun and finds a people with no shelter from it (18:90). The Quran offers no account of violence or subjugation. It simply notes that God was fully aware of what Dhul-Qarnayn possessed (wa qad aḥaṭnā bimā ladayhi khubrā, 18:91). The verse functions almost as a divine audit: God is watching, and what He sees is a ruler who does not exploit vulnerability.
It is the third journey that produces the story's architectural and eschatological climax.
The People Between Two Mountains
Dhul-Qarnayn arrives at a place between two mountain barriers and encounters a people who can barely understand speech (18:93). Despite the communication gap, they manage to convey a desperate plea: Ya'juj and Ma'juj (Gog and Magog) are causing corruption in the land. They offer him tribute—kharj, a tax or payment—if he will build a barrier between them and their tormentors (18:94).
His response is one of the most quietly profound lines in the Quran: "What my Lord has established me in is better. So assist me with strength, and I will make between you and them a dam" (18:95).
Pause here. A ruler is offered payment for a service he has the power to provide. He refuses the money. He does not refuse because he is weak or because the task is beneath him. He refuses because he recognizes that his power itself is already a gift from God—mā makkannī fīhi rabbī, "what my Lord has empowered me with." To accept tribute would be to treat divine empowerment as a personal commodity. Instead, he asks only for their labor: bring me blocks of iron.
This is a theology of stewardship expressed through infrastructure. Dhul-Qarnayn does not build the wall to expand his territory or to inscribe his name upon the earth. He builds it because people are suffering, and he has the means to help. The wall is not a monument to ego. It is an act of service rendered to strangers whose language he barely comprehends.
The Architecture of the Barrier
The Quran describes the construction with unusual technical specificity. Dhul-Qarnayn commands his workers to bring blocks of iron, filling the gap between the two mountain cliffs. Then he orders them to blow upon it with bellows until the iron becomes fire-hot. Then he pours molten copper over it (18:96). The result is a barrier that Ya'juj and Ma'juj can neither scale nor penetrate (fa-mā isṭā'ū an yaẓharūhu wa-mā istaṭā'ū lahu naqbā, 18:97).
The precision matters. Iron and copper. Heat and fusion. The Quran is describing a feat of metallurgical engineering embedded within a sacred narrative. Some commentators have noted that the combination of iron and copper produces a structure of extraordinary resilience—iron for tensile strength, copper poured as a sealant into every gap. Whether one reads this literally or symbolically, the message is clear: Dhul-Qarnayn marshals knowledge, material resources, and communal labor toward a single protective purpose. He is not a warrior-king in this scene. He is an engineer-servant.
The Humility After the Monument
What happens after the wall is built is, in many ways, more remarkable than the building itself. Dhul-Qarnayn does not celebrate. He does not commission poetry in his honor or carve his titles into the stone. Instead, he says: "This is a mercy from my Lord. But when the promise of my Lord comes, He will make it level, and the promise of my Lord is ever true" (18:98).
Read that again. He has just completed one of the greatest construction feats described in scripture, a barrier so formidable that an entire civilization of destroyers cannot breach it—and his immediate reflection is on its impermanence. The wall will fall. Not because of structural failure, but because God has appointed a time for it to be undone. The promise of the Lord—the unfolding of the Hour—will reduce this iron-and-copper fortification to rubble.
This is the spiritual architecture beneath the physical one. Dhul-Qarnayn builds as though the wall matters infinitely, and then speaks as though he knows it does not last forever. He holds both truths simultaneously: the duty to act with excellence in the present, and the awareness that all human works dissolve before divine decree. This is not nihilism. It is tawḥīd—the radical oneness of God—applied to statecraft.
Power as the Quran Envisions It
The scholars of tafsir have long debated Dhul-Qarnayn's identity. Was he Alexander the Great, reimagined through a monotheistic lens? Was he a pre-Islamic Arabian king? A Persian emperor? A South Arabian ruler? The Quran's silence on the matter seems deliberate. By withholding his historical identity, the text universalizes him. He becomes not a specific king to be located on a timeline, but an archetype of just rule—a mirror held up to every person who has ever held authority over others.
Consider what the Quran chooses to show us about him. He does not hoard wealth (he refuses tribute). He does not exploit the vulnerable (the unshielded people at the place of sunrise are left in peace). He does not punish indiscriminately (he distinguishes between oppressors and the righteous). He does not claim credit for his achievements (he attributes his power to God). And he does not mistake his works for permanence (he announces the wall's eventual destruction in the same breath as its completion).
In an age when empires carved their kings' faces into mountains and declared them gods, the Quran presents a ruler who builds a wall and immediately calls it temporary. This is the Quranic reversal: true power is not the capacity to dominate but the wisdom to serve, and the deepest strength is the ability to hold dominion lightly, knowing it was never yours to begin with.
The Wall and the End
The Quran returns to Ya'juj and Ma'juj in Surah al-Anbiya: "Until when Ya'juj and Ma'juj are let loose and they descend from every elevation" (21:96). The barrier holds—not because of iron and copper, but because God wills it. And when it falls, it falls not because of entropy but because the Hour has drawn near. The wall of Dhul-Qarnayn thus becomes a clock of sacred history, a structure whose collapse marks the transition from the age of human striving to the age of divine reckoning.
And so we are left with this: a nameless king, a wall between two mountains, and a lesson that echoes across every century. Build justly. Serve humbly. Refuse what you do not need. Protect those who cannot protect themselves. And when the work is done, stand before your greatest achievement and say, with complete sincerity, "This is a mercy from my Lord."
That is power. That is the Quran's vision of what a human being can become when authority is carried as a trust rather than seized as a prize.