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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-11-18</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001861974</issuerCik>
        <issuerName>ECARX Holdings Inc.</issuerName>
        <issuerTradingSymbol>ECX</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001965904</rptOwnerCik>
            <rptOwnerName>Shen Ziyu</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>true</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>SECOND FLOOR NORTH, INTERNATIONAL HOUSE,</rptOwnerStreet1>
            <rptOwnerStreet2>1 ST. KATHARINE'S WAY</rptOwnerStreet2>
            <rptOwnerCity>LONDON</rptOwnerCity>
            <rptOwnerNonUSStateTerritory></rptOwnerNonUSStateTerritory>
            <rptOwnerCountry>X0</rptOwnerCountry>
            <rptOwnerZipCode>E1W 1UN</rptOwnerZipCode>
            <rptOwnerStateDescription>UNITED KINGDOM</rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Chief Executive Officer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Class A Ordinary Shares</value>
            </securityTitle>
            <transactionDate>
                <value>2026-11-18</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>P</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>216110</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.7445</value>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>216110</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class A Ordinary Shares</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>705810</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class A Ordinary Shares</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>3000000</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Jie&amp;Hao Holding Limited</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The price reported in Column 4 is a weighted average price. These shares were purchased in multiple transactions at prices ranging from $0.7205 to $0.7744, inclusive. The reporting person undertakes to provide to ECARX Holdings Inc. (the &quot;Issuer&quot;), any security holder of the Issuer or the staff of the Securities and Exchange Commission (the &quot;SEC&quot;), upon request, full information regarding the number of shares purchased at each separate price within the range set forth in this footnote.</footnote>
        <footnote id="F2">Shares held of record by Jie&amp;Hao Holding Limited, a limited liability company incorporated in British Virgin Islands. The reporting person holds 100% of the issued and outstanding shares of Little SJH Holding Limited. Little SJH Holding Limited holds 1% of the shares of Jie&amp;Hao Holding Limited, which are voting shares. Magician Hao Holding Limited, which is owned by a trust established for the benefit of the reporting person and his family, holds 99% of shares of Jie&amp;Hao Holding Limited, which are non-voting shares. The reporting person is solely entitled to exercise the voting and dispositive power in respect of all ordinary shares held by Jie&amp;Hao Holding Limited.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Ziyu Shen</signatureName>
        <signatureDate>2026-11-20</signatureDate>
    </ownerSignature>
</ownershipDocument>
