A disclosed semiconductor device comprises a substrate, an element on the
substrate and a sealing structure for sealing the element. The sealing
structure has a structure such that a partition wall made of a metallic
material formed on the substrate by a plating method so as to surround
the element and a cap portion disposed on the partition wall are bonded
via a bonding layer made of an inorganic material.