Provided are compounds of formula (II) useful for modulation of signaling through the Toll-like receptors TLR7 and/or TLR8. The compounds have use in treating or preventing disease, including cancer, autoimmune disease, fibrotic disease, cardiovascular disease, infectious disease, inflammatory disorder, graft rejection, or graft-versus-host disease.