Yajuj and Majuj (Gog and Magog), a hero in Islamic mythology

Yajuj and Majuj

Also Known As: Arabic Ya’juj wa-Ma’juj; the Gog and Magog of Islamic tradition; also spelled Yajooj and Majooj
Region/Culture: West Asia/Middle East
Mythos: Islamic Mythology
Primary Type/Nature: Heroes and Mortals
Mythical Attributes: Yajuj and Majuj are two peoples beyond counting who ruin whatever land they reach and who drink a lake dry as they pass it.
Role in Mythos: Shut behind the iron and copper barrier of Dhul-Qarnayn, they wait to be let loose as one of the last signs before the Day of Judgment.
Relation to Humans: The Quran presents them as raiders whose neighbours begged a passing king for a wall, and the mainstream hadith tradition counts them as children of Adam like everyone else. At the end of time no human army can stand against them, and the believers survive only by sheltering on a mountain with Jesus until God destroys the hordes.

Somewhere at the far edge of the map, between two mountains whose names nobody recorded, there is a wall that is not made of stone. It is iron, stacked in blocks until it filled the gap from cliff to cliff, then fired until the whole mass glowed, then sheathed in molten copper that ran into every seam and cooled hard. The face is too smooth to climb. The core is too dense to bore. And on the far side, in numbers only God can count, are the two peoples it was built to hold.

The Quran tells the story in a handful of verses in the chapter of the Cave. A great king called Dhul-Qarnayn, the Two-Horned One, travels to the setting place of the sun, then to its rising place, then to a pass between two mountain barriers. There he meets a people who can barely make themselves understood. They manage one message. Yajuj and Majuj are wrecking the land, and they will pay him tribute if he will put something between them and it. He turns down the money. What his Lord has given him is better, he says, but he will take their labour. They bring him iron. They work the bellows until the air between the cliffs shimmers and the metal burns red. He calls for molten copper and pours it over the top. When it cools, the raiders on the other side can neither scale it nor dig through, and the king, instead of admiring his work, gives it an expiry date. The wall is a mercy from his Lord. When his Lord’s promise comes due, it will be levelled to dust.

That is nearly everything the Quran says. It does not say what Yajuj and Majuj look like, how many they are, or where the pass is. One more verse, in the chapter of the Prophets, adds only the ending: a day when they are let loose and come pouring down from every height.

The gaps were filled in quickly. The sayings attributed to the Prophet Muhammad give the wall a daily routine. Every morning the hordes go at the barrier and dig until they can almost see sunlight through it. Then their foreman calls a halt and tells them they will finish tomorrow. Overnight God restores it, thicker than before. This goes on, day after identical day, until the morning the foreman happens to add the words “God willing.” That night the wall is left alone. They return to find their work as they left it, break through, and come out. The report is carried in the collections of al-Tirmidhi and Ibn Majah, and it had its doubters: the fourteenth-century scholar Ibn Kathir suspected it came from the storyteller Ka’b al-Ahbar and not from the Prophet. A better-attested report, in both al-Bukhari and Muslim, has the Prophet waking from sleep flushed and troubled to say that a hole had opened in the barrier that very day. He showed the size by making a ring with his thumb and forefinger.

What happens after the breach is set out in a long hadith in the Sahih of Muslim, and it is the heart of the tradition. Jesus has returned and killed the Dajjal, the false messiah, at the gate of Ludd. Before anyone can celebrate, God tells him that creatures have been released whom no one has the power to fight, and that he must take the faithful up the mountain. Then they come. Their front ranks reach Lake Tiberias and drink it. Their rear ranks cross the dry bed and remark that there used to be water here. On the mountain the siege grows so tight that a single ox head is worth more than a hundred gold coins. In one telling the hordes, having run out of people to kill on earth, shoot their arrows at the sky, and the arrows fall back wet with blood, which they take as proof that heaven has fallen too.

It is the last thing they get to believe. Jesus and his companions pray, and God sends a small worm into the necks of the besiegers, the kind that infests the noses of camels and sheep. By morning every one of them is dead, all at once, like a single body. The survivors come down to find no hand’s breadth of ground free of rot and stench. They pray again. God sends birds with necks as long as camels’ to carry the corpses away, and then a rain that no roof can keep out, which washes the whole earth until it shines like a mirror.

Where the two peoples came from is argued. The majority view makes them ordinary descendants of Adam, usually through Japheth son of Noah, which is why a famous hadith can say that they will supply nine hundred and ninety-nine of every thousand souls bound for the Fire. A minority report, preserved in a Shia collection, says they are no children of Adam at all. Their bodies are equally unsettled. Al-Qazwini, writing his cosmography before his death in 1283, made them half the height of a man, clawed, hairy-tailed, and equipped with ears so vast that one served as a mattress and the other as a blanket. Another report sorts them into three kinds, some as tall as cedars, some as wide as they are tall, and the ear-sleepers. The hadith critics threw that one out.

The names themselves are older than Islam. Ezekiel’s Gog is a single prince from a land called Magog, and by the time of the Book of Revelation the pair had become two nations. The wall is older than Islam too. A Syriac Christian legend of Alexander the Great, composed around 630, already has the conqueror shutting Gog and Magog behind an iron gate in the northern mountains, and most Muslim commentators went on to identify Dhul-Qarnayn with Alexander.

People went looking for the wall. In 842 the caliph al-Wathiq dreamed that it had been breached, and sent a translator named Sallam north through the Caucasus to check. Sallam was gone more than two years. He came back, according to the geographer Ibn Khurradadhbih, who says he had the story from the man himself, with an account of a colossal bolted gate and of keepers who struck its bolt with iron rods so that whatever lay behind would know the door was watched. Nobody is sure what he actually saw. Later writers put the barrier at Derbent on the Caspian; Ibn Battuta, in the fourteenth century, placed it sixty days beyond the coast of China. Nobody has found it.

Meanwhile every invader out of the steppe was tried for the part. The Turks were suspected early, the Khazars after them, and when the Mongols sacked Baghdad in 1258 a good many people concluded that the question had been settled.

The strength of Yajuj and Majuj is arithmetic. They carry no magic and need none. There are simply more of them than there is world, enough to empty a lake by walking past it, enough that Jesus himself is told to retreat. Their limits are just as plain. They could not climb a wall or cut iron. They dig every day and forget, every day, the two words that would let them finish. And for all their numbers they are killed by the smallest thing in the story, a worm in the neck, sent overnight by a God they thought they had shot out of the sky.

Frequently Asked Questions

Who are Yajuj and Majuj?

Yajuj and Majuj are the Gog and Magog of Islamic tradition, two vast peoples named in the Quran. They were shut behind a barrier of iron and copper by the king Dhul-Qarnayn after their neighbours complained that they were ruining the land. Their release is one of the major signs before the Day of Judgment.

Are Yajuj and Majuj human?

The mainstream view, based on hadith in al-Bukhari and Muslim, is that Yajuj and Majuj are human descendants of Adam, usually traced through Japheth son of Noah. A minority report in a Shia collection says they are not children of Adam. Later writers such as al-Qazwini gave them monstrous features, including claws, tails and enormous ears, but the Quran does not describe their bodies.

Who built the wall that holds Yajuj and Majuj?

Dhul-Qarnayn, the Two-Horned One of the Quran, built the wall between two mountains. He filled the gap with blocks of iron, had the iron heated until it glowed, and poured molten copper over it. He said the barrier would last only until God’s promise came due, when it would be levelled.

How do Yajuj and Majuj die?

In the hadith recorded in the Sahih of Muslim, Yajuj and Majuj besiege Jesus and the believers on a mountain after drinking Lake Tiberias dry. Jesus prays, and God sends worms into the necks of the hordes, killing all of them in a single night. Birds then carry the bodies away and a great rain washes the earth clean.

Are Yajuj and Majuj the same as the Gog and Magog of the Bible?

The names are the same, but the stories differ. In Ezekiel, Gog is a single prince from the land of Magog, while in the Quran Yajuj and Majuj are two peoples held behind a wall. The wall story also appears in a Syriac Christian legend of Alexander the Great written around 630.

Related Entries

Dhul-Qarnayn, Dajjal, Jesus, Al-Khidr, Israfil, Iblis, Noah, Jannah, Gog, Antichrist, Gogmagog