> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# M.G.L. c. 82, § 40D — Local laws requiring excavation permits; public ways

- **Citation**: M.G.L. c. 82, § 40D
- **Node Type**: section
- **Jurisdiction**: Massachusetts (state)
- **Code Body**: Massachusetts General Laws (through amendments passed before May 31, 2026) (M.G.L.)
- **Official Source**: [https://malegislature.gov/Laws/GeneralLaws/PartI/TitleXIV/Chapter82/Section40D](https://malegislature.gov/Laws/GeneralLaws/PartI/TitleXIV/Chapter82/Section40D)
- **Canonical URL**: [https://corpuslaw.us/codes/massachusetts/part-i/title-xiv/chapter-c-82/section-c-82-40d](https://corpuslaw.us/codes/massachusetts/part-i/title-xiv/chapter-c-82/section-c-82-40d)
- **Semantic URL**: [https://corpuslaw.us/codes/massachusetts/part-i/title-xiv/chapter-c-82/section-c-82-40d](https://corpuslaw.us/codes/massachusetts/part-i/title-xiv/chapter-c-82/section-c-82-40d)

## Hierarchy

Part Part I — ADMINISTRATION OF THE GOVERNMENT > Title Title XIV — PUBLIC WAYS AND WORKS > Chapter c. 82 — THE LAYING OUT, ALTERATION, RELOCATION AND DISCONTINUANCE OF PUBLIC WAYS, AND SPECIFIC REPAIRS THEREON

## Text

c. 82, § 40D. Local laws requiring excavation permits; public ways

Section 40D. Nothing in this section shall affect or impair local ordinances or by-laws requiring a permit to be obtained before excavation in a public way or on private property; but notwithstanding any general or special law, ordinance or by-law to the contrary, to the extent that any permit issued under the provisions of the state building code or state fire code requires excavation by an excavator on a public way or on private property, the permit shall not be valid unless the excavator notifies the system as required pursuant to sections 40 and 40A, before the commencement of the excavation, and has complied with the permitting requirements of chapter 82A.
