The invention discloses a
semiconductor device and a manufacturing method thereof. The manufacturing method comprises the following steps: providing a substrate; forming a
hard mask layer on the substrate, wherein the
hard mask layer is provided with an
etching window for exposing part of the substrate; the
hard mask layer serves as a
mask, the substrate exposed out of the
etching window is etched, a shallow groove is formed in the substrate, and the vertex angle of the shallow groove is a
sharp angle; back-
etching the hard
mask layer from the side wall, close to one side of the shallow trench, of the hard
mask layer; a first
oxide layer is deposited through HDP-CVD, the bottom and the side wall of the shallow trench and the hard
mask layer are covered with the first
oxide layer, and the thickness of the first
oxide layer in the area corresponding to the sharp corner is smaller than that of the other area of the first oxide layer; and performing
dry etching to remove the first oxide layer and part of the substrate, so that the sharp corner is converted into a round corner. The smooth
radian, the rounded shape and the like of the sharp corner are easier to control, the
rounding effect of the sharp corner is excellent, and RNWE can be effectively inhibited; meanwhile, electric leakage of a cellular area is greatly reduced, and the working
voltage stability and long-term reliability of the
semiconductor device are improved.