The hypoglossal nerve, also known as cranial nerve XII, is responsible for the movement of the tongue. It innervates the muscles of the tongue, allowing for speech, swallowing, and chewing. Damage to the hypoglossal nerve can result in tongue weakness or paralysis, leading to difficulty in speaking and eating.