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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-07-22</periodOfReport>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0001618563</issuerCik>
        <issuerName>National Storage Affiliates Trust</issuerName>
        <issuerTradingSymbol>NSA</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001306273</rptOwnerCik>
            <rptOwnerName>OSGOOD STEVEN G</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O NATIONAL STORAGE AFFILIATES TRUST</rptOwnerStreet1>
            <rptOwnerStreet2>8400 EAST PRENTICE AVENUE, 9TH FLOOR</rptOwnerStreet2>
            <rptOwnerCity>GREENWOOD VILLAGE</rptOwnerCity>
            <rptOwnerState>CO</rptOwnerState>
            <rptOwnerZipCode>80111</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common shares of beneficial interest, $0.01 par value</value>
                <footnoteId id="F1"/>
            </securityTitle>
            <transactionDate>
                <value>2026-07-22</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>5232</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See footnote</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Class A OP Units</value>
                <footnoteId id="F3"/>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F3"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2026-07-22</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>142487</value>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F4"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common shares of beneficial interest, $0.01 par value</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>142487</value>
                    <footnoteId id="F3"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>See footnote</value>
                    <footnoteId id="F2"/>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Pursuant to the Agreement and Plan of Merger, dated as of March 16, 2026 (the &quot;Merger Agreement&quot;), between the Issuer, Public Storage and certain other parties, common shares of beneficial interest, $0.01 par value of the Issuer, inclusive of restricted shares, were converted into the right to receive 0.1400 (the &quot;Exchange Ratio&quot;) newly issued common shares of beneficial interest, par value $0.10 per share, of Public Storage and cash in lieu of any fractional shares.</footnote>
        <footnote id="F2">Held by Steven Osgood TTEE Steven G. Osgood Trust dated 09/09/2019 for which the Reporting Person has voting and/or investment power. This filing shall not be deemed to be an admission that the Reporting Person is the beneficial owner of any of the securities reported herein, and the Reporting Person disclaims beneficial ownership of such securities except to the extent of the Reporting Person's pecuniary interest therein.</footnote>
        <footnote id="F3">Pursuant to the Merger Agreement, each Class A OP Unit issued and outstanding immediately prior to the effective time of the Partnership Merger was (i) automatically converted into the right to receive a number of newly issued common units in Public Storage OP, L.P., equal to the Exchange Ratio or (ii), at the election of holders of Class A OP Units, redeemed in exchange for one newly issued unit in NSA OP JV, LLC which holds 80% of the equity of the joint venture with Public Storage that holds certain identified real estate assets contributed by the Partnership.</footnote>
        <footnote id="F4">N/A.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Steven G. Osgood, by Zoya F. Afridi, his Attorney-in-fact</signatureName>
        <signatureDate>2026-07-22</signatureDate>
    </ownerSignature>
</ownershipDocument>
