Nevertheless, the people multiplied. The memory of the Hyksos invasion had not passed away, and the Pharaoh and his subjects alike feared the possibility of other invaders from Asia being joined by their disaffected kinsfolk in Egypt itself. That their fears were justified is shown by what happened less than a century later. When the Nineteenth dynasty fell in the midst of civil war, a Canaanite, Arisu by name, seized the throne and made himself master of Egypt. Ramses determined to prevent such a catastrophe by destroying as many as possible of the male children of the Hebrews. The men were worn down in body and mind by constant labour, the children were not allowed to live.

Egyptian testimony confirms the statement of Scripture that this policy was actually carried out. A hymn of victory addressed to Meneptah alludes to "the Israelites" to whom "no seed" had been left. But the policy was ineffectual. The opportunity came at last when the serfs could fly from their enforced labour and escape into the wilderness.

It was in the fifth year of Meneptah (B.C. 1276). Egypt was threatened by formidable enemies. The Libyans advanced against it by land, the nations of the Greek seas attacked it by water. Achæans came from the north, Lycians from Asia Minor, Sardinians and Sicilians from the islands of the west. The Delta was overrun by swarms of barbarians, who pitched their tents in front of Belbeis at the western end of the land of Goshen. Plague after plague descended upon the Egyptians, and the freedom of his serfs was wrung from the Pharaoh. They fled by night, carrying with them the spoil they had taken from their masters, only to find that the gate of the great line of fortification which protected the eastern frontier of Egypt was closed against them. Meneptah had repented of his act, and a squadron of six hundred chariots was sent in pursuit of the fugitives.

But a violent wind drove back the sea from the shallows at the southern extremity of the forts, and enabled the Israelites to cross them. While their pursuers were following in their footsteps, the dropping of the wind caused the waters to return upon them, and chariots, horses, and men were alike overwhelmed. The Israelites were saved as it were by miracle, and the Pharaoh lost his bondsmen.

But Egypt also succeeded in repelling the storm of invasion which had fallen upon it. The Libyans and their northern allies were annihilated in a decisive battle, their king, Murai, fled from the field, and a countless amount of booty and prisoners fell into the hands of the victorious Egyptians. Canaan, however, was lost, with the exception of Gaza, which defended the road from Egypt, and was still garrisoned by Egyptian troops. But Gaza, the Calais of Egypt, was not destined to remain long in their power. Already the coast-road was made dangerous by the attacks of Philistine pirates from Crete; and it was not long before the pirates took permanent possession of the southern corner of Palestine, and established themselves in its five chief towns. The Egyptian domination in Asia had passed away for ever.

After Meneptah's death the Nineteenth dynasty soon came to an inglorious end. Civil war distracted the country, and for a time it obeyed the rule of a foreign chief. Then came the rise of the Twentieth dynasty, and a third Ramses restored the prestige and prosperity of his kingdom. But once more the foreign invader was upon its soil. The nations of the north had again poured southward, partly by land, partly by sea, greedy for the wealth that was stored in the cultured lands of the Oriental world, and eager to find new settlements for an expanding population. Greek traditions spoke of the movement as a consequence of the Trojan war, and delighted to dwell on the voyages of its heroes into unknown seas, of the piratical descents to which it led, and of the colonies which were planted by it. The Philistine occupation of southern Palestine was one of its results.

As in the time of Meneptah, the Libyans took part with the northern tribes in the assault upon Egypt, and Sardinians and Sicilians followed behind them. But the main bulk of the invaders came from the Greek seas. The Danaans take the place of the Achæans, and the Philistines are among their allies. The invaders had swept through western Asia, plundering and destroying as they marched, and bringing in their train contingents from the countries through which they passed. Hittites, Mitannians, and Amorites all followed with them, and the motley host of men and ships finally reached the Egyptian frontier. Here, however, they were met by the Pharaoh. The battle raged by sea and land, and ended in a triumph of the Egyptians. The invaders were utterly overthrown, their ships burned, their kings and leaders made captive. Egypt was once more saved from destruction, and Ramses III. was free to develop its resources and repair the damage that had been done.

First came a campaign in Canaan and Syria, the object of which was not to acquire territory, but to teach the Asiatic that there was once more an army in Egypt. The Egyptian forces seem to have gone as far as Hamath; at all events, they occupied southern Palestine, capturing Gaza, Hebron, and Jerusalem, and made their way across the Jordan into Moab. Another campaign carried the Egyptian troops into Edom, where they burned the "tents" of the Bedâwin, and for the first and last time in history planted the Egyptian standard on the slopes of Mount Seir. Ramses now turned to the internal administration of his country, and the copper-mines of Sinai, like the gold-mines of the eastern desert, were worked with fresh vigour. The spoil won from the northern invaders made the Pharaoh the richest monarch of the age. Temples were built, and endowed with lavish generosity, and the priesthood must have grieved when he died at last after a reign of thirty-three years.

He was followed by a line of feeble princes. The high-priests of Amon at Thebes usurped their power, and finally dispossessed the last of them of the throne. A new dynasty arose in the Delta. In the south the government was practically in the hands of the Theban high-priests. With a divided kingdom the strength of Egypt passed away.