Exopolysaccharides (EPS), as biopolymers, are very common in nature. These are high molecular weight biopolymers, which have applications in various industries, and as such have attracted the attention of researchers around the world in recent years. Considering this, the main advantages of biosorption are low cost, high efficiency of metal removal from dilute solution, minimization of chemical and / or biological sludge, no additional nutrients and regeneration of biosorbent, exopolysaccharides have found application in these processes. Therefore, in this study, a new biopolymer, exopolysaccharide was isolated from Klebsiella oxytoca J7 strain, and, was studied to remove nickel and lead from wastewater. After characterization by SEM, FTIR, TGA analysis, the obtained results showed that EPS was isolated from strain K. oxytoca J7, is stable, and obtain a good nickel removal efficiency, 98.9%, while the removal efficiency for lead was 89.2%. Therefore, this exopolysaccharide can find its application in the treatment of contaminated water with heavy metals.