Anodes and cathodes are electrodes used in electrochemical cells, where the anode is the site of oxidation and the cathode is the site of reduction. The direction of electron flow is from the anode to the cathode in galvanic cells, while in electrolytic cells, an external power source drives electrons in the opposite direction.