thwart
Definitions
To prevent someone from accomplishing a purpose.
To oppose and successfully baffle or frustrate a plan or ambition.
Examples
The security team worked quickly to thwart the hackers' attempt to access the database.
Heavy rain threatened to thwart our plans for a picnic in the park.