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>0001069725</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001050915</issuerCik>
        <issuerName>QUANTA SERVICES, INC.</issuerName>
        <secFileNumber>001-13831</secFileNumber>
        <issuerAddress>
          <com:street1>2727 NORTH LOOP WEST</com:street1>
          <com:city>HOUSTON</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>77008-1044</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>713-629-7600</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>FOSTER VINCENT D</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Director</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>17500</noOfUnitsSold>
        <aggregateMarketValue>4175669.72</aggregateMarketValue>
        <noOfUnitsOutstanding>145748976</noOfUnitsOutstanding>
        <approxSaleDate>02/27/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>06/21/2011</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1848</amountOfSecuritiesAcquired>
        <paymentDate>06/21/2011</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/28/2012</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4500</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2012</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/28/2013</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4819</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2013</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/28/2014</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3211</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2014</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/28/2015</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1515</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2015</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/14/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>280</amountOfSecuritiesAcquired>
        <paymentDate>01/14/2019</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/17/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>225</amountOfSecuritiesAcquired>
        <paymentDate>04/17/2019</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>07/11/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>243</amountOfSecuritiesAcquired>
        <paymentDate>07/11/2019</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/11/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>231</amountOfSecuritiesAcquired>
        <paymentDate>10/11/2019</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>01/14/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>277</amountOfSecuritiesAcquired>
        <paymentDate>01/14/2020</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/13/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>351</amountOfSecuritiesAcquired>
        <paymentDate>04/13/2020</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>02/27/2024</noticeDate>
        <signature>/s/ Eric Janiak, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Vincent D. Foster</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 8151}]
text: 144
  0001069725
  XXXXXXXX
  LIVE
  0001050915
  QUANTA SERVICES, INC.
  001-13831
  2727 NORTH LOOP WEST
  HOUSTON
  TX
  77008-1044
  713-629-7600
  FOSTER VINCENT D
  Director
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  17500
  4175669.72
  145748976
  02/27/2024
  NYSE
  Common
  06/21/2011
  Restricted Stock Vesting
  Issuer
  N
  1848
  06/21/2011
  Compensation
  Common
  05/28/2012
  Restricted Stock Vesting
  Issuer
  N
  4500
  05/28/2012
  Compensation
  Common
  05/28/2013
  Restricted Stock Vesting
  Issuer
  N
  4819
  05/28/2013
  Compensation
  Common
  05/28/2014
  Restricted Stock Vesting
  Issuer
  N
  3211
  05/28/2014
  Compensation
  Common
  05/28/2015
  Restricted Stock Vesting
  Issuer
  N
  1515
  05/28/2015
  Compensation
  Common
  01/14/2019
  Dividend Reinvestment
  Issuer
  N
  280
  01/14/2019
  Cash
  Common
  04/17/2019
  Dividend Reinvestment
  Issuer
  N
  225
  04/17/2019
  Cash
  Common
  07/11/2019
  Dividend Reinvestment
  Issuer
  N
  243
  07/11/2019
  Cash
  Common
  10/11/2019
  Dividend Reinvestment
  Issuer
  N
  231
  10/11/2019
  Cash
  Common
  01/14/2020
  Dividend Reinvestment
  Issuer
  N
  277
  01/14/2020
  Cash
  Common
  04/13/2020
  Dividend Reinvestment
  Issuer
  N
  351
  04/13/2020
  Cash
  Y
  02/27/2024
  /s/ Eric Janiak, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Vincent D. Foster