The P1B-ATPases are a ubiquitous family of metal transporters. These transporters are classified into subfamilies on the basis of substrate specificity, which is conferred by conserved amino acids in the last three transmembrane domains. Five subfamilies have been identified to date, and representative members of four (P1B-1 to P1B-4) have been studied. The fifth family (P1B-5), of which some members contain a C-terminal hemerythrin (Hr) domain, is less well characterized. The S. meliloti Sma1163 gene encodes for a P1B-5-ATPase, denoted Nia (Nickel-iron ATPase), that is induced by exogenous Fe(2+) and Ni(2+). The nia mutant accumulates nickel and iron, suggesting a possible role in detoxification of these two elements under free-living conditions, as well as in symbiosis, when the highest expression levels are measured. This function is supported by an inhibitory effect of Fe(2+) and Ni(2+) on the pNPPase activity, and by the ability of Nia to bind Fe(2+) in the transmembrane domain. Optical and X-ray absorption spectroscopic studies of the isolated Hr domain confirm the presence of a dinuclear iron center and suggest that this domain might function as an iron sensor.