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

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-09-14</periodOfReport>

    <issuer>
        <issuerCik>0001070423</issuerCik>
        <issuerName>PLAINS ALL AMERICAN PIPELINE LP</issuerName>
        <issuerTradingSymbol>PAA</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001186173</rptOwnerCik>
            <rptOwnerName>RAYMOND JOHN T</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>2229 SAN FELIPE STREET</rptOwnerStreet1>
            <rptOwnerStreet2>SUITE 1300</rptOwnerStreet2>
            <rptOwnerCity>HOUSTON</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>77019</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Series A Convertible Preferred Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2026-09-14</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F2"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>20376259</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>28.875</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F1"/>
            </exerciseDate>
            <expirationDate>
                <value>2026-09-14</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Units</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>20376259</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>Through Entity</value>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Prior to their redemption by the Issuer on September 14, 2026, the Series A Convertible Preferred Units (the &quot;Preferred Units&quot;) were convertible on a one-for-one basis by the holders of such Preferred Units or by the Issuer.</footnote>
        <footnote id="F2">In accordance with the terms of the Seventh Amended and Restated Agreement of Limited Partnership of the Issuer, dated as of October 10, 2017, the reported securities were redeemed by the Issuer on September 14, 2026 at a price equal to 110% of their face value of $26.25 ($28.875) per Preferred Unit, plus accrued and unpaid distributions to, but not including, the redemption date.</footnote>
        <footnote id="F3">Prior to their redemption by the Issuer on September 14, 2026, the Series A Convertible Preferred Units were held by EMG Fund IV PAA Holdings, LLC (&quot;EMG&quot;).  The Reporting Person is the sole member of EMG Fund IV Management, LLC, the general partner of EMG Fund IV Management, LP, which is the manager of EMG, and therefore he may be deemed to be the beneficial owner of the interests held by EMG.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ John T. Raymond</signatureName>
        <signatureDate>2026-09-16</signatureDate>
    </ownerSignature>
</ownershipDocument>
