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),
Greeks in Syria Assyrians made up the majority. In the South, Samaritans, Nabateans and Greco-Romans made up the majority near the end of the 2nd century. Throughout the Middle Ages, Byzantine Greeks self-identified as Romaioi or Romioi (Greek: Ῥωμαῖοι, Ρωμιοί, meaning "Romans") and Graikoi (Γραικοῖ, meaning "Greeks"). Linguistically, they spoke Byzantine or Medieval Greek, known as "Romaic" which is situated between the Hellenistic (Koine), and modern phases of the language. Byzantines, perceived themselves as the descendants of classical Greece, the political heirs of imperial Rome, and followers of the Apostles. Thus, their sense of "Romanity" was different from that of their contemporaries in