<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-05-21</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001050915</issuerCik>
        <issuerName>QUANTA SERVICES, INC.</issuerName>
        <issuerTradingSymbol>PWR</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001229832</rptOwnerCik>
            <rptOwnerName>JACKMAN WORTHING</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>2727 NORTH LOOP WEST</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>HOUSTON</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>77008-1044</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable></nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>0</value>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2026-05-21</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>249</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F2"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F2"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>249</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>11297</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">The restricted stock units are settled in shares of common stock on a one-for-one basis, provided that in certain circumstances the reporting person may elect to settle up to 50% of the restricted stock units in cash.</footnote>
        <footnote id="F2">Unless otherwise provided in the award agreement, the restricted stock units vest and settle on June 1, 2027. Settlement of all or a portion of the restricted stock units may be deferred by the reporting person pursuant to the terms of a nonqualified deferred compensation plan maintained by the Company.</footnote>
        <footnote id="F3">Includes unvested restricted stock units and vested restricted stock units for which settlement has been deferred by the reporting person pursuant to the terms of a nonqualified deferred compensation plan maintained by the Company.</footnote>
    </footnotes>

    <remarks>Please see filings made under CIK 0001328708 for prior filings made for the Reporting Person with respect to Quanta Services, Inc. securities. Previously, the Reporting Person was inadvertently issued two sets of EDGAR access codes. Going forward, the Reporting Person will make all filings using this CIK 0001229832.</remarks>

    <ownerSignature>
        <signatureName>/s/ Jessica L. Sherman, Attorney-in-Fact</signatureName>
        <signatureDate>2026-05-26</signatureDate>
    </ownerSignature>
</ownershipDocument>
