This document describes control algorithms for mitigating seismic hazard in structures. It presents strategies for placing the poles of a controlled structure based on the frequency content of an incoming earthquake. Algorithms are proposed for active variable stiffness systems and variable damping systems using pole placement and sliding mode control. Examples applying these algorithms to 3-story and 8-story buildings show reductions in displacement, acceleration, and forces compared to uncontrolled structures.