The host's immune system plays a critical role in the outcome of an infection. Upon recognizing a pathogen, the immune system initiates a series of responses to eliminate the invader. These responses include the activation of innate immunity through mechanisms like inflammation and the recruitment of immune cells. If the pathogen is not cleared, the adaptive immune system is activated, producing specific antibodies and memory cells to fight off the infection and provide long-term immunity.