During the last centuries of the first millennium BCE, most of the Mediterranean basin and the Near East were either directly or indirectly under the influence of Hellenism. The Greeks spread their ideas to Egypt, Mesopotamia, and Persia and attempted to unify all of the peoples of those regions under one government. Although some of the Hellenistic kingdoms proved to be powerful in their own rights — especially Ptolemaic Egypt and the Seleucid Empire, which encompassed all of Mesopotamia, most of the Levant, and much of Persia during its height — no single kingdom ever proved to be dominant. The Hellenic kingdoms battled each other for supremacy and even attempted to claim new lands, especially to the east, past the Indus River in lands that the Greeks referred to generally as India. But as the Hellenistic Greeks turned their eyes to the riches of India, a dynasty came to power that put most of the Indian subcontinent under the rule of one king.