A semiconductor device comprising a heat-radiating plate including a depressed portion, a semiconductor element soldered to said heat-radiating plate in said depressed portion, a header lead including a lead section extending in a direction perpendicular to said heat-radiating plate and a header section located at one end of said lead section and soldered onto said semiconductor element, a terminal board fixed on said heat-radiating plate, wherein said lead section has a bent portion thinner than the rest of the lead section, a lead terminal supported by said terminal board and electrically and mechanically connected to the other end of said lead section, an elastic insulating material filled into said depressed portion covering and providing air-tight sealing for said semiconductor element and said header section, said bent portion of said lead section being exposed outside of said insulating material so that said bent portion can alleviate transmission of a stress generated along the length of said lead section to said solder without separating said insulating material from said heat-radiating plate.