The parapharyngeal space is shaped like an inverted pyramid. Lateral and inferior to the parapharyngeal space is the carotid sheath, containing the internal carotid artery and cranial nerves IX, X and XI. Behind both the parapharyngeal space and carotid space lies the retropharyngeal space, and deep to this a potential space known as the danger space.