A method of manufacturing a semiconductor device, which comprises the steps
of forming an intermediate layer on an insulating layer, forming a groove
in the intermediate layer and the insulating layer, forming a first
barrier layer on the intermediate layer, depositing a wiring layer on the
first barrier layer to thereby fill the groove with the wiring layer,
performing a flattening treatment of the wiring layer, removing a surface
portion of the wiring to thereby permit the surface of the wiring to be
recessed lower than a surface of the insulating layer, thus forming a
recessed portion, forming a second barrier layer on the intermediate layer
and on an inner wall of the recessed portion, performing a flattening
treatment of the second barrier layer, thereby, and selectively removing
the intermediate layer, exposing the insulating layer.