In situ composite methods have aroused research interest in materials science and acted as a novel strategy to achieve structural tailoring of materials. However, the controllable preparation of composites containing functional groups remains a challenge. Herein, we report an approach based on competitive coordination between structural analogs, by which the functionally composite metal complex (NiSH@Ni-FSA) was synthesized. The introduction of different functional groups allows precise control of the functionality of composites, ranging from NiSH@Ni-ClSA-D, NiSH@Ni-BrSA to NiSH@Ni-CF