Measuring the magnetic configuration at complex buried layers and interfaces is an important task, which requires especially a non-destructive probing technique. X-ray resonant magnetic reflectometry (XRMR) combines the non-destructive depth profiling potential of x-ray reflectometry with the excellent sensitivity for magnetic phenomena, utilizing the x-ray magnetic circular dichroism effect. It provides the magnetic spatial distribution with a precision down to the angstrom scale, combined with element and symmetry specificity, sub-monolayer sensitivity, and the possible separation of spin and orbital magnetic moments. This review provides an overview to the XRMR technique in a tutorial way. We focus on the introduction to the theory, measurement types, and data simulation. We provide related experimental examples and show selected applications.