A diamond anvil cell is a high-pressure device used to compress materials to extreme pressures, simulating conditions found deep within the Earth or other planetary interiors. It uses two opposing diamonds to apply pressure, allowing scientists to study the physical and chemical properties of materials under such conditions, including phase transitions and superconductivity.