A semiconductor device is provided with a substrate with a cavity inside,
the substrate including a device formation area located above the cavity,
a plurality of trenches formed in the substrate to communicate with the
cavity and surround the device formation area, and an oxide film formed
around each of the trenches to continuously surround the device formation
area.