Nociceptors detect noxious stimuli and initiate both reflex withdrawal and conscious pain perception through thalamic and cortical pathways. Pain is multidimensional, combining sensory (location, intensity) and emotional (suffering, fear) components. Descending pathways from brainstem can suppress nociceptive transmission, allowing pain suppression during stress or with opioid drugs.
Pain begins at the periphery with specialized sensory neurons called nociceptors — free nerve endings embedded in skin, muscle, joints, and viscera that respond to stimuli intense enough to threaten tissue damage. Unlike the photoreceptors or mechanoreceptors you may have studied, nociceptors are polymodal: the same nerve ending can respond to extreme heat, intense pressure, or chemical irritants from damaged cells. When activated, nociceptors generate action potentials that travel along two types of fibers. A-delta fibers are thinly myelinated and conduct quickly, producing the sharp, well-localized "first pain" you feel when you touch a hot stove. C fibers are unmyelinated and conduct slowly, producing the dull, throbbing, poorly localized "second pain" that follows — the aching burn that persists after you pull your hand away.
These fibers enter the spinal cord through the dorsal root and synapse onto neurons in the dorsal horn, a critical processing station. From your understanding of synaptic transmission, you know that the signal crossing a synapse can be modulated — and the dorsal horn is where the first major modulation of pain occurs. Dorsal horn neurons integrate nociceptive input with signals from other sensory fibers and from descending pathways. The gate control theory proposes that non-painful touch signals (carried by large A-beta fibers) can inhibit nociceptive transmission in the dorsal horn, which is why rubbing a bumped elbow reduces the pain — the touch signals partially "close the gate" on pain signals ascending to the brain.
From the dorsal horn, nociceptive signals ascend primarily through the spinothalamic tract to the thalamus, which relays them to multiple cortical areas. This is where pain becomes multidimensional. The somatosensory cortex (S1 and S2) processes the sensory-discriminative aspect — where the pain is, how intense it is, and what quality it has (burning, stabbing, aching). The anterior cingulate cortex and insular cortex process the affective-motivational aspect — the unpleasantness, the suffering, the emotional urgency to do something about it. These are genuinely separable: patients with certain brain lesions can report feeling pain but say it doesn't bother them, demonstrating that the sensation and the suffering are computed by different circuits.
The brain also has powerful mechanisms to suppress pain. Descending modulatory pathways originating in the periaqueductal gray (PAG) and rostral ventromedial medulla project down to the dorsal horn and inhibit nociceptive transmission. These pathways use endogenous opioid peptides — endorphins and enkephalins — that bind opioid receptors on dorsal horn neurons, reducing neurotransmitter release from nociceptive fibers. This system explains why soldiers in battle or athletes in competition can sustain serious injuries without feeling proportionate pain: stress-induced activation of descending pathways suppresses nociceptive signals before they reach consciousness. It is also the system hijacked by opioid drugs like morphine, which bind the same receptors to produce powerful analgesia — and, unfortunately, the euphoria and dependence that make opioid addiction so devastating.