Cancer treatment is a challenge by its incredible complexity. As a key driver and player of cancer, gut microbiota influences the efficacy of cancer treatment. Modalities to manipulate gut microbiota have been reported to enhance antitumor efficacy in some cases. Nanomaterials (NMs) have been comprehensively applied in cancer diagnosis, imaging, and theranostics due to their unique and excellent properties, and their effectiveness is also influenced by gut microbiota. Nanotechnology is capable of targeting and manipulating gut microbiota, which offers massive opportunities to potentiate cancer treatment. Given the complexity of gut microbiota–host interactions, understanding NMs–gut interactions and NMs–gut microbiota interactions are important for applying nanotechnologies towards manipulating gut microbiota in cancer prevention and treatment. In this review, we provide an overview of NMs–gut interactions and NMs–gut microbiota interactions and highlight the influences of gut microbiota on the diagnosis and treatment effects of NMs, further illustrating the potential of nanotechnologies in cancer therapy. Investigation of the influences of NMs on cancer from the perspective of gut microbiota will boost the prospect of nanotechnology intervention of gut microbiota for cancer therapy.