The electrical and thermal conductivity and magnetic property of metals enhance the electrical conductivity and antibacterial property of nanocomposite hydrogels when incorporated. The electrical conducting property is necessary for the hydrogels to start forming functional tissues and be used as imaging agents, drug delivery systems, conductive scaffolds, switchable electronics, actuators, and sensors.