The medical specialty that is concerned with the immune system is immunology.