Hydrogels constitute a group of polymeric materials which can hold a large amount of water in their three-dimensional networks due to their hydrophilic structures. In the past few years, they have been researched for various biomedical applications, such as drug/cell carriers, tissue engineering, and biosensors. Particularly, the hydrogels used as drug delivery systems have shown distinct advantages in phototherapy. This review presents recent advancements of hydrogel's use in phototherapeutic applications by focusing on three kinds of phototherapeutic methods including photodynamic therapy (PDT), photothermal therapy (PTT), and phototherapy-containing combination therapy (PCCT). The applications of these therapies in anticancer and antibacterial fields have also been summarized. We hope that this review will inspire researchers to further develop promising materials for phototherapy applications.