Hydrogels are materials consisting of a network of hydrophilic polymers. Due to their good biocompatibility and hydrophilicity, they are widely used in biomedicine, food safety, environmental protection, agriculture, and other fields. This paper summarizes the typical complex materials of photocatalysts, photosensitizers, and hydrogels, as week as their antibacterial activities and the basic mechanisms of photothermal and photodynamic effects. In addition, the application of hydrogel-based photoresponsive materials in microbial inactivation is discussed, including the challenges faced in their application. The advantages of photosensitive antibacterial complex hydrogels are highlighted, and their application and research progress in various fields are introduced in detail.