<?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>0000942572</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>STACEY ROWE OREILLY TTEE STACEY ROWE OREILLY TRUST</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>8th 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>1118880.00</aggregateMarketValue>
            <noOfUnitsOutstanding>58005664</noOfUnitsOutstanding>
            <approxSaleDate>08/19/2024</approxSaleDate>
            <securitiesExchangeName>NASDAQ</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <acquiredDate>08/08/2017</acquiredDate>
            <natureOfAcquisitionTransaction>Gift from Affiliate</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>DAVID O'REILLY</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>Y</isGiftTransaction>
            <donarAcquiredDate>08/08/2017</donarAcquiredDate>
            <amountOfSecuritiesAcquired>1000</amountOfSecuritiesAcquired>
            <natureOfPayment>NA</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>AUSTIN AND DAVID O'REILLY TTEE U/A/D 8-21-2003, AS  AMENDED AUSTIN DAVID LEE O'REILLY</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>7500</amountOfSecuritiesSold>
            <grossProceeds>8441988.75</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>DAVID E O'REILLY TTEE DAVID E O'REILLY TRUST</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>5000</amountOfSecuritiesSold>
            <grossProceeds>5626425.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>LINDSAY FRENCH, DAVID O'REILLY TTEE U/A/D 08-21-2003 AS AMEND LINDSAY O'REILLY FRENCH SETTLR</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>5000</amountOfSecuritiesSold>
            <grossProceeds>5628125.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>793</amountOfSecuritiesSold>
            <grossProceeds>891747.69</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>1707</amountOfSecuritiesSold>
            <grossProceeds>1918728.77</grossProceeds>
        </securitiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR</name>
                <address>
                    <ns2:street1>233 South Patterson Avenue</ns2:street1>
                    <ns2:city>Springfield</ns2:city>
                    <ns2:stateOrCountry>MO</ns2:stateOrCountry>
                    <ns2:zipCode>65802</ns2:zipCode>
                </address>
            </sellerDetails>
            <securitiesClassTitle>Class A Common</securitiesClassTitle>
            <saleDate>08/14/2024</saleDate>
            <amountOfSecuritiesSold>3019</amountOfSecuritiesSold>
            <grossProceeds>3399396.11</grossProceeds>
        </securitiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>08/19/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ David E O'Reilly</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 7925}]
144
0000942572
XXXXXXXX
LIVE
0000898173
O'REILLY AUTOMOTIVE INC.
000-21318
233 South Patterson Avenue
Springfield
MO
65802
(417) 862-6708
STACEY ROWE OREILLY TTEE STACEY ROWE OREILLY TRUST
Director
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
1000
1118880.00
58005664
08/19/2024
NASDAQ
Common
08/08/2017
Gift from Affiliate
DAVID O'REILLY
Y
08/08/2017
1000
NA
N
AUSTIN AND DAVID O'REILLY TTEE U/A/D 8-21-2003, AS  AMENDED AUSTIN DAVID LEE O'REILLY
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
7500
8441988.75
DAVID E O'REILLY TTEE DAVID E O'REILLY TRUST
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
5000
5626425.00
LINDSAY FRENCH, DAVID O'REILLY TTEE U/A/D 08-21-2003 AS AMEND LINDSAY O'REILLY FRENCH SETTLR
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
5000
5628125.00
MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
793
891747.69
MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
1707
1918728.77
MATTHEW, DAVID O'REILLY TTEEU/A/D 08-21-2003, AS AMENDED MATTHEW D O'REILLY SETTLOR
233 South Patterson Avenue
Springfield
MO
65802
Class A Common
08/14/2024
3019
3399396.11
08/19/2024
/s/ David E O'Reilly