The mylohyoid nerve branches from the inferior alveolar nerve (a branch of the mandibular nerve, the third part of the trigeminal nerve) just before it enters the mandibular foramen.
It descends in a groove on the deep surface of the ramus of the mandible, and reaching the under surface of the mylohyoid muscle, it supplies both the mylohyoid and the anterior belly of the digastrics muscle.