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

    <schemaVersion>X0202</schemaVersion>

    <documentType>5</documentType>

    <periodOfReport>2006-12-31</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <form3HoldingsReported>0</form3HoldingsReported>

    <form4TransactionsReported>0</form4TransactionsReported>

    <issuer>
        <issuerCik>0000912562</issuerCik>
        <issuerName>GIBRALTAR INDUSTRIES, INC.</issuerName>
        <issuerTradingSymbol>Rock</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001311232</rptOwnerCik>
            <rptOwnerName>Murray Paul</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>3556 LAKESHORE ROAD</rptOwnerStreet1>
            <rptOwnerStreet2>P.0. BOX 2028</rptOwnerStreet2>
            <rptOwnerCity>BUFFALO</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>14219</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Senior Vice President</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common stock</value>
            </securityTitle>
            <transactionDate>
                <value>2006-12-31</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>5</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>3.16</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>22.49</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1525.2</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>Gibraltar Industries, Inc. 401(k) Savings Plan</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Restricted Stock Unit</value>
            </securityTitle>
            <transactionCoding>
                <transactionFormType></transactionFormType>
            </transactionCoding>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3617</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy</value>
                <footnoteId id="F4"/>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>21.33</value>
            </conversionOrExercisePrice>
            <transactionCoding>
                <transactionFormType></transactionFormType>
            </transactionCoding>
            <exerciseDate>
                <value>2006-04-06</value>
            </exerciseDate>
            <expirationDate>
                <value>2015-04-06</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>536</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>536</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">This number represents the number of units held by the reporting person in the unitized stock fund of the Gibraltar Industries, Inc. 401(k) Savings Plan. The unitized stock fund consists of stock of Gibraltar Industries, Inc. and cash and other short term investments.  The number of shares of stock represented by each unit fluctuates depending on the ratio of the number of shares of stock of Gibraltar Industries, Inc. in the fund to other investments.  The number of shares represented by each unit cannot be precisely determined.  Activity shown is from October 1, 2006 through December 31, 2006 at an average price of $22.49.</footnote>
        <footnote id="F2">Represents the number of units held by the reporting person in the unitized stock fund of the Gibraltar Industries, Inc. (410(k) Savings Plan.</footnote>
        <footnote id="F3">The Restricted Units vest and are paid in cash or Common Stock on the fourth anniversary of the award grant. (LTIP)</footnote>
        <footnote id="F4">Grant to Reporting Person under Gibraltar Industries, Inc. 2005 Equity Incentive Plan.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/Paul J. Schulz, Attorney in Fact for Paul Murray</signatureName>
        <signatureDate>2007-02-01</signatureDate>
    </ownerSignature>
</ownershipDocument>
