Who is Dhul-Qarnayn, "the two-horned one", in the Quran?
Dhul-Qarnayn is a just king in surah 18:83-98, whom God "made strong in the land". He travels to the setting and rising places of the sun and, between two mountains, builds with iron and molten copper a wall that holds back Gog and Magog. Many have identified him with Alexander the Great; others with the Persian king Cyrus.
The passage opens: "They will ask thee of Dhu'l-Qarneyn. Say: I shall recite unto you a remembrance of him". At the sunset he finds the sun "setting in a muddy spring" and a people, and chooses to punish wrongdoers and deal kindly with believers. At the sunrise he finds a people with no shelter from the sun.
On the third journey, a folk "that scarce could understand a saying" asks for his protection, because "Gog and Magog are spoiling the land".
He refuses tribute, asks only for men's strength, fills the gap between the cliffs with pieces of iron, heats them and pours molten copper over them.
But he warns that when the promise of God comes to pass, the wall will be laid low — which Islam links to the signs of the end of time.
The identification with Alexander comes from the Alexander Romance, widespread in Syriac, in which he also builds gates against barbarian peoples; on coins Alexander appears with ram's horns.
Today many Muslim scholars prefer to see him as Cyrus, a believing and just king, and some leave his identity open.