Reclamation of abandoned mining areas can be a potentially viable solution to tackle three major problems: waste mismanagement, environmental contamination, and growing food demand. This study aims to evaluate the rehabilitation of mining areas into agricultural production areas using integrated biotechnology and combining Technosols with a multipurpose (forage, food, ornamental and medicinal) drought-resistant legume, the Lablab purpureus (L.) Sweet. Two Technosols were prepared by combining gossan waste (GW) from an abandoned mining area with a mix of low-cost organic and inorganic materials. Before and after plant growth, several parameters were analysed, such as soil physicochemical characteristics, nutritional status, bioavailable concentrations of potentially hazardous elements (PHE), soil enzymatic activities, and development and accumulation of PHE in Lablab, among others. Both Technosols improved physicochemical conditions, nutritional status and microbiological activity, and reduced the bioavailability of most PHE (except As) of GW. Lablab thrived in both Technosols and showed PHE accumulation mainly in the roots, with PHE concentrations in the shoots that are safe for cattle and sheep consumption. Thus, this is a potential plant that, in conjunction with Technosols, constitutes a potential integrated biotechnology approach for the conversion of marginal lands, such as abandoned mining areas, into food-production areas.