Answer
To generate electricity, Volta's invention, the voltaic pile, utilized a stack of alternating copper and zinc discs separated by brine-soaked cloth or cardboard. This arrangement produced a flow of electric current when connected to a circuit, making it the first electrochemical battery and a pioneering step in the field of electricity generation through chemical reactions.