Cancer continues to be one of the leading causes of death worldwide, and its incidence is on the rise. Although cancer diagnosis and therapy have advanced significantly in recent decades, it is still a challenge to achieve the accurate identification and localization of cancer and to complete tumor elimination with a maximum preservation of normal tissue. Recently, second near-infrared region (NIR-II, 1000–1700 nm) fluorescence has shown great application potential in cancer theranostics due to its inherent advantages, such as great penetration capacity, minimal tissue absorption and scattering, and low autofluorescence. With the development of fluorescence imaging systems and fluorescent probes, tumor detection, margin definition, and individualized therapy can be achieved quickly, enabling an increasingly accurate diagnosis and treatment of cancer. Herein, this review introduces the role of NIR-II fluorescence imaging in cancer diagnosis and summarizes the representative applications of NIR-II image-guided treatment in cancer therapy. Ultimately, we discuss the present challenges and future perspectives on fluorescence imaging in the field of cancer theranostics and put forward our opinions on how to improve the accuracy and efficiency of cancer diagnosis and therapeutics.