To avoid a hazard:

In some emergencies, the best strategy for avoiding a hazard may be to drive onto the shoulder. Most shoulders are strong enough to support the weight of a large vehicle.
DMV Writen Test