"Moses agreed to stay with the man, who gave his daughter Zipporah to Moses in marriage. Zipporah gave birth to a son, and Moses named him Gershom, saying, 'I have become an alien in a foreign land.'" NIV translation
Moses settled there and was given a wife. It is also here that he realized that Egypt was not his home and that is why he named his son Gershom.
"During that long period, the king of Egypt died. The Israelites groaned in their slavery and cried out, and their cry for help because of their slavery went up to God. God heard their groaning and he remembered his covenant with Abraham, with Isaac and with Jacob. So God looked on the Israelites and was concerned about them." NIV translation
The "long period" was forty years that Moses was in the land of Midian. It was during this time that God was preparing him for his mission. This was the start of a long pattern which continues even to this day.
This pattern is where God takes His chosen servant to a solitary place and prepares him or her for service. During this time, Egypt got a new ruler and the oppression got so bad that the Israelites called upon God again.
One of the really wonderful things about this is the fact that, even before the Israelites were crying out, God had been preparing Moses to deliver them. God is the same today and so we can take comfort in the fact that God is already got the answer for the troubles we face. Like the Israelites, He is concerned about us and, at the proper time, His answer will be sent.