Hollow mesoporous metals have unique potentials for catalysis, but precise synthesis of the hollow mesoporous metals and further elaboration of their structure-performance relationships are still huge challenges. Herein, we report a new synthetic strategy, named as the Kirkendall effect in synergistic template (KEST), for the desired preparation of hollow mesoporous palladium-sulfur (h-mesoPdS) alloy nanoparticles. The KEST strategy combinates the Kirkendall cavitation synthesis of hollow PdS alloys at the atomic level and the nanocasting growth of highly ordered mesoporous framework at the mesoscopic level, resulting in one-step solid-phase synthesis of binary h-mesoPdS alloy nanoparticles under ambient conditions. The h-mesoPdS possesses hollow and mesoporous geometry as well as binary Pd/S alloy composition, which synergistically optimize their electronic structures and energetically adjust the hydrogenation reaction trends. The h-mesoPdS alloy nanoparticles show a remarkable selectivity of 94 % for semi-hydrogenating 4-nitrophenylacetylene to industrially important 4-nitrostyrene while without hydrogenating nitro group and over-hydrogenating alkynyl group. Owing to the big advances in both synthesis and catalysis, this work paves a new route for realizing the targeted synthesis of highly efficient nanomaterials in various applications.