Origin and course outside the skull
The artery is a branch of the first part of the maxillary artery, which is itself a terminal branch of the external carotid. It begins deep to the neck of the mandible in the infratemporal fossa, the space below the skull base and deep to the ramus of the mandible.
From there it climbs almost vertically, deep to the lateral pterygoid muscle. On the way it passes between the two roots of the auriculotemporal nerve, which wrap around it like a pair of arms. It then enters the middle cranial fossa through the foramen spinosum, a small round hole just behind and lateral to the foramen ovale.
