Electrocatalytic hydrogen evolution reaction (HER) via water splitting is a prospective technology for achieving the sustainable production of hydrogen. So, ruthenium-based electrocatalysts have been extensively studied. However, metallic ruthenium tends to agglomerate due to the high cohesive energy, resulting in decreased HER performance in practical usage. Introducing sufficient support for dispersing and immobilizing ruthenium-based species is a viable way to enhance the utilization efficiency. MXene-based materials with unique surface termination groups, superior chemical stability, high specific surface area and favorable electrical conductivity have received significant attention as low-cost carriers for the development of active catalysts in HER. Herein, nitrogen (N) and sulfur (S) atom-doped titanium carbide (Ti