§ 6323.
(b)
Protection for certain interests even though notice filed
Even though notice of a lien imposed by section 6321 has been filed, such lien shall not be valid—
(1)
Securities
With 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 vehicles
With 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 liens
With 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
(9)
Certain insurance contracts
With 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
(c)
Protection for certain commercial transactions financing agreements, etc.
(1)
In general
To the extent provided in this subsection, even 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 but which—
(A)
is in qualified property covered by the terms of a written agreement entered into before tax lien filing and constituting—
(i)
a commercial transactions financing agreement,
(ii)
a real property construction or improvement financing agreement, or
(iii)
an obligatory disbursement agreement, and
(B)
is protected under local law against a judgment lien arising, as of the time of tax lien filing, out of an unsecured obligation.
(2)
Commercial transactions financing agreement
For purposes of this subsection—
(A)
Definition
The term “commercial transactions financing agreement” means an agreement (entered into by a person in the course of his trade or business)—
(i)
to make loans to the taxpayer to be secured by commercial financing security acquired by the taxpayer in the ordinary course of his trade or business, or
(ii)
to purchase commercial financing security (other than inventory) acquired by the taxpayer in the ordinary course of his trade or business;
but such an agreement shall be treated as coming within the term only to the extent that such loan or purchase is made before the 46th day after the date of tax lien filing or (if earlier) before the lender or purchaser had actual notice or knowledge of such tax lien filing.
(B)
Limitation on qualified property
(C)
Commercial financing security defined
(D)
Purchaser treated as acquiring security interest
(3)
Real property construction or improvement financing agreement
For purposes of this subsection—
(A)
Definition
The term “real property construction or improvement financing agreement” means an agreement to make cash disbursements to finance—
(i)
the construction or improvement of real property,
(ii)
a contract to construct or improve real property, or
(iii)
the raising or harvesting of a farm crop or the raising of livestock or other animals.
For purposes of clause (iii), the furnishing of goods and services shall be treated as the disbursement of cash.
(B)
Limitation on qualified property
The term “qualified property”, when used with respect to a real property construction or improvement financing agreement, includes only—
(i)
in the case of subparagraph (A)(i), the real property with respect to which the construction or improvement has been or is to be made,
(ii)
in the case of subparagraph (A)(ii), the proceeds of the contract described therein, and
(iii)
in the case of subparagraph (A)(iii), property subject to the lien imposed by section 6321 at the time of tax lien filing and the crop or the livestock or other animals referred to in subparagraph (A)(iii).
(4)
Obligatory disbursement agreement
For purposes of this subsection—
(B)
Limitation on qualified property
(C)
Special rules for surety agreements
Where the obligatory disbursement agreement is an agreement ensuring the performance of a contract between the taxpayer and another person—
(i)
the term “qualified property” shall be treated as also including the proceeds of the contract the performance of which was ensured, and
(ii)
if the contract the performance of which was ensured was a contract to construct or improve real property, to produce goods, or to furnish services, the term “qualified property” shall be treated as also including any tangible personal property used by the taxpayer in the performance of such ensured contract.
(d)
45-day period for making disbursements
Even 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 expenses
If 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.
([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].)