Japheth was the father of Gomer, Magog, Madai, Javan, Tubal, Meshech, and Tiras, and they were the ancestors of the kingdoms named after them.