A semiconductor device includes a substrate, a metal layer, an alloy layer
and a Sn--Ag--Cu-based solder ball. The metal layer is configured to be
formed on the substrate. The alloy layer is configured to be formed on
the metal layer. The Sn--Ag--Cu-based solder ball is configured to be
placed on the alloy layer. The alloy layer includes Ni and Zn as
essential elements.