content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001488810</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0000878927</issuerCik>
        <issuerName>OLD DOMINION FREIGHT LINE, INC.</issuerName>
        <secFileNumber>000-19582</secFileNumber>
        <issuerAddress>
          <com:street1>500 OLD DOMINION WAY</com:street1>
          <com:city>THOMASVILLE</com:city>
          <com:stateOrCountry>NC</com:stateOrCountry>
          <com:zipCode>27360</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>3368895000</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Gantt Greg C</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Director</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Piper Sandler &amp; Co</name>
          <address>
            <com:street1>800 Nicollet Mall</com:street1>
            <com:city>Minneapolis</com:city>
            <com:stateOrCountry>MN</com:stateOrCountry>
            <com:zipCode>55402</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>7000</noOfUnitsSold>
        <aggregateMarketValue>1384530.00</aggregateMarketValue>
        <noOfUnitsOutstanding>214296552</noOfUnitsOutstanding>
        <approxSaleDate>10/28/2024</approxSaleDate>
        <securitiesExchangeName>Nasdaq</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>02/10/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1998</amountOfSecuritiesAcquired>
        <paymentDate>02/10/2023</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>02/11/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1426</amountOfSecuritiesAcquired>
        <paymentDate>02/11/2023</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>06/23/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3576</amountOfSecuritiesAcquired>
        <paymentDate>06/23/2023</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Greg Gantt C/O Old Dominion Freight Line Inc</name>
          <address>
            <com:street1>500 Old Dominion Way</com:street1>
            <com:city>Thomasville</com:city>
            <com:stateOrCountry>NC</com:stateOrCountry>
            <com:zipCode>27360</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <saleDate>07/29/2024</saleDate>
        <amountOfSecuritiesSold>25000</amountOfSecuritiesSold>
        <grossProceeds>5050532.09</grossProceeds>
      </securitiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>10/28/2024</noticeDate>
        <signature>Alex Johnson, a duly authorized representative of Piper Sandler &amp; Co Corporate &amp; Venture Services FA, as attorney-in-fact for Gregory Gantt</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4517}]
text: 144
  0001488810
  XXXXXXXX
  LIVE
  0000878927
  OLD DOMINION FREIGHT LINE, INC.
  000-19582
  500 OLD DOMINION WAY
  THOMASVILLE
  NC
  27360
  3368895000
  Gantt Greg C
  Director
  Common Stock
  Piper Sandler & Co
  800 Nicollet Mall
  Minneapolis
  MN
  55402
  7000
  1384530.00
  214296552
  10/28/2024
  Nasdaq
  Common Stock
  02/10/2023
  Compensation
  Issuer
  N
  1998
  02/10/2023
  NA
  Common Stock
  02/11/2023
  Compensation
  Issuer
  N
  1426
  02/11/2023
  NA
  Common Stock
  06/23/2023
  Compensation
  Issuer
  N
  3576
  06/23/2023
  NA
  N
  Greg Gantt C/O Old Dominion Freight Line Inc
  500 Old Dominion Way
  Thomasville
  NC
  27360
  Common Stock
  07/29/2024
  25000
  5050532.09
  10/28/2024
  Alex Johnson, a duly authorized representative of Piper Sandler & Co Corporate & Venture Services FA, as attorney-in-fact for Gregory Gantt