The LORD told Moses and Aaron,
"If Pharaoh demands that you work a sign or wonder, you shall say to Aaron:
Take your staff and throw it down before Pharaoh, and it will be changed into a snake."
Then Moses and Aaron went to Pharaoh and did as the LORD had commanded.
Aaron threw his staff down before Pharaoh and his servants, and it was changed into a snake.
Pharaoh, in turn, summoned wise men and sorcerers, and they also, the magicians of Egypt, did likewise by their magic arts.
Each one threw down his staff, and it was changed into a snake. But Aaron’s staff swallowed their staffs.
Exodus 7:8-12
Egypt practiced sorcery and magic at the time the LORD called Moses to lead His people out of slavery. The magicians and sorcerers were able to duplicate the miracles that God had done through Moses and Aaron. What is the difference between the two things, miracles and magic? The difference is that the LORD provided the miracles and demons provided the magic.