Toll-like receptors (TLRs) are key components of the innate immune system and serve as a crucial link between innate and acquired immunity. In addition to immune function, TLRs are involved in other important pathological processes, including tumorigenesis. TLRs have dual regulatory effects on tumor immunity by activating nuclear factor κ-B signaling pathways, which induce tumor immune evasion or enhance the antitumor immune response. Therefore, TLRs have become a popular target for cancer prevention and treatment, and TLR agonists and antagonists offer considerable potential for drug development. The TLR7 agonist imiquimod (1) has been approved by the U.S. Food and Drug Administration as a treatment for malignant skin cancer. Herein, the structure, signaling pathways, and function of the TLR family are summarized, and the structure−activity relationships associated with TLR selective and multitarget modulators and their potential application in tumor therapy are systematically discussed.