The Ni???B alloy layer can be formed on the surface of e.g. copper selectively by using an electroless plating solution that contains nickel ions, a complexing agent for nickel ions and an alkylamine borane or a borohydride compound as a reducing agent for nickel ions and by immersing the surface of the substrate in the electroless plating solution.