The incorporation of sulfur (S) into the apatite structure and the partitioning of S between apatite and silicate melt (D-S(ap/m)) have been proposed to vary systematically as a function of prevailing redox conditions. In this study, we experimentally equilibrated apatite with mafic silicate melt at 1000 degrees C, 300 MPa and a range of oxygen fugacity (fO(2); log fO(2) [DFMQ] = -1, 0, +0.3, +1.2, and +3 where FMQ is the fayalite-magnetite-quartz mineral redox buffer) to explore the partitioning behavior of S, including different oxidation states of S, between apatite and silicate melt. The data reveal that D-S(ap/m) values increase systematically with increasing fO(2), from 0.02 +/- 0.01 at log fO(2) [DFMQ] of -1 to 3.20 +/- 0.19 at log fO(2) [DFMQ] of +3. The bulk S content (similar to 0.37 and similar to 0.28 wt.% S added) imparts a minor influence on D-S(ap/m) at reducing conditions. Micro X-ray absorption near edge structure (mu-XANES) spectroscopy at the S K-edge was used to measure, in situ, the oxidation states of S in experimentally crystallized apatite. The SXANES analyses reveal that with increasing fO(2), apatite progressively incorporates S6+ >> S2- > S4+ > S1+. The integrated S6+/Sigma S peak area ratios and centroid energies (eV) were determined for apatite crystals in apatite from experiments at all fO(2) conditions. The orientation effects occurring during S-XANES analyses of apatite were considered by merging spectra from multiple grains with random crystallographic orientation. The S-XANES data reveal that S6+/Sigma S peak area ratios and the centroid energies increase systematically with fO(2), demonstrating that the S6+/Sigma S ratio in apatite can be used as an oxybarometer. The results demonstrate that both the S6+/Sigma S and C-eV calibration methods are highly sensitive in the redox range of similar to FMQ to similar to FMQ + 1.2 at the conditions and compositions evaluated in this study. As a result, the S-in-apatite oxybarometer is particularly applicable to mafic systems such as mid ocean ridge basalts (MORB), relatively reduced ocean island basalts (OIB), and back-arc basin basalt (BABB). Owing to the ubiquity of apatite in magmatic and magmatic-hydrothermal systems, measuring the concentration and oxidations state(s) of S-in-apatite has the potential to serve as a powerful sulfo- and oxybarometer for a broad range of natural systems. (C) 2019 Elsevier Ltd. All rights reserved.