Small molecule compounds and compositions containing said compounds useful for inhibiting signaling by certain Toll-like receptors (TLRs), particularly TLR9, are provided. The compounds and compositions can be used to inhibit immune responses, including unwanted immune responses in particular. Compounds, compositions, and methods are provided to treat a variety of conditions involving unwanted immune responses, including for example autoimmune disease, inflammation, transplant rejection, and sepsis.