In recent years there have been major advances in our knowledge of the mechanisms that determine the specificity of the interaction between T cells and antigen. This specificity determines self-recognition, controls responses to foreign proteins and when disordered leads to autoimmunity. In this article we describe some of these advances and discuss the implications for our understanding of the inflammatory process and disease.