When Moses and his brother Aaron got to Egypt the Lord told them what to do.
He said, "Go to Pharaoh and tell him to let the Israelites go.
He will be very stubborn and it will take many signs and miracles before he will let you go; but everyone will know that I am God when he finally frees the Israelites." So they did what God asked and they went to see Pharaoh.
In front of Pharaoh Aaron threw down his staff and it became a snake (just as God told Moses it would).
Pharaoh didn't look surprised at all, he actually just smiled at Moses and Aaron.
Without a word he snapped his fingers and a minute later three men walked in.
Pharaoh whispered in one of the men's ears, and he nodded and spoke quietly to the others.
All at the same time they threw the staffs they were carrying to the ground and they became snakes, just like Moses and Aaron's.
They turned and looked at each other with disappointment.
They realized that these men were Pharaoh's magicians.
Just as Moses was feeling defeated his snake swallowed up all of the other snakes.
This made Moses smile, surely Pharaoh would let them go now.