Establishing energy crops could be a cost-efficient alternative towards the valorization of the plant biomass produced in contaminated lands, where they would not compete with food production for land use. Dittrichia viscosa and Silybum marianum are two native Mediterranean species recently identified as potential energy crops for degraded lands. Here, we present the first characterization of the decomposition of the biomass of these species during thermo-chemical conversion (pyrolysis). Using a greenhouse study we evaluated whether the quality of D. viscosa and S. marianum biomass for energy production through pyrolysis could be substantially influenced by the presence of high concentrations of soluble trace element concentrations in the growing substrate. For each species, biomass produced in two different soil types (with contrasted trace element concentrations and pH) had similar elemental composition. Behavior during thermal decomposition, activation energies and concentrations of pyrolysis gases were also similar between both types of soils. Average activation energy values were 295 and 300 kJ mol (for a conversion value of α = 0.5) for S. marianum and D. viscosa, respectively. Results suggest that there were no major effects of soil growing conditions on the properties of the biomass as raw material for pyrolysis, and confirm the interest of these species as energy crops for Mediterranean contaminated lands.