Magog was one of the seven sons of Japheth mentioned in the Book of Genesis of the Hebrew Bible. It literally means "From-Gog" in Hebrew.
Magog is often associated with appocalyptic traditions see: Gog for details.