<SUBMISSION>
<ACCESSION-NUMBER>0001213900-23-080049
<TYPE>4
<PUBLIC-DOCUMENT-COUNT>1
<PERIOD>20230925
<FILING-DATE>20230927
<DATE-OF-FILING-DATE-CHANGE>20230927
<REPORTING-OWNER>
<OWNER-DATA>
<CONFORMED-NAME>Aaronson Michael
<CIK>0001498057
</OWNER-DATA>
<FILING-VALUES>
<FORM-TYPE>4
<ACT>34
<FILE-NUMBER>001-16335
<FILM-NUMBER>231285965
</FILING-VALUES>
<MAIL-ADDRESS>
<STREET1>16666 NORTHCHASE DRIVE
<CITY>HOUSTON
<STATE>TX
<ZIP>77060
</MAIL-ADDRESS>
</REPORTING-OWNER>
<ISSUER>
<COMPANY-DATA>
<CONFORMED-NAME>Magellan Midstream Partners, L.P.
<CIK>0001126975
<ASSIGNED-SIC>4610
<IRS-NUMBER>731599053
<STATE-OF-INCORPORATION>DE
<FISCAL-YEAR-END>1231
</COMPANY-DATA>
<BUSINESS-ADDRESS>
<STREET1>ONE WILLIAMS CENTER, MD 28-1
<CITY>TULSA
<STATE>OK
<ZIP>74172
<PHONE>918 574 7000
</BUSINESS-ADDRESS>
<MAIL-ADDRESS>
<STREET1>ONE WILLIAMS CENTER, MD 28-1
<CITY>TULSA
<STATE>OK
<ZIP>74172
</MAIL-ADDRESS>
<FORMER-COMPANY>
<FORMER-CONFORMED-NAME>MAGELLAN MIDSTREAM PARTNERS, L.P.
<DATE-CHANGED>20190718
</FORMER-COMPANY>
<FORMER-COMPANY>
<FORMER-CONFORMED-NAME>MAGELLAN MIDSTREAM PARTNERS LP
<DATE-CHANGED>20030827
</FORMER-COMPANY>
<FORMER-COMPANY>
<FORMER-CONFORMED-NAME>WILLIAMS ENERGY PARTNERS L P
<DATE-CHANGED>20001024
</FORMER-COMPANY>
</ISSUER>
<DOCUMENT>
<TYPE>4
<SEQUENCE>1
<FILENAME>ownership.xml
<TEXT>
<XML>
<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2023-09-25</periodOfReport>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0001126975</issuerCik>
        <issuerName>Magellan Midstream Partners, L.P.</issuerName>
        <issuerTradingSymbol>MMP</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001498057</rptOwnerCik>
            <rptOwnerName>Aaronson Michael</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>ONE WILLIAMS CENTER</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>TULSA</rptOwnerCity>
            <rptOwnerState>OK</rptOwnerState>
            <rptOwnerZipCode>74172</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Executive Vice President</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Units</value>
            </securityTitle>
            <transactionDate>
                <value>2023-09-25</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>38761</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F1"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Phantom Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F2"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2023-09-25</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>41646</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F2"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F2"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Units</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>41464</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
        <derivativeTransaction>
            <securityTitle>
                <value>Phantom Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F3"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2023-09-25</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>D</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>82930</value>
                </transactionShares>
                <transactionPricePerShare>
                    <footnoteId id="F3"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F3"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F3"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Units</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>82930</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Pursuant to the Agreement and Plan of Merger, dated as of May 14, 2023 (the &quot;Merger Agreement&quot;), by and among ONEOK, Inc. (&quot;ONEOK&quot;), Otter Merger Sub LLC, and Magellan Midstream Partners, L.P. (&quot;Magellan&quot;), each unit of Magellan (the &quot;Magellan Unit&quot;) issued and outstanding immediately prior to the time of the merger became effective (the &quot;Effective Time&quot;), was converted into the right to receive 0.667 shares of ONEOK common stock (the &quot;ONEOK Common Stock&quot;). On September 25, 2023, the closing price of one share of ONEOK common stock was $66.54.</footnote>
        <footnote id="F2">Pursuant to the Merger Agreement, each award of phantom units of Magellan (&quot;Magellan Award&quot;) based solely on the passage of time that was outstanding at the Effective Time was assumed by ONEOK and converted, on the same terms and conditions of such Magellan Award, into a restricted stock unit award of ONEOK equal to the product obtained by multiplying (x) the number of Magellan Units underlying the Magellan Award by (y) the Equity Exchange Ratio (as defined in the Merger Agreement) and rounded up or down to the nearest whole share of ONEOK Common Stock.</footnote>
        <footnote id="F3">Pursuant to the Merger Agreement, each Magellan Award based on performance metrics that was outstanding at the Effective Time was assumed by ONEOK and converted, on the same terms and conditions of such Magellan Award, into a restricted stock unit award of ONEOK equal to the product obtained by multiplying (x) the number of Magellan Units underlying the Magellan Award, assuming achievement of the applicable performance-based vesting condition at the maximum level, by (y) the Equity Exchange Ratio (as defined in the Merger Agreement) and rounded up or down to the nearest whole share of ONEOK Common Stock.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>By: Richard Carson, Attorney-in fact for Michael J. Aaronson</signatureName>
        <signatureDate>2023-09-27</signatureDate>
    </ownerSignature>
</ownershipDocument>
</XML>
</TEXT>
</DOCUMENT>
</SUBMISSION>
