Pathogens enter the body. Then the presence of toxins produced by the pathogens stimulate the white blood cells. The chemical substances produced by the white blood cells raise the body temperature. The rise in body temperature reduces the rate of multiplication of pathogens and increases the effect of phagocytosis. So fever is a defense mechanism.