The Ptolemaic Dynasty, established by the Macedonian Greek general Ptolemy I Soter, ruled Egypt for almost three centuries.