The moratorium on evictions and foreclosures in Mass. has become law

. Adobe Stock

Governor Charlie Baker signed a bill Monday banning all nonessential evictions and foreclosures.

The new law — which provides mortgage borrowers with forbearance options and protects tenants from late fees — creates a moratorium on all stages of the eviction and foreclosure process for 120 days from the bill’s signing or 45 days after the state of emergency has been lifted, whichever comes first.

It also prohibits all nonessential evictions for small businesses.

Landlords are banned from issuing late fees and reports to credit agencies for nonpayment of rent, provided that a tenant offers notice and documentation to the landlord within 30 days of the missed rent that the non-payment was related to a financial impact from COVID-19.

The bill would still allow evictions for actions involving allegations of criminal activity.

Subscribe to the Globe’s free real estate newsletter — our weekly digest on buying, selling, and design — at Follow us on Facebook, Instagram, and Twitter @globehomes.