The HLA genes encode components of the human leukocyte complex. The HLA complex is an important part of the immune system, helping distinguish between the body’s own proteins and foreign proteins.