There is a need to develop innovative and alternative technologies that can remove toxic heavy metal pollutants from wastewater. In this Study, two agricultural residues, cotton stalks and apricot seeds, were used to adsorb copper and lead in solutions. Sorption capacities of agricultural wastes were significantly affected by solution pH, adsorbent mass and adsorbent particle size. The adsorption efficiency of two agricultural waste was in the order cotton stalk > apricot seed and the agricultural wastes adsorbed metal ions in the order of Pb > Cu. Treatment of these metals with agricultural wastes reduced their toxic effects on P. aeruginosa. This reduction in toxic effect is important both in respect of environmental biotechnology and waste detoxification. This study has indicated that cotton stalk and apricot seed could be employed as low-cost alternatives in wastewater treatment for the removal of heavy metals.