Gog and Magog

Gog and Magog (/ˈɡɒɡ ...ˈmɡɒɡ/; Hebrew: גּוֹג וּמָגוֹג, romanizedGōg ū-Māgōg), or Ya'juj and Ma'juj (Arabic: يَأْجُوجُ وَمَأْجُوجُ, romanizedYaʾjūju wa-Maʾjūju), are a pair of names that appear in the Hebrew Bible, the New Testament of the Christian Bible, and the Quran, variously ascribed to individuals, tribes, or lands. In Ezekiel 38, Gog is an individual and Magog is his land. By the time of the New Testament's Revelation 20, Jewish-Christian tradition had come to view Ezekiel's "Gog from Magog" as "Gog and Magog".

The Gog prophecy is meant to be fulfilled at the approach of what is called the "end of days", but not necessarily the end of the world. Jewish eschatology viewed Gog and Magog as enemies to be defeated by the Messiah, which would usher in the Messianic Age. One view within Christianity is more starkly apocalyptic, making Gog and Magog allies of Satan against God at the end of the millennium, as described in the Book of Revelation.

A legend was attached to Gog and Magog by the time of the Roman period that the Gates of Alexander were erected by Alexander the Great to repel the tribe. Romanised Jewish historian Josephus knew them as the nation descended from Magog the Japhetite named in the Book of Genesis, hypothesizing them to be the Scythians. In the hands of Early Christian writers, they became apocalyptic hordes. Throughout the Middle Ages, they were variously identified as the Vikings, Huns, Khazars, Mongols or other nomads, or even the Ten Lost Tribes of Israel.

The legends of Gog and Magog and the gates were also interpolated into the Alexander Romances. According to one interpretation, "Goth and Magothy" are the kings of the Unclean Nations whom Alexander drove through a mountain pass and prevented from crossing his new wall. Gog and Magog are said to engage in human cannibalism in the romances and derived literature. They have also been depicted on medieval cosmological maps, or mappae mundi, sometimes alongside Alexander's wall.

The conflation of Gog and Magog with the legend of Alexander and the Iron Gates was disseminated throughout the Near East in the early centuries of the Christian and Islamic eras. They appear in the Quran in chapter Al-Kahf as Yajuj and Majuj, primitive and immoral tribes that were separated and barriered off by Dhu al-Qarnayn ("He of the Two Horns"), who is mentioned in the Quran as a great, righteous ruler and conqueror. Some Muslim historians and geographers contemporaneous with the Vikings regarded them as the emergence of Gog and Magog.