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>0001742223</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0000077360</issuerCik>
        <issuerName>PENTAIR plc</issuerName>
        <secFileNumber>001-11625</secFileNumber>
        <issuerAddress>
          <com:street1>REGAL HOUSE, 70 LONDON ROAD</com:street1>
          <com:street2>TWICKENHAM</com:street2>
          <com:city>LONDON</com:city>
          <com:stateOrCountry>X0</com:stateOrCountry>
          <com:zipCode>TW13QS</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>763-545-1730</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Rolchigo Philip M.</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>900 Salem Street</com:street1>
            <com:city>Smithfield</com:city>
            <com:stateOrCountry>RI</com:stateOrCountry>
            <com:zipCode>02917</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>4000</noOfUnitsSold>
        <aggregateMarketValue>243071.08</aggregateMarketValue>
        <noOfUnitsOutstanding>165298959</noOfUnitsOutstanding>
        <approxSaleDate>11/06/2023</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/02/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3945</amountOfSecuritiesAcquired>
        <paymentDate>01/02/2022</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/04/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>55</amountOfSecuritiesAcquired>
        <paymentDate>01/04/2022</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>11/06/2023</noticeDate>
        <signature>/s/ Courtney Broxterman, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Philip Rolchigo</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3422}]
text: 144
  0001742223
  XXXXXXXX
  LIVE
  0000077360
  PENTAIR plc
  001-11625
  REGAL HOUSE, 70 LONDON ROAD
  TWICKENHAM
  LONDON
  X0
  TW13QS
  763-545-1730
  Rolchigo Philip M.
  Officer
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  4000
  243071.08
  165298959
  11/06/2023
  NYSE
  Common
  01/02/2022
  Restricted Stock Vesting
  Issuer
  N
  3945
  01/02/2022
  Compensation
  Common
  01/04/2022
  Restricted Stock Vesting
  Issuer
  N
  55
  01/04/2022
  Compensation
  Y
  11/06/2023
  /s/ Courtney Broxterman, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Philip Rolchigo