Trace metal element (TME) pollution is a major threat to plants, animals and humans. Agricultural products contaminated with metals may pose health risks for people; therefore, international standards have been established by the FAO/WHO to ensure food safety as well as the possibility of crop production in contaminated soils. This study aimed to assess the accumulating potential of aluminum and barium in the roots, shoots and fruits of Abelmoschus esculentus L., and their effect on growth and mineral nutrition. The content of proline and some secondary metabolites was also evaluated. After treating okra plants with aluminum/barium (0, 100, 200, 400 and 600 µM) for 45 days, the results showed that Al stimulated the dry biomass production, whereas Ba negatively affected the growth and the fructification yield. The okra plants retained both elements and exhibited a preferential accumulation in the roots following the sequence: roots ˃ shoots ˃ fruits, which is interesting for phytostabilization purposes. Al or Ba exposure induced a decline in mineral uptake (K, Ca, Mg, Zn and Fe), especially in roots and shoots. In order to cope with the stress conditions, the okra plants enhanced their proline and total phenol amounts, offering better adaptability to stress.