avert

Definition

To turn away or divert; to prevent or avoid something, often by a timely action or decision.

Example

"The security guard averted the potential disaster by quickly evacuating the building."