How can you reduce the effects of hazards caused by earthquakes?

Stricter building codes preventing structures from collapsing and injuring the people on/in those structures. (houses, bridges etc)