A building module (2,4) for the construction of a vertical garden, a wall or a fence, comprises a box- shaped body (6), a plurality of undulated bands (14), arranged inside the box-shaped body (6), which form the outer face of the box-shaped body, irrigation means, and irrigation water drainage means. The building module is pre-assembled to constitute an independent transportable module.