The lingual nerve enters the oral cavity between the posterior attachment of the mylohyoid muscle to the mylohyoid line and the attachment of the superior constrictor of the pharynx to the pterygomandibular raphe. As the lingual nerve enters the floor of the oral cavity, it is in a shallow groove on the medial surface of the mandible immediately inferior to the last molar tooth.