Magog was originally a son of Japheth, son of Noah (Genesis 10:2) but later this name came to denote a region (Ezekiel 38:2). Magog is often mentioned in conjunction with Gog of Reuben (1 Chronicles 5:4).
See our article on the related name Gog for the etymology of both.