MHC class I molecules are essential for the immune system to recognize and eliminate infected or cancerous cells, as they present endogenous peptides to cytotoxic T cells. They are expressed on almost all nucleated cells and play a critical role in the adaptive immune response by facilitating antigen presentation to CD8+ T cells.