NOVELTY - The multi-compartment device comprises a deposit (1) divided into compartments (2, 2', 2", 2''') that communicate to one another and is configured to operate as autonomous reactors, where circulation of wastewater occurs from one compartment to the next in a successive manner. The compartments are hermetically closed in their upper part. The compartments have: hoods for collection of gases from metabolic reactions consisting of aerobic, anaerobic and/or anoxic metabolic reactions; a receptacle for collection of sediments in their lower part; and a mesh filter (5) for separation of biomass.    USE - The multi-compartment device is useful for treating vertical flow wastewater (claimed) such as industrial wastewater and urban wastewater.    ADVANTAGE - The multi-compartment device efficiently treats all sorts of the wastewater such as high-load, medium-load or low-load wastewater, has reduced maintenance cost, and is simple and rapid to install.    DETAILED DESCRIPTION - The multi-compartment device comprises a deposit (1) divided into compartments (2, 2', 2", 2''') that communicate to one another and is configured to operate as autonomous reactors, where circulation of wastewater occurs from one compartment to the next in a successive manner. The compartments are hermetically closed in their upper part. The compartments have: hoods for collection of gases from metabolic reactions consisting of aerobic, anaerobic and/or anoxic metabolic reactions; a receptacle for collection of sediments in their lower part; and a mesh filter (5) for separation of biomass in their central portion. Each of the compartments has a parallelepiped plant and a prismatic shape. The compartments have parallel walls including first walls and second walls, such that each second wall is adjacent to the first wall. A connection is formed between adjacent compartments using openings, where a first opening is made in the upper part of first pairs of walls of adjacent compartments, and a second opening is made in the lower part of second pairs of walls of adjacent compartments. The first opening alternates with the second opening in every pair of successive adjacent compartments. The compartments: are made of reinforced concrete and independent from one another; operate in a series; and are arranged in several parallel lines. The device further comprises reagents consisting of air, hot water and/or carbon dioxide introduced into wall bushings (10) of lateral walls of each compartment, and biogas obtained as a result of the metabolic reactions is reintroduced into the compartments as the reagent.    DESCRIPTION OF DRAWING(S) - The diagram shows a schematic view of a multi-compartment device.    Deposit (1)    Compartments (2, 2', 2", 2''')    Mesh filter (5)    Wall bushings (10)    Gas collector. (14)