The effect of an earthquake on a moving train depends on both the earthquake and the train. The slower the train and the smaller the earthquake, the higher the probability that the train will stay safely on the tracks. The larger the earthquake, the higher the chances that the train will tip or derail.