[1] It is the innermost part of the adrenal gland, consisting of chromaffin cells that secrete catecholamines, including epinephrine (adrenaline), norepinephrine (noradrenaline), and a small amount of dopamine, in response to stimulation by sympathetic preganglionic neurons.
These adrenal medullary cells are modified postganglionic neurons, and preganglionic autonomic nerve fibers lead to them directly from the central nervous system.
Recent research indicates that the adrenal medulla may receive input from higher-order cognitive centers in the prefrontal cortex as well as the sensory and motor cortices, providing credence to the idea that there are psychosomatic illnesses.
[1] They are modified postganglionic sympathetic neurons of the autonomic nervous system that have lost their axons and dendrites, receiving innervation from corresponding preganglionic fibers.
Because the ANS, specifically the sympathetic division, exerts direct control over the chromaffin cells, the hormone release can occur rather quickly.