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>0001284383</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>FRIED BERNARD</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>4000</noOfUnitsSold>
        <aggregateMarketValue>946600.80</aggregateMarketValue>
        <noOfUnitsOutstanding>145748976</noOfUnitsOutstanding>
        <approxSaleDate>02/27/2024</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/28/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3366</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2020</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>581</amountOfSecuritiesAcquired>
        <paymentDate>05/28/2015</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/13/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Dividend Reinvestment</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>22</amountOfSecuritiesAcquired>
        <paymentDate>04/13/2020</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>17</amountOfSecuritiesAcquired>
        <paymentDate>01/14/2020</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>14</amountOfSecuritiesAcquired>
        <paymentDate>10/11/2019</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>This trade occurred in the Fried Family Revocable Trust whom Bernard Fried is a Trustee</remarks>
      <noticeSignature>
        <noticeDate>02/27/2024</noticeDate>
        <signature>/s/ Jennifer Ruchti, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Bernard Fried</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5061}]
text: 144
  0001284383
  XXXXXXXX
  LIVE
  0001050915
  QUANTA SERVICES, INC.
  001-13831
  2727 NORTH LOOP WEST
  HOUSTON
  TX
  77008-1044
  713-629-7600
  FRIED BERNARD
  Director
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  4000
  946600.80
  145748976
  02/27/2024
  NYSE
  Common
  05/28/2020
  Restricted Stock Vesting
  Issuer
  N
  3366
  05/28/2020
  Compensation
  Common
  05/28/2015
  Restricted Stock Vesting
  Issuer
  N
  581
  05/28/2015
  Compensation
  Common
  04/13/2020
  Dividend Reinvestment
  Issuer
  N
  22
  04/13/2020
  Cash
  Common
  01/14/2020
  Dividend Reinvestment
  Issuer
  N
  17
  01/14/2020
  Cash
  Common
  10/11/2019
  Dividend Reinvestment
  issuer
  N
  14
  10/11/2019
  Cash
  Y
  This trade occurred in the Fried Family Revocable Trust whom Bernard Fried is a Trustee
  02/27/2024
  /s/ Jennifer Ruchti, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Bernard Fried