Massachusetts General Laws
Chapter 254 - Liens on Buildings and Land
Section 7 - Mortgages; Invalidity of Subsequent Liens

Section 7. (a) No lien under section one shall avail against a mortgage duly registered or recorded unless the work or labor performed is in the erection, alteration, repair or removal of a building, structure, or other improvement to real property which erection, alteration, repair, removal, or improvement was actually begun prior to the recording of the mortgage.
(b) No lien under section two shall avail as against a mortgage duly registered or recorded to the extent of amounts actually advanced or unconditionally committed (i) prior to the filing or recording of the notice of contract, and (ii) after the filing or recording of the notice of contract but within twenty-five days after the last day of the period stated in an accurate duly executed partial waiver and subordination of lien in the form required by section thirty-two, except for the amount of retainage accurately stated in such partial waiver and subordination of lien.
(c) No lien under section four shall avail against a mortgage actually existing and duly registered or recorded to the extent of the amount actually advanced or unconditionally committed prior to the filing or recording in the registry of deeds of the notice required by section four.
(d) No lien under sections 2C or 2D shall avail against a mortgage duly registered or recorded prior to the filing or recording of the notice of contract if and to the extent that such lien relates to professional services performed before such mortgage was registered or recorded. If and to the extent that such lien relates to professional services performed after such mortgage was registered or recorded, such lien shall avail against such mortgage except to the extent of the amount actually advanced or unconditionally committed prior to the filing or recording of the notice of contract.
(e) No lien under sections 2, 2C, 2D or 4 shall avail as against a purchaser, other than the owner or person acting for or on behalf of, or with the consent of such owner who entered into the written contract on which the lien is based, whose deed or other instrument of title was duly registered or recorded prior to the filing or recording of such notices under said sections 2, 2C, 2D or 4.

Structure Massachusetts General Laws

Massachusetts General Laws

Part III - Courts, Judicial Officers and Proceedings in Civil Cases

Title IV - Certain Writs and Proceedings in Special Cases

Chapter 254 - Liens on Buildings and Land

Section 1 - Labor Performed; Limitation on Lien; Filing

Section 2 - Written Contract; Notice; Time for Filing; Form

Section 2a - Written Contract; Substantial Completion; Definitions; Notice; Filing; Form; Certified Mail

Section 2b - Termination of Written Contract; Notice; Filing; Form; Certified Mail

Section 2c - Design Professional's Lien Upon Real Property; Form and Filing of Notice

Section 2d - Subcontractor of Design Professional; Lien; Form and Filing of Notice

Section 4 - Subcontractors; Written Contract; Notice; Filing; Form; Indirect Contractual Relationship; Notice of Identification

Section 5 - Enforcement of Lien; Procedure

Section 5a - Court Order Authorizing Sale of Real Estate; Procedure

Section 6 - Public Property; Exemption

Section 7 - Mortgages; Invalidity of Subsequent Liens

Section 8 - Statement of Amount Due; Time for Filing; Dissolution of Lien

Section 9 - Notice or Statement; Public Inspection; Recording

Section 10 - Dissolution by Notice

Section 11 - Action to Enforce Lien; Time to Commence; Validity of Lien

Section 12 - Written Contract; Recording of Bond; Form; Enforcement

Section 13 - Attachments

Section 14 - Dissolution by Bond Recording; Labor and Materials; Form of Bond

Section 15 - Dissolution by Judgment

Section 15a - Application to Court for Order Ruling on or Discharging Lien

Section 17 - Claims; Allowance

Section 18 - Sale of Property

Section 19 - Notice of Sale

Section 20 - Redemption; Limitation

Section 21 - Distribution of Assets

Section 22 - Costs

Section 23 - Original Owner; Death or Conveyance of Interest; Action to Enforce Lien

Section 24 - Death of Creditor; Effect

Section 25 - Estate Less Than Fee Simple; Effect of Sale

Section 26 - Remedies

Section 27 - Written Contract; Form of Notice

Section 28 - Subcontractor; Written Contract; Notice; Filing; Form

Section 29 - Laws Applicable to Sec. 27 or 28

Section 30 - Recording; Duty of Register of Deeds

Section 31 - Apportionment; Priority; Proceedings; Public Contracts

Section 32 - Void and Unenforceable Covenants, Promises, etc.; Exceptions

Section 33 - Mortgagee's Right to Withhold Funding, Financing or Payment for Labor and Materials