Exhibit 5.1


   555 Eleventh Street, N.W., Suite 1000
   Washington, D.C. 20004-1304
   Tel: +1.202.637.2200 Fax: +1.202.637.2201



   Austin    Moscow
   Beijing    Munich
   Boston    New York
   Brussels    Orange County
   Century City    Paris
June 9, 2022    Chicago    Riyadh
   Dubai    San Diego
   Düsseldorf    San Francisco
   Frankfurt    Seoul
   Hamburg    Shanghai
   Hong Kong    Silicon Valley
   Houston    Singapore
KLA Corporation    London    Tel Aviv
One Technology Drive    Los Angeles    Tokyo
Milpitas, California 95035    Madrid    Washington, D.C.
   File No. 067989-0010

Re: Registration Statement on Form S-3

To the addressee set forth above:

We have acted as special counsel to KLA Corporation, a Delaware corporation (the “Company”), in connection with its filing on the date hereof with the Securities and Exchange Commission (the “Commission”) of a registration statement on Form S-3 (as amended, the “Registration Statement”), including a base prospectus (the “Base Prospectus”), which provides that it will be supplemented by one or more prospectus supplements (each such prospectus supplement, together with the Base Prospectus, a “Prospectus”), under the Securities Act of 1933, as amended (the “Act”), relating to the registration for issue and sale by the Company of one or more series of the Company’s debt securities (collectively, the “Securities”) to be issued under an indenture in the form most recently filed as an exhibit to the Registration Statement to be entered into between the Company and U.S. Bank Trust Company, National Association, as trustee (such indenture, together with any board resolutions, supplements thereto or officer’s certificates thereunder pertaining to the applicable series of Securities, the “Applicable Indenture”).

This opinion is being furnished in connection with the requirements of Item 601(b)(5) of Regulation S-K under the Act, and no opinion is expressed herein as to any matter pertaining to the contents of the Registration Statement or related Prospectus, other than as expressly stated herein with respect to the issue of the Securities.

As such counsel, we have examined such matters of fact and questions of law as we have considered appropriate for purposes of this letter. With your consent, we have relied upon certificates and other assurances of officers of the Company and others as to factual matters without having independently verified such factual matters. We are opining herein as to the General Corporation Law of the State of Delaware and the internal laws of the State of New York, and we express no opinion with respect to the applicability thereto, or the effect thereon, of the laws of any other jurisdiction or, in the case of Delaware, any other laws, or as to any matters of municipal law or the laws of any local agencies within any state.

June 9, 2022

Page 2




Subject to the foregoing and the other matters set forth herein, it is our opinion that, as of the date hereof, when the Applicable Indenture has been duly authorized, executed and delivered by all necessary corporate action of the Company, and when the specific terms of a particular series of Securities have been duly established in accordance with the terms of the Applicable Indenture and authorized by all necessary corporate action of the Company, and such Securities have been duly executed, authenticated, issued and delivered against payment therefor in accordance with the terms of the Applicable Indenture and in the manner contemplated by the applicable Prospectus and by such corporate action, such Securities will be the legally valid and binding obligations of the Company, enforceable against the Company in accordance with their terms.

Our opinion is subject to: (i) the effect of bankruptcy, insolvency, reorganization, preference, fraudulent transfer, moratorium or other similar laws relating to or affecting the rights and remedies of creditors; (ii) (a) the effect of general principles of equity, whether considered in a proceeding in equity or at law (including the possible unavailability of specific performance or injunctive relief), (b) concepts of materiality, reasonableness, good faith and fair dealing, and (c) the discretion of the court before which a proceeding is brought; and (iii) the invalidity under certain circumstances under law or court decisions of provisions providing for the indemnification of or contribution to a party with respect to a liability where such indemnification or contribution is contrary to public policy. We express no opinion as to (a) any provision for liquidated damages, default interest, late charges, monetary penalties, make-whole premiums or other economic remedies to the extent such provisions are deemed to constitute a penalty, (b) consents to, or restrictions upon, governing law, jurisdiction, venue, arbitration, remedies, or judicial relief, (c) waivers of rights or defenses, (d) any provision requiring the payment of attorneys’ fees, where such payment is contrary to law or public policy, (e) any provision permitting, upon acceleration of any Securities, collection of that portion of the stated principal amount thereof which might be determined to constitute unearned interest thereon, (f) the creation, validity, attachment, perfection, or priority of any lien or security interest, (g) advance waivers of claims, defenses, rights granted by law, or notice, opportunity for hearing, evidentiary requirements, statutes of limitation, trial by jury or at law, or other procedural rights, (h) waivers of broadly or vaguely stated rights, (i) provisions for exclusivity, election or cumulation of rights or remedies, (j) provisions authorizing or validating conclusive or discretionary determinations, (k) grants of setoff rights, (l) proxies, powers and trusts, (m) provisions prohibiting, restricting, or requiring consent to assignment or transfer of any right or property, (n) any provision to the extent it requires that a claim with respect to a security denominated in other than U.S. dollars (or a judgment in respect of such a claim) be converted into U.S. dollars at a rate of exchange at a particular date, to the extent applicable law otherwise provides, and (o) the severability, if invalid, of provisions to the foregoing effect.

June 9, 2022

Page 3




With your consent, we have assumed (a) that the Applicable Indenture and the Securities (collectively, the “Documents”) will be governed by the internal laws of the State of New York, (b) that each of the Documents has been or will be duly authorized, executed and delivered by the parties thereto, (c) that each of the Documents constitutes or will constitute legally valid and binding obligations of the parties thereto other than the Company, enforceable against each of them in accordance with their respective terms, and (d) that the status of each of the Documents as legally valid and binding obligations of the parties will not be affected by any (i) breaches of, or defaults under, agreements or instruments, (ii) violations of statutes, rules, regulations or court or governmental orders, or (iii) failures to obtain required consents, approvals or authorizations from, or to make required registrations, declarations or filings with, governmental authorities.

This opinion is for your benefit in connection with the Registration Statement and may be relied upon by you and by persons entitled to rely upon it pursuant to the applicable provisions of the Act. We consent to your filing this opinion as an exhibit to the Registration Statement and to the reference to our firm contained in the Prospectus under the heading “Legal Matters.” In giving such consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Act or the rules and regulations of the Commission thereunder.


/s/ Latham & Watkins LLP