Moses encounters God and God commands him to free the Israelites.
"Go to the pharaoh and tell him to let my people go."
"I am here because God sent me. He wants you to free the people of Israel."
Moses tells the Egyptian pharaoh to free the Israelites but he does not do so.
"Oh he does, does he? Too bad for him. Who is this God anyway? I've never heard of him. Have you?"
"No, your most royal, wonderful highness."
God sent ten plagues to Egypt because the pharaoh did not free the Israelites. The last plague killed all newborn sons including the pharaoh's son. The pharaoh was so upset that he told Moses to leave Egypt and take the Israelites with him. Moses left Egypt along with the Israelites before the pharaoh were to change his mind and command them to stay in Egypt.
"What has your God done? He has taken my son from me! Leave Egypt at once and take your people with you!"