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

    <schemaVersion>X0206</schemaVersion>

    <documentType>3</documentType>

    <periodOfReport>2024-07-22</periodOfReport>

    <noSecuritiesOwned>0</noSecuritiesOwned>

    <issuer>
        <issuerCik>0001650648</issuerCik>
        <issuerName>4D Molecular Therapeutics, Inc.</issuerName>
        <issuerTradingSymbol>FDMT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001055947</rptOwnerCik>
            <rptOwnerName>BVF PARTNERS L P/IL</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0000918923</rptOwnerCik>
            <rptOwnerName>BIOTECHNOLOGY VALUE FUND L P</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001803805</rptOwnerCik>
            <rptOwnerName>BVF I GP LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001102444</rptOwnerCik>
            <rptOwnerName>BIOTECHNOLOGY VALUE FUND II LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001803806</rptOwnerCik>
            <rptOwnerName>BVF II GP LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001660683</rptOwnerCik>
            <rptOwnerName>Biotechnology Value Trading Fund OS LP</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>P.O. BOX 309 UGLAND HOUSE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>GRAND CAYMAN</rptOwnerCity>
            <rptOwnerState>E9</rptOwnerState>
            <rptOwnerZipCode>KY1-1104</rptOwnerZipCode>
            <rptOwnerStateDescription>CAYMAN ISLANDS</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001660684</rptOwnerCik>
            <rptOwnerName>BVF Partners OS Ltd.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>P.O. BOX 309 UGLAND HOUSE</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>GRAND CAYMAN</rptOwnerCity>
            <rptOwnerState>E9</rptOwnerState>
            <rptOwnerZipCode>KY1-1104</rptOwnerZipCode>
            <rptOwnerStateDescription>CAYMAN ISLANDS</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <officerTitle></officerTitle>
            <otherText>See Explanation of Responses</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001803809</rptOwnerCik>
            <rptOwnerName>BVF GP HOLDINGS LLC</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001056807</rptOwnerCik>
            <rptOwnerName>BVF INC/IL</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001233840</rptOwnerCik>
            <rptOwnerName>LAMPERT MARK N</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>44 MONTGOMERY STREET</rptOwnerStreet1>
            <rptOwnerStreet2>40TH FL</rptOwnerStreet2>
            <rptOwnerCity>SAN FRANCISCO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>94104</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock, $0.0001 par value</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3892237</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F2"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock, $0.0001 par value</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3040970</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F3"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock, $0.0001 par value</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>327911</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                    <footnoteId id="F4"/>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">This Form 3 is filed jointly by Biotechnology Value Fund, L.P. (&quot;BVF&quot;), Biotechnology Value Fund II, L.P. (&quot;BVF2&quot;), Biotechnology Value Trading Fund OS LP (&quot;Trading Fund OS&quot;), BVF Partners OS Ltd. (&quot;Partners OS&quot;), BVF I GP LLC (&quot;BVF GP&quot;), BVF II GP LLC (&quot;BVF2 GP&quot;), BVF GP Holdings LLC (&quot;BVF GPH&quot;), BVF Partners L.P. (&quot;Partners&quot;), BVF Inc. and Mark N. Lampert (collectively, the &quot;Reporting Persons&quot;). Each of the Reporting Persons is a member of a group for purposes of Section 13(d) of the Securities Exchange Act of 1934 (the &quot;Exchange Act&quot;) that collectively beneficially owns over 10% of the Issuer's outstanding shares of Common Stock. Each of the Reporting Persons disclaims beneficial ownership of the securities reported herein except to the extent of his or its pecuniary interest therein.</footnote>
        <footnote id="F2">Securities owned directly by BVF. As the general partner of BVF, BVF GP may be deemed to beneficially own the securities owned directly by BVF. As the sole member of BVF GP, BVF GPH may be deemed to beneficially own the securities owned directly by BVF. As the investment manager of BVF, Partners may be deemed to beneficially own the securities owned directly by BVF. As the investment adviser and general partner of Partners, BVF Inc. may be deemed to beneficially own the securities owned directly by BVF. As a director and officer of BVF Inc., Mr. Lampert may be deemed to beneficially own the securities owned directly by BVF.</footnote>
        <footnote id="F3">Securities owned directly by BVF2. As the general partner of BVF2, BVF2 GP may be deemed to beneficially own the securities owned directly by BVF2. As the sole member of BVF2 GP, BVF GPH may be deemed to beneficially own the securities owned directly by BVF2. As the investment manager of BVF2, Partners may be deemed to beneficially own the securities owned directly by BVF2. As the investment adviser and general partner of Partners, BVF Inc. may be deemed to beneficially own the securities owned directly by BVF2. As a director and officer of BVF Inc., Mr. Lampert may be deemed to beneficially own the securities owned directly by BVF2.</footnote>
        <footnote id="F4">Securities owned directly by Trading Fund OS. As the general partner of Trading Fund OS, Partners OS may be deemed to beneficially own the securities owned directly by Trading Fund OS. As the investment manager of Trading Fund OS and the sole member of Partners OS, Partners may be deemed to beneficially own the securities owned directly by Trading Fund OS. As the investment adviser and general partner of Partners, BVF Inc. may be deemed to beneficially own the securities owned directly by Trading Fund OS. As a director and officer of BVF Inc., Mr. Lampert may be deemed to beneficially own the securities owned directly by Trading Fund OS.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>BVF Partners L.P., By: BVF Inc., its general partner, By: /s/ Mark N. Lampert, President</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>Biotechnology Value Fund, L.P., By: BVF I GP LLC, its general partner, By: /s/ Mark N. Lampert, Chief Executive Officer</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>BVF I GP LLC, By: /s/ Mark N. Lampert, Chief Executive Officer</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>Biotechnology Value Fund II, L.P., By: BVF II GP LLC, its general partner, By: /s/ Mark N. Lampert, Chief Executive Officer</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>BVF II GP LLC, By: /s/ Mark N. Lampert, Chief Executive Officer</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>Biotechnology Value Trading Fund OS LP, By: BVF Partners L.P., its investment manager, By: BVF Inc., its general partner, By: /s/ Mark N. Lampert, President</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>BVF Partners OS Ltd., By: BVF Partners L.P., its sole member, By: BVF Inc., its general partner, By: /s/ Mark N. Lampert, President</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>BVF GP Holdings LLC, By: /s/ Mark N. Lampert, Chief Executive Officer</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>BVF Inc., By: /s/ Mark N. Lampert, President</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>/s/ Mark N. Lampert</signatureName>
        <signatureDate>2024-08-01</signatureDate>
    </ownerSignature>
</ownershipDocument>
