We can prevent it by building building solid rock in the earthquake zone. Roof with rubber or plastic, instead of tilesBuild a wide so that when the time of building collapse will not hinder the traffic. And also create space in various cities. People can go for refuge.