A reaction between different metals in the presence of an electrolyte.