Illustrative example
A processing plant answers a noise complaint by saying it holds a permit and operates within its limits.
Section 3482 takes out of the definition of nuisance only what is done or maintained under the express authority of a statute. The fact this turns on is the difference between a statute expressly authorising the activity and an administrative permit allowing it subject to conditions: the second is not the first, and compliance with limits is evidence rather than a defence.
The plant agrees a night-time curfew on the noisiest operation, commissions a noise survey with the residents' input, and implements the mitigation it recommends on an agreed timetable.