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>0001976034</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>Hartsell Steven W.</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Cowen and Company LLC</name>
          <address>
            <com:street1>599 Lexington Ave 20th Fl</com:street1>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10022</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>400</noOfUnitsSold>
        <aggregateMarketValue>163600.00</aggregateMarketValue>
        <noOfUnitsOutstanding>109268081</noOfUnitsOutstanding>
        <approxSaleDate>08/10/2023</approxSaleDate>
        <securitiesExchangeName>Nasdaq</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/05/2010</acquiredDate>
        <natureOfAcquisitionTransaction>Acquired through Issuer's 401(k) plan</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>400</amountOfSecuritiesAcquired>
        <paymentDate>01/05/2010</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>08/10/2023</noticeDate>
        <signature>Steven W. Hartsell</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 2739}]
text: 144
  0001976034
  XXXXXXXX
  LIVE
  0000878927
  OLD DOMINION FREIGHT LINE, INC.
  000-19582
  500 OLD DOMINION WAY
  THOMASVILLE
  NC
  27360
  3368895000
  Hartsell Steven W.
  Officer
  Common
  Cowen and Company LLC
  599 Lexington Ave 20th Fl
  New York
  NY
  10022
  400
  163600.00
  109268081
  08/10/2023
  Nasdaq
  Common
  01/05/2010
  Acquired through Issuer's 401(k) plan
  Issuer
  N
  400
  01/05/2010
  Cash
  Y
  08/10/2023
  Steven W. Hartsell