As in any other plant living in the transitional area between the ocean and terrestrial zone, mangroves undergo more dynamic environmental stress as they simultaneously face stress from both zones. For this reason, mangroves were compelled to evolve several adaptation mechanisms, one of which is producing secondary metabolite compounds like flavonoid, phenol, terpenoid, saponin, and tannin. While the aforementioned compounds function as a way for mangroves to cope with environmental detriment, humans can make use of them for pharmaceutical purposes.