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>6414</noOfUnitsSold>
        <aggregateMarketValue>1302170.28</aggregateMarketValue>
        <noOfUnitsOutstanding>213497536</noOfUnitsOutstanding>
        <approxSaleDate>02/13/2025</approxSaleDate>
        <securitiesExchangeName>Nasdaq</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>02/01/2024</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2982</amountOfSecuritiesAcquired>
        <paymentDate>02/01/2024</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>05/01/2024</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2983</amountOfSecuritiesAcquired>
        <paymentDate>05/01/2024</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common Stock</securitiesClassTitle>
        <acquiredDate>05/14/2024</acquiredDate>
        <natureOfAcquisitionTransaction>Compensation</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>449</amountOfSecuritiesAcquired>
        <paymentDate>05/14/2024</paymentDate>
        <natureOfPayment>NA</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>02/13/2025</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": 3891}]
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
  6414
  1302170.28
  213497536
  02/13/2025
  Nasdaq
  Common Stock
  02/01/2024
  Compensation
  Issuer
  N
  2982
  02/01/2024
  NA
  Common Stock
  05/01/2024
  Compensation
  Issuer
  N
  2983
  05/01/2024
  NA
  Common Stock
  05/14/2024
  Compensation
  Issuer
  N
  449
  05/14/2024
  NA
  Y
  02/13/2025
  Alex Johnson, a duly authorized representative of Piper Sandler & Co Corporate & Venture Services FA, as attorney-in-fact for Gregory Gantt