(b) Protection for certain interests even though notice filedEven though notice of a lien imposed by section 6321 has been filed, such lien shall not be valid—(1) SecuritiesWith respect to a security (as defined in subsection (h)(4))—(A) as against a purchaser of such security who at the time of purchase did not have actual notice or knowledge of the existence of such lien; and
(B) as against a holder of a security interest in such security who, at the time such interest came into existence, did not have actual notice or knowledge of the existence of such lien.
(2) Motor vehiclesWith respect to a motor vehicle (as defined in subsection (h)(3)), as against a purchaser of such motor vehicle, if—(A) at the time of the purchase such purchaser did not have actual notice or knowledge of the existence of such lien, and
(B) before the purchaser obtains such notice or knowledge, he has acquired possession of such motor vehicle and has not thereafter relinquished possession of such motor vehicle to the seller or his agent.
(3) Personal property purchased at retail
(4) Personal property purchased in casual sale
(5) Personal property subject to possessory lien
(6) Real property tax and special assessment liensWith respect to real property, as against a holder of a lien upon such property, if such lien is entitled under local law to priority over security interests in such property which are prior in time, and such lien secures payment of—(A) a tax of general application levied by any taxing authority based upon the value of such property;
(B) a special assessment imposed directly upon such property by any taxing authority, if such assessment is imposed for the purpose of defraying the cost of any public improvement; or
(C) charges for utilities or public services furnished to such property by the United States, a State or political subdivision thereof, or an instrumentality of any one or more of the foregoing.
(7) Residential property subject to a mechanic’s lien for certain repairs and improvements
(8) Attorneys’ liens
(9) Certain insurance contractsWith respect to a life insurance, endowment, or annuity contract, as against the organization which is the insurer under such contract, at any time—(A) before such organization had actual notice or knowledge of the existence of such lien;
(B) after such organization had such notice or knowledge, with respect to advances required to be made automatically to maintain such contract in force under an agreement entered into before such organization had such notice or knowledge; or
(C) after satisfaction of a levy pursuant to section 6332(b), unless and until the Secretary delivers to such organization a notice, executed after the date of such satisfaction, of the existence of such lien.
(10) Deposit-secured loans
(d) 45-day period for making disbursementsEven though notice of a lien imposed by section 6321 has been filed, such lien shall not be valid with respect to a security interest which came into existence after tax lien filing by reason of disbursements made before the 46th day after the date of tax lien filing, or (if earlier) before the person making such disbursements had actual notice or knowledge of tax lien filing, but only if such security interest—(1) is in property (A) subject, at the time of tax lien filing, to the lien imposed by section 6321, and (B) covered by the terms of a written agreement entered into before tax lien filing, and
(2) is protected under local law against a judgment lien arising, as of the time of tax lien filing, out of an unsecured obligation.
(e) Priority of interest and expensesIf the lien imposed by section 6321 is not valid as against a lien or security interest, the priority of such lien or security interest shall extend to—(1) any interest or carrying charges upon the obligation secured,
(2) the reasonable charges and expenses of an indenture trustee or agent holding the security interest for the benefit of the holder of the security interest,
(3) the reasonable expenses, including reasonable compensation for attorneys, actually incurred in collecting or enforcing the obligation secured,
(4) the reasonable costs of insuring, preserving, or repairing the property to which the lien or security interest relates,
(5) the reasonable costs of insuring payment of the obligation secured, and
(6) amounts paid to satisfy any lien on the property to which the lien or security interest relates, but only if the lien so satisfied is entitled to priority over the lien imposed by section 6321,
to the extent that, under local law, any such item has the same priority as the lien or security interest to which it relates.
(j) Withdrawal of notice in certain circumstances(1) In generalThe Secretary may withdraw a notice of a lien filed under this section and this chapter shall be applied as if the withdrawn notice had not been filed, if the Secretary determines that—(A) the filing of such notice was premature or otherwise not in accordance with administrative procedures of the Secretary,
(B) the taxpayer has entered into an agreement under section 6159 to satisfy the tax liability for which the lien was imposed by means of installment payments, unless such agreement provides otherwise,
(C) the withdrawal of such notice will facilitate the collection of the tax liability, or
(D) with the consent of the taxpayer or the National Taxpayer Advocate, the withdrawal of such notice would be in the best interests of the taxpayer (as determined by the National Taxpayer Advocate) and the United States.
Any such withdrawal shall be made by filing notice at the same office as the withdrawn notice. A copy of such notice of withdrawal shall be provided to the taxpayer.
(2) Notice to credit agencies, etc.
(Aug. 16, 1954, ch. 736, 68A Stat. 779; Pub. L. 88–272, title II, § 236(a), (c)(1), Feb. 26, 1964, 78 Stat. 127, 128; Pub. L. 89–493, § 17(a), July 5, 1966, 80 Stat. 266; Pub. L. 89–719, title I, § 101(a), Nov. 2, 1966, 80 Stat. 1125; Pub. L. 94–455, title XII, § 1202(h)(2), title XIX, § 1906(b)(13)(A), title XX, § 2008(c), Oct. 4, 1976, 90 Stat. 1688, 1834, 1892; Pub. L. 95–600, title VII, § 702(q)(1), (2), Nov. 6, 1978, 92 Stat. 2937, 2938; Pub. L. 99–514, title XV, § 1569(a), Oct. 22, 1986, 100 Stat. 2764; Pub. L. 100–647, title I, § 1015(s)(1), Nov. 10, 1988, 102 Stat. 3573; Pub. L. 101–508, title XI, §§ 11317(b), 11704(a)(26), Nov. 5, 1990, 104 Stat. 1388–458, 1388–519; Pub. L. 104–168, title V, § 501(a), July 30, 1996, 110 Stat. 1460; Pub. L. 105–206, title I, § 1102(d)(1)(A), title III, § 3435(a), (b), July 22, 1998, 112 Stat. 704, 760, 761; Pub. L. 115–97, title I, § 11002(d)(1)(HH), Dec. 22, 2017, 131 Stat. 2060.)