Disclosed herein are compounds including pharmaceutically acceptable salts, esters, prodrugs, hydrates and tautomers thereof which modulate the interactions of CD-40-CD40L. The compounds are useful for treating, ameliorating or preventing an autoimmune disease, inflammatory disease, or other immune-related disease in a patient in need of treatment.