The prefrontal cortex (PFC) is not only important in executive functions, but also pain processing. The latter is dependent on its connections to other areas of the cerebral neocortex, hippocampus, periaqueductal gray (PAG), thalamus, amygdala, and basal nuclei. Changes in neurotransmitters, gene expression, glial cells, and neuroinflammation occur in the PFC during acute and chronic pain, that result in alterations to its structure, activity, and connectivity. The medial PFC (mPFC) could serve dual, opposing roles in pain: (1) it mediates antinociceptive effects, due to its connections with other cortical areas, and as the main source of cortical afferents to the PAG for modulation of pain. This is a 'loop' where, on one side, a sensory stimulus is transformed into a perceptual signal through high brain processing activity, and perceptual activity is then utilized to control the flow of afferent sensory stimuli at their entrance (dorsal horn) to the CNS. (2) It could induce pain chronification via its corticostriatal projection, possibly depending on the level of dopamine receptor activation (or lack of) in the ventral tegmental area-nucleus accumbens reward pathway. The PFC is involved in biopsychosocial pain management. This includes repetitive transcranial magnetic stimulation, transcranial direct current stimulation, antidepressants, acupuncture, cognitive behavioral therapy, mindfulness, music, exercise, partner support, empathy, meditation, and prayer. Studies demonstrate the role of the PFC during placebo analgesia, and in establishing links between pain and depression, anxiety, and loss of cognition. In particular, losses in PFC grey matter are often reversible after successful treatment of chronic pain.