<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001994637</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0001039684</issuerCik>
            <issuerName>ONEOK INC.</issuerName>
            <secFileNumber>001-13643</secFileNumber>
            <issuerAddress>
                <ns2:street1>100 WEST 5TH ST</ns2:street1>
                <ns2:city>TULSA</ns2:city>
                <ns2:stateOrCountry>OK</ns2:stateOrCountry>
                <ns2:zipCode>74103</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>9185887000</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>LAUREN B LUSARDI &amp; GREGORY D LUSARDI</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>8th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>5000</noOfUnitsSold>
            <aggregateMarketValue>388811.00</aggregateMarketValue>
            <noOfUnitsOutstanding>583159446</noOfUnitsOutstanding>
            <approxSaleDate>03/06/2024</approxSaleDate>
            <securitiesExchangeName>NYSE</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/17/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Stock Units</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>2116</amountOfSecuritiesAcquired>
            <paymentDate>02/17/2023</paymentDate>
            <natureOfPayment>Compensation</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>02/17/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Stock Units</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>2884</amountOfSecuritiesAcquired>
            <paymentDate>02/17/2024</paymentDate>
            <natureOfPayment>Compensation</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>03/06/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Gregory D Lusardi</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3815}]
144
0001994637
XXXXXXXX
LIVE
0001039684
ONEOK INC.
001-13643
100 WEST 5TH ST
TULSA
OK
74103
9185887000
LAUREN B LUSARDI & GREGORY D LUSARDI
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
5000
388811.00
583159446
03/06/2024
NYSE
Common
02/17/2023
Performance Stock Units
Issuer
N
2116
02/17/2023
Compensation
Common
02/17/2024
Performance Stock Units
Issuer
N
2884
02/17/2024
Compensation
Y
03/06/2024
/s/ Gregory D Lusardi