Herein, a Co(II) heteroatom metal-organic framework was successfully post-modified via unsaturated coordinated S precisely capturing Ni2+ on the surface of the porous structure. The newly pristine bimetallic MOFs have increasing active edge sites (Ni(II) and S), boosting electrocatalytic activity toward oxygen evolution reaction and hydrogen evolution reaction.