When you perceive a threat, your HPA axis (hypothalamus, pituitary, adrenals) is stimulated. Your brain triggers a cascade of neurotransmitters and hormones in the body, which then have physical effects—this is the classic fight-or-flight response to prepare the body to survive the perceived threat.