Thermal relief valves operate by opening when the pressure within the system exceeds a pre-set limit. This allows the excess pressure to be relieved by discharging a small amount of the contained fluid. Once the pressure drops below the threshold, the valve automatically closes, thus maintaining the system's pressure within safe limits.