Sewage sludge is promising for the recovery and utilisation of nutrient components, but its complex nature hinders the release of these components. The combination of pH and thermal modifications shows promise for the release of nutrient components from sludge. However, comprehensive studies on the full spectrum of pH levels and corresponding mechanisms of pH-varying thermal modification are lacking. In this study, the main nutrient components, physicochemical properties, molecular structure, and noncovalent interactions of sludge were comprehensively investigated through pH-varying thermal modification (within a pH range of 2.0 to 12.0 under the same thermal condition). The experimental results showed that the release of main organics, particularly nitrogen (N)-containing organics, was well-fitted, with a tick-like function (R2: 0.74–0.96). The thermal protons exhibited a notable accumulative mutagenic effect on the N-containing organics release, while the thermal hydroxyl ions had a more direct effect, as revealed by the changes in multivalent metals and molecular structures with the protonation–deprotonation of carboxyl groups. The driving force for the release of N-containing organics was identified as the fluctuation of electrostatic interactions at the solid–liquid interface of the sludge. However, the release of phosphorus (P)-containing substances exhibited a contrasting response to that of N-containing substances with varying pH, likely because the reaction sites of thermal protons and thermal hydroxyl ions for P-containing substances were different. Moreover, high concentrations of thermal protons and hydroxyl ions collapsed the Lifshitz–van der Waals interactions of sludge, resulting in a decrease in viscoelasticity and binding strength. These propositions were further confirmed through statistical analyses of the main indicators of the main nutrient components, physicochemical properties, and noncovalent interactions of sludge. These findings can provide a basis for optimising characteristic-specific methods to recovery nutrient components (N/P) from sludge.