Directed cellular migration that is mediated by chemical stimuli. During an immune response, immune cells undergo chemotaxis toward an infectious or inflammatory focus.