A galvanic cell is a device that converts chemical energy into electrical energy through spontaneous redox reactions. It consists of two half-cells, each containing an electrode and an electrolyte. One half-cell undergoes oxidation, releasing electrons, while the other half-cell undergoes reduction, accepting those electrons.
The flow of electrons from the anode (oxidation site) to the cathode (reduction site) generates an electric current. Electrolytes in each half-cell facilitate the movement of ions, maintaining charge balance. Common examples of galvanic cells include batteries, which power many electronic devices by providing a steady flow of electricity.