Genes for the immune system include several gene families. They code for the major histocompatibility complex, and the immunoglobulins. The toll-like receptors are the main sensors of infection in mammals.