<?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>0000942011</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000898173</issuerCik>
            <issuerName>O'REILLY AUTOMOTIVE INC.</issuerName>
            <secFileNumber>000-21318</secFileNumber>
            <issuerAddress>
                <ns2:street1>233 South Patterson Avenue</ns2:street1>
                <ns2:city>Springfield</ns2:city>
                <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                <ns2:zipCode>65802</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>(417) 862-6708</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>L P OREILLY FAMILY REGISTER LLLP</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Director</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>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>1000</noOfUnitsSold>
            <aggregateMarketValue>982276.00</aggregateMarketValue>
            <noOfUnitsOutstanding>59162175</noOfUnitsOutstanding>
            <approxSaleDate>11/10/2023</approxSaleDate>
            <securitiesExchangeName>NASDAQ</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>04/23/1993</acquiredDate>
            <natureOfAcquisitionTransaction>Gift from Affiliate</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>Charles O'Reilly Sr</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>Y</isGiftTransaction>
            <donarAcquiredDate>04/23/1993</donarAcquiredDate>
            <amountOfSecuritiesAcquired>1000</amountOfSecuritiesAcquired>
            <natureOfPayment>NA</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <remarks>Sales that were executed on November 10, 2023 are being reported on this Form 144 filed on November 13, 2023 given the EDGAR system was not accepting filings on November 10, 2023 in observance of the federal holiday.</remarks>
        <noticeSignature>
            <noticeDate>11/10/2023</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ Larry P O'Reilly</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3506}]
144
0000942011
XXXXXXXX
LIVE
0000898173
O'REILLY AUTOMOTIVE INC.
000-21318
233 South Patterson Avenue
Springfield
MO
65802
(417) 862-6708
L P OREILLY FAMILY REGISTER LLLP
Director
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
38th Floor
New York
NY
10004
1000
982276.00
59162175
11/10/2023
NASDAQ
Common
04/23/1993
Gift from Affiliate
Charles O'Reilly Sr
Y
04/23/1993
1000
NA
Y
Sales that were executed on November 10, 2023 are being reported on this Form 144 filed on November 13, 2023 given the EDGAR system was not accepting filings on November 10, 2023 in observance of the federal holiday.
11/10/2023
/s/ Larry P O'Reilly