When Alexander conquered Egypt
Both the Persian and Nubian armies were successful in taking control of Egypt, where they ruled for several centuries. However, they were ignorant of the expansion of the Greeks and of Alexander the Great, who led them. In 332 BC, he came in Egypt. Alexander marched to Egypt after overthrowing the Persian ruler Darius to seize control of Syria and the Levant. Egypt was then a satrapy under the Persian Empire, held loosely under Persian rule ever since the end of the 7th century BC, when the Ancient Egyptian Empire began to fall. The Oracle of Amun at Siwa Oasis declared Alexander the new "lord of the cosmos" and a descendant of the Egyptian god Amun to solidify their reputation as liberators.
Alexander subjugated Egypt in 332 BC by fighting the Persians. He was well-liked by the Egyptians as a leader because he respected their nation and religion. He became so enamored with their way of life that he began to dress in their traditional garb and read many of their religious texts.
Numerous areas were subjugated by Alexander, who even had cities named after him. He did the same in Egypt, redesignating Alexandria as the nation's new capital. He used the majority of the Egyptian riches to annex the remaining Persian Empire.