A nanocomposite containing methylene blue (MB), graphene oxide (GO) and Pluronic F127 (PF127) had been developed for combined photothermal therapy (PTT) and photodynamic therapy (PDT). In this study, GO was firstly loaded with MB to form GO-MB by a self-assembly method, and then the surface was modified with PF127 to form GO-MB/PF127 nanocomposite (GO-MB/PF127) by a thin-film hydration method. The structure and properties of the nanocomposite were characterized by Ultraviolet-Visible spectroscopy (UV-vis), Fourier transform infrared spectroscopy (FT-IR), Raman spectroscopy, transmission electron microscope (TEM), dynamic light scattering (DLS) and zeta potential. The results showed that the as-prepared nanocomposite exhibited high stability in aqueous solution, high release rate of MB from the nanocomposite under acidic conditions. In addition, when excited by 808 nm near infrared (NIR) light and 660 nm light emitting diode (LED) source, GO in GO-MB/PF127 caused photothermal ablation of cancer cells while MB produced singlet oxygen (