Two-stage activated sludge technology typically involves the following processes:Anaerobic stage:Wastewater first enters an anaerobic tank, where the organic matter in the effluent is decomposed by microorganisms under anaerobic conditions, producing some simple organic matter and gases, such as methane.Under anaerobic conditions, the organic matter is partially degraded, providing better conditions for subsequent treatment stages.Aerobic stage:Treated wastewater flows from the anaerobic tank into the aerobic tank, when the residual organic matter and nitrogen compounds contained in the water are oxidized under aerobic conditions.Under aerobic conditions, using oxygen, aerobic microorganisms continue to decompose and oxidize the organic matter in the sewage, while oxidizing ammonia nitrogen as nitrate nitrogen