In 1808, Humphry Davy forced electrons back onto the metals of magnesia and lime using the electrolysis technique with a voltaic pile. These newly discovered elements were named magnesium and calcium.