Thoracic ganglia

The thoracic ganglia are paravertebral ganglia. The thoracic portion of the sympathetic trunk typically has 12 thoracic ganglia. Emerging from the ganglia are thoracic splanchnic nerves (the cardiopulmonary, the greater, lesser, and least splanchnic nerves) that help provide sympathetic innervation to abdominal structures. The thoracic part of sympathetic trunk lies posterior to the costovertebral pleura and is hence not a content of the posterior mediastinum
Also, the ganglia of the thoracic sympathetic trunk have both white and gray rami communicantes. The white rami communicantes carry sympathetic fibers arising in the spinal cord into the sympathetic trunk, while the gray rami communicantes carry postganglionic nerve fibers of the sympathetic nervous system back to the spinal nerves.