Exhibit 5.1

| | | | |
110 North Elgin Avenue, Suite 200 Tulsa, Oklahoma 74120 Telephone (918) 595-4800 Fax (918) 595-4990 www.gablelaw.com | | | | BOK Park Plaza 499 West Sheridan Avenue, Suite 2200 Oklahoma City, OK 73102 Telephone (405) 235-5500 Fax (405) 235-2875 |
| | |
| | August 3, 2023 | | |
ONEOK, Inc.
100 West Fifth Street
Tulsa, Oklahoma 74103
Ladies and Gentlemen:
We have acted as special counsel to ONEOK, Inc., an Oklahoma corporation (the “Company”), in connection with the proposed issuance and sale from time to time by the Company of its common stock, $0.01 par value per share, in an amount having an aggregate offering price of up to $1,000,000,000 (the “Shares”) pursuant to the equity distribution agreement dated August 3, 2023 (the “Distribution Agreement”) among the Company, the Manager named therein and the Forward Purchaser named therein. The Shares are to be issued pursuant to the Registration Statement on Form S-3 under the Securities Act of 1933, as amended (the “Act”), initially filed with the U.S. Securities and Exchange Commission (the “Commission”) on June 20, 2023 (the “Registration Statement”), the base prospectus included in the Registration Statement (the “Base Prospectus”), and the prospectus supplement to be filed with the Commission pursuant to Rule 424(b) of the rules and regulations of the Act (the “Prospectus Supplement” and together with the Base Prospectus, the “Prospectus”). 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 the Prospectus, other than as expressly stated herein with respect to the issuance of the Shares.
As such counsel, we have examined originals or copies of the Distribution Agreement, the Registration Statement, the Prospectus, the Company’s Amended and Restated Certificate of Incorporation, as amended, the Company’s Amended and Restated By-laws and other records, documents, certificates, memoranda and instruments as in our judgment are necessary or appropriate to enable us to render the opinion expressed below. 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.
In rendering the opinion expressed below, we have assumed without verification the genuineness of all signatures, the legal capacity of all natural persons, the authenticity of all documents supplied to us as originals, the conformity to the originals of all documents supplied to us as copies and the authenticity of the originals of such copies. We have also assumed that all Shares will be issued and sold in the manner stated in the Registration Statement and the Prospectus.