The pharynx develops from the pharyngeal arches, as arch three contributes to the upper pharynx, and arches four and six contribute to the lower pharynx.