Antigen-presenting molecules, including MHC I, II and CD1, have central roles in the induction of T cell-mediated immunity against pathogens and tumors and also in the maintenance of tolerance towards self-antigens. The presentation of exogenously derived peptide and lipid antigens to specific T cells by professional antigen-presenting cells (pAPCs) is an essential part of both processes. Exogenous antigen loading takes place mostly within specialized endocytic and phagocytic compartments of pAPCs and targeting of antigen-presenting molecules to these intracellular compartments is mediated by highly conserved cytoplasmic sorting motifs. Recent data have revealed that the cytoplasmic tails of antigen-presenting molecules, by controlling the access of these molecules to exogenously derived antigens, have a crucially important and largely underappreciated role in the generation of tolerance and T-cell mediated immunity.