In this study, the consumption of 4-bromobenzoic acid and 4-chlorobenzoic acid by the fungus Penicillium brasilianum, an endophyte from Melia azedarach is evaluated. This fungus metabolizes these halobenzoic acids to produce three new brominated compounds, which have been isolated and characterized,