Answer explained
Municipal wastewater (sewage), rich in organic matter and pathogens, is treated in a Sewage Treatment Plant (STP) before release into water bodies.
Primary treatment: physical removal of solids by filtration and sedimentation (floating debris removed, grit settles out as primary sludge).
Secondary (biological) treatment: the effluent passes into an aeration tank where it is agitated and aerated, letting aerobic microbes grow as flocs that consume the organic matter and reduce the BOD; it then passes to a settling tank where the microbial floc settles as activated sludge — part is reused as inoculum, and the rest goes to an anaerobic sludge digester, where anaerobic bacteria digest it and produce biogas (methane) used as fuel. The treated effluent is released into natural water bodies.