What movement of plates causes earthquake activity?

The earths plates will move around and now and again hit each other this will cause the earthquake

the plate tectonics will collide and slide past each other causing the earth to shake known as the earthquake