What do you do when your security vanishes and enemies surround you? The Israelites faced this problem, but they had forgotten that God always provides and protects His people.
Who is going to sit on the throne? Pharaoh grapples for authority by refusing to release the Israelites, but ultimately it is God who sovereignly hardens Pharaoh's heart that He might get glory.
Sometimes things don't go exactly as we imagine them going. However, God is faithful. We must trust and hope in Him, looking to Him alone for the provision of the Good.
The story of Joseph can encourage us as believers to remember that we are children of the One who holds the power over nations and people; He can use any circumstances for our good and His glory.