Involved in divalent cation and potassium homeostasis in the cell. Catalyzes the active efflux of zinc, cadmium and cobalt, in exchange for potassium and H(+) ions. Repressed by CzrA. Belongs to the cation diffusion facilitator (CDF) transporter (TC 2.A.4) family. SLC30A subfamily.