The anterior rami of spinal nerves T1–T11 (T12 is the subcostal nerve). Each runs in the costal groove along the lower border of the rib above, below the vein and artery (vein, artery, nerve from top to bottom), between the internal and innermost intercostal muscles. It supplies the intercostal muscles and gives a lateral cutaneous branch at the mid-axillary line and an anterior cutaneous branch beside the sternum; T7–T11 continue into the abdominal wall to supply its muscles and skin. That is why a chest drain or pleural tap always hugs the upper border of the rib below, and why shingles so often follows exactly one intercostal dermatome.