Ogyges, also spelled Ogygos or Ogygus (Greek: Ὠγύγης or Ὤγυγος), is a primeval mythological ruler in ancient Greece, generally of Boeotia, but an alternative tradition makes him the first king of Attica.
Though the original etymology and meaning are "uncertain", the name Ogyges may be related with the Greek Okeanos (Ὠκεανός), the Titan who personified the great world ocean. The Greek word Ogygios (Ὠγύγιος), meaning Ogygian, came to mean "primeval, primal," or "from earliest ages" and also "gigantic".
Ogyges is also known as king of the Ectenes, who according to Pausanias were the first inhabitants of Boeotia, where the city of Thebes would later be founded. As such, he became the first ruler of Thebes, which was, in that early time, named Ogygia (Ὠγυγία) after him. Subsequently, poets referred to the Thebans as Ogygidae (Ὠγυγίδαι).Pausanias, writing from his travels in Boeotia in the 2nd century CE, said: "The first to occupy the land of Thebes are said to have been the Ectenes, whose king was Ogygus, an aboriginal. From his name is derived Ogygian, which is an epithet of Thebes used by most of the poets."
In yet another version of the story, the Boeotian tradition is combined with that of another part of Greece: Ogyges was king of the Ectenes, who were the first people to occupy Boeotia, but he and his people later settled the area then known as Acte (Akte). The land was subsequently called Ogygia in his honor but later known as Mount Athos. Sextus Julius Africanus, writing after 221 CE, adds that Ogyges founded Eleusis.
Stories of his descent also differ widely. Besides Ogyges being one of the aborigines of Boeotia, there are tales that regard him as the son of Poseidon, Boeotus or even Cadmus. Theophilus, in the 2nd century (Apologia ad Autolycum), says he was one of the Titans.