Our energy needs drive widespread materials research. Advances in materials characterization are critical to this research effort. Using new characterization tools that allow us to probe the atomic structure of energy materials in situ as they operate, we can identify how their structure is linked to their functional properties and performance. These fundamental insights serve as a roadmap to enhance performance in the next generation of advanced materials. In the last decade, developments in synchrotron instrumentation have made the pair distribution function (PDF) method and operando x-ray studies more readily accessible tools capable of providing valuable insights into complex materials systems. Here, the emergence of the PDF method as a versatile structure characterization tool and the further enhancement of this method through developments in operando capabilities and multivariate data analytics are described. These advances in materials characterization are demonstrated by several highlighted studies focused on energy storage in batteries.