Batteries are packages containing one or more galvanic cells that store electrical energy through chemical reactions. A battery contains two half cells, one for oxidation and one for reduction, separated by an electrolyte. When a circuit connects the battery terminals, a redox reaction occurs where the anode undergoes oxidation by releasing electrons and the cathode undergoes reduction by gaining electrons, generating a flow of electricity. The electrolyte facilitates the movement of ions between the half cells to complete the circuit.