Synergistic therapy combining photothermal therapy and photodynamic therapy is considered to be a promising approach to treat cancer, but the precise temperature control of deep tissue remains a great challenge in achieving effective treatment. Herein, a two-dimensional Bi2WO6:Nd3+/Yb3+/Er3+@MoS2 nanoplatform with photothermal and photodynamic functions was constructed, where semiconductor MoS2 serves as both a photothermal agent and a photosensitizer. The photothermal conversion performance and the reactive oxygen species generation capacity of the nanoplatform were validated under the irradiation of 808 nm laser; meanwhile, the two sets of luminescence intensity ratios (IYb3+/INd3+ and IEr3+/INd3+) in the biological window region were selected as near-infrared temperature probes to monitor the heat generated during the photosynergistic process in real time. The feasibility of nanoplatform as an intratissue temperature probe and antibacterial agent was further assessed by vitro experiments, which provides an idea for designing multifunctional photosynergistic therapy nanoplatform.