Conductive hydrogels have promising applications in flexible electronic devices and artificial intelligence, which have attracted much attention in recent years. However, most conductive hydrogels have no antimicrobial activity, inevitably leading to microbial infections during utilization. In this work, a series of antibacterial and conductive polyvinyl alcohol and sodium alginate (PVA-SA) hydrogels were successfully developed with the incorporation of S-nitroso-N-acetyl-penicillamine (SNAP) and MXene through a freeze-thaw approach. Due to the reversibility of hydrogen bonding and electrostatic interactions, the resulting hydrogels had excellent mechanical properties. Specifically, the presence of MXene readily interrupted the crosslinked hydrogel network, but the best stretching can reach up to >300 %. Moreover, the impregnation of SNAP achieved the release of nitric oxide (NO) over several days under physiological conditions. Due to the release of NO, these composited hydrogels demonstrated high antibacterial activities (> 99 %) against both Gram-positive and negative S. aureus and E. coli bacteria. Notably, the excellent conductivity of MXene endowed the hydrogel with a sensitive, fast, and stable strain-sensing ability, to accurately monitor and distinguish subtle physiological activities of the human body including finger bending and pulse beating. These novel composited hydrogels are likely to have potential as strain-sensing materials in the field of biomedical flexible electronics.