A galvanic cell is an electrochemical cell which converts chemical potential energy to electrical potential energy through a spontaneous chemical reaction.
In a galvanic cell, there are two half-cells. Each half-cell contains an electrode in an electrolyte. The separation is necessary to prevent direct chemical contact of the oxidation and reduction reactions, creating a potential difference. The electrons released in the oxidation reaction travel through an external circuit (ammeter) (and do work) before being used by the reduction reaction.