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

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2021-12-30</periodOfReport>

    <issuer>
        <issuerCik>0000944695</issuerCik>
        <issuerName>HANOVER INSURANCE GROUP, INC.</issuerName>
        <issuerTradingSymbol>THG</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001428157</rptOwnerCik>
            <rptOwnerName>Roche John C</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O THE HANOVER INSURANCE GROUP, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>440 LINCOLN STREET</rptOwnerStreet2>
            <rptOwnerCity>WORCESTER</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>01653</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>President and CEO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2021-12-30</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>115.022</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>61652.700</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Grant of restricted stock units under the Issuer's 2014 Long-Term Incentive Plan upon the accrual of dividend rights associated with restricted stock units previously granted by the Issuer. Such units vest on the third anniversary of the date of grant of the underlying restricted stock units.</footnote>
        <footnote id="F2">Does not include 7,652 shares held indirectly by the Reporting Person's spouse.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Matthew R. Frascella pursuant to Confirming Statement</signatureName>
        <signatureDate>2022-01-04</signatureDate>
    </ownerSignature>
</ownershipDocument>
