After the death of Alexander the great, his realm was divided and Ptolemy got Egypt. His descendant would rule until Cleopatra committed suicide.