The knowledge of static electricity dates back to the earliest civilizations, but for millennia it remained merely an interesting and mystifying phenomenon, without a theory to explain its behavior and often confused with magnetism. The ancients were acquainted with other curious properties possessed by two minerals, amber (ἤλεκτρον) and magnetic iron ore. Amber, when rubbed, attracts light bodies; magnetic iron ore has the power of attracting iron.
The discovery of the property of magnets.
Magnets were first found in a natural state; certain iron oxides were discovered in various parts of the world, notably in Magnesia in Asia Minor, that had the property of attracting small pieces of iron, which is shown here.
Based on his find of an Olmec hematite artifact in Central America, the American astronomer John Carlson has suggested that "The Olmec may have discovered and used the geomagnetic lodestone compass earlier than 1000 BC". If true, this "predates the Chinese discovery of the geomagnetic lodestone compass by more than a millennium". Carlson speculates that the Olmecs may have used similar artifacts as a directional device for astrological or geomantic purposes, or to orientate their temples,
Long before any knowledge of electromagnetism existed, people were indirectly aware of the effects of electricity. Lightning, of course and certain other manifestations of electricity, were known to the philosophers of ancient times, but to them no thought was more remote than that these manifestations had a common origin. Ancient Egyptians were aware of shocks when interacting with electric fish (such as the electric catfish) or other animals (such as electric eels). The shocks from animals were apparent to observers since pre-history by a variety of peoples that came into contact with them. Texts from 2750 BC by the ancient Egyptians, referred to these fish as "thunderer of the Nile" and saw them as the "protectors" of all the other fish. Another possible approach to the discovery of the identity of lightning and electricity from any other source, is to be attributed to the Arabs, who before the 15th century had the Arabic word for lightning (barq) applied to the Electric ray.
According to Thales of Miletus, writing at around 600 BC, noted that a form of electricity was observed by the Ancient Greeks that would cause a particular attraction by rubbing fur on various substances, such as amber. Thales wrote on the effect now known as static electricity. The Greeks noted that the amber buttons could attract light objects such as hair and that if they rubbed the amber for long enough they could even get an electric spark to jump. During this time in alchemy and natural philosophy, the existence of a medium of the жther, a space-filling substance or field, thought to exist.
The electrostatic phenomena was again reported millennia later by Roman and Arabic naturalists and physicians. Several ancient writers, such as Pliny the Elder and Scribonius Largus, attested to the numbing effect of electric shocks delivered by catfish and torpedo rays. Pliny in his books writes: "The ancient Tuscans by their learning hold that there are nine gods that send forth lightning and those of eleven sorts." This was in general the early pagan idea of lightning. The ancients held some concept that shocks could travel along conducting objects. Patients suffering from ailments such as gout or headache were directed to touch electric fish in the hope that the powerful jolt might cure them.
A number of objects found in Iraq in 1938 dated to the early centuries AD (Sassanid Mesopotamia), called the Baghdad Battery, resembles a galvanic cell and is believed by some to have been used for electroplating. The claims are controversial because of supporting evidence and theories for the uses of the artifacts, physical evidence on the objects conducive for electrical functions, and if they were electrical in nature. As a result the nature of these objects is based on speculation, and the function of these artifacts remains in doubt.