HLA genes, or human leukocyte antigen genes, are a group of genes located on chromosome 6 that play a crucial role in the immune system by encoding proteins responsible for presenting antigens to T cells. These genes are essential for the recognition of self versus non-self and are central to the functioning of Major Histocompatibility Complex (MHC) molecules, which help the immune system distinguish between healthy cells and pathogens or infected cells.