We present the full order $g^6$ term in the weak-coupling expansion of the pressure of hot $\mathrm{SU}(3)$ Yang-Mills theory, resolving a problem that has remained open for more than two decades. To achieve this, we evaluate nine previously unknown nonfactorizing four-loop sum-integrals using the thermal loop-tree duality method with novel local ultraviolet and infrared subtractions, thereby completing the hard-scale contribution to the pressure for general $\mathrm{SU}(N_c)$.