<?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-829-5878</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>DAVID E O'REILLY FAM LTD PARTNERSHP</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>6150000.00</aggregateMarketValue>
            <noOfUnitsOutstanding>57730693</noOfUnitsOutstanding>
            <approxSaleDate>11/11/2024</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>5000</amountOfSecuritiesAcquired>
            <natureOfPayment>NA</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <securitiesSoldInPast3Months>
            <sellerDetails>
                <name>STACEY ROWE OREILLY TTEE STACEY ROWE OREILLY 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>Common</securitiesClassTitle>
            <saleDate>08/19/2024</saleDate>
            <amountOfSecuritiesSold>1000</amountOfSecuritiesSold>
            <grossProceeds>1118880.00</grossProceeds>
        </securitiesSoldInPast3Months>
        <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>
        <remarks>Sales that were executed on November 11, 2024 are being reported on this Form 144 filed on November 12, 2024 given the EDGAR system was not accepting filings on November 11, 2024 in observance of the federal holiday.</remarks>
        <noticeSignature>
            <noticeDate>11/11/2024</noticeDate>
            <planAdoptionDates/>
            <signature>/s/ David E O'Reilly</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 8895}]
144
0000942572
XXXXXXXX
LIVE
0000898173
O'REILLY AUTOMOTIVE INC.
000-21318
233 South Patterson Avenue
Springfield
MO
65802
417-829-5878
DAVID E O'REILLY FAM LTD PARTNERSHP
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
8th Floor
New York
NY
10004
5000
6150000.00
57730693
11/11/2024
NASDAQ
Common
04/23/1993
Gift from Affiliate
Charles O'Reilly Sr
Y
04/23/1993
5000
NA
N
STACEY ROWE OREILLY TTEE STACEY ROWE OREILLY TRUST
233 South Patterson Avenue
Springfield
MO
65802
Common
08/19/2024
1000
1118880.00
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
Sales that were executed on November 11, 2024 are being reported on this Form 144 filed on November 12, 2024 given the EDGAR system was not accepting filings on November 11, 2024 in observance of the federal holiday.
11/11/2024
/s/ David E O'Reilly