It was restored by a foreigner, Shishak I., the captain of the Libyan mercenaries. The Pharaoh whose daughter was married by Solomon must have been the last king of the old dynasty. Perhaps he sought to strengthen himself against his enemies in Egypt by an alliance with his powerful neighbour. At all events, the King of Israel allowed his army to march through Palestine as far as Gezer. The Egyptians flattered themselves that they had thereby asserted their old claim to sovereignty over Palestine, but the substantial gainer was the Israelitish monarch. He won the last independent Canaanite city without effort or expenditure, and was allowed to marry into the Solar race.
Shishak had no need of Israelitish alliances. On the contrary, Solomon was connected by marriage with the dethroned dynasty, and the power of Israel, if unchecked, was a menace to his own kingdom. But while Solomon lived he was afraid to move. He kept at his court, however, an Israelitish rebel, who might prove useful when the time came. Hardly was Solomon dead when Jeroboam returned to his native country, and the kingdom of David was sundered in twain. Shishak seized the opportunity of striking a blow at what remained of it. With contemptuous impartiality he overran the territories of both Judah and the revolted tribes, but it was Judah which suffered the most. The unfinished fortifications of Jerusalem were stormed, the treasures accumulated by Solomon carried to the Nile, and the King of Judah compelled to acknowledge himself the vassal of Shishak. Judah never recovered from the blow: had it not been for the Egyptian invasion, and the consequent loss of its hoarded wealth, it might have been able to suppress the rebellion of Jeroboam, and to reduce all the tribes of Israel once more under one sceptre. The names of the captured cities of Palestine are still to be read on the walls of the temple of Karnak.
Shishak's successors of the Twenty-second dynasty did not inherit his military vigour and skill. The central authority grew gradually weaker, and Egypt again fell back into the condition from which he had rescued it. The tribes of the Sûdan could no longer be hindered from attacking the enfeebled land, and Ethiopian princes made their way to Memphis, carrying back with them to their capital of Napata the spoil and tribute of a defeated and disunited people. At last the Ethiopian raids changed into permanent conquest, and a negro dynasty—the Twenty-fifth—sat on the throne of Menes.
But the kings who belonged to it, Shabaka and Taharka, were vigorous, and for a short while there was peace in the valley of the Nile. Assyria, however, had already arisen in its strength, and was claiming the empire over western Asia which had belonged to Babylon in the dawn of history. The states of Palestine endeavoured in vain to play off Assyria against Egypt. Again and again the Egyptian armies were defeated on the borders of Canaan, and Taharka was saved from invasion only by the disaster which befell Sennacherib during his siege of Jerusalem. But the respite was only momentary. Asia at last submitted to the dominion of Nineveh, the King of Judah became an Assyrian vassal, and Esar-haddon, the successor of Sennacherib, was now ready to march against the land of the Nile. In B.C. 674 he entered the Delta and scattered the forces of the Ethiopians. But two more campaigns were needed before the country was thoroughly subdued. At last, in June B.C. 670, he drove the Egyptian forces before him in fifteen days from the frontier to Memphis, twice defeating them with heavy loss and wounding Taharka himself. Three days later Memphis opened its gates, and Taharka fled to Egypt, leaving Egypt in the hands of the Assyrian. It was divided among twenty satraps, most of whom were Egyptians by birth.
Two years, however, were hardly past when it revolted, and while on the march to subdue it Esar-haddon fell ill, and died on the 10th of Marchesvan or October. But the revolt was quickly suppressed by his successor Assur-bani-pal, and the twenty satrapies restored. It was not long, however, before the satraps quarrelled with one another, intrigued with Taharka, and rebelled against their suzerain. Headed by Necho of Sais, they invited the Ethiopians to return; but the plot was discovered, and Necho and his fellow-conspirators sent in chains to Nineveh. Sais, Mendes, and other cities of northern Egypt were sacked, and Taharka, who had advanced as far as Thebes and even Memphis, fled to Ethiopia and there died. Meanwhile Necho had been pardoned and loaded with honours by the Assyrian king; his son, who took an Assyrian name, was made satrap of Athribis, near the modern Benha, and the satraps of the Delta henceforward remained faithful to their Assyrian master. But another Ethiopian prince, Tuant-Amon, made a last attempt to recover the dominion of his fathers. Thebes received him with acclamation, and Memphis was taken without difficulty. There the satrap of Goshen came to pay him homage on behalf of his brother-governors in the north.
His triumph, however, was short-lived. Assur-bani-pal determined to inflict a terrible punishment on the rebel country, and to reduce it to subjection once for all. Thebes had been the centre of disaffection; its priesthood looked with impatience on the rule of the Asiatic, and were connected by religion and tradition with Ethiopia; on Thebes and its priesthood, therefore, the punishment had to fall. The Ethiopian army retreated to Nubia without striking a blow, and Egypt was left defenceless at the mercy of the Assyrian. The Assyrian army entered Thebes, the No or "City" of Amon, bent on the work of destruction. Its temple-strongholds were plundered and overthrown, its inhabitants carried into slavery, and two obelisks, seventy tons in weight, were sent as trophies to Nineveh. The sack of Thebes made a deep impression on the Oriental world; we find it referred to in the prophecies of Nahum (iii. 8).
Egypt now enjoyed peace, but it was the peace of exhaustion and powerlessness. Psammetikhos had succeeded his father Necho, who had been put to death by Tuant-Amon. He was a man of vigour and ability, and he aimed at nothing less than sovereignty over an united and independent Egypt. His opportunity came in B.C. 655. The Assyrian empire was shaken to its foundations by a revolt of which Babylonia was the centre and which had spread to its other provinces. For a time it was called on to struggle for bare existence. While the Assyrian armies were employed elsewhere, Psammetikhos shook himself free of its authority, and, with the help of Greek and Karian mercenaries from Lydia, overcame his rival satraps and mounted the throne of the Pharaohs. Once more, under the Twenty-sixth dynasty, Egypt enjoyed rest and prosperity; the administration was re-organised, the cities and temples restored, and art underwent an antiquarian revival. Psammetikhos even dreamed of recovering the old supremacy of Egypt in Asia; the Assyrian empire was falling into decay, and Egypt was endeavouring to model its life after the pattern of the past. After a long siege Ashdod was taken, and the control of the road into Palestine was thus secured.
But the power of the Twenty-sixth dynasty rested upon its Greek mercenaries. The kings themselves were, it is probable, Libyans by descent, and the feelings of the native priesthood towards them do not seem to have been cordial. Their policy and ideas were European rather than Egyptian. Necho, the son and successor of Psammetikhos, cleared out the old canal which united the Red Sea with the Nile, and did all that he could to encourage trade with the Mediterranean. An exploring fleet was even sent under Phoenician pilots to circumnavigate Africa. Three years were spent on the voyage, and the ships finally returned through the Straits of Gibraltar to the mouths of the Nile. Meanwhile, the Pharaoh had marched into Palestine. Gaza was captured, and the Jewish king, Josiah, slain in his attempt to bar the way of his unexpected enemy. Jerusalem surrendered, and a nominee of the Egyptians was placed upon its throne.
The Asiatic empire of the Eighteenth dynasty was thus restored. But it lasted barely three years. In B.C. 605 the Egyptians were defeated by Nebuchadrezzar under the walls of Carchemish on the Euphrates, and Asia passed into the possession of the Babylonians. Once more Palestine became a shuttlecock between the kingdoms of the Nile and the Euphrates. Trusting to the support of Egypt, Zedekiah of Judah revolted from his Babylonian master. His policy at first seemed successful. The Babylonian army which was besieging Jerusalem retired on the approach of Psammetikhos II., who had succeeded his father Necho, and the Jewish statesmen again breathed freely. But the respite lasted for only six years. The Babylonian troops returned with increased strength; the Egyptians retreated to their own country, and Jerusalem fell in B.C. 588, one year after the death of the Egyptian king.
His son Hophra or Apries had made a vain attempt to rescue Zedekiah. His fleet had held the sea, while his army marched along the coast of Palestine and occupied Tyre and Sidon. But the fall of Jerusalem obliged it to retire. The dream of an Asiatic empire was over, and the Pharaoh had more than enough to do to defend himself against his own subjects. They saw with growing impatience that the power and wealth of the Greek mercenaries continually increased. The native army had already deserted to Ethiopia; now the priests complained that the revenues of the temples were sacrilegiously confiscated for the support of the foreigner. In B.C. 570 discontent reached a head; civil war broke out between Hophra and his brother-in-law Ahmes or Amasis, which ended in the defeat of Hophra and his loss of the crown.