High pressure conditions are a crucial way to realize novel states and regulate material properties, while magnetic resonance technology is a widely used method to characterize microscopic magnetic structures and magnetic properties. The integration of these two fields offers new opportunities for cutting-edge research in condensed matter physics and materials science. However, it is challenging for conventional magnetic resonance to measure micrometer-sized samples under ultra-high pressure, as it is limited by low spin polarization and low signal detection efficiency. Recent advances in the field of quantum sensing in solids, in particular the development of quantum sensors based on diamond nitrogen vacancy (NV) centers, offer an innovative solution for magnetic resonance and in-situ quantum sensing under high-pressure conditions. This article summarizes the effects of high-pressure environments on the spin and optical properties of NV centers, with the aim of exploring the magnetic resonance of color centers under high pressure. In addition, with applications such as magnetic imaging, pressure detection, and characterization of the superconducting Meissner effect under high pressures, this article reviews recent advances in diamondbased quantum sensing under high-pressure conditions.