When an oceanic plate collides with a continental plate. Oceanic crust tends to be denser and thinner than continental crust, so the denser oceanic crust gets bent and pulled under, or subducted, beneath the lighter and thicker continental crust. This forms what is called a subduction zone.
Hope this helps. If you have any other questions feel free to ask :)