Endophytic fungi are those that present part of their life cycle in healthy tissues of different plant hosts in symbiosis without causing harm. At the same time, fungus-plant symbiosis makes it possible for microorganisms to synthesize their own bioactive secondary metabolites while in stationary stage. Such microorganism-derived secondary metabolites contribute. Therefore, this work aimed to. To accomplish this, the endophytic fungus Trichoderma asperellum was isolated from Bertholletia excelsa (Brazil nut) almonds. The fungus was cultivated and extracted with ethyl acetate, obtaining AM07Ac. Then, using HPTLC (High-performance thin-layer chromatography) and Nuclear Magnetic Resonance (1H NMR), β-amyrin, kaempferol, and brucine were identified as major compounds. Further in vivo assays in Zebrafish demonstrated the activity of AM07Ac on melanogenesis by producing a concentration-response inhibitory effect, which, through an in silico study, proved to be related to the noted major compounds known to inhibit tyrosinase activity. The inhibition of tyrosinase prevents melanin accumulation in skin. Therefore, these results imply the importance of investigating microorganisms and their pharmacological activities, in particular the endophytic fungus Trichoderma asperellum as a generator of active metabolites for melanogenesis modulation.