Electricity wasn't invented so much as discovered. It is a naturally occurring energy, lightning being the most striking example (pun intended !)
The first experiments to generate, store and control electricity took place mainly in the 17th and 18th centuries.
The first experiments to generate, store and control electricity took place mainly in the 17th and 18th centuries.