The activated sludge process (ASP) is a widely applied technology for biological wastewater treatment. The sludge production from the ASP is enormous and its management contributes typically 30 -50% of the total operating costs of the wastewater treatment plant (WWTP). To develop a more cost-effective and sustainable wastewater treatment process, reduced sludge generation, improved energy recovery and beneficial biosolids reuse for nutrient recovery are key optimisation targets. Anaerobic digestion (AD) is widely adopted for sludge stabilisation and energy recovery through biogas production. However, the poor digestibility of sludge, especially waste activated sludge (WAS), often reduces the AD efficiency. Sludge application on agricultural land provides an opportunity for the beneficial reuse of organic matter and nutrients, particularly nitrogen and phosphorus. However, toxic metal contaminants, including Cd, Cr, Cu, Ni, Pb and Zn, often limit land application of these biosolids. Hence there is a significant demand for innovative sludge treatment solutions that can remove toxic metals and improve sludge digestibility to maximise the beneficial reuse potential and minimise costs related to transportation and disposal. In this thesis, a novel sludge treatment technology concept was developed with integrating nitrite addition and in situ electrochemical acid and alkali production, whereby metal removal, pathogen reduction, sludge digestibility and dewaterability were all enhanced at the same time.First, the effect of nitrite addition on metal removal from acidified sludge was investigated using WAS from three different full-scale WWTPs. It was found that acidification to pH 2 by sulfuric acid achieved Zn removal of around 70%, but only 3 -7% of Cu was removed. Nitrite addition of 20 mg NO 2 --N/L (equal to 19.2 mg HNO 2 -N/L) to the acidified WAS substantially enhanced Cu removal to 45-64%, while Zn removal was also increased to over 81%. Metal distribution analysis using sequential chemical extraction revealed that the improvement of Cu and Zn removal was mainly due to the release of the organically bound metal fraction. Subsequent process optimisation demonstrated that a nitrite addition of 10 mg NO 2 --N/L and 5 hour exposure time was sufficient for metal removal enhancement for WAS at pH 2.To avoid the purchase, transport, storage and handling of corrosive acid and alkali for the treatment as well as minimising possible occupational health and safety issues with the treatment, a threecompartment electrochemical system (ES) was employed for the in situ sludge acidification and alkali generation. Acidification (to pH 2) of WAS and alkali production were achieved in the anode and cathode compartment, respectively, with a current efficiency of 85% for both anode and cathode processes. Maintaining the optimised WAS treatment conditions (5 h at pH 2 with 10 mg iii NO 2 --N/L) achieved solubilisation of 60 ± 2% Cu and 86 ± 1% Zn, which is even higher than what was achieved in the treatment with external acid...