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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-10-31</periodOfReport>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0001733294</issuerCik>
        <issuerName>Generation Bio Co.</issuerName>
        <issuerTradingSymbol>GBIO</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001946316</rptOwnerCik>
            <rptOwnerName>Samayoa Phillip</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O GENERATION BIO CO.</rptOwnerStreet1>
            <rptOwnerStreet2>301 BINNEY STREET, SUITE 401</rptOwnerStreet2>
            <rptOwnerCity>CAMBRIDGE</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02142</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>CHIEF SCIENTIFIC OFFICER</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable></nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes></footnotes>

    <remarks>The reporting person will no longer serve as Generation Bio Co.'s chief scientific officer effective October 31, 2025. As a result, the reporting person is no longer subject to Section 16 in connection with his transactions in the equity securities of Generation Bio Co. and therefore will no longer report any such transactions on Form 4 or Form 5.</remarks>

    <ownerSignature>
        <signatureName>/s/ Shawna-Gay White, Attorney-in-Fact</signatureName>
        <signatureDate>2025-10-31</signatureDate>
    </ownerSignature>
</ownershipDocument>
