The Toll pathway primarily responds to infections with fungi and Gram-positive bacteria, while the IMD pathway is predominantly activated by infection with Gram-negative bacteria. Here, TLR4 is linked to infection.