The auriculotemporal nerve passes first between the tensor veli palatini muscle and the upper head of the lateral pterygoid muscle, and then between the sphenomandibular ligament and the neck of the mandible. It curves laterally around the neck of the mandible and then ascends deep to the parotid gland between the temporomandibular joint and ear.