Moses and Aaron went before Pharaoh and showed their wonders. But Pharaoh called his magicians, who could also do the same. (They cast their rods on the floor and they became serpents, etc.)