prevent


The bad weather prevented us to go swimming.
The bad weather prevented us from going swimming.

Use prevent someone from + -ing when something stops a person doing something: ‘The rain prevented us from playing football.’

Prevent can also be followed directly by a noun: ‘The warning prevented an accident.’