Sunspots are intense collections of magnetic fields that pierce through the Sun's photosphere, with their signatures extending upwards into the outermost extremities of the solar corona 1. Cutting-edge observations and simulations are providing insights into the underlying wave generation 2 , configuration 3, 4 , and damping 5 mechanisms found in sunspot atmospheres. However, the in-situ amplification of magnetohydrodynamic waves 6 , rising from a few hundreds of m/s in the photosphere to several km/s in the chromosphere 7 , has, until now, proved difficult to explain. Theory predicts that the enhanced umbral wave power found at chromospheric heights may come from the existence of an acoustic resonator 8-10 , which is created due to the substantial temperature gradients experienced at photospheric and transition region heights 11. Here we provide strong observational evidence of a resonance cavity existing above a highly magnetic sunspot. Through a combination of spectropolarimetric inversions and comparisons with high-resolution numerical simulations, we provide a new seismological approach to map the geometry of the inherent temperature stratifications across the diameter of the underlying sunspot, with the upper boundaries of the chromosphere ranging between 1300 ± 200 km and 2300 ± 250 km. Our findings will allow the three-dimensional structure of solar active regions to be conclusively determined from relatively commonplace two-dimensional Fourier power spectra. The techniques presented are also readily suitable for investigating temperature-dependent resonance effects in other areas of astrophysics, in