Recognition of microorganisms and activation of the immune response