Although it has been debated that the Ancient Egyptians had access to advanced technologies such as batteries that helped produce electricity, the discovery of the Baghdad Battery proves that they were indeed capable of this 2000 years ago.
The Baghdad Battery which was found by Wilhelm König in Khujut Rabu, Iraq is originally thought to be from Iraq.
According to reports, it consists of 3 items, namely, a ceramic pot, a tube of copper, and a rod of iron, and is assumed to have been used for some form of electrotherapy: "There is the small clay pot which, when found, measured 14cm in height, but would have been taller when it was complete. Its top, broken off, is believed to have been sealed with asphalt. Inside this was a copper cylinder, the second object, which in turn encased the third, an iron rod. The rod would have protruded through the jar’s stopper."
Another idea floated around was that the ancient battery was used as a religious magic trick. By placing it in statues of idols, it would create a buzz both literally and figuratively.
The 2009 Netflix documentary “The Pyramid Code” cites several instances where the Egyptians have used sophisticated technology as illuminated by this excerpt: "No soot has been found in the corridors of the pyramids or the tombs of the kings because these areas were lit using electricity, the documentary adds. Relief carvings could also show that the Egyptians used hand-held torches powered by cable-free sources. The arc lamp used in the Lighthouse of Alexandria is further evidence that electricity might have been used in ancient Egypt."
However, the low amperage of the Baghdad Battery makes it doubtful that it would have been able to power up much.