Ag-Ni binary nanoparticles with different shapes (snowman and core-shell) were synthesized by modulating the lattice strain. In the catalytic hydrogenation of 4-nitrophenol, a significant enhancement of the reaction rate was observed for the snowman shape in comparison with the core-shell shape under light irradiation.