After emerging from their respective intervertebral foramina, the thoracic nerve roots divide into dorsal and ventral rami (Figure 24-2). The dorsal ramus provides innervation to the skin and muscle of the paravertebral region; the ventral ramus continues laterally as the intercostal nerve. This nerve then pierces the posterior intercostal membrane approximately 3 cm lateral to the intervertebral foramen and enters the subcostal groove of the rib, where it travels inferiorly to the intercostal artery and vein. Initially, the nerve lies between the parietal pleura and the inner most intercostal muscle. Immediately proximal to the angle of the rib, it passes into the space between the innermost and internal intercostal muscles, where it remains for much of the remainder of its course. At the midaxillary line, the intercostal nerve gives rise to the lateral cutaneous branch, which pierces the internal and external intercostal muscles and supplies the muscles and skin of the lateral trunk. The continuation of the intercostal nerve terminates as the anterior cutaneous branch, which supplies the skin and muscles of the anterior trunk, including the skin overlying the sternum and rectus abdominis.