  We report the possibility to simultaneously perform wide-field
nitrogen-vacancy (NV) diamond magnetic microscopy and synchrotron X-ray
diffraction (XRD) measurements at high pressure. NV color centers are created
on the culet of a diamond anvil which is integrated in a diamond anvil cell for
static compression of the sample. The optically detected spin resonance of the
NV centers is used to map the stray magnetic field produced by the sample
magnetization. Using this combined scheme, the magnetic and structural
behaviors can be simultaneously measured. As a proof-of-principle, we record
the correlated {\alpha}-Fe to {\epsilon}-Fe structural and magnetic transitions
of iron that occur here between 15 and 20 GPa at 300 K.
