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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-06-18</periodOfReport>

    <issuer>
        <issuerCik>0001835597</issuerCik>
        <issuerName>PepGen Inc.</issuerName>
        <issuerTradingSymbol>PEPG</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001346824</rptOwnerCik>
            <rptOwnerName>RA CAPITAL MANAGEMENT, L.P.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>200 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>true</isDirector>
            <isOfficer>false</isOfficer>
            <isTenPercentOwner>true</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001315082</rptOwnerCik>
            <rptOwnerName>RA Capital Healthcare Fund LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>200 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001825376</rptOwnerCik>
            <rptOwnerName>RA Capital Nexus Fund II, L.P.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>200 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001384859</rptOwnerCik>
            <rptOwnerName>Kolchinsky Peter</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O RA CAPITAL MANAGEMENT, L.P.</rptOwnerStreet1>
            <rptOwnerStreet2>200 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001619841</rptOwnerCik>
            <rptOwnerName>Shah Rajeev M.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O RA CAPITAL MANAGEMENT, L.P.</rptOwnerStreet1>
            <rptOwnerStreet2>200 BERKELEY STREET, 18TH FLOOR</rptOwnerStreet2>
            <rptOwnerCity>BOSTON</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02116</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable></nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Stock Option (Right to Buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>1.79</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2026-06-18</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>34000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2036-06-17</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>34000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>34000</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See Footnotes</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">This option shall vest in full upon the earlier of (i) the first anniversary of the date of grant or (ii) the date of the Issuer's next Annual Stockholder Meeting, provided, however, that all vesting shall cease if Dr. Resnick ceases to serve as a director, unless the Issuer's Board of Directors determines that the circumstances warrant continuation of vesting.</footnote>
        <footnote id="F2">RA Capital Management, L.P. (the &quot;Adviser&quot;) is the investment manager for RA Capital Healthcare Fund, L.P. (the &quot;Fund&quot;), RA Capital Nexus Fund II, L.P. (the &quot;Nexus Fund II&quot;), and a separately managed account (the &quot;Account&quot;). The general partner of the Adviser is RA Capital Management GP, LLC (the &quot;Adviser GP&quot;), of which Dr. Peter Kolchinsky and Mr. Rajeev Shah are the managing members. Each of the Adviser, the Adviser GP, the Fund, the Nexus Fund II, Dr. Kolchinsky and Mr. Shah disclaims beneficial ownership of any of the reported securities, except to the extent of its or his respective pecuniary interest therein.</footnote>
        <footnote id="F3">Under Dr. Resnick's arrangement with the Adviser, Dr. Resnick holds the option for the benefit of the Fund, the Nexus Fund II and the Account. Dr. Resnick is obligated to turn over to the Adviser any net cash or stock received upon exercise of the option, which will offset advisory fees owed by the Fund, the Nexus Fund II, and the Account to the Adviser. The Reporting Persons therefore disclaim beneficial ownership of the option and underlying common stock.</footnote>
    </footnotes>

    <remarks>Joshua Resnick, a Partner of the Adviser, serves on the Issuer's board of directors.</remarks>

    <ownerSignature>
        <signatureName>/s/ Peter Kolchinsky, Manager of RA Capital Management, L.P.</signatureName>
        <signatureDate>2026-06-22</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Peter Kolchinsky, Manager of RA Capital Healthcare Fund GP, LLC, the General Partner of RA Capital Healthcare Fund, L.P.</signatureName>
        <signatureDate>2026-06-22</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Peter Kolchinsky, Manager of RA Capital Nexus Fund II GP, LLC, the General Partner of RA Capital Nexus Fund II, L.P.</signatureName>
        <signatureDate>2026-06-22</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Peter Kolchinsky, individually</signatureName>
        <signatureDate>2026-06-22</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Rajeev Shah, individually</signatureName>
        <signatureDate>2026-06-22</signatureDate>
    </ownerSignature>
</ownershipDocument>
