A concentration cell is a type of electrochemical cell where two half-cells contain the same electrodes but differ in the concentration of the electrolyte. This difference in concentration creates a potential difference that drives the flow of electrons from the more concentrated side to the less concentrated side, generating an electric current. Concentration cells illustrate the principles of the Nernst equation, which relates the cell potential to the concentration gradient.