Government Code section 866
(a)
Subject to the provisions of subdivisions (b) and (c), in the event of public necessity and to avoid impending peril to persons or property as a result of gradual earth movement, a local public entity is not liable for damages for injury to persons or property resulting from such impending peril or from any action taken to abate such peril providing the legislative body of the local public entity has, on the basis of expert opinion or other reasonable basis, done all of the following:(1)
On the basis of adequate evidence such as expert opinion or otherwise, found the existence of such impending peril.(2)
Determined appropriate remedial action to halt, stabilize, or abate such impending peril.(3)
Undertaken to implement such remedial action.(b)
If the local public entity is unable to complete the steps described in paragraphs (1) to (3), inclusive, of subdivision (a) because of the cessation of the hazard or because such actions cannot be completed before the occurrence of the hazard sought to be avoided, or because such legislative body of such entity shall reasonably determine that such remedial action will not abate such danger, the immunity provided herein shall nevertheless apply to such actions by such local public entity.(c)
The immunity provided herein is in addition to any other immunity of the local public entity provided by law or statute, including this part, and any claim of liability based upon the impending peril or any action of the local public entity is subject to such immunities and any defenses that would be available to the local public entity if it were a private person.
Source:
Section 866, https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=GOV§ionNum=866. (updated Jan. 1, 1979; accessed Dec. 1, 2025).