Some trees have roots that are above the ground "and" underground. Mangrove trees have aerial roots (roots which come up into the air). They exchange gases with the atmosphere, just as leaves do. They are an adaptation to the poor level of oxygen in the waterlogged soil of the mangrove swamp.