Following the death of Joseph, a new king came to power in Egypt who did not know Joseph. By this time, the population and prosperity of the descendants of Jacob (Israel) had greatly expanded in Egypt (Exodus 1:7).
With the rise of the number and strength of Jews in Egypt, the Egyptians determined that they (the Egyptians) would enslave the Jews to prevent their alliance with foreign enemies and departure (Exodus 1:10).
This enslavement of 400 years had been revealed to Abraham during his lifetime, as well as the fact that this enslavement would precede the entering into of the Promised Land by his descendants (Genesis 15: 13).
As in the case of everything else that God directs or allows to take place in the Angelic Conflict, all things serve the primary purpose of bringing glory to God.
In this case, it would be through the miracles that God performed through Moses that the Jews would, in God’s timing,
leave Egypt , “…with many possessions (Gen. 15: 14)”.
Many times over, it is only after a period of undeserved suffering that the people of God are blessed.
God allows undeserved suffering to develop spiritual maturity in the lives of His people, by placing them in situations that only the hand of God could deliver them, bringing glory to Himself in the presence of both His people and His enemies.
Moses was born at a time when the Jews were enslaved in Egypt and in which an attempted genocide of the Jews was in progress calling for the drowning of all male newborn Jewish babies.
Needless to say, this was one of the many attempts to eliminate the Jews that had the full support, endorsement, and encouragement of the devil. Any attempt to eliminate the Hebrews/Jews is an attempt to prevent all of the Biblical prophecies (including the incarnation of God the Son) from taking place. The human beings involved may not all have known this, but the devil certainly did. No human act can take place against God's servants unless God permitted it to take place (John 19: 11). Jesus prayed to God the Father for the forgiveness of the very one's taking part in His crucifixion because they knew not what they were doing (Luke 23: 34).
Moses was spared this fate and was taken in and raised in the palace of the Egyptian princess, the daughter of Pharaoh.
Through the providence of God, Moses’ mother was also brought along to provide nutrition and nursing (Ex. 2: 9).
It was Egyptian princess that gave the child the name Moses and raised him as her son (Exodus 2:10). This set the stage for Moses to experience the life of royalty in the Court of Egypt.
Moses, however, as an adult sought to bond with his people, the enslaved Jews. While there, he witnessed an Egyptian beating a Jewish slave and intervened, taking the life of the Egyptian.
The Biblical account (Exodus 2:12) reveals that Moses, “... looked this way and that, and when he saw that no one was around, struck the Egyptian down.” Moses tried to conceal the act by burying the corpse. In the legal realm, such actions established "malice aforethought" and "consciousness of guilt," making the case one of murder. The next day, Moses learned that he had failed to cover up the murder (Exodus 2: 14). When the news of event reached the ears of Pharaoh, the king of Egypt wanted Moses dead and tried to kill him (Moses), but Moses fled to the land of Midian. There, being a fugitive, he remained for forty years.
From human viewpoint, one would think that a fugitive wanted for murder would not be a likely candidate to lead God's enslaved people out of the very nation where the murder had taken place forty years before.
The Pharaoh of Egypt (that wanted Moses dead) has passed away (Exodus 2: 23) Moses' case was apparently no longer any great concern to the existing administration as they either didn't recognize him as the man who fled forty years before, or chose not to arrest him when he appeared in the royal Court of Egypt to plead the case of the enslaved Jews.
When the divine time arrived for the end of the 400 years of slavery in Egypt to take place, God called Moses and commissioned him to go to the court of the reigning pharaoh, and demand that he (Pharaoh) release the Jews.
God (Exodus 3: 17) revealed to Moses that it was time for Jews to leave Egypt and to head for the land that was promised to the descendants of Abraham, Isaac, and Jacob (Israel). Moses was given the ability to perform miraculous signs in the presence of the elders and the people (Exodus 4:30).
Moses and Aaron went to the court of Pharaoh and made the demands of God known.
Not only did Pharaoh not honor the demands, he responded to with orders that only increased the amount of labor that was already required of the Jews in slavery.
We are not told to what extent the devil has been involved with the response that Pharaoh made to the first appearance of Moses, but the outcome was clearly what the devil desired.
God reassured Moses of His plan (Exodus 6), and reiterated the part that Moses was to play in it.
Moses tried toget out of the calling of God on his life by citing that he was lacking in speech (Exodus 4: 10), but God responded by appointing Aaron as his spokesperson (Exodus 6: 12, 13/Exodus 7:1) and reiterated (Exodus 7: 2) the commission that Moses had already received.
Just as the Lord had given Moses signs to perform in the presence of the elders and people (Exodus 4:30), Moses was given the power to perform signs in the presence of Pharaoh as evidence that he (Moses) was executing his divine commission (Exodus 7:10).
This time, Satan gave power to the “magicians of Egypt (Exodus 7:11), to perform the same type of signs, by turning their rods into serpents.
With just a little bit of spiritual discernment, one could see that the power of God was superior to the power of the devil, asthe serpents that God produced consumed (Exodus 7: 12) the serpents that the devil produced, but this went right over the head of Pharaoh who, with an ever-hardening heart, refused to listen.
Human nature will motivate us to make all kinds of promises to God, other people, and even ourselves, when we are in the midst of some form of adversity or suffering, but as soon as the adversity and/or suffering ends, we go right back to the same attitudes and behaviors that brought on the adversity and/or suffering in the first place (2Peter 2:22).
There was a series of appeals made to Pharaoh to set the Jews free, with an ever-increasing negative consequence that followed each plea that was rejected (See Chapters 7 through 10 of Exodus for details). Each time, when these negative consequences ended, so would Pharaoh’s willingness to release the Jews. It would not be until the final sign that took the life of the eldest son of each Egyptian household (including Pharaoh’s) that would finally motivate Pharaoh to allow the departure of the Jews, taking with them some of the treasures of Egypt (Exodus 3: 19-22).
This submission to the power of God on the part of Pharaoh did not last very long, as soon afterward, his army would be sent in hot pursuit after the exiting Jews.
This would prove to be glorious to God and disastrous to the Egyptians.
God provided a dry path across the seabed of the Red Sea for the departing Jews, but closed the waters in on the pursuing Egyptians, drowning them is the sea.
The Jews were free from the Egyptian bondage of slavery, but their destruction would remain to be on the top of the devil's "things to do" list in the ongoing Angelic Conflict. As long as the Jews remained, so did the coming of the Lord Jesus Christ.