This is the motor nerve for the muscles of the tongue and the infrahyoid muscles.
Apparent origin and general course
Its apparent origin is in the preolivary sulcus of the medulla (anterolateral sulcus). From there it runs downwards and forwards to leave the skull through the hypoglossal canal (anterior condylar foramen) into the retrostyloid space and follows an oblique course downwards and forwards to attach to the deep surface of the digastric muscle, crosses the external carotid artery superficially and, on reaching the level of the hyoid bone, passes between the submandibular gland (superficially) and the hyoglossus muscle (deeply); it then runs through the floor of the mouth, where it gives terminal branches to the intrinsic muscles of the tongue and to most of the extrinsic muscles (styloglossus, hyoglossus and genioglossus).
Along its course it gives off a branch called the Superior Root of the Ansa Cervicalis, which descends crossing the lateral surface of the internal jugular vein to join the inferior root of the ansa, which arises from the union of the roots of C2 and C3; this forms the ansa cervicalis, or ansa of the hypoglossal nerve, from which motor branches arise for the infrahyoid muscles (omohyoid, sternohyoid, sternothyroid and thyrohyoid).
The hypoglossal nerve is liable to injury in surgical neck dissections of the lymph nodes; as it is the motor nerve of the tongue, its injury causes paralysis of this structure (usually unilateral, causing deviation towards the injured side when the tongue is protruded from the mouth).