NOVELTY - The apparatus comprises a screening unit, a sedimentation unit, a filtration unit, an aerobic bioreaction unit, a fixed media anaerobic bioreaction unit, a collecting and concentrating unit, a monitoring and controlling unit, a desalinating unit, a settling tank, and an adding unit. The screening unit is configured for primary screening of solids from wastewater to produce gross solids and screened wastewater (22) containing waste solids. The sedimentation unit is configured for sedimentation of solids from the screened wastewater to produce sedimented waste solids.    USE - The apparatus is useful for treating wastewater to produce fertilizer, where the wastewater includes bore water, leachate, factory wastewater, sewerage such as black wastewater, grey water such as commercial and domestic wastewater from laundry, car washing, hand basin and shower/spa use and water from rivers and lakes.    ADVANTAGE - The secure and reliable apparatus rapidly, efficiently, safely and economically provides highly qualified water with less energy consumption.    DETAILED DESCRIPTION - The apparatus comprises a screening unit, a sedimentation unit, a filtration unit, an aerobic bioreaction unit, a fixed media anaerobic bioreaction unit, a collecting and concentrating unit, a monitoring and controlling unit, a desalinating unit, a settling tank, and an adding unit. The screening unit is configured for primary screening of solids from wastewater to produce gross solids and screened wastewater (22) containing waste solids. The sedimentation unit is configured for sedimentation of solids from the screened wastewater to produce sedimented waste solids and a supernatant wastewater (46) containing suspended solids. The filtration unit is configured for filtration of solids from the supernatant wastewater to produce concentrated waste solids and a filtered wastewater containing organic material. The aerobic bioreaction unit is configured for aerobic bioreaction of the organic material in the filtered wastewater to produce a sludge of waste solids and non-drinkable recycled water. The fixed media anaerobic bioreaction unit is configured for fixed media anaerobic bioreaction of the waste solids to produce methane gas and excess solids. The collecting and concentrating unit is configured for collecting and concentrating the excess solids to produce fertilizer and/or a solid material with energy producing capacity. The monitoring unit is configured for remote continuous monitoring and controlling in real time of the operation of the apparatus. The desalinating unit is configured for desalinating the non-drinkable recycled water to produce drinkable, potable water. The sedimentation unit comprises a first unit for mixing a predetermined dose of coagulant to the screened wastewater to produce a coagulated slurry, and a second unit for mixing a predetermined dose of flocculants to the coagulated slurry to produce waste solids. The settling tank is configured for allowing sedimentation of the waste solids. The filtration unit comprises a cross flow microfiltration unit or ultrafiltration unit to produce filtered wastewater containing organic material. The fixed media anaerobic bioreaction unit comprises an anaerobic bioreactor tank containing naturally occurring anaerobic microorganisms supported upon a blend of biofiltration media comprising particles, which absorb and/or adsorb pollutants in the wastewater. The anaerobic bioreactor tank further contains a blend of micronutrients, which are used by the anaerobic microorganisms to transform volatile fatty acids into methane gas. The blend of micronutrients includes metal ions. The anaerobic bioreactor tank comprises a unit for chelating the metal ions so that the metal ions become available for the anaerobic microorganisms to take up and use. The adding unit is configured for adding micronutrients to the blend at controlled doses based on a determination of the flow rate of the wastewater through the anaerobic bioreactor tank versus organic load in the wastewater. The aerobic bioreaction unit comprises an aerobic bioreactor tank containing naturally occurring aerobic bacteria, which digest organic material to produce non-drinkable recycled water conforming to Class A parameters.    DESCRIPTION OF DRAWING(S) - The diagram shows a schematic view of an apparatus for treating wastewater.    Raw sewerage feed (12)    Drying chamber (18)    Screened wastewater (22)    Holding tank (30)    Supernatant wastewater. (46)