El Salvador is located near a triple junction where three tectonic plates meet - Caribbean, Cocos, and North American.
Further reading
Rose et al. Editors, 2004, Natural Hazards in El Salvador, The Geological Society of America, Boulder, Colorado.