This invention relates to a polymer having a chain structure of a repeating unit of a proton-conducting compound which causes an electrochemical redox reaction in a solution of a proton source to act as an electrode active material, and a heterocyclic compound structure; and an electrochemical cell comprising the polymer as an electrode active material.