A semiconductor device has a first substrate and a second substrate. The first substrate has first electrodes on at least one surface. The second substrate has concave portions on a surface, and second electrodes provided on bottom surfaces of the concave portions. The semiconductor device further has metallic members located between the first electrodes of the first substrate and the second electrodes of the second substrate. The metallic members have a height greater than a depth of the concave portions of the second substrate, and electrically and mechanically bond the first electrodes of the first substrate and the second electrodes of the second substrate.