What year did ancient Egypt rule?
They began ruling from 2649 BC and they ended in 362 BC before the Greek/Romans came.
Cleopatra ruled over all of ancient Egypt, which is roughly comparable with today's Egypt. She was a member of the ruling Ptolemaic dynasty, which had its origins in ancient Macedonia, north of Greece. But she was herself born and raised in Egypt. If you mean: what was her usual royal residence, the answer is Alexandria.