On entering the middle mediastinum, the right phrenic nerve descends along the right side of the pericardial sac, within the fibrous pericardium, anterior to the root of the right lung. The pericardiacophrenic vessels accompany it through most of its course in the thorax (see Fig. 3.60). It leaves the thorax by passing through the diaphragm with the inferior vena cava.