History of Libya well as by the Carthaginians from the West. In 525 BCE the Persian army of Cambyses II overran Cyrenaica, which for the next two centuries remained under Persian or Egyptian rule. Alexander was greeted by the Greeks when he entered Cyrenaica in 331 BCE, and Eastern Libya again fell under the control of the Greeks, this time as part of the Ptolemaic Kingdom. Later, a federation of the Pentapolis was formed that was customarily ruled by a king drawn from the Ptolemaic royal house. After the fall of Carthage the Romans did not occupy immediately Tripolitania (the region around Tripoli),
Byzantine Greeks as "Rhōmaîoi" (, "Romans", meaning citizens of the Roman Empire), a term which in the Greek language had become synonymous with Christian Greeks. The Latinizing term "Graikoí" (Γραικοί, "Greeks") was also used, though its use was less common, and nonexistent in official Byzantine political correspondence, prior to the Fourth Crusade of 1204. While this Latin term for the ancient "Hellenes" could be used neutrally, its use by Westerners from the 9th century onwards in order to challenge Byzantine claims to ancient Roman heritage rendered it a derogatory exonym for the Byzantines who barely used it, mostly in contexts relating to