When we are infected with them, our immune system activates an enzyme (IDO) to protect us from these parasites. IDO breaks down a substance that the invaders like to eat, forcing them to enter the less active, dormant state. Unfortunately, this substance is also one of the ingredients needed to produce serotonin.