Confirming Burnet's early hypothesis, elimination of self-reactive T cells in the thymus was demonstrated in the late 1980s, and an important question immediately arose about the nature of the self-peptides expressed in the thymus. Many genes encoding neuroendocrine-related and tissue-restricted antigens (TRAs) are transcribed in thymic epithelial cells (TECs). They are then processed for presentation by proteins of the major histocompatibility complex (MHC) expressed by TECs and thymic dendritic cells. MHC presentation of self-peptides in the thymus programs self-tolerance by two complementary mechanisms: (1) negative selection of self-reactive "forbidden" T cell clones starting already in fetal life, and (2) generation of self-specific thymic regulatory T lymphocytes (tT reg cells), mainly after birth. Many studies, including the discovery of the transcription factors autoimmune regulator (AIRE) and fasciculation and elongation protein zeta family zinc finger (FEZF2), have shown that a defect in thymus centralself-tolerance is the earliest event promoting autoimmunity. AIRE and FEZF2 control the level of transcription of many neuroendocrine self-peptides and TRAs in the thymic epithelium. Furthermore, AIRE and FEZF2 mutations are associated with the development of autoimmunity in peripheral organs. The discovery of the intrathymic presentation of self-peptides has revolutionized our knowledge of immunology and is opening novel avenues for prevention/treatment of autoimmunity.