Microbes in the activated sludge form flocs and consume organic matter as food, effectively removing it from the water. The process requires aeration to provide oxygen to these aerobic microorganisms.