Lymphocyte function is regulated by a network of ion channels and transporters in the plasma membrane of B and T cells. These proteins modulate the cytoplasmic concentrations of diverse cations, such as calcium, magnesium and zinc ions, which function as second messengers to regulate crucial lymphocyte effector functions, including cytokine production, differentiation and cytotoxicity. The repertoire of ion-conducting proteins includes calcium release-activated calcium (CRAC) channels, P2X receptors, transient receptor potential (TRP) channels, potassium channels, chloride channels and magnesium and zinc transporters. This Review discusses the roles of ion conduction pathways in lymphocyte function and immunity.