The tradition of Gog and Magog begins with cryptic Biblical references regarding apocalyptic prophecy in the Book of Ezekiel. The ambiguity of this tradition cannot be overstated. The very nature of these entities differs greatly in the discourse according to the places and times of the sources. They are variously presented as human beings, supernatural beings (giants or demons), nations, or as lands. Part of the confusion is the difference between the Tanakh and Septuagint (BHS p.967) and internal contradictions in the text.
References to Gog and Magog appear in the Book of Revelation, in the Qur'an as Yajooj-Majooj (Arabic يأجوج و مأجوج, Yecüc-Mecüc in the Turkish spelling) and occur widely in mythology and folklore.