Trilobites achieved their maximum genetic diversity in the Cambrian. However, unlike this diversity measure, the morphological disparity of trilobites based on cranidial outline reached the peak in the Middle to Late Ordovician.
source https://phys.org/news/2020-11-trilobite-fossil-reveals-cephalic-specialization.html