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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-11-17</periodOfReport>

    <issuer>
        <issuerCik>0001851194</issuerCik>
        <issuerName>Ventyx Biosciences, Inc.</issuerName>
        <issuerTradingSymbol>VTYX</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001922353</rptOwnerCik>
            <rptOwnerName>Forman Mark S</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>12790 EL CAMINO REAL, SUITE 200</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>SAN DIEGO</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>92130</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>Chief Medical Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <transactionDate>
                <value>2025-11-17</value>
                <footnoteId id="F2"/>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>5</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>3000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>1.03</value>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>6000</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The reporting person is voluntarily reporting the acquisition of shares of the Issuer's common stock pursuant to the Ventyx Biosciences, Inc. 2021 Employee Stock Purchase Plan (&quot;2021 ESPP&quot;), for the ESPP Purchase Period (as defined in the 2021 ESPP) of May 15, 2025 through November 14, 2025. This transaction is also exempt under Rule 16b-3(c).</footnote>
        <footnote id="F2">The relevant Offering Period (as defined in the 2021 ESPP) ended, and the shares were acquired, on the Exercise Date (as defined in the 2021 ESPP) of November 17, 2025.</footnote>
        <footnote id="F3">In accordance with the 2021 ESPP, these shares were purchased based on 85% of the closing price on May 15, 2025.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Austin Rutherford, as Attorney-in-Fact</signatureName>
        <signatureDate>2025-11-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
