How are trenches related to plate boundaries? How are trenches explained by the theory of plate tectonics?

http://www.platetectonics.com/book/page_12.asp

Trenches are directly related to plate boundaries, specifically convergent plate boundaries where two plates are colliding. These collisions typically occur between an oceanic plate and a continental plate or between two oceanic plates. Trenches are deep, elongated depressions in the ocean floor that mark the subduction zones, where one tectonic plate is forced beneath another and sinks back into the Earth's mantle.

Tectonic plate boundaries are explained by the theory of plate tectonics, which states that Earth's lithosphere is divided into rigid plates that move and interact with each other. There are three types of plate boundaries: divergent, convergent, and transform boundaries. Trenches are associated with convergent plate boundaries.

In the case of oceanic-continental convergence, when a dense oceanic plate collides with a less dense continental plate, the denser oceanic plate is forced beneath the continental plate due to gravitational forces and densities. This process is called subduction. As the oceanic plate sinks into the mantle, it generates a deep trench on the ocean's surface. The Marianas Trench in the western Pacific Ocean is an example of a trench formed by the subduction of the Pacific Plate beneath the Philippine Sea Plate.

In the case of oceanic-oceanic convergence, when two oceanic plates collide, one of them is subducted beneath the other, forming a trench. The Peru-Chile Trench off the coast of South America is an example of a trench formed by the subduction of the Nazca Plate beneath the South American Plate.

Overall, trenches serve as prominent surface features that are explained by the movement and interactions of tectonic plates at convergent boundaries in accordance with the theory of plate tectonics.