The hypoglossal nerve is a purely motor nerve that originates in the medulla and innervates the muscles of the tongue. It emerges from the medulla between the pyramid and inferior olive, descends through the neck, and divides to supply branches to the extrinsic and intrinsic tongue muscles. Examination of the tongue evaluates strength, bulk, and dexterity to identify weaknesses or atrophies that may indicate supranuclear, nuclear, or infranuclear lesions along the nerve's path.