Endophytic fungi from the Chilli were used to help okra plants exposed to cadmium (Cd) or chromium (Cr) stress. Initially, the strain Ch06 produced higher amounts of indole acetic acid (IAA) (230.5 μg/mL), sugar (130.7 μg/mL), proteins (128.2 μg/mL), phenolics (525.6 μg/mL) and flavonoids (98.4 μg/mL) in Czapek broth supplemented with Cd or Cr. The production of IAA and other metabolites in such a higher concentration suggested that Ch06 might improve plant growth under heavy metal stress. For this reason, an experiment was designed, in which biomass of Ch06 (at 2g/100g of sand) were applied to the okra plants exposed to Cd or Cr stress (at 100 or 500 μg/g). The results exhibited that Ch06 improved the total chlorophyll (36.4±0.2 SPAD), shoot length (22.6±0.2 cm), root length (9.1±0.6 cm), fresh weight (5±0.6 g), dry weight (1.25±0.01 g), sugars (151.6 μg/g), proteins (114.8 μg/g), proline (6.7 μg/g), flavonoids (37.9 μg/g), phenolics (70.7 μg/g), IAA (106.7 μg/g), catalase (0.75 enzyme units/g tissue) and ascorbic acid oxidaze (2.2 enzyme units/g tissue) of the associated okra plants. Similar observations have been recorded in Ch06 associated okra plants under Cd and Cr stress. Also, Ch06 association reduced translocation of Cd (35% and 45%) and Cr (47% and 53%) to the upper parts of the okra plants and thus reduced their toxicity. The internal transcribed spacer (ITS) region amplification of 18S rDNA (ribosomal deoxyribo nucleic acid) exhibited that the potent strain Ch06 was Aspergillus violaceofuscus. The results implied that A. violaceofuscus has the ability to promote host species growth exposed to Cd and Cr. Moreover, it helped the host plants to recover in Cd and Cr polluted soils, hence can be used as biofertilizer.