The transcription factor BATF directly regulates key components of the formation and function of follicular helper T cells and antibody class switching in B cells.