The invention relates to an ecological engineering technology for stopping riverway coastal pollutants from entering rivers and restoring vegetation communities. The ecological engineering technology consists of four basic unit systems, namely a land pollutant stopping and purification system, a slope protection system, a base construction system and a plant cultivation system; the units consist of physical materials and plants, wherein the pollutant stopping and purification system is built by materials such as plastic, woods, gravels, plants and the like; the slope protection system is built by materials such as woods or concrete, stone blocks, metal wires and the like; the base construction system is built by materials such as plastic, woods, soils, gravels, metal wires and the like; and the plant cultivation system consists of materials such as plants, plastic, soils and the like. The ecological engineering technology aims at land directional runoff pollution and side slope ecological structure construction of rural or urban suburban riverways, and has the advantages of fully and effectively collecting, detaining and purifying the land directional runoff pollution, particularly the runoff pollution of initial rain water, reducing the total amount of pollutants entering the riverway and realizing effective control on the riverway pollution; meanwhile, by the ecological engineering technology, a physical structure and a biologic structure of the riverway from the land direction to the water direction can be stabilized and perfected by building and restoring revetments and bases of the riverway, so a healthy, stable and developed riverway side slope biologic system is formed at last.