An ultrasensitive electrochemical detection of heavy metal ions is achieved via defect- and phase-engineering of Mn-mediated MoS2 nanosheets. We find for the first time that chemical interactions between Pb(ii) and active S atoms in Mn-MoS2 facilitate the electron transfer and in situ catalytic redox reactions.