The thymus ensures the establishment of self-tolerance by deleting selfreactive T cells and generating self-antigen specific regulatory T cells.