MHC molecules bind peptide fragments derived from pathogens and display them on the cell surface for recognition by the appropriate T cells.