The invention discloses an ecological compound substrate, which is composed of the following ingredients: peat soil, yellow soil, pinewood soil, burned soil, bacteria soil, forest muck soil, plant ash, zeolite or artificial zeolite, perlite or expanded perlite, sand, vermiculite or expanded vermiculite, calcium superphosphate, phosphatic fertilizer and granular or sheet micro-biological concrete bricks. A compound bio-ecological building block is characterized in that the building block is in the shape of a hollow uncovered box, the inner cavity of the building block comprises the ecological compound substrate, and the sidewall of the building block is provided with a planting hole and a drainage hole at a certain distance away from the bottom. A compound bio-ecological retaining wall is built by piling up the compound bio-ecological building blocks. The retaining wall can degrade the rain water and the pollutants by biological adsorption, and can absorb and remove the degraded substances by plants, and the green plants can also build natural landscape and ecological environment, thus, water can be purified continuously, and the high-strength, steady, effective, artistic, green and ecological retaining wall is formed.