Earthquakes occur most frequently near active margins.
The three major zones of the ocean floor are;
continental margin, deep-ocean basins, and mid-ocean ridges
Continental margins has two types of margins, active and passive margins, these both margins are located near coastlines.