In this study, a mathematical model of groundwater uptake, water accumulation and salt filtration was developed on a two-layer water layer. Two-level reservoirs compiled and numbered a mathematical model of the problem of groundwater recovery. The amount of research is of great practical importance, and in some regions it is necessary to restore saline soils and create clean water resources as an environmentally unfavorable situation.