Protein involved in the transport of ions. Such proteins are usually transmembrane and mediate a movement of ions across cell membranes. Transport may be passive (facilitated diffusion; down the electrochemical gradient), or active (against the electrochemical gradient). Active transport requires energy which may come from light, oxidation reactions, ATP hydrolysis, or cotransport of other ions or molecules.