Thermal disinfection works by exposing microorganisms to high temperatures, which denatures their proteins and disrupts their cellular structures, rendering them non-viable. The effectiveness of thermal disinfection depends on several factors, including the temperature, duration of exposure, and the nature of the microorganisms. Common methods include autoclaving, boiling, and the use of hot water or steam.