Interactions between the B cell surface antigen CD40 and its ligand (CD40L) expressed on activated T cells play a critical role in isotype switching. This is illustrated by failure of isotype switching in patients with X-linked hyperIgM syndrome in whom the CD40L gene is mutated and by failure of isotype switching of CD40-deficient mice in response to T-cell-dependent antigens. We review these findings and discuss the signaling mechanisms of CD40 and the developmental control and transcriptional regulation of CD40L expression.