This is the concept of subduction. When two plates meet, the more dense one will subduct, or slide under, the lighter plate. Both plates, being oceanic, are lighter than the actual ocean floor and will allow one to slip beneath the other, leading to earthquakes and volcanic activity.