Pressure profoundly alters all states of matter. The symbiotic development of ultrahighpressure diamond anvil cells, to compress samples to sustainable multi-megabar pressures; and synchrotron x-ray techniques, to probe materials' properties in situ, has enabled the exploration of rich high-pressure (HP) science. In this article, we first introduce the essential concept of diamond anvil cell technology, together with recent developments and its integration with other extreme environments. We then provide an overview of the latest developments in HP synchrotron techniques, their applications, and current problems, followed by a discussion of HP scientific studies using x-rays in the key multidisciplinary fields. These HP studies include: HP x-ray emission spectroscopy, which provides information on the filled electronic states of HP samples; HP x-ray Raman spectroscopy, which probes the HP chemical bonding changes of light elements; HP electronic inelastic x-ray scattering spectroscopy, which accesses high energy electronic phenomena, including electronic band structure, Fermi surface, excitons, plasmons, and their dispersions; HP resonant inelastic x-ray scattering spectroscopy, which probes shallow core excitations, multiplet structures, and spin-resolved electronic structure; HP nuclear resonant x-ray spectroscopy, which provides phonon densities of state and time-resolved Mössbauer information; HP x-ray imaging, which provides information on hierarchical structures, dynamic processes, and internal strains; HP x-ray diffraction, which determines the fundamental structures and densities of single-crystal, polycrystalline, nanocrystalline, and non-crystalline materials; and HP radial x-ray diffraction, which yields deviatoric, elastic and rheological information. Integrating these tools with hydrostatic or uniaxial pressure media, laser and resistive heating, and cryogenic cooling, has enabled investigations of the structural, vibrational, electronic, and magnetic properties of materials over a wide range of pressure-temperature conditions.