The second part of the maxillary artery (the part related to the lateral pterygoid muscle) gives origin to deep temporal, masseteric, buccal, and pterygoid branches, which course with branches of the mandibular nerve [V3].
The third part of the maxillary artery is in the pterygopalatine fossa (see Fig. 8.158)