content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <!-- Generated by Workiva -->
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001546374</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0000889900</issuerCik>
        <issuerName>Patterson-UTI Energy, Inc.</issuerName>
        <secFileNumber>001-39270</secFileNumber>
        <issuerAddress>
          <com:street1>10713 W. Sam Houston PKWY N, Suite 800</com:street1>
          <com:city>Houston</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>77064</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>281-765-7100</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>William A. Hendricks</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Affiliate</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>J.P. Morgan Securities LLC</name>
          <address>
            <com:street1>390 Madison Avenue - 6th Floor</com:street1>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10017</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>600000</noOfUnitsSold>
        <aggregateMarketValue>8400000</aggregateMarketValue>
        <noOfUnitsOutstanding>208247403</noOfUnitsOutstanding>
        <approxSaleDate>07/13/2023</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>09/22/2015</acquiredDate>
        <natureOfAcquisitionTransaction>RSU/PSU Awards</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>600000</amountOfSecuritiesAcquired>
        <paymentDate>09/22/2015</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>This filing includes shares received as compensation during 09/22/2015 to 04/07/2023</remarks>
      <noticeSignature>
        <noticeDate>07/13/2023</noticeDate>
        <planAdoptionDates>
          <planAdoptionDate>03/07/2023</planAdoptionDate>
        </planAdoptionDates>
        <signature>/s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for William A. Hendricks</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3069}]
text: 144
  0001546374
  XXXXXXXX
  LIVE
  0000889900
  Patterson-UTI Energy, Inc.
  001-39270
  10713 W. Sam Houston PKWY N, Suite 800
  Houston
  TX
  77064
  281-765-7100
  William A. Hendricks
  Affiliate
  Common
  J.P. Morgan Securities LLC
  390 Madison Avenue - 6th Floor
  New York
  NY
  10017
  600000
  8400000
  208247403
  07/13/2023
  NASDAQ
  Common
  09/22/2015
  RSU/PSU Awards
  Issuer
  N
  600000
  09/22/2015
  Compensation
  Y
  This filing includes shares received as compensation during 09/22/2015 to 04/07/2023
  07/13/2023
  03/07/2023
  /s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for William A. Hendricks