How did trilobites become extinct?

Trilobites became extinct at the end of the Permian period during the Permian extinction. It was among the vast amount of land and aquatic animals that disappeared during this period.