> 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. 40, § 31 — Powers of towns; performance of duty imposed by by-laws

- **Citation**: M.G.L. c. 40, § 31
- **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/TitleVII/Chapter40/Section31](https://malegislature.gov/Laws/GeneralLaws/PartI/TitleVII/Chapter40/Section31)
- **Canonical URL**: [https://corpuslaw.us/codes/massachusetts/part-i/title-vii/chapter-c-40/section-c-40-31](https://corpuslaw.us/codes/massachusetts/part-i/title-vii/chapter-c-40/section-c-40-31)
- **Semantic URL**: [https://corpuslaw.us/codes/massachusetts/part-i/title-vii/chapter-c-40/section-c-40-31](https://corpuslaw.us/codes/massachusetts/part-i/title-vii/chapter-c-40/section-c-40-31)

## Hierarchy

Part Part I — ADMINISTRATION OF THE GOVERNMENT > Title Title VII — CITIES, TOWNS AND DISTRICTS > Chapter c. 40 — POWERS AND DUTIES OF CITIES AND TOWNS

## Text

c. 40, § 31. Powers of towns; performance of duty imposed by by-laws

Section 31. If a town by-law imposes a duty and affixes a penalty for the neglect or violation thereof, it may also provide that upon such neglect or violation the duty may be performed by officers therein named, at the expense of the person liable to perform the same; and such expense, to an amount not exceeding the penalty, may be recovered in contract by the town.
