To prevent something undesirable from succeeding