A plant for the treatment of biological sludges with recovery of secondary raw materials and energy