A method for forming a semiconductor structure includes following operations. A nanosheet stack is formed over a substrate. The nanosheet stack extends in a first direction. A sacrificial gate structure is formed over the nanosheet stack and extending in a second direction. A portion of the sacrificial gate structure is replaced with a first dielectric wall. The first dielectric wall extends in the first direction. A remaining portion of the sacrificial gate structure is removed to form a plurality of second trenches extending in the second direction. The nanosheet stack is exposed through the second trenches. Portions of the nanosheet stack are removed to form a plurality of nanosheets coupled to the first dielectric wall and separated from each other. Metal gate structures are formed in the trenches. The metal gate structures are formed at two sides of the first dielectric wall.
Full Text
What is claimed is: