An earthquake happens when tectonic plates move against each other. A oceanic and a continental tectonic plates might move against each other. When that happens water is pushed upwards and it creates ripples that then move towards land. It's like throwing a rock in water but a lot bigger. I can't post external links on Brainly but you can find more information about tsunami's on Google