First Achaemenid conquest of Egypt
The first Achaemenid conquest of Egypt took place in 525 BCE, leading to the foundation of the Twenty-seventh Dynasty of Egypt, also known as the "First Egyptian Satrapy" (). Egypt thus became a province (satrapy) of the Achaemenid Persian Empire until 404 BCE while still maintaining Egyptian royalty customs and positions. The conquest was led by Cambyses II, the King of Persia, who defeated the Egyptians at the Battle of Pelusium (525 BCE), and crowned himself as Pharaoh of Egypt. Achaemenid rule was disestablished upon the rebellion and crowning of Amyrtaeus as Pharaoh. A second period of Achaemenid rule in Egypt occurred under the Thirty-first Dynasty of Egypt (343–332 BCE). Origin of the conflict according to Herodotus Herodotus describes how Pharaoh Amasis II would eventually cause a confrontation with Persia. According to Herodotus, Amasis was asked by Cyrus the Great or Cambyses II for an Egyptian ophthalmologist on good terms. Amasis seems to have complied by forcing an Egyptian physician into mandatory labor, causing him to leave his family behind in Egypt and move to Persia in forced exile. In an attempt to exact revenge for this, the physician grew very close to Cambyses and suggested that Cambyses should ask Amasis for a daughter in marriage in order to solidify his bonds with the Egyptians. Cambyses complied and requested a daughter of Amasis for marriage. Amasis, worrying that his daughter would be a concubine to the Persian king, refused to give up his offspring; Amasis also was not willing to take on the Persian empire, so he concocted a deception in which he forced the daughter of the ex-pharaoh Apries, whom Herodotus explicitly confirms to have been killed by Amasis, to go to Persia instead of his own offspring. This daughter of Apries was none other than Nitetis, who was, as per Herodotus's account, "tall and beautiful." Nitetis naturally betrayed Amasis and upon being greeted by the Persian king explained Amasis's trickery and her true origins. This infuriated Cambyses and he vowed to take revenge for it. Amasis died before Cambyses reached him, but his heir and son Psamtik III was defeated by the Persians. First, Cyrus the Great signed alliance agreements with the Lydian King Croesus and Nabonidus the Babylonian king in 542 BCE. The actual aim of the agreements was to prevent aid between Egypt and her allies. With both now deprived of Egyptian support, the Persians conquered, first, Croesus's empire in 541 BCE, and, then, the Neo-Babylonian Empire in 539 BCE. Herodotus also describes how, just like his predecessor, Amasis relied on Greek mercenaries and councilmen. One such figure was Phanes of Halicarnassus, who would later leave Amasis, for reasons that Herodotus does not clearly know, but suspects were personal between the two figures. Amasis sent one of his eunuchs to capture Phanes, but the eunuch was bested by the wise councilman and Phanes fled to Persia, meeting up with Cambyses and providing advice for his invasion of Egypt. Egypt was finally lost to the Persians during