X-ray absorption spectroscopy and ab initio calculations unveil the correlation between local, vibrational and electronic structure of CuO under high pressure.