A spacer device for the two-stage treatment of infections of the prosthesis of the human limbs, made of biologically compatible material adapted to be added and/or which can be added with pharmaceutical products, active and/or therapeutic ingredients, includes a first portion adapted to be fixed to a corresponding bone bed, and a second portion adapted to be inserted in a corresponding articular area of the patient, said first portion and said second portion being connected through adjustable joining means. The device includes mutual coupling surfaces respectively provided in said first portion and said second portion coated with said biologically compatible material. A method for locking the first portion to the second portion is also provided.