Ancient Egypt went through a series of occupations and suffered a slow decline over a long period of time. First occupied by the Assyrians, then the Persians, and later the Macedonians and Romans, Egyptians would never again reach the glorious heights of self-rule they achieved during previous periods.
Third Intermediate Period (1069-653 BCE)
After a renaissance in the Twenty-fifth dynasty, when religion, arts, and architecture (including pyramids) were restored, struggles against the Assyrians led to eventual conquest of Egypt by Esarhaddon in 671 BCE. Native Egyptian rulers were installed but could not retain control of the area, and former Pharaoh Taharqa seized control of southern Egypt for a time, until he was defeated again by the Assyrians. Taharqa's successor, Tanutamun, also made a failed attempt to regain Egypt, but was defeated.
Late Period (672-332 BCE)
Having been victorious in Egypt, the Assyrians installed a series of vassals known as the Saite kings of the Twenty-sixth Dynasty. In 653 BCE, one of these kings, Psamtik I, was able to achieve a peaceful separation from the Assyrians with the help of Lydian and Greek mercenaries. In 609 BCE, the Egyptians attempted to save the Assyrians, who were losing their war with the Babylonians, Chaldeans, Medians, and Scythians. However, they were unsuccessful.
In 525 BCE, the Persians, led by Cambyses II, invaded Egypt, capturing the Pharaoh Psamtik III. Egypt was joined with Cyprus and Phoenicia in the sixth satrapy of the Achaemenid Persian Empire, also called the Twenty-seventh Dynasty. This ended in 402 BCE, and the last native royal house of dynastic Egypt, known as the Thirtieth Dynasty, was ruled by Nectanebo II. Persian rule was restored briefly in 343 BCE, known as the Thirty-first Dynasty, but in 332 BCE, Egypt was handed over peacefully to the Macedonian ruler, Alexander the Great.
Macedonian and Ptolemaic Period (332-30 BCE)
Alexander the Great was welcomed into Egypt as a deliverer, and the new capital city of Alexandria was a showcase of Hellenistic rule, capped by the famous Library of Alexandria. Native Egyptian traditions were honored, but eventually local revolts, plus interest in Egyptian goods by the Romans, caused the Romans to wrest Egypt from the Macedonians.
Roman Period (30 BCE-641 CE)
Egypt became a Roman province after the defeat of Marc Antony and Queen Cleopatra VII in 30 BCE. Some Egyptian traditions, including mummification and worship of local gods, continued, but local administration was handled exclusively by Romans. The spread of Christianity proved to be too powerful, and pagan rites were banned and temples closed. Egyptians continued to speak their language, but the ability to read hieroglyphics disappeared as temple priests diminished.