The Creator-Almighty,who" invented" the Universe, "invented" electricity.
The history of electricity is as follows----
Thales of Miletus wrote in the 6th century BC that rubbing fur on various substances, such as amber, would cause a particular attraction between the two, which is 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 a spark to jump.
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, although there is no real consensus and proof on what the purpose of these devices was and if they were indeed electrical in nature, and is therefore speculative in nature.
Italian physician Girolamo Cardano wrote about electricity in De Subtilitate (1550) distinguishing, perhaps for the first time, between electrical and magnetic forces.
In 1600 the English scientist William Gilbert, in De Magnete, expanded on Cardano's work and coined the New Latin word electricus from ἤλεκτρον (elektron), the Greek word for "amber".
The first usage of the word electricity is ascribed to Sir Thomas Browne in his 1646 work, Pseudodoxia Epidemica.
Gilbert was followed in 1660 by Otto von Guericke, who invented an early electrostatic generator.
Other pioneers were Robert Boyle, who in 1675 stated that electric attraction and repulsion can act across a vacuum;
Stephen Gray, who in 1729 classified materials as conductors and insulators; and C. F. du Fay who first identified the two types of electricity that would later be called positive and negative
In 1752, Benjamin Franklin is frequently confused as the key luminary behind electricity. William Watson and Benjamin Frankilin share the discovery of electrical potentials. Benjamin Franklin promoted his investigations of electricity and theories through the famous, though extremely dangerous, experiment of flying a kite through a storm-threatened sky. A key attached to the kite string sparked and charged a Leyden jar, thus establishing the link between lightning and electricity.
Following these experiments he invented a lightning rod. It is either Franklin (more frequently) or Ebenezer Kinnersley of Philadelphia (less frequently) who is considered as the establisher of the convention of positive and negative electricity.