OPINION
¶ 1 Arizona Revised Statutes Annotated (“A.R.S.”) section 12-1198(A) states, in part, that a lis pendens “shall” be filed within five days of any action to foreclose on a mechanics’ lien under A.R.S. section 33-998(A). In this appeal, we must decide whether the word “shall” as used in A.R.S. section 12-1198(A) is mandatory or directory. We hold
BACKGROUND
¶2 Ronald Hish obtained a $221,000 construction loan from First United Mortgage secured by a recorded deed of trust on residential property located in Fountain Hills, Arizona. Hish contracted with HCZ to build a home on the property. When HCZ began furnishing labor and materials, it served a preliminary twenty-day lien notice. HCZ’s lien rights were subordinate to the earlier recorded deed of trust.
¶ 3 During the course of construction, Hish gave HCZ a $112,000 promissory note, which was recorded on September 13, 1996. Without HCZ’s knowledge, Hish obtained a certificate of occupancy for the residence from the Town of Fountain Hills on September 16, 1996.
¶ 4 In November 1996, Hish applied for a loan from First Franklin Financial Corporation to refinance the First United loan. First Franklin approved the loan on the condition that the First United loan be paid in full with the loan proceeds. First United was paid in full and released its deed of trust against the house. As part of the closing process, HCZ released Hish’s promissory note and acknowledged that First Franklin was providing a “first mortgage.” However, First Franklin did not obtain an express assignment of First United’s lien rights. First Franklin recorded its deed of trust on November 14,1996.
¶ 5 On January 31, 1997, HCZ recorded a mechanics’ lien against the house, and on May 14, 1997, HCZ brought an action to foreclose its lien. HCZ’s complaint also sought damages for breach of contract, unjust enrichment, and fraud and misrepresentation against Hish. HCZ recorded a lis pen-dens against the property on August 1,1997.
¶ 6 Although Hish answered the complaint and asserted counterclaims, he eventually stopped defending the lawsuit. By 1999 only HCZ and First Franklin claimed an interest in the house. First Franklin claimed that its deed of trust had priority over HCZ’s lien on multiple grounds, including a claim that HCZ’s lien had expired because HCZ had failed to record a lis pendens within five days of filing its foreclosure suit, as prescribed by A.R.S. sections 33-998(A) and 12-1191(A). The trial court limited its analysis to this issue and concluded that HCZ’s lien had expired for failure to comply with the statutory prerequisites for foreclosure. On this basis, the trial court granted summary judgment in favor of First Franklin, and HCZ appealed.
DISCUSSION
¶ 7 In reviewing the granting of a motion for summary judgment, we consider the evidence in the light most favorable to the party opposing summary judgment. Nestle Ice Cream Co. v. Fuller,
¶ 8 In 1996, the Legislature amended A.R.S. section 33-998 and added the lis pen-dens requirement at issue here. As amended, A.R.S. section 33-998(A) states, in relevant part, the following:
A lien granted under the provisions of this article shall not continue for a longer period than six months after it is recorded, unless action is brought within that period to enforce the lien and a notice of pendency of action is recorded pursuant to § 12-1191 in the office of the county recorder in the county where the property is located.
Ariz. Sess. Laws, ch. 289, § 8 (emphasis added to amended portion). The notice requirement of A.R.S. section 12-1191(A) was likewise amended in 1996 and reads, in relevant part, as follows:
In an action affecting title to real property, the plaintiff at the time of filing the complaint, or thereafter, and the defendant at the time of filing his pleading when affirmative relief is claimed in such pleading, or*364 thereafter, may file in the office of the recorder of the county in which the property is situated a notice of the pendency of the action or defense. In any action to foreclose a mechanics’ or materialmen’s lien pursuant to title 33, chapter 7, article 6, the lien claimant shall file a notice of pendency of action as prescribed by § 33-998 within five days of filing the action or raising the defense.
Ariz. Sess. Laws, ch. 289, § 2 (emphasis added to amended portion).
¶ 9 The material facts relevant to HCZ’s compliance with these statutes are undisputed. Both parties acknowledge that HCZ filed its foreclosure action within six months of recording its lien. But HCZ did not file a lis pendens until more than two months after filing the foreclosure action. Nevertheless, HCZ argues that the lis pen-dens requirement is merely “directory”
¶ 10 In determining the appropriate construction of “shall” in this context, we turn to established rules of statutory construction. The primary rule of statutory construction is to find and give effect to legislative intent. Mail Boxes v. Indus. Comm’n,
¶ 11 The ordinary meaning of “shall” in a statute is to impose a mandatory provision. Ins. Co. ofN. Am. v. Superior Court,
¶ 12 A well-established line of Arizona cases holds that the general purpose of the mechanics’ lien statutes is to protect the rights of those who furnish labor and materials that enhance the value of another’s property. E.g., Columbia Group, Inc. v. Jackson,
1113 Before its amendment in 1996, Arizona’s lis pendens statute served two purposes: to provide notice of the pending litigation to anyone interested in the property and to prevent third persons from acquiring an interest in the property during the pendency of the litigation that would interfere with the court’s ability to grant suitable and equitable relief. Hatch Cos. Contracting, Inc. v. Arizona Bank,
¶ 15 We find Jack Endo Electric unpersuasive for two reasons. First, unlike the Hawaii statute, A.R.S. section 12-1191(A) uses both directory and mandatory language. (“[T]he plaintiff ... may file____[T]he lien claimant shall file ____”) (emphasis added). As the trial judge noted, this language demonstrates that the Legislature was aware of the distinction between actions left to the discretion of lien claimants and mandatory actions required of a specific class of lien claimants. The first sentence permits, but does not require, claimants to file a lis pen-dens to protect their rights; the second sentence requires claimants seeking to foreclose a mechanics’ lien to file a lis pendens within five days of commencing the action. When the Legislature has used both “may” and “shall” in the same paragraph of a statute, we infer that the Legislature acknowledged the difference and intended each word to carry its ordinary meaning. In re Guardianship of Cruz,
¶ 16 Second, the inference that the Legislature intended “shall” to be mandatory is further supported by the “Bill Summary for SB 1300” (the bill which is the source of the present version of A.R.S. section 12-1191) prepared for the Committee on Commerce of the House of Representatives. That summary states, in part, the following: “The bill requires the lien claimant to file notice of a pending action (within five days) in any case to foreclose a mechanics’ or materialmen’s lien.” (Emphasis added.)
¶ 17 We find additional support for our conclusion in a decision by the Connecticut Appellate Court in H.G. Bass Assocs., Inc. v. Ethan Allen, Inc.,
¶ 18 As in Connecticut, mechanics’ liens in Arizona are statutory creations. Thus, in order to establish a right of action under the mechanics’ lien statutes, HCZ was required to strictly comply with the conditions of A.R.S. section 33-998, which now incorporates portions of A.R.S. section 12-1191. These statutes are not ordinary statutes of limitations affecting the remedy, but establish the right of action itself. United
¶ 19 We conclude that the 1996 amendment established a brightline prerequisite to foreclosure actions on mechanics’ liens. Thus, HCZ’s failure to file a lis pendens within the time period prescribed by A.R.S. sections 33-998(A) and 12-1191(A) resulted in the extinguishment of its lien and the right of action to which it was attached.
CONCLUSION
¶ 20 We affirm the judgment of the trial court holding that HCZ’s mechanics’ lien expired when it failed to timely record its lis pendens. Under A.R.S. section 33-998(B), we award attorneys’ fees to First Franklin in an amount to be determined following submission of a statement of costs in accordance with Rule 21, Arizona Rules of Civil Appellate Procedure.
Notes
. When "shall" is used in the directory sense, it may indicate desirability, preference, or permission. See Arizona Downs v. Arizona Horsemens Found.,
