a semiconductor device is disclosed . the semiconductor device includes : a substrate ; a gate structure disposed on the substrate , wherein the gate structure has a high - k dielectric layer ; a first seal layer disposed on a sidewall of the gate structure , wherein the first seal layer is an oxygen - free seal layer and is non - l - shaped ; and a second seal layer disposed on a sidewall of the first seal layer , wherein the second seal layer is an l - shaped seal layer .