<XBRL>
<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:8d8020bc-ff7b-405c-8202-ec7ab330229c,g:2187a132-9a85-4e46-b255-4198b6db0f69-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEIDocument" xlink:type="simple" xlink:href="ns-20200930.xsd#DEIDocument"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEIDocument" xlink:type="extended" id="i24d527e4f01d4b9fafb65528433efd4b_DEIDocument">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_bd2ae761-2758-4901-b003-86d43d09d600" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentType_bd2ae761-2758-4901-b003-86d43d09d600" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_9fa39737-d155-46ed-8f50-d59849d16695" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentQuarterlyReport_9fa39737-d155-46ed-8f50-d59849d16695" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_5b50cdfd-ee5a-46a0-b0ea-94cdce9b04af" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentPeriodEndDate_5b50cdfd-ee5a-46a0-b0ea-94cdce9b04af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_01f363b2-637a-4799-b70f-87f8bdc68797" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentTransitionReport_01f363b2-637a-4799-b70f-87f8bdc68797" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_9e6bbb53-e18a-4e55-a8ed-5f0509b607c4" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityFileNumber_9e6bbb53-e18a-4e55-a8ed-5f0509b607c4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_5eafa661-9563-45a2-a425-e67996e99876" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityRegistrantName_5eafa661-9563-45a2-a425-e67996e99876" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_cf179b3d-163b-414f-a938-0ae388d9a4db" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityIncorporationStateCountryCode_cf179b3d-163b-414f-a938-0ae388d9a4db" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_3c2db5a1-3c78-492b-9e6f-364aac624947" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityTaxIdentificationNumber_3c2db5a1-3c78-492b-9e6f-364aac624947" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_c5a510e6-39d2-42cc-a0a4-38d7a90f8e2a" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityAddressAddressLine1_c5a510e6-39d2-42cc-a0a4-38d7a90f8e2a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_43a6a80f-89c4-40b3-a179-c582e3f17dc0" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityAddressCityOrTown_43a6a80f-89c4-40b3-a179-c582e3f17dc0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_12bec1da-a626-4538-bb5d-bf040dda1aa7" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityAddressStateOrProvince_12bec1da-a626-4538-bb5d-bf040dda1aa7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_8b04f9b3-6736-4794-88ab-5c5ac50ef799" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityAddressPostalZipCode_8b04f9b3-6736-4794-88ab-5c5ac50ef799" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_cb22ba4a-bf20-4b19-a98d-5279c2fc5044" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_CityAreaCode_cb22ba4a-bf20-4b19-a98d-5279c2fc5044" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_2bc60bd9-5aa9-4ae7-9ca0-8500f5f1f4ea" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_LocalPhoneNumber_2bc60bd9-5aa9-4ae7-9ca0-8500f5f1f4ea" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_88c8eee1-0c72-4e65-bf9c-19ee4cea3d24" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_Security12bTitle_88c8eee1-0c72-4e65-bf9c-19ee4cea3d24" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_e6c571ab-434d-47d6-9e6e-af82acfa3d21" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_TradingSymbol_e6c571ab-434d-47d6-9e6e-af82acfa3d21" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_d88753c5-b4fe-46d9-911f-e60f349deee7" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_SecurityExchangeName_d88753c5-b4fe-46d9-911f-e60f349deee7" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_81a25fb0-ebfc-4808-8bbd-5cc76717ad70" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityCurrentReportingStatus_81a25fb0-ebfc-4808-8bbd-5cc76717ad70" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_0715875f-1f8b-4693-b333-6b2f613a4a5e" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityInteractiveDataCurrent_0715875f-1f8b-4693-b333-6b2f613a4a5e" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_663f6dc5-df16-422a-98da-1a2f28547730" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityFilerCategory_663f6dc5-df16-422a-98da-1a2f28547730" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_69c3c4b2-faba-4a2b-a00d-595a5f84040b" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntitySmallBusiness_69c3c4b2-faba-4a2b-a00d-595a5f84040b" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_795f43f7-736a-40e3-b4e5-5676f155ed64" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityEmergingGrowthCompany_795f43f7-736a-40e3-b4e5-5676f155ed64" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_2f074e2c-3608-40d6-9fb2-b981477236cb" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityShellCompany_2f074e2c-3608-40d6-9fb2-b981477236cb" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_17c3e637-df63-44e6-8d69-788692e93a3a" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_17c3e637-df63-44e6-8d69-788692e93a3a" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_17b0285c-4f1b-4490-98b6-70b2bb626df3" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_EntityCentralIndexKey_17b0285c-4f1b-4490-98b6-70b2bb626df3" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_3dee52da-e126-41ef-a045-4087c7cd1a74" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_CurrentFiscalYearEndDate_3dee52da-e126-41ef-a045-4087c7cd1a74" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_2e3f0d08-a598-49f6-9bad-21b88b216fef" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentFiscalYearFocus_2e3f0d08-a598-49f6-9bad-21b88b216fef" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_7cd98fe7-2892-4566-a784-79723787e4ed" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentFiscalPeriodFocus_7cd98fe7-2892-4566-a784-79723787e4ed" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_c02e3b01-95da-4fba-9ac1-f0a23eceae09" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_AmendmentFlag_c02e3b01-95da-4fba-9ac1-f0a23eceae09" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_3a9afec2-aa37-441d-9e38-208275875146" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_2c7cff72-7490-4940-ac63-5872a8f56c1d" xlink:to="loc_dei_DocumentInformationTable_3a9afec2-aa37-441d-9e38-208275875146" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_aaa5377b-b898-45fa-a862-65128f609c26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_3a9afec2-aa37-441d-9e38-208275875146" xlink:to="loc_us-gaap_StatementClassOfStockAxis_aaa5377b-b898-45fa-a862-65128f609c26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_aaa5377b-b898-45fa-a862-65128f609c26_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_aaa5377b-b898-45fa-a862-65128f609c26" xlink:to="loc_us-gaap_ClassOfStockDomain_aaa5377b-b898-45fa-a862-65128f609c26_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_aaa5377b-b898-45fa-a862-65128f609c26" xlink:to="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CommonLimitedPartnerMember_6032cebd-9787-40f4-b977-1e9dee34eb96" xlink:href="ns-20200930.xsd#ns_CommonLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:to="loc_ns_CommonLimitedPartnerMember_6032cebd-9787-40f4-b977-1e9dee34eb96" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesAPreferredLimitedPartnerMember_aa2b8cd8-ccfd-4f24-8bd7-b455f093b97d" xlink:href="ns-20200930.xsd#ns_SeriesAPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:to="loc_ns_SeriesAPreferredLimitedPartnerMember_aa2b8cd8-ccfd-4f24-8bd7-b455f093b97d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesBPreferredLimitedPartnerMember_356d7b32-ee6d-4c81-b18d-bdbee100e348" xlink:href="ns-20200930.xsd#ns_SeriesBPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:to="loc_ns_SeriesBPreferredLimitedPartnerMember_356d7b32-ee6d-4c81-b18d-bdbee100e348" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesCPreferredLimitedPartnerMember_fedbc306-d486-4ee6-851c-2d13977c491c" xlink:href="ns-20200930.xsd#ns_SeriesCPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_00a63754-1f28-4f86-bffa-db0969401d10" xlink:to="loc_ns_SeriesCPreferredLimitedPartnerMember_fedbc306-d486-4ee6-851c-2d13977c491c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ns-20200930.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="i95244c0b916e4f78b54d0d73d6c2f9fa_CONSOLIDATEDBALANCESHEETS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_665a336c-6476-4209-9538-c3e941bc4bfe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_665a336c-6476-4209-9538-c3e941bc4bfe" xlink:to="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f7d2e2e4-36f0-40a4-898e-9f41b6ea9363" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f7d2e2e4-36f0-40a4-898e-9f41b6ea9363" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_85358699-816f-43aa-bbf7-003bf81bff55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_85358699-816f-43aa-bbf7-003bf81bff55" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_4e55c912-6d9f-4c6a-bc65-93373e2db998" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:to="loc_us-gaap_InventoryNet_4e55c912-6d9f-4c6a-bc65-93373e2db998" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPrepaidExpenseCurrent_98aff5b5-04b0-49f4-8442-4903a86d8197" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherPrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:to="loc_us-gaap_OtherPrepaidExpenseCurrent_98aff5b5-04b0-49f4-8442-4903a86d8197" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_9a9cc55b-5f43-468f-b4a7-efb10df40af8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_d2e6c8dd-2cae-49c3-8b4b-794f0d87baf7" xlink:to="loc_us-gaap_AssetsCurrent_9a9cc55b-5f43-468f-b4a7-efb10df40af8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_4454b2cc-6d0e-4fc4-85c0-0f4befb735a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_4454b2cc-6d0e-4fc4-85c0-0f4befb735a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_48d4c6dd-559c-4093-a8dc-0a0c67331378" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_48d4c6dd-559c-4093-a8dc-0a0c67331378" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_22371962-0b9b-4017-9274-8b26e0292355" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_22371962-0b9b-4017-9274-8b26e0292355" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_a3329bdd-037f-467d-b712-10afe1afbe07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_a3329bdd-037f-467d-b712-10afe1afbe07" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_f3281cd1-e939-476a-8acf-fb60d0324ee2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_Goodwill_f3281cd1-e939-476a-8acf-fb60d0324ee2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_63d231e8-ec6f-4a66-84f5-3c823e3f28fd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_63d231e8-ec6f-4a66-84f5-3c823e3f28fd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_35151065-f0a5-44f1-a865-1831bdd2a150" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_7937afb1-3e7e-411b-a647-64a02acfbc0f" xlink:to="loc_us-gaap_Assets_35151065-f0a5-44f1-a865-1831bdd2a150" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_665a336c-6476-4209-9538-c3e941bc4bfe" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_b09d601b-3e16-4b29-b773-059d6694afab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_AccountsPayableCurrent_b09d601b-3e16-4b29-b773-059d6694afab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_552bbffc-d9fc-4232-b499-89e72c3b95c5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_ShortTermBorrowings_552bbffc-d9fc-4232-b499-89e72c3b95c5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_ecf81dcb-99c4-4e41-8857-5f36b87e36e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_LongTermDebtCurrent_ecf81dcb-99c4-4e41-8857-5f36b87e36e3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_051dee54-e5b2-4582-ba8f-cdb31e3c9c02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_InterestPayableCurrent_051dee54-e5b2-4582-ba8f-cdb31e3c9c02" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_7851bc6b-83e2-4bfc-8e6d-4c9005110575" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_7851bc6b-83e2-4bfc-8e6d-4c9005110575" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_ca945aae-ffe7-4989-8921-64aa233ffccd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_ca945aae-ffe7-4989-8921-64aa233ffccd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_16e455ca-4791-4eca-8c0d-9b67a3592d39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_b852c7ce-440e-45af-9c40-78ff0d0ff9a6" xlink:to="loc_us-gaap_LiabilitiesCurrent_16e455ca-4791-4eca-8c0d-9b67a3592d39" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_37f17406-f208-4cfb-888a-38087a8bcc50" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_37f17406-f208-4cfb-888a-38087a8bcc50" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_043d465f-f1e4-46d3-9480-ef5868d07f7d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_043d465f-f1e4-46d3-9480-ef5868d07f7d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_62bae218-5fe6-4aed-864d-b613b8c764ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_62bae218-5fe6-4aed-864d-b613b8c764ec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_aae5ab41-cdec-4dfc-9b9d-1236feb99cdb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_Liabilities_aae5ab41-cdec-4dfc-9b9d-1236feb99cdb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_f10bd1f1-4c32-47a2-8a39-621fbbc5c2a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_CommitmentsAndContingencies_f10bd1f1-4c32-47a2-8a39-621fbbc5c2a8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_13928472-b524-47f7-b35e-d926882377f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_13928472-b524-47f7-b35e-d926882377f6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapitalAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredUnitsPreferredPartnersCapitalAccounts_c1377bef-37a0-4fd9-9194-449243a5bc3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredUnitsPreferredPartnersCapitalAccounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:to="loc_us-gaap_PreferredUnitsPreferredPartnersCapitalAccounts_c1377bef-37a0-4fd9-9194-449243a5bc3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LimitedPartnersCapitalAccount_02f043d2-9754-4ae5-8611-bf09600a5262" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LimitedPartnersCapitalAccount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:to="loc_us-gaap_LimitedPartnersCapitalAccount_02f043d2-9754-4ae5-8611-bf09600a5262" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f5f2ae8e-c01c-4cb8-94b8-c3898e3317df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f5f2ae8e-c01c-4cb8-94b8-c3898e3317df" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapital_6e48d6db-a33c-479c-894d-289ec152c40a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnersCapitalAbstract_ba4063f4-d509-4f94-9c18-c673afc2a627" xlink:to="loc_us-gaap_PartnersCapital_6e48d6db-a33c-479c-894d-289ec152c40a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c320eda-8258-4b0d-be18-d76091dd9b3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_368a2654-fd40-4d0e-93c0-c0c8d6454a34" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_2c320eda-8258-4b0d-be18-d76091dd9b3c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_55657f27-7827-4402-ad35-d94da23c50ba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_665a336c-6476-4209-9538-c3e941bc4bfe" xlink:to="loc_us-gaap_StatementTable_55657f27-7827-4402-ad35-d94da23c50ba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_9a55a9c3-b125-4df4-8dea-8ad21abd7e73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_55657f27-7827-4402-ad35-d94da23c50ba" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_9a55a9c3-b125-4df4-8dea-8ad21abd7e73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_9a55a9c3-b125-4df4-8dea-8ad21abd7e73_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_9a55a9c3-b125-4df4-8dea-8ad21abd7e73" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_9a55a9c3-b125-4df4-8dea-8ad21abd7e73_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_831c90bc-1cda-4114-9301-6b3c12001b18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_9a55a9c3-b125-4df4-8dea-8ad21abd7e73" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_831c90bc-1cda-4114-9301-6b3c12001b18" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesAPreferredLimitedPartnerMember_6c9268a0-2978-4284-baa6-0369d873c649" xlink:href="ns-20200930.xsd#ns_SeriesAPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_831c90bc-1cda-4114-9301-6b3c12001b18" xlink:to="loc_ns_SeriesAPreferredLimitedPartnerMember_6c9268a0-2978-4284-baa6-0369d873c649" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesBPreferredLimitedPartnerMember_1532c037-9943-48bf-9915-256e80dc3d1e" xlink:href="ns-20200930.xsd#ns_SeriesBPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_831c90bc-1cda-4114-9301-6b3c12001b18" xlink:to="loc_ns_SeriesBPreferredLimitedPartnerMember_1532c037-9943-48bf-9915-256e80dc3d1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesCPreferredLimitedPartnerMember_8014eaf0-a766-49c8-97e0-5c9edc58efe8" xlink:href="ns-20200930.xsd#ns_SeriesCPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_831c90bc-1cda-4114-9301-6b3c12001b18" xlink:to="loc_ns_SeriesCPreferredLimitedPartnerMember_8014eaf0-a766-49c8-97e0-5c9edc58efe8" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical" xlink:type="simple" xlink:href="ns-20200930.xsd#CONSOLIDATEDBALANCESHEETSparenthetical"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONSOLIDATEDBALANCESHEETSparenthetical" xlink:type="extended" id="i43898d4f64044970af2b94a324f679a9_CONSOLIDATEDBALANCESHEETSparenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_c3e1a9e9-979f-4688-aa5f-6ee0b14057ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_39f08570-e779-476e-9d44-94172d9ec7c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c3e1a9e9-979f-4688-aa5f-6ee0b14057ef" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_39f08570-e779-476e-9d44-94172d9ec7c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredUnitsOutstanding_c63d8615-ac3b-4d4a-a571-24776f494573" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredUnitsOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c3e1a9e9-979f-4688-aa5f-6ee0b14057ef" xlink:to="loc_us-gaap_PreferredUnitsOutstanding_c63d8615-ac3b-4d4a-a571-24776f494573" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding_130e7be7-a4f4-4fb7-a34c-4bfa03babfd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c3e1a9e9-979f-4688-aa5f-6ee0b14057ef" xlink:to="loc_us-gaap_LimitedPartnersCapitalAccountUnitsOutstanding_130e7be7-a4f4-4fb7-a34c-4bfa03babfd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_dc4a55ae-a3de-4a83-8946-d7dfd98223ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_c3e1a9e9-979f-4688-aa5f-6ee0b14057ef" xlink:to="loc_us-gaap_StatementTable_dc4a55ae-a3de-4a83-8946-d7dfd98223ca" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_dc4a55ae-a3de-4a83-8946-d7dfd98223ca" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_77ad1042-5304-4b92-9e66-5f6e31fcfd5b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_8b3c8a7c-4cff-4ff0-9e17-9464dbb7ae23" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_77ad1042-5304-4b92-9e66-5f6e31fcfd5b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesAPreferredLimitedPartnerMember_30568004-87af-4f4e-ac67-e4f91b74a96e" xlink:href="ns-20200930.xsd#ns_SeriesAPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_77ad1042-5304-4b92-9e66-5f6e31fcfd5b" xlink:to="loc_ns_SeriesAPreferredLimitedPartnerMember_30568004-87af-4f4e-ac67-e4f91b74a96e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesBPreferredLimitedPartnerMember_0e637362-61d1-440c-8948-db41a02f6b0b" xlink:href="ns-20200930.xsd#ns_SeriesBPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_77ad1042-5304-4b92-9e66-5f6e31fcfd5b" xlink:to="loc_ns_SeriesBPreferredLimitedPartnerMember_0e637362-61d1-440c-8948-db41a02f6b0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesCPreferredLimitedPartnerMember_e61d1611-9cda-478d-9e60-844aa229f294" xlink:href="ns-20200930.xsd#ns_SeriesCPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_77ad1042-5304-4b92-9e66-5f6e31fcfd5b" xlink:to="loc_ns_SeriesCPreferredLimitedPartnerMember_e61d1611-9cda-478d-9e60-844aa229f294" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended" id="i3be6ba07253648559ebb654fc4ed524d_CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_8b3a6466-636f-432e-b512-3c3fbe9582d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_RevenuesAbstract_8b3a6466-636f-432e-b512-3c3fbe9582d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_2917c08b-ea82-4f8a-8c8c-8abf9ce68648" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_8b3a6466-636f-432e-b512-3c3fbe9582d0" xlink:to="loc_us-gaap_Revenues_2917c08b-ea82-4f8a-8c8c-8abf9ce68648" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostsAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectOperatingCosts_c2f0cc4f-2666-4543-8480-11b0814d3906" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DirectOperatingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_DirectOperatingCosts_c2f0cc4f-2666-4543-8480-11b0814d3906" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSoldDepreciationAndAmortization_33bc78f7-3074-40e9-a7f6-d3c867322088" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfGoodsAndServicesSoldDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSoldDepreciationAndAmortization_33bc78f7-3074-40e9-a7f6-d3c867322088" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_dbdc2676-b050-4ef0-857d-a409ef71cb3b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_dbdc2676-b050-4ef0-857d-a409ef71cb3b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_848339b2-2292-44a4-a047-76fbed049b8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_848339b2-2292-44a4-a047-76fbed049b8a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_ee38b2c9-b862-4771-a2e6-840bcfaa381e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_ee38b2c9-b862-4771-a2e6-840bcfaa381e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_4579c530-a14b-466a-9ef1-fb8287b56644" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_4579c530-a14b-466a-9ef1-fb8287b56644" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_5d45ac5c-d0d5-42f8-b008-46f7a6bb6385" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_ddafc514-e63f-49c6-8c09-e40fe391f89b" xlink:to="loc_us-gaap_CostsAndExpenses_5d45ac5c-d0d5-42f8-b008-46f7a6bb6385" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a30ef098-721d-455a-866a-fb643030d3b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_OperatingIncomeLoss_a30ef098-721d-455a-866a-fb643030d3b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_284e2ea7-eeeb-455b-97c6-cceeb95a8229" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_284e2ea7-eeeb-455b-97c6-cceeb95a8229" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_80a479a0-b288-4011-9654-6d07a149d29e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_80a479a0-b288-4011-9654-6d07a149d29e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_884f3773-90a7-4013-a969-65a683315679" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_884f3773-90a7-4013-a969-65a683315679" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f5c9fa91-b61b-45b1-8f1f-87bc061e2895" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_f5c9fa91-b61b-45b1-8f1f-87bc061e2895" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_1a427189-3f7f-476b-b167-4e98922187d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_1a427189-3f7f-476b-b167-4e98922187d9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_9ee66acf-cca2-4dcb-9a99-812c8ce2a0c6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_9ee66acf-cca2-4dcb-9a99-812c8ce2a0c6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_26f7382c-3253-4586-a49a-625c97be0ca7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_26f7382c-3253-4586-a49a-625c97be0ca7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_cc1366e9-eb77-42a9-90ac-7cef9e273124" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_NetIncomeLoss_cc1366e9-eb77-42a9-90ac-7cef9e273124" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerLimitedPartnershipUnitAbstract_62001644-c885-4354-b98c-31fee3f3278b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerLimitedPartnershipUnitAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_EarningsPerLimitedPartnershipUnitAbstract_62001644-c885-4354-b98c-31fee3f3278b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerOutstandingLimitedPartnershipUnitBasicNetOfTax_0d093dec-a1c1-4c63-b826-7eadfcb31812" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerOutstandingLimitedPartnershipUnitBasicNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerLimitedPartnershipUnitAbstract_62001644-c885-4354-b98c-31fee3f3278b" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerOutstandingLimitedPartnershipUnitBasicNetOfTax_0d093dec-a1c1-4c63-b826-7eadfcb31812" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitBasic_7b49f6c9-ed29-4420-ae90-5b68323209e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerLimitedPartnershipUnitAbstract_62001644-c885-4354-b98c-31fee3f3278b" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitBasic_7b49f6c9-ed29-4420-ae90-5b68323209e3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax_88904963-3d05-4f92-ac7e-c50d627e183f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerLimitedPartnershipUnitAbstract_62001644-c885-4354-b98c-31fee3f3278b" xlink:to="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitBasicNetOfTax_88904963-3d05-4f92-ac7e-c50d627e183f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract_55c6b2c5-39e7-421f-b4bb-d86f8a6240b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract_55c6b2c5-39e7-421f-b4bb-d86f8a6240b5" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted_3cd735c3-618a-46f9-a27d-c6da67602bf8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract_55c6b2c5-39e7-421f-b4bb-d86f8a6240b5" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted_3cd735c3-618a-46f9-a27d-c6da67602bf8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted1_0b01d412-0e35-4fcd-8790-83630bb41f01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract_55c6b2c5-39e7-421f-b4bb-d86f8a6240b5" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted1_0b01d412-0e35-4fcd-8790-83630bb41f01" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted_5d22759b-7af9-460f-87e9-6d121cbda572" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetIncomeLossPerOutstandingLimitedPartnershipUnitDilutedAbstract_55c6b2c5-39e7-421f-b4bb-d86f8a6240b5" xlink:to="loc_us-gaap_NetIncomeLossNetOfTaxPerOutstandingLimitedPartnershipUnitDiluted_5d22759b-7af9-460f-87e9-6d121cbda572" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageLimitedPartnershipUnitsOutstanding_12d1c9a9-19cd-494c-865f-146da95a816a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageLimitedPartnershipUnitsOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_WeightedAverageLimitedPartnershipUnitsOutstanding_12d1c9a9-19cd-494c-865f-146da95a816a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageLimitedPartnershipUnitsOutstandingDiluted_47d2431e-862e-403e-9835-f65e91671f77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageLimitedPartnershipUnitsOutstandingDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_WeightedAverageLimitedPartnershipUnitsOutstandingDiluted_47d2431e-862e-403e-9835-f65e91671f77" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_dbf09fdd-3430-4045-bdd3-f27784e81fbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_dbf09fdd-3430-4045-bdd3-f27784e81fbd" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_cbe19bd2-5d50-4cbe-8343-302109784966" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_121d92c4-1fff-4c96-801c-53a23b2f0d6f" xlink:to="loc_us-gaap_StatementTable_cbe19bd2-5d50-4cbe-8343-302109784966" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_46600e7a-5257-433b-aa24-50f737bd3f23" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_cbe19bd2-5d50-4cbe-8343-302109784966" xlink:to="loc_srt_ProductOrServiceAxis_46600e7a-5257-433b-aa24-50f737bd3f23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_46600e7a-5257-433b-aa24-50f737bd3f23_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_46600e7a-5257-433b-aa24-50f737bd3f23" xlink:to="loc_srt_ProductsAndServicesDomain_46600e7a-5257-433b-aa24-50f737bd3f23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_5458ce36-5bd9-4eee-963e-778b189038f9" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_46600e7a-5257-433b-aa24-50f737bd3f23" xlink:to="loc_srt_ProductsAndServicesDomain_5458ce36-5bd9-4eee-963e-778b189038f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_3d29ba73-f5e7-4c32-a485-410a6f0ae0ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5458ce36-5bd9-4eee-963e-778b189038f9" xlink:to="loc_us-gaap_ServiceMember_3d29ba73-f5e7-4c32-a485-410a6f0ae0ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_37194b71-ecdb-4e65-ac3e-2adfd55344ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_5458ce36-5bd9-4eee-963e-778b189038f9" xlink:to="loc_us-gaap_ProductMember_37194b71-ecdb-4e65-ac3e-2adfd55344ae" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ns-20200930.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="i1b4f06f0986841ac82ff87d221c71c41_CONSOLIDATEDSTATEMENTSOFCASHFLOWS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_8694d043-7b27-40e4-815b-0bb2551b0152" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_8694d043-7b27-40e4-815b-0bb2551b0152" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_95a2615f-c0ee-4de1-8302-0018589f7864" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_8694d043-7b27-40e4-815b-0bb2551b0152" xlink:to="loc_us-gaap_NetIncomeLoss_95a2615f-c0ee-4de1-8302-0018589f7864" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_8694d043-7b27-40e4-815b-0bb2551b0152" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations_92914a3c-ff45-427a-a4b0-d52193e4c4a2" xlink:href="ns-20200930.xsd#ns_DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_ns_DepreciationDepletionAndAmortizationFromContinuingAndDiscontinuedOperations_92914a3c-ff45-427a-a4b0-d52193e4c4a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SharebasedPaymentArrangementAmortization_c98f1c4e-53a1-4e27-a4d0-650e296561bf" xlink:href="ns-20200930.xsd#ns_SharebasedPaymentArrangementAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_ns_SharebasedPaymentArrangementAmortization_c98f1c4e-53a1-4e27-a4d0-650e296561bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAmortizationOfDeferredCharges_73b78cee-725b-4cd5-bf00-8284c6ce2d24" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAmortizationOfDeferredCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_OtherAmortizationOfDeferredCharges_73b78cee-725b-4cd5-bf00-8284c6ce2d24" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_875a0ea2-bc0f-499b-b4e5-11c2e3ae2b08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_875a0ea2-bc0f-499b-b4e5-11c2e3ae2b08" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_a29369f8-79da-4857-9f76-28a0159bf849" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_AssetImpairmentCharges_a29369f8-79da-4857-9f76-28a0159bf849" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_7bb71e6c-7fb5-4cec-96f3-0ee0efb152a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_7bb71e6c-7fb5-4cec-96f3-0ee0efb152a1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_bc0bd690-23e3-49c3-93a5-e8b772cafad3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_bc0bd690-23e3-49c3-93a5-e8b772cafad3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_44656171-3635-4f57-836e-aee731bd7074" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_44656171-3635-4f57-836e-aee731bd7074" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_c4b66f79-d966-48de-bf25-76ef50f19f19" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_c4b66f79-d966-48de-bf25-76ef50f19f19" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_e0b6ad7f-165a-4bb9-b3f3-5bf36bac320e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_9d37af7b-6a66-4daa-a10d-4c02341c47b5" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_e0b6ad7f-165a-4bb9-b3f3-5bf36bac320e" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_598523e4-726b-4bf9-8a90-25281a5181f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_8694d043-7b27-40e4-815b-0bb2551b0152" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_598523e4-726b-4bf9-8a90-25281a5181f9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_f7ce0857-2ab9-4726-89c6-db171b02416d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_f7ce0857-2ab9-4726-89c6-db171b02416d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures_623f9af3-30c3-42d7-aaf3-d139f2c71422" xlink:href="ns-20200930.xsd#ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures_623f9af3-30c3-42d7-aaf3-d139f2c71422" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_f9cb1da9-5cf1-4723-9f23-378a1a6fd024" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_f9cb1da9-5cf1-4723-9f23-378a1a6fd024" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_6959db37-6197-4bb2-ba34-a4224badf259" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_6959db37-6197-4bb2-ba34-a4224badf259" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_25631561-6881-457b-b8e6-de912496700f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_25631561-6881-457b-b8e6-de912496700f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_e3fbfed7-d9f1-4fbf-a767-d1f956b9036d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_e45f494f-a2d9-4185-8643-8fea8444ccbe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_e3fbfed7-d9f1-4fbf-a767-d1f956b9036d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_21101c85-bd12-4deb-8e23-ae35c6b4ff7e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfUnsecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfUnsecuredDebt_21101c85-bd12-4deb-8e23-ae35c6b4ff7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_e6b7bb87-a00e-480a-87d6-0f698240cf4d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_e6b7bb87-a00e-480a-87d6-0f698240cf4d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_87c81967-3573-43ec-871c-ee389b176ca4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_87c81967-3573-43ec-871c-ee389b176ca4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromShortTermDebt_7f646dbd-55b8-4fb1-b377-e51baf81379e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromShortTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_ProceedsFromShortTermDebt_7f646dbd-55b8-4fb1-b377-e51baf81379e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_RepaymentOfTermLoanAndPaymentForExtinguishmentCosts_c958bf9b-07a4-4c33-b955-ecd7fc4d6204" xlink:href="ns-20200930.xsd#ns_RepaymentOfTermLoanAndPaymentForExtinguishmentCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_ns_RepaymentOfTermLoanAndPaymentForExtinguishmentCosts_c958bf9b-07a4-4c33-b955-ecd7fc4d6204" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfOtherLongTermDebt_3676cbb4-b78b-48c0-ab9f-74185cec8e5e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_RepaymentsOfOtherLongTermDebt_3676cbb4-b78b-48c0-ab9f-74185cec8e5e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfShortTermDebt_861262a3-e651-4e4c-9df9-a8bcbc31b071" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfShortTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_RepaymentsOfShortTermDebt_861262a3-e651-4e4c-9df9-a8bcbc31b071" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_6a2401ea-ac38-4c49-be1b-09be61a86aa1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_6a2401ea-ac38-4c49-be1b-09be61a86aa1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_bc6bbb82-fa8d-4c80-b3d4-d9b5fcc39bde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_bc6bbb82-fa8d-4c80-b3d4-d9b5fcc39bde" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps_ed891d92-259d-4c33-8926-91abe64606e7" xlink:href="ns-20200930.xsd#ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps_ed891d92-259d-4c33-8926-91abe64606e7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d47dcaea-42ae-42c4-b4d1-daab071e35f2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d47dcaea-42ae-42c4-b4d1-daab071e35f2" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_d7a8c0ca-1473-40f9-878e-3e3847ef9ff5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_d7a8c0ca-1473-40f9-878e-3e3847ef9ff5" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c9403f55-cd0e-47e0-9ce6-c9339fbfaaa7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_04a9fcc4-664a-4523-a793-82984217bbc8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c9403f55-cd0e-47e0-9ce6-c9339fbfaaa7" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_8b46875f-793d-4dce-84f1-e54d74caa454" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_8b46875f-793d-4dce-84f1-e54d74caa454" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8ebf1396-e9df-4cfc-9f1d-de89063c62d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_8ebf1396-e9df-4cfc-9f1d-de89063c62d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0cd47f72-5ca4-4db1-a382-3de8bee0fabc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0cd47f72-5ca4-4db1-a382-3de8bee0fabc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_8677b60d-e128-471c-a39b-11d9b13bbdd2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_22bd6ac9-9a6c-4da4-89b1-2b669dd5fc62" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_8ae2c24a-376c-4768-8eed-cd4cdd801844" xlink:to="loc_us-gaap_StatementTable_22bd6ac9-9a6c-4da4-89b1-2b669dd5fc62" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_b2614a65-ce51-40f5-82a9-7f13b3ace89f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_22bd6ac9-9a6c-4da4-89b1-2b669dd5fc62" xlink:to="loc_srt_StatementScenarioAxis_b2614a65-ce51-40f5-82a9-7f13b3ace89f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_b2614a65-ce51-40f5-82a9-7f13b3ace89f_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_b2614a65-ce51-40f5-82a9-7f13b3ace89f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_b2614a65-ce51-40f5-82a9-7f13b3ace89f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_3add00bc-305b-4415-891a-48669c223503" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_b2614a65-ce51-40f5-82a9-7f13b3ace89f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_3add00bc-305b-4415-891a-48669c223503" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY" xlink:type="simple" xlink:href="ns-20200930.xsd#CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY" xlink:type="extended" id="i3ecc3ff7a6014b669d9797b93bae7e8e_CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_56cdec47-da62-47fd-b107-60af6a3eb05c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPartnersCapitalRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_56cdec47-da62-47fd-b107-60af6a3eb05c" xlink:to="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapital_e1d43031-cf6d-4b13-b66d-941d21e7176c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_PartnersCapital_e1d43031-cf6d-4b13-b66d-941d21e7176c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_1983e762-33a1-48f7-bdfe-56d8e9e1940f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_1983e762-33a1-48f7-bdfe-56d8e9e1940f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PartnersCapitalandTemporaryEquity_d9983aab-ef7f-4107-b55e-a3bd99fbd89f" xlink:href="ns-20200930.xsd#ns_PartnersCapitalandTemporaryEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_ns_PartnersCapitalandTemporaryEquity_d9983aab-ef7f-4107-b55e-a3bd99fbd89f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aee67d6a-a964-4361-bbe6-2177f49f9683" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_NetIncomeLoss_aee67d6a-a964-4361-bbe6-2177f49f9683" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NetIncomeLossExcludingPortionAttributableToTemporaryEquity_1bcdfff9-355e-453b-993d-eb144cac5a58" xlink:href="ns-20200930.xsd#ns_NetIncomeLossExcludingPortionAttributableToTemporaryEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_ns_NetIncomeLossExcludingPortionAttributableToTemporaryEquity_1bcdfff9-355e-453b-993d-eb144cac5a58" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityNetIncome_ebb7e7b0-41aa-43f8-86d2-d50bfc003a6e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityNetIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_TemporaryEquityNetIncome_ebb7e7b0-41aa-43f8-86d2-d50bfc003a6e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_99580f80-539e-4edd-8bbb-5ff9ae642305" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_99580f80-539e-4edd-8bbb-5ff9ae642305" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapitalAccountDistributions_4638a3d2-1fc9-4024-9791-5d9197cccf5f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapitalAccountDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_PartnersCapitalAccountDistributions_4638a3d2-1fc9-4024-9791-5d9197cccf5f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStockCash_6ca80dd0-cc57-4c67-b0b8-e836f5e0a58f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsPreferredStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_DividendsPreferredStockCash_6ca80dd0-cc57-4c67-b0b8-e836f5e0a58f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapitalAccountUnitBasedCompensation_4718612e-3041-4803-8f40-5e71f5d07579" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapitalAccountUnitBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_PartnersCapitalAccountUnitBasedCompensation_4718612e-3041-4803-8f40-5e71f5d07579" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockAccretionOfRedemptionDiscount_4f34e671-0acb-4209-bd1f-41642ac7e06d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockAccretionOfRedemptionDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_PreferredStockAccretionOfRedemptionDiscount_4f34e671-0acb-4209-bd1f-41642ac7e06d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityAccretionToRedemptionValue_dff4cb4e-da79-4008-b811-8b36f2db035e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityAccretionToRedemptionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_TemporaryEquityAccretionToRedemptionValue_dff4cb4e-da79-4008-b811-8b36f2db035e" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockAccretionofRedemptionDiscountIncludingTemporaryEquity_c42e8a59-5f5b-49db-a159-f4e8eb35db40" xlink:href="ns-20200930.xsd#ns_PreferredStockAccretionofRedemptionDiscountIncludingTemporaryEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_ns_PreferredStockAccretionofRedemptionDiscountIncludingTemporaryEquity_c42e8a59-5f5b-49db-a159-f4e8eb35db40" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapitalOther_28f7b6fe-8651-42d8-b1d2-da726570893a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapitalOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_PartnersCapitalOther_28f7b6fe-8651-42d8-b1d2-da726570893a" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityOtherChanges_d4a5d5a0-3bd8-49d5-bcef-0916d0feb0bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityOtherChanges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_us-gaap_TemporaryEquityOtherChanges_d4a5d5a0-3bd8-49d5-bcef-0916d0feb0bb" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PartnersCapitalOtherIncludingTemporaryEquity_c346eeb3-9425-424c-884f-52d97d6a82b2" xlink:href="ns-20200930.xsd#ns_PartnersCapitalOtherIncludingTemporaryEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInPartnersCapitalRollForward_dbc141f1-6ddb-4bf9-b6dc-34806e456627" xlink:to="loc_ns_PartnersCapitalOtherIncludingTemporaryEquity_c346eeb3-9425-424c-884f-52d97d6a82b2" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapital_269b96d1-6c59-4f48-8b53-cf37fe0af46c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapital"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_a7e51601-9219-498a-968e-5b7cd571ad14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PartnersCapitalandTemporaryEquity_2c42efa7-6da7-406a-bdcb-f8065b201f47" xlink:href="ns-20200930.xsd#ns_PartnersCapitalandTemporaryEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ca447851-9efb-46c1-bedc-b222d8c4f6d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_56cdec47-da62-47fd-b107-60af6a3eb05c" xlink:to="loc_us-gaap_StatementTable_ca447851-9efb-46c1-bedc-b222d8c4f6d8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ca447851-9efb-46c1-bedc-b222d8c4f6d8" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7ae10848-8c14-41bc-8c9c-e1209296d4fd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_bf507d8a-0f1b-4dc8-93b9-f53f4a8c03f8" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7ae10848-8c14-41bc-8c9c-e1209296d4fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredLimitedPartnerMember_9b53514e-883f-4eb5-9e3c-04bbdd746ede" xlink:href="ns-20200930.xsd#ns_PreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7ae10848-8c14-41bc-8c9c-e1209296d4fd" xlink:to="loc_ns_PreferredLimitedPartnerMember_9b53514e-883f-4eb5-9e3c-04bbdd746ede" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CommonLimitedPartnerMember_d24e0226-5a8d-4892-85b6-7b28be7d5300" xlink:href="ns-20200930.xsd#ns_CommonLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7ae10848-8c14-41bc-8c9c-e1209296d4fd" xlink:to="loc_ns_CommonLimitedPartnerMember_d24e0226-5a8d-4892-85b6-7b28be7d5300" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesDPreferredLimitedPartnerMember_bfb52f16-4ff7-4eca-9a71-0f6ae3369678" xlink:href="ns-20200930.xsd#ns_SeriesDPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7ae10848-8c14-41bc-8c9c-e1209296d4fd" xlink:to="loc_ns_SeriesDPreferredLimitedPartnerMember_bfb52f16-4ff7-4eca-9a71-0f6ae3369678" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerCapitalComponentsAxis_2aedfe3c-2043-477a-beb1-2f2063991cd5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerCapitalComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ca447851-9efb-46c1-bedc-b222d8c4f6d8" xlink:to="loc_us-gaap_PartnerCapitalComponentsAxis_2aedfe3c-2043-477a-beb1-2f2063991cd5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerCapitalComponentsDomain_2aedfe3c-2043-477a-beb1-2f2063991cd5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerCapitalComponentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerCapitalComponentsAxis_2aedfe3c-2043-477a-beb1-2f2063991cd5" xlink:to="loc_us-gaap_PartnerCapitalComponentsDomain_2aedfe3c-2043-477a-beb1-2f2063991cd5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerCapitalComponentsDomain_a875f97f-c7af-4bbe-bda0-12410f3131b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerCapitalComponentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerCapitalComponentsAxis_2aedfe3c-2043-477a-beb1-2f2063991cd5" xlink:to="loc_us-gaap_PartnerCapitalComponentsDomain_a875f97f-c7af-4bbe-bda0-12410f3131b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c02cc6c1-d4b3-4f37-a5c8-59fb320811a5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerCapitalComponentsDomain_a875f97f-c7af-4bbe-bda0-12410f3131b5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c02cc6c1-d4b3-4f37-a5c8-59fb320811a5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical" xlink:type="simple" xlink:href="ns-20200930.xsd#CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical" xlink:type="extended" id="ib47225c5dfb04f46996071e464d22864_CONSOLIDATEDSTATEMENTSOFPARTNERSEQUITYANDMEZZANINEEQUITYParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_97e5242c-f6ef-4d3d-8f0b-b5f22ecc9de1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsPaidPerUnit_373f78ea-54b1-4b90-925b-83fc00d28f40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerDistributionsPaidPerUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_97e5242c-f6ef-4d3d-8f0b-b5f22ecc9de1" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsPaidPerUnit_373f78ea-54b1-4b90-925b-83fc00d28f40" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_38a108a1-f2c9-4339-b325-ecaf6fcbab4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_97e5242c-f6ef-4d3d-8f0b-b5f22ecc9de1" xlink:to="loc_us-gaap_StatementTable_38a108a1-f2c9-4339-b325-ecaf6fcbab4a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_38a108a1-f2c9-4339-b325-ecaf6fcbab4a" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7e4aa362-d1db-4e50-b54e-62cd4ae34402" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_79e59dac-0bb1-4c6a-a82c-add3a8b3e72a" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7e4aa362-d1db-4e50-b54e-62cd4ae34402" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CommonLimitedPartnerMember_18265b74-858e-416c-b566-4f7bb2d37ed0" xlink:href="ns-20200930.xsd#ns_CommonLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7e4aa362-d1db-4e50-b54e-62cd4ae34402" xlink:to="loc_ns_CommonLimitedPartnerMember_18265b74-858e-416c-b566-4f7bb2d37ed0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATION" xlink:type="simple" xlink:href="ns-20200930.xsd#ORGANIZATIONANDBASISOFPRESENTATION"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATION" xlink:type="extended" id="i525e034cd551423d82fce3fe6a8d2e64_ORGANIZATIONANDBASISOFPRESENTATION"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details" xlink:type="simple" xlink:href="ns-20200930.xsd#ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details" xlink:type="extended" id="i91127e636d2549c5ad9dce1fc3cc5581_ORGANIZATIONANDBASISOFPRESENTATIONNarrative1Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_6b0dfe28-c718-48c8-9a08-193a88def5c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_6b0dfe28-c718-48c8-9a08-193a88def5c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_29b9c1bd-a57d-4be8-b13b-0aa3cafcbf9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_29b9c1bd-a57d-4be8-b13b-0aa3cafcbf9b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_b0565fab-afa3-478c-9cc4-f07aa0a0b2b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_b0565fab-afa3-478c-9cc4-f07aa0a0b2b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_21e9d514-afd7-43dd-ac59-9fd5e190ba6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_21e9d514-afd7-43dd-ac59-9fd5e190ba6c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_08fb1668-a05e-4ea0-9e3a-c7eb3049dde2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cfa273a-6343-43e0-80d5-e2e7da297606" xlink:to="loc_us-gaap_DebtInstrumentTable_08fb1668-a05e-4ea0-9e3a-c7eb3049dde2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_e8a00c3d-4588-4839-9239-c84a77fa86dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_08fb1668-a05e-4ea0-9e3a-c7eb3049dde2" xlink:to="loc_us-gaap_DebtInstrumentAxis_e8a00c3d-4588-4839-9239-c84a77fa86dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e8a00c3d-4588-4839-9239-c84a77fa86dc_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_e8a00c3d-4588-4839-9239-c84a77fa86dc" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e8a00c3d-4588-4839-9239-c84a77fa86dc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_f0d74af9-4787-40d0-b96a-4f9fe962e07e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_e8a00c3d-4588-4839-9239-c84a77fa86dc" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_f0d74af9-4787-40d0-b96a-4f9fe962e07e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2025Member_4507819f-f221-4909-8b53-726b4f79550e" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f0d74af9-4787-40d0-b96a-4f9fe962e07e" xlink:to="loc_ns_LogisticsNotesDue2025Member_4507819f-f221-4909-8b53-726b4f79550e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2030Member_1e43b9cf-dd9b-43da-bb97-852c32122b65" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f0d74af9-4787-40d0-b96a-4f9fe962e07e" xlink:to="loc_ns_LogisticsNotesDue2030Member_1e43b9cf-dd9b-43da-bb97-852c32122b65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2020Member_9460063c-cb3c-4ce2-9e36-4d092b7866ac" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_f0d74af9-4787-40d0-b96a-4f9fe962e07e" xlink:to="loc_ns_LogisticsNotesDue2020Member_9460063c-cb3c-4ce2-9e36-4d092b7866ac" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details" xlink:type="simple" xlink:href="ns-20200930.xsd#ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details" xlink:type="extended" id="i5ed0d5ca00a8499aa9f5c894128ad2a8_ORGANIZATIONANDBASISOFPRESENTATIONNarrative2Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_fffe7d6c-c148-4f00-afd7-c640f837ea36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_fffe7d6c-c148-4f00-afd7-c640f837ea36" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtTerm_b8ebde89-e6c1-48d5-a2a8-5117b874d1b4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_LongTermDebtTerm_b8ebde89-e6c1-48d5-a2a8-5117b874d1b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_c44c59d3-7e6d-4ca4-ad8e-16a9a4e0f478" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnsecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_UnsecuredDebt_c44c59d3-7e6d-4ca4-ad8e-16a9a4e0f478" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_31adbc28-644d-4899-9788-0d6780209ada" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_31adbc28-644d-4899-9788-0d6780209ada" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_af4ae7af-599c-49a5-b450-2ff8bfffca4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_af4ae7af-599c-49a5-b450-2ff8bfffca4a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_aa70c086-68be-4549-aaed-6f6e343f11d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_93bc67dd-c3e2-492e-b628-c278fcfa24b5" xlink:to="loc_us-gaap_DebtInstrumentTable_aa70c086-68be-4549-aaed-6f6e343f11d4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_65e01cb7-158d-483f-b2f3-590a478e24c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_aa70c086-68be-4549-aaed-6f6e343f11d4" xlink:to="loc_us-gaap_DebtInstrumentAxis_65e01cb7-158d-483f-b2f3-590a478e24c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_65e01cb7-158d-483f-b2f3-590a478e24c4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_65e01cb7-158d-483f-b2f3-590a478e24c4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_65e01cb7-158d-483f-b2f3-590a478e24c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e593ef76-df3d-4d4a-897c-c5119529b8fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_65e01cb7-158d-483f-b2f3-590a478e24c4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e593ef76-df3d-4d4a-897c-c5119529b8fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_UnsecuredTermLoanCreditAgreementMember_e0cf2227-fec1-43f5-b06e-0a36c8ae8760" xlink:href="ns-20200930.xsd#ns_UnsecuredTermLoanCreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_e593ef76-df3d-4d4a-897c-c5119529b8fb" xlink:to="loc_ns_UnsecuredTermLoanCreditAgreementMember_e0cf2227-fec1-43f5-b06e-0a36c8ae8760" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details" xlink:type="simple" xlink:href="ns-20200930.xsd#ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details" xlink:type="extended" id="i6da82b80e8de4c0fbb0e41a640a886ce_ORGANIZATIONANDBASISOFPRESENTATIONNarrative3Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_e5fa860b-c0a7-4071-a05b-401e42cbbffe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_e5fa860b-c0a7-4071-a05b-401e42cbbffe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemNatureOfEventOrTransaction_2adc9416-3994-4288-a635-bd00491eafee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemNatureOfEventOrTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:to="loc_us-gaap_UnusualOrInfrequentItemNatureOfEventOrTransaction_2adc9416-3994-4288-a635-bd00491eafee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemInsuranceProceeds_dacbc5d1-96b4-4b30-83f6-2708755b6558" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemInsuranceProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:to="loc_us-gaap_UnusualOrInfrequentItemInsuranceProceeds_dacbc5d1-96b4-4b30-83f6-2708755b6558" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemNetGainLoss_d7594f4b-772b-4193-95c2-4cd6ebfba3d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemNetGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:to="loc_us-gaap_UnusualOrInfrequentItemNetGainLoss_d7594f4b-772b-4193-95c2-4cd6ebfba3d6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_UnusualOrInfrequentItemLineItems_12a515c7-50e2-463c-90d5-44d0c2fce283" xlink:to="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAxis_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:to="loc_us-gaap_ReportingUnitAxis_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReportingUnitAxis_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2" xlink:to="loc_us-gaap_ReportingUnitDomain_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_e5260bc8-99c5-43c1-b453-7b2f50915493" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReportingUnitAxis_4a6ac4dd-08c9-4aca-b06b-7ec77e115ff2" xlink:to="loc_us-gaap_ReportingUnitDomain_e5260bc8-99c5-43c1-b453-7b2f50915493" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CrudeOilPipelinesMember_b51cc599-e614-402c-a6f1-6c087cd4b5bd" xlink:href="ns-20200930.xsd#ns_CrudeOilPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_e5260bc8-99c5-43c1-b453-7b2f50915493" xlink:to="loc_ns_CrudeOilPipelinesMember_b51cc599-e614-402c-a6f1-6c087cd4b5bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemAxis_f7a99999-32fc-446e-9589-3a42b6c33d8d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:to="loc_us-gaap_UnusualOrInfrequentItemAxis_f7a99999-32fc-446e-9589-3a42b6c33d8d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemDomain_f7a99999-32fc-446e-9589-3a42b6c33d8d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_UnusualOrInfrequentItemAxis_f7a99999-32fc-446e-9589-3a42b6c33d8d" xlink:to="loc_us-gaap_UnusualOrInfrequentItemDomain_f7a99999-32fc-446e-9589-3a42b6c33d8d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusualOrInfrequentItemDomain_ad88d303-940d-4b0e-96ad-09dbc7a6cc9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnusualOrInfrequentItemDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_UnusualOrInfrequentItemAxis_f7a99999-32fc-446e-9589-3a42b6c33d8d" xlink:to="loc_us-gaap_UnusualOrInfrequentItemDomain_ad88d303-940d-4b0e-96ad-09dbc7a6cc9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SelbyCaliforniaFireMember_e9223d7d-6dda-49ea-a1d1-9a0f94d56df9" xlink:href="ns-20200930.xsd#ns_SelbyCaliforniaFireMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnusualOrInfrequentItemDomain_ad88d303-940d-4b0e-96ad-09dbc7a6cc9d" xlink:to="loc_ns_SelbyCaliforniaFireMember_e9223d7d-6dda-49ea-a1d1-9a0f94d56df9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessInterruptionLossAxis_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessInterruptionLossAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:to="loc_us-gaap_BusinessInterruptionLossAxis_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessInterruptionLossDomain_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessInterruptionLossDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessInterruptionLossAxis_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf" xlink:to="loc_us-gaap_BusinessInterruptionLossDomain_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessInterruptionLossDomain_7260bfe8-d63d-43fb-b853-eb9d9a58f966" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessInterruptionLossDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessInterruptionLossAxis_8b2b1b28-94e3-420b-b07a-a5cbe8c9ddaf" xlink:to="loc_us-gaap_BusinessInterruptionLossDomain_7260bfe8-d63d-43fb-b853-eb9d9a58f966" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_BusinessInterruptionLossfromSelbyCaliforniaFireMember_7cc8ca18-3bd6-46be-8fc8-37db4a150277" xlink:href="ns-20200930.xsd#ns_BusinessInterruptionLossfromSelbyCaliforniaFireMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessInterruptionLossDomain_7260bfe8-d63d-43fb-b853-eb9d9a58f966" xlink:to="loc_ns_BusinessInterruptionLossfromSelbyCaliforniaFireMember_7cc8ca18-3bd6-46be-8fc8-37db4a150277" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_05e9b91a-c203-4e6a-a608-4572c95565e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnusualOrInfrequentItemTable_184c92d4-43f3-4fc7-97b5-3b5fb1448703" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_05e9b91a-c203-4e6a-a608-4572c95565e6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_05e9b91a-c203-4e6a-a608-4572c95565e6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_05e9b91a-c203-4e6a-a608-4572c95565e6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_05e9b91a-c203-4e6a-a608-4572c95565e6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_3727a5e9-574b-40d4-a276-ad09bd9db356" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_05e9b91a-c203-4e6a-a608-4572c95565e6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3727a5e9-574b-40d4-a276-ad09bd9db356" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenseMember_8d3ee981-eb2d-40cb-ae78-5622f8055556" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_3727a5e9-574b-40d4-a276-ad09bd9db356" xlink:to="loc_us-gaap_OperatingExpenseMember_8d3ee981-eb2d-40cb-ae78-5622f8055556" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/NEWACCOUNTINGPRONOUNCEMENTS" xlink:type="simple" xlink:href="ns-20200930.xsd#NEWACCOUNTINGPRONOUNCEMENTS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/NEWACCOUNTINGPRONOUNCEMENTS" xlink:type="extended" id="ie93706d5ed3e47c69b7d817283f7dcc1_NEWACCOUNTINGPRONOUNCEMENTS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONS" xlink:type="simple" xlink:href="ns-20200930.xsd#IMPAIRMENTSANDDISCONTINUEDOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONS" xlink:type="extended" id="ib9fdc02400f241a29dfb24c28abf7e3d_IMPAIRMENTSANDDISCONTINUEDOPERATIONS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables" xlink:type="simple" xlink:href="ns-20200930.xsd#IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables" xlink:type="extended" id="ic705c66b81e74ce2a77a44497550171a_IMPAIRMENTSANDDISCONTINUEDOPERATIONSTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails" xlink:type="extended" id="iac785ea2bbe34a3fa9de4d8e0e7d6a57_IMPAIRMENTSANDDISCONTINUEDOPERATIONSNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_7714d10e-2bc6-482d-922e-ccbeafec75c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_7714d10e-2bc6-482d-922e-ccbeafec75c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_67abcb9b-bcdf-4208-8e6d-fbc393901c89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_67abcb9b-bcdf-4208-8e6d-fbc393901c89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetImpairmentCharges_9e76aaac-5150-4b78-818f-5aa2f0e9f057" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:to="loc_us-gaap_OtherAssetImpairmentCharges_9e76aaac-5150-4b78-818f-5aa2f0e9f057" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_78cf0c58-4b22-4509-89d3-116574a32fad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:to="loc_us-gaap_Goodwill_78cf0c58-4b22-4509-89d3-116574a32fad" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_e4aa76cf-ca4a-448e-a77d-beb95700a272" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAxis_b5529a79-c2bb-4e4c-b894-aaa8b986af23" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:to="loc_us-gaap_ReportingUnitAxis_b5529a79-c2bb-4e4c-b894-aaa8b986af23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_b5529a79-c2bb-4e4c-b894-aaa8b986af23_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReportingUnitAxis_b5529a79-c2bb-4e4c-b894-aaa8b986af23" xlink:to="loc_us-gaap_ReportingUnitDomain_b5529a79-c2bb-4e4c-b894-aaa8b986af23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_3635d5eb-57e6-4d81-8bcc-66e19d1dab16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReportingUnitAxis_b5529a79-c2bb-4e4c-b894-aaa8b986af23" xlink:to="loc_us-gaap_ReportingUnitDomain_3635d5eb-57e6-4d81-8bcc-66e19d1dab16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CrudeOilPipelinesMember_91a94b13-2bfe-4a51-a8ce-e4f1f8df5bd3" xlink:href="ns-20200930.xsd#ns_CrudeOilPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_3635d5eb-57e6-4d81-8bcc-66e19d1dab16" xlink:to="loc_ns_CrudeOilPipelinesMember_91a94b13-2bfe-4a51-a8ce-e4f1f8df5bd3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_St.EustatiusBunkersMember_986d98f9-1724-48ad-bc13-1871741e49ad" xlink:href="ns-20200930.xsd#ns_St.EustatiusBunkersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_3635d5eb-57e6-4d81-8bcc-66e19d1dab16" xlink:to="loc_ns_St.EustatiusBunkersMember_986d98f9-1724-48ad-bc13-1871741e49ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_eea3a681-d999-4db5-8afe-3cb619470b82" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_d7cefd56-3a6d-42e3-a815-ef9e3bb8f723" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_eea3a681-d999-4db5-8afe-3cb619470b82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_TheSt.EustatiusDispositionMember_289619c2-c801-4f41-a642-481228665d0c" xlink:href="ns-20200930.xsd#ns_TheSt.EustatiusDispositionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_eea3a681-d999-4db5-8afe-3cb619470b82" xlink:to="loc_ns_TheSt.EustatiusDispositionMember_289619c2-c801-4f41-a642-481228665d0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45" xlink:to="loc_us-gaap_SegmentDomain_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3cd9b7cc-560c-4be9-97d0-4274fc52196f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ab9aef61-54ca-4e29-a36d-3b2f2f67ab45" xlink:to="loc_us-gaap_SegmentDomain_3cd9b7cc-560c-4be9-97d0-4274fc52196f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PipelineSegmentMember_b0339276-41b3-4963-b6f7-8bda7d21dbdd" xlink:href="ns-20200930.xsd#ns_PipelineSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_3cd9b7cc-560c-4be9-97d0-4274fc52196f" xlink:to="loc_ns_PipelineSegmentMember_b0339276-41b3-4963-b6f7-8bda7d21dbdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_403bc4bf-c41e-46c1-837a-a7a5f76b52a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_d34f8cdd-1021-4260-a22c-1e7cbba86bb1" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_403bc4bf-c41e-46c1-837a-a7a5f76b52a9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_403bc4bf-c41e-46c1-837a-a7a5f76b52a9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_403bc4bf-c41e-46c1-837a-a7a5f76b52a9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_403bc4bf-c41e-46c1-837a-a7a5f76b52a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_5e842068-83a7-4185-b8f5-ca7ee5aea881" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_403bc4bf-c41e-46c1-837a-a7a5f76b52a9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5e842068-83a7-4185-b8f5-ca7ee5aea881" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_IncomeLossFromDiscontinuedOperationsNetOfTaxMember_b1a90007-dfb4-4309-9d0e-ec7f44755fd6" xlink:href="ns-20200930.xsd#ns_IncomeLossFromDiscontinuedOperationsNetOfTaxMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_5e842068-83a7-4185-b8f5-ca7ee5aea881" xlink:to="loc_ns_IncomeLossFromDiscontinuedOperationsNetOfTaxMember_b1a90007-dfb4-4309-9d0e-ec7f44755fd6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details" xlink:type="simple" xlink:href="ns-20200930.xsd#IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details" xlink:type="extended" id="i19a7255463e243b98b72b4aec77c08fc_IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable1Details"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details" xlink:type="simple" xlink:href="ns-20200930.xsd#IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details" xlink:type="extended" id="i00cbbc249fae4d7d88c2a06a0930dc57_IMPAIRMENTSANDDISCONTINUEDOPERATIONSTable2Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalExpenditureDiscontinuedOperations_d14431e8-2bd2-4f8e-8359-34fb56e18473" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CapitalExpenditureDiscontinuedOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_CapitalExpenditureDiscontinuedOperations_d14431e8-2bd2-4f8e-8359-34fb56e18473" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortizationDiscontinuedOperations_182d5895-7d9b-4a4a-ac0c-c6148633997e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationAndAmortizationDiscontinuedOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_DepreciationAndAmortizationDiscontinuedOperations_182d5895-7d9b-4a4a-ac0c-c6148633997e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetImpairmentCharges_37b58f34-798d-497a-bb24-20b179f4f699" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_OtherAssetImpairmentCharges_37b58f34-798d-497a-bb24-20b179f4f699" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_0be41954-022e-4201-8e29-da80c9b4c091" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_0be41954-022e-4201-8e29-da80c9b4c091" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationProvisionForLossGainOnDisposalNetOfTax_cf058def-0fcf-4577-9a65-2cd24da825cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DiscontinuedOperationProvisionForLossGainOnDisposalNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_DiscontinuedOperationProvisionForLossGainOnDisposalNetOfTax_cf058def-0fcf-4577-9a65-2cd24da825cc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_b1d1dc14-9d1a-4024-945e-a040097dc12a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_3b5d11a9-d643-43d4-9366-7b9b7a3aeed1" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_b1d1dc14-9d1a-4024-945e-a040097dc12a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86a556c7-215f-4d06-bc4f-90fe981ec09f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_b1d1dc14-9d1a-4024-945e-a040097dc12a" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86a556c7-215f-4d06-bc4f-90fe981ec09f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_86a556c7-215f-4d06-bc4f-90fe981ec09f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86a556c7-215f-4d06-bc4f-90fe981ec09f" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_86a556c7-215f-4d06-bc4f-90fe981ec09f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_5b098415-7cf1-4a14-b8a6-7452c2ce9d8c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_86a556c7-215f-4d06-bc4f-90fe981ec09f" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_5b098415-7cf1-4a14-b8a6-7452c2ce9d8c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DiscontinuedOperationsHeldForSaleOrDisposedOfBySaleMember_a6194a76-0c46-4157-a8a1-45ad9b31a82c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DiscontinuedOperationsHeldForSaleOrDisposedOfBySaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_5b098415-7cf1-4a14-b8a6-7452c2ce9d8c" xlink:to="loc_us-gaap_DiscontinuedOperationsHeldForSaleOrDisposedOfBySaleMember_a6194a76-0c46-4157-a8a1-45ad9b31a82c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERS" xlink:type="extended" id="i7db88554a6884ebaa6fc7cff696c91b0_REVENUEFROMCONTRACTSWITHCUSTOMERS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTables" xlink:type="extended" id="i8bc60e47ab814ac2bead3446a073eb88_REVENUEFROMCONTRACTSWITHCUSTOMERSTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails" xlink:type="extended" id="i77d6a324f08741ef91045cb3878c3767_REVENUEFROMCONTRACTSWITHCUSTOMERSTable1ContractAssetsandLiabilitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_144afef3-e8cd-4a99-9617-b1b28a656e2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_144afef3-e8cd-4a99-9617-b1b28a656e2c" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_80f685ca-d824-4a3e-9db6-4a975fb1ea6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_80f685ca-d824-4a3e-9db6-4a975fb1ea6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetNoncurrent_862a9dfe-44c0-404b-bc21-443a8fa1a514" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNetNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetNoncurrent_862a9dfe-44c0-404b-bc21-443a8fa1a514" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_b4321f5d-9343-4db0-9a02-813976099051" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_b4321f5d-9343-4db0-9a02-813976099051" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ContractwithCustomerAssetAdditions_f1f3c83d-4ba0-404b-9151-9a8aa01ee27e" xlink:href="ns-20200930.xsd#ns_ContractwithCustomerAssetAdditions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_ns_ContractwithCustomerAssetAdditions_f1f3c83d-4ba0-404b-9151-9a8aa01ee27e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_217b1975-1b4f-41ce-9597-a0e4984b4457" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetReclassifiedToReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_217b1975-1b4f-41ce-9597-a0e4984b4457" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ContractWithCustomerAssetTransferToRevenues_5ff49360-41f0-45c1-9557-7c4b937d0e0b" xlink:href="ns-20200930.xsd#ns_ContractWithCustomerAssetTransferToRevenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_ns_ContractWithCustomerAssetTransferToRevenues_5ff49360-41f0-45c1-9557-7c4b937d0e0b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ChangeinContractwithCustomerAssetTotal_9dc3d121-61bb-498b-b48d-b86df57cc001" xlink:href="ns-20200930.xsd#ns_ChangeinContractwithCustomerAssetTotal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerAssetNetAbstract_ebbca481-1b4b-44c7-828b-fd2c8b6a7039" xlink:to="loc_ns_ChangeinContractwithCustomerAssetTotal_9dc3d121-61bb-498b-b48d-b86df57cc001" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiabilityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_144afef3-e8cd-4a99-9617-b1b28a656e2c" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_ca9f0487-4d0a-4a92-939f-f6531945123e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_ca9f0487-4d0a-4a92-939f-f6531945123e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_7bf206cf-3825-4257-af25-bed5490b2970" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_7bf206cf-3825-4257-af25-bed5490b2970" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_b183f787-9eb0-4cd6-bb34-8730b097ceee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_us-gaap_ContractWithCustomerLiability_b183f787-9eb0-4cd6-bb34-8730b097ceee" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ContractwithCustomerLiabilityAdditions_63a4b5da-57a8-4c40-8413-1f6d9844d120" xlink:href="ns-20200930.xsd#ns_ContractwithCustomerLiabilityAdditions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_ns_ContractwithCustomerLiabilityAdditions_63a4b5da-57a8-4c40-8413-1f6d9844d120" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_80250224-7f3e-4c64-8d19-57e6b9dd5dee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_80250224-7f3e-4c64-8d19-57e6b9dd5dee" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ChangeinContractwithCustomerLiabilityTotal_733c141e-200a-43e4-804b-5b10fc3ee516" xlink:href="ns-20200930.xsd#ns_ChangeinContractwithCustomerLiabilityTotal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerLiabilityAbstract_d4e3981a-7939-4baa-9078-0c5eea91b2b9" xlink:to="loc_ns_ChangeinContractwithCustomerLiabilityTotal_733c141e-200a-43e4-804b-5b10fc3ee516" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_d53a9c30-134a-4e49-bdaf-8485f3b142f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_144afef3-e8cd-4a99-9617-b1b28a656e2c" xlink:to="loc_us-gaap_StatementTable_d53a9c30-134a-4e49-bdaf-8485f3b142f4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_8400061c-2001-4974-94e2-a126ee017e27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_d53a9c30-134a-4e49-bdaf-8485f3b142f4" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_8400061c-2001-4974-94e2-a126ee017e27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8400061c-2001-4974-94e2-a126ee017e27_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8400061c-2001-4974-94e2-a126ee017e27" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8400061c-2001-4974-94e2-a126ee017e27_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8400061c-2001-4974-94e2-a126ee017e27" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_ac0f63e1-4d67-464d-811d-46d0cf5541e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_ac0f63e1-4d67-464d-811d-46d0cf5541e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesMember_ff245776-ca8c-478c-b59a-cbcc553498ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_ff245776-ca8c-478c-b59a-cbcc553498ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_AssetsHeldforSaleMember_98b4ce52-4744-4e4c-b92e-f45d105cafe7" xlink:href="ns-20200930.xsd#ns_AssetsHeldforSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:to="loc_ns_AssetsHeldforSaleMember_98b4ce52-4744-4e4c-b92e-f45d105cafe7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LiabilitiesHeldforSaleMember_ea591845-b48c-4884-8c6a-ae94a14b8be3" xlink:href="ns-20200930.xsd#ns_LiabilitiesHeldforSaleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_5df0ed3c-812d-4838-97bc-2ea86a872c9b" xlink:to="loc_ns_LiabilitiesHeldforSaleMember_ea591845-b48c-4884-8c6a-ae94a14b8be3" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails" xlink:type="extended" id="i530f5ed9f0ba466e9744e29c17526300_REVENUEFROMCONTRACTSWITHCUSTOMERSNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_ac26d562-5ec2-4d43-964f-15876aeb5afb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_2c9c6129-43e9-4a45-b68f-54ff7ac026ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ac26d562-5ec2-4d43-964f-15876aeb5afb" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_2c9c6129-43e9-4a45-b68f-54ff7ac026ec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_72e8b40f-e8a8-4bf6-b7f3-a32994686652" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_ac26d562-5ec2-4d43-964f-15876aeb5afb" xlink:to="loc_us-gaap_StatementTable_72e8b40f-e8a8-4bf6-b7f3-a32994686652" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_0b86af8c-1423-4110-98fe-e0103e4fde2e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_72e8b40f-e8a8-4bf6-b7f3-a32994686652" xlink:to="loc_srt_MajorCustomersAxis_0b86af8c-1423-4110-98fe-e0103e4fde2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_0b86af8c-1423-4110-98fe-e0103e4fde2e_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_0b86af8c-1423-4110-98fe-e0103e4fde2e" xlink:to="loc_srt_NameOfMajorCustomerDomain_0b86af8c-1423-4110-98fe-e0103e4fde2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_f5dce0b8-0252-4e05-aba9-157d248ba35b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_0b86af8c-1423-4110-98fe-e0103e4fde2e" xlink:to="loc_srt_NameOfMajorCustomerDomain_f5dce0b8-0252-4e05-aba9-157d248ba35b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PetroleosdeVenezuelaS.A.PDVSAMember_9b117c82-4962-4f15-9613-8ebcbf2a20b0" xlink:href="ns-20200930.xsd#ns_PetroleosdeVenezuelaS.A.PDVSAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_f5dce0b8-0252-4e05-aba9-157d248ba35b" xlink:to="loc_ns_PetroleosdeVenezuelaS.A.PDVSAMember_9b117c82-4962-4f15-9613-8ebcbf2a20b0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails" xlink:type="extended" id="ia2691dca022e4d95a65fb7faccf53e2f_REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_6b092c00-6fc9-4a19-8fb4-9d9a487eb6b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_6b092c00-6fc9-4a19-8fb4-9d9a487eb6b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_1c1f618e-f209-4f04-923d-c80a066bed6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_1c1f618e-f209-4f04-923d-c80a066bed6a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_4e6e5ed5-aef2-4ced-b6d0-24b088a2078b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_1c1f618e-f209-4f04-923d-c80a066bed6a" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_4e6e5ed5-aef2-4ced-b6d0-24b088a2078b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails_1" xlink:type="extended" id="ic158956d07f641718d9c21f8c2b918eb_REVENUEFROMCONTRACTSWITHCUSTOMERSTable2ExpectedTimingofSatisfactionofPerformanceObligationsDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_6b092c00-6fc9-4a19-8fb4-9d9a487eb6b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_6b092c00-6fc9-4a19-8fb4-9d9a487eb6b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_1c1f618e-f209-4f04-923d-c80a066bed6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_002a7549-c4c9-44ad-8090-8e5c8e5c3245" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_1c1f618e-f209-4f04-923d-c80a066bed6a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails" xlink:type="extended" id="i760628ab4eff4e3e98de44819ed77796_REVENUEFROMCONTRACTSWITHCUSTOMERSTable3DisaggregationofRevenuesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_8c28a849-5db6-4f68-b9ae-32283ed9ba02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b4226f5c-886e-409d-88d9-642efdd9fbbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_8c28a849-5db6-4f68-b9ae-32283ed9ba02" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_b4226f5c-886e-409d-88d9-642efdd9fbbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLeaseIncome_8f64d36e-7a49-4899-9660-81f86e8d9836" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLeaseIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_8c28a849-5db6-4f68-b9ae-32283ed9ba02" xlink:to="loc_us-gaap_OperatingLeaseLeaseIncome_8f64d36e-7a49-4899-9660-81f86e8d9836" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_d5bb8cb5-f16b-4b37-ad8a-216e82211d40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_8c28a849-5db6-4f68-b9ae-32283ed9ba02" xlink:to="loc_us-gaap_Revenues_d5bb8cb5-f16b-4b37-ad8a-216e82211d40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_37e3792a-ad6e-4581-800c-dc4028657132" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_8c28a849-5db6-4f68-b9ae-32283ed9ba02" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_37e3792a-ad6e-4581-800c-dc4028657132" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8c6956c8-26a9-45fa-959c-1bda6680b4ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_37e3792a-ad6e-4581-800c-dc4028657132" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8c6956c8-26a9-45fa-959c-1bda6680b4ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8c6956c8-26a9-45fa-959c-1bda6680b4ca_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8c6956c8-26a9-45fa-959c-1bda6680b4ca" xlink:to="loc_us-gaap_SegmentDomain_8c6956c8-26a9-45fa-959c-1bda6680b4ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_1208d7b7-4502-40d4-a05e-88f1c6a5fce5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8c6956c8-26a9-45fa-959c-1bda6680b4ca" xlink:to="loc_us-gaap_SegmentDomain_1208d7b7-4502-40d4-a05e-88f1c6a5fce5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PipelineSegmentMember_57d9cc10-f665-4c13-8d8f-82c67855aa00" xlink:href="ns-20200930.xsd#ns_PipelineSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_1208d7b7-4502-40d4-a05e-88f1c6a5fce5" xlink:to="loc_ns_PipelineSegmentMember_57d9cc10-f665-4c13-8d8f-82c67855aa00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_StorageSegmentMember_6abc7ece-0b86-428e-b11c-cf30e2f2e8a5" xlink:href="ns-20200930.xsd#ns_StorageSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_1208d7b7-4502-40d4-a05e-88f1c6a5fce5" xlink:to="loc_ns_StorageSegmentMember_6abc7ece-0b86-428e-b11c-cf30e2f2e8a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_FuelsMarketingSegmentMember_5654530a-5382-4f49-9efe-b1d4d2c9c9c5" xlink:href="ns-20200930.xsd#ns_FuelsMarketingSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_1208d7b7-4502-40d4-a05e-88f1c6a5fce5" xlink:to="loc_ns_FuelsMarketingSegmentMember_5654530a-5382-4f49-9efe-b1d4d2c9c9c5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_37e3792a-ad6e-4581-800c-dc4028657132" xlink:to="loc_srt_ProductOrServiceAxis_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7" xlink:to="loc_srt_ProductsAndServicesDomain_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_e08c8f38-4155-4c3b-9dce-73ee9b10f5e7" xlink:to="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CrudeOilPipelinesMember_b0cfe569-bd65-4615-8433-d5602f2ddbd7" xlink:href="ns-20200930.xsd#ns_CrudeOilPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:to="loc_ns_CrudeOilPipelinesMember_b0cfe569-bd65-4615-8433-d5602f2ddbd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_RefinedProductsandAmmoniaPipelinesMember_83af13a7-b358-4763-9b50-aac10bec4fd4" xlink:href="ns-20200930.xsd#ns_RefinedProductsandAmmoniaPipelinesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:to="loc_ns_RefinedProductsandAmmoniaPipelinesMember_83af13a7-b358-4763-9b50-aac10bec4fd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ThroughputTerminalMember_fab48831-331d-4e52-91d9-d5c17015b273" xlink:href="ns-20200930.xsd#ns_ThroughputTerminalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:to="loc_ns_ThroughputTerminalMember_fab48831-331d-4e52-91d9-d5c17015b273" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_StorageTerminalMember_63120ac7-4881-4f6e-8c3f-a66340d1cefc" xlink:href="ns-20200930.xsd#ns_StorageTerminalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_0a968aa1-6ab8-4d2a-9ca1-b5c1b016429f" xlink:to="loc_ns_StorageTerminalMember_63120ac7-4881-4f6e-8c3f-a66340d1cefc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_dcf40509-a5d9-4eeb-b706-d32eda4e746b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_37e3792a-ad6e-4581-800c-dc4028657132" xlink:to="loc_srt_ConsolidationItemsAxis_dcf40509-a5d9-4eeb-b706-d32eda4e746b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_dcf40509-a5d9-4eeb-b706-d32eda4e746b_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_dcf40509-a5d9-4eeb-b706-d32eda4e746b" xlink:to="loc_srt_ConsolidationItemsDomain_dcf40509-a5d9-4eeb-b706-d32eda4e746b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_fa1e44e2-e1b9-4275-a8a7-4eea2a92bf42" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_dcf40509-a5d9-4eeb-b706-d32eda4e746b" xlink:to="loc_srt_ConsolidationItemsDomain_fa1e44e2-e1b9-4275-a8a7-4eea2a92bf42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_4acd8ee6-3b41-4c71-817c-88f0346e727f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_fa1e44e2-e1b9-4275-a8a7-4eea2a92bf42" xlink:to="loc_us-gaap_IntersegmentEliminationMember_4acd8ee6-3b41-4c71-817c-88f0346e727f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBT" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBT"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBT" xlink:type="extended" id="i50ee8f50dd244857b91c648fd0777f62_DEBT"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBTTables" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBTTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBTTables" xlink:type="extended" id="iecd43854d5bf485db7d0f7f4829021eb_DEBTTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBTNarrative1Details" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBTNarrative1Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBTNarrative1Details" xlink:type="extended" id="i96bc8c3fce4d4c32aed6040135c90c8c_DEBTNarrative1Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_503c0c83-51ed-4b53-ad94-a148d2ad8ca9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_503c0c83-51ed-4b53-ad94-a148d2ad8ca9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_23be18e8-262c-469c-af7b-002a5429e478" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_23be18e8-262c-469c-af7b-002a5429e478" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_189be519-4900-4e24-b4a2-63c7f19b0491" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_189be519-4900-4e24-b4a2-63c7f19b0491" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_37235527-3a7d-423d-b08a-02bbbd81c5b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_37235527-3a7d-423d-b08a-02bbbd81c5b2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionDescription_13716870-da24-4017-8a82-dd312f6b344b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentRedemptionDescription"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_DebtInstrumentRedemptionDescription_13716870-da24-4017-8a82-dd312f6b344b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_0ed42fde-1d19-4991-9117-0b334e40db0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_ca7fa979-7162-40ad-a95a-63871b73a286" xlink:to="loc_us-gaap_DebtInstrumentTable_0ed42fde-1d19-4991-9117-0b334e40db0c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_8a95989a-95ce-4407-8fc1-12d818f9c65e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_0ed42fde-1d19-4991-9117-0b334e40db0c" xlink:to="loc_us-gaap_DebtInstrumentAxis_8a95989a-95ce-4407-8fc1-12d818f9c65e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8a95989a-95ce-4407-8fc1-12d818f9c65e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_8a95989a-95ce-4407-8fc1-12d818f9c65e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8a95989a-95ce-4407-8fc1-12d818f9c65e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_012df334-e474-4594-9024-9c0e5b12c3b4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_8a95989a-95ce-4407-8fc1-12d818f9c65e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_012df334-e474-4594-9024-9c0e5b12c3b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2025Member_a3e57f92-b995-48a9-b62e-467f4323cb89" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_012df334-e474-4594-9024-9c0e5b12c3b4" xlink:to="loc_ns_LogisticsNotesDue2025Member_a3e57f92-b995-48a9-b62e-467f4323cb89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2030Member_69c8eba2-a84e-45bf-bb98-ab46f44bb888" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_012df334-e474-4594-9024-9c0e5b12c3b4" xlink:to="loc_ns_LogisticsNotesDue2030Member_69c8eba2-a84e-45bf-bb98-ab46f44bb888" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2020Member_122e27bc-8e6f-42d6-a845-c0b998e6c187" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_012df334-e474-4594-9024-9c0e5b12c3b4" xlink:to="loc_ns_LogisticsNotesDue2020Member_122e27bc-8e6f-42d6-a845-c0b998e6c187" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBTNarrative2Details" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBTNarrative2Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBTNarrative2Details" xlink:type="extended" id="ia18e861e4b2e409ebd6a337a517e19ff_DEBTNarrative2Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_f4ee8874-82bd-4901-ad56-3ed99c5f447c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_f4ee8874-82bd-4901-ad56-3ed99c5f447c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtTerm_b2bfbe0a-d30f-43ed-96ba-a7511d690b2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_LongTermDebtTerm_b2bfbe0a-d30f-43ed-96ba-a7511d690b2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebt_0e59bd41-6877-409b-8c5a-5f2b3689d225" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnsecuredDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_UnsecuredDebt_0e59bd41-6877-409b-8c5a-5f2b3689d225" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_3ea3af29-c4c5-409a-a35f-1da2eb0cf289" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_3ea3af29-c4c5-409a-a35f-1da2eb0cf289" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_OriginalIssueDiscount_21f3395f-39c3-484f-a2c7-b13d055391e7" xlink:href="ns-20200930.xsd#ns_OriginalIssueDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_ns_OriginalIssueDiscount_21f3395f-39c3-484f-a2c7-b13d055391e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_9d1ceedf-9462-4a28-a505-1d28a2951949" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_9d1ceedf-9462-4a28-a505-1d28a2951949" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f067647e-d7f2-4ddf-a5e2-808f79960acb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f067647e-d7f2-4ddf-a5e2-808f79960acb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ca4cb2aa-dcb3-49b6-bc08-c649d80a2578" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ca4cb2aa-dcb3-49b6-bc08-c649d80a2578" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_0edcff19-6c60-485e-b4f5-d026ab3e3926" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_0edcff19-6c60-485e-b4f5-d026ab3e3926" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_ad269b9b-c89e-46c6-9315-4c235abc20d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_ad269b9b-c89e-46c6-9315-4c235abc20d4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentPaymentTerms_7fd3cbfc-39b4-4cea-aa72-e388091cbab8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentPaymentTerms"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentPaymentTerms_7fd3cbfc-39b4-4cea-aa72-e388091cbab8" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_0cc2ba19-9262-432e-a83b-f8faaf3a8e88" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_0cc2ba19-9262-432e-a83b-f8faaf3a8e88" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_3c898fb0-fffe-446e-aed4-7c975c0235f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_3c898fb0-fffe-446e-aed4-7c975c0235f9" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_b95556b1-6194-4ae7-974f-c42fec6b3259" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_b95556b1-6194-4ae7-974f-c42fec6b3259" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_b512996f-5196-4444-9220-317da9cd1151" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eb0a206d-c1ae-47e0-9d86-019d7d157a92" xlink:to="loc_us-gaap_DebtInstrumentTable_b512996f-5196-4444-9220-317da9cd1151" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_ab41ca0a-b0b8-4d77-9338-d07bb7af2029" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_b512996f-5196-4444-9220-317da9cd1151" xlink:to="loc_us-gaap_DebtInstrumentAxis_ab41ca0a-b0b8-4d77-9338-d07bb7af2029" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ab41ca0a-b0b8-4d77-9338-d07bb7af2029_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_ab41ca0a-b0b8-4d77-9338-d07bb7af2029" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ab41ca0a-b0b8-4d77-9338-d07bb7af2029_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_ab41ca0a-b0b8-4d77-9338-d07bb7af2029" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_UnsecuredTermLoanCreditAgreementMember_2e245713-4516-4d75-99ae-cbc2647211dc" xlink:href="ns-20200930.xsd#ns_UnsecuredTermLoanCreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:to="loc_ns_UnsecuredTermLoanCreditAgreementMember_2e245713-4516-4d75-99ae-cbc2647211dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GozoneBondsMember_75158fa4-c95d-408f-a0ed-ad5cfefdf041" xlink:href="ns-20200930.xsd#ns_GozoneBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:to="loc_ns_GozoneBondsMember_75158fa4-c95d-408f-a0ed-ad5cfefdf041" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2020Member_74391e7e-c16a-4ba5-8291-ef467f9e34c2" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:to="loc_ns_LogisticsNotesDue2020Member_74391e7e-c16a-4ba5-8291-ef467f9e34c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2025Member_a0a5f566-ebde-4fa4-888e-183ca8a16b5c" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:to="loc_ns_LogisticsNotesDue2025Member_a0a5f566-ebde-4fa4-888e-183ca8a16b5c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsNotesDue2030Member_cd10685a-cb2c-49a6-bf09-37f3fe1a0b70" xlink:href="ns-20200930.xsd#ns_LogisticsNotesDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a153b887-2816-4834-a474-021154d8f86a" xlink:to="loc_ns_LogisticsNotesDue2030Member_cd10685a-cb2c-49a6-bf09-37f3fe1a0b70" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DebtExtinguishmentCostsTypeAxis_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57" xlink:href="ns-20200930.xsd#ns_DebtExtinguishmentCostsTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_b512996f-5196-4444-9220-317da9cd1151" xlink:to="loc_ns_DebtExtinguishmentCostsTypeAxis_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DebtExtinguishmentCostsTypeDomain_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57_default" xlink:href="ns-20200930.xsd#ns_DebtExtinguishmentCostsTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ns_DebtExtinguishmentCostsTypeAxis_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57" xlink:to="loc_ns_DebtExtinguishmentCostsTypeDomain_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DebtExtinguishmentCostsTypeDomain_6c4d3ac8-a772-44db-8729-b8ebd9f836ef" xlink:href="ns-20200930.xsd#ns_DebtExtinguishmentCostsTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ns_DebtExtinguishmentCostsTypeAxis_7d4877c8-8c30-42ea-9d9b-8f8b7ac8bd57" xlink:to="loc_ns_DebtExtinguishmentCostsTypeDomain_6c4d3ac8-a772-44db-8729-b8ebd9f836ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_EarlyRepaymentPremiumsMember_e479a1ac-53e1-49fd-a444-aa903e6c25dc" xlink:href="ns-20200930.xsd#ns_EarlyRepaymentPremiumsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ns_DebtExtinguishmentCostsTypeDomain_6c4d3ac8-a772-44db-8729-b8ebd9f836ef" xlink:to="loc_ns_EarlyRepaymentPremiumsMember_e479a1ac-53e1-49fd-a444-aa903e6c25dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_UnamortizedDebtIssuanceCostsUnamortizedDiscountAndCommitmentFeeMember_e17938e2-78c1-4b96-b83b-6b1db43ac455" xlink:href="ns-20200930.xsd#ns_UnamortizedDebtIssuanceCostsUnamortizedDiscountAndCommitmentFeeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ns_DebtExtinguishmentCostsTypeDomain_6c4d3ac8-a772-44db-8729-b8ebd9f836ef" xlink:to="loc_ns_UnamortizedDebtIssuanceCostsUnamortizedDiscountAndCommitmentFeeMember_e17938e2-78c1-4b96-b83b-6b1db43ac455" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBTGoZoneBondsTableDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBTGoZoneBondsTableDetails" xlink:type="extended" id="i8507877b08724e4bad9344e392be6e0f_DEBTGoZoneBondsTableDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentIssuanceDate1_da0fef9c-940f-456f-aa72-41a649f2e55a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentIssuanceDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:to="loc_us-gaap_DebtInstrumentIssuanceDate1_da0fef9c-940f-456f-aa72-41a649f2e55a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_f9ae338a-5efa-4a12-9df6-cbef6e721124" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_f9ae338a-5efa-4a12-9df6-cbef6e721124" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_35152419-da27-4b22-b6c8-742edc4ad06e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_35152419-da27-4b22-b6c8-742edc4ad06e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentMaturityDate_f07beeca-c376-4476-9ade-bec7caae0634" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentMaturityDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:to="loc_us-gaap_DebtInstrumentMaturityDate_f07beeca-c376-4476-9ade-bec7caae0634" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_288af5e3-5f14-499a-8605-d519d707165f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_510bbb1f-9635-472b-98ec-f37af2e33d5a" xlink:to="loc_us-gaap_DebtInstrumentTable_288af5e3-5f14-499a-8605-d519d707165f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_f5532fb2-dbbd-4a6f-9af2-56e25cea1227" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_288af5e3-5f14-499a-8605-d519d707165f" xlink:to="loc_us-gaap_DebtInstrumentAxis_f5532fb2-dbbd-4a6f-9af2-56e25cea1227" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_f5532fb2-dbbd-4a6f-9af2-56e25cea1227_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_f5532fb2-dbbd-4a6f-9af2-56e25cea1227" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_f5532fb2-dbbd-4a6f-9af2-56e25cea1227_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_f5532fb2-dbbd-4a6f-9af2-56e25cea1227" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GoZoneBondsDueJune2038Member_6659c0c2-0f30-43b2-b063-c22b28fa149d" xlink:href="ns-20200930.xsd#ns_GoZoneBondsDueJune2038Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GoZoneBondsDueJune2038Member_6659c0c2-0f30-43b2-b063-c22b28fa149d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GoZoneBondsDueJuly2040Member_1feb94cd-cefe-4cdc-9646-e2f9c7d40771" xlink:href="ns-20200930.xsd#ns_GoZoneBondsDueJuly2040Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GoZoneBondsDueJuly2040Member_1feb94cd-cefe-4cdc-9646-e2f9c7d40771" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GoZoneBondsDueOctober2040Member_eed1345f-2fc6-4499-9aa0-7bdd67b39954" xlink:href="ns-20200930.xsd#ns_GoZoneBondsDueOctober2040Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GoZoneBondsDueOctober2040Member_eed1345f-2fc6-4499-9aa0-7bdd67b39954" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GoZoneBondsDueDecember2040Member_d792de1d-034c-44fa-a3ef-4fadcf4954a6" xlink:href="ns-20200930.xsd#ns_GoZoneBondsDueDecember2040Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GoZoneBondsDueDecember2040Member_d792de1d-034c-44fa-a3ef-4fadcf4954a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GoZoneBondsDueAugust2041Member_ed98c540-2849-4222-b7d1-a4fb61ab4052" xlink:href="ns-20200930.xsd#ns_GoZoneBondsDueAugust2041Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GoZoneBondsDueAugust2041Member_ed98c540-2849-4222-b7d1-a4fb61ab4052" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GozoneBondsMember_fd9becff-1eec-4a46-825d-013a31c7a421" xlink:href="ns-20200930.xsd#ns_GozoneBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bdfc595f-4904-45dc-babb-2682fd8c9a77" xlink:to="loc_ns_GozoneBondsMember_fd9becff-1eec-4a46-825d-013a31c7a421" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DEBTNarrative3Details" xlink:type="simple" xlink:href="ns-20200930.xsd#DEBTNarrative3Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DEBTNarrative3Details" xlink:type="extended" id="icaf8bde35082466b92be497f64adeeaf_DEBTNarrative3Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentDescription_0f855248-fc3c-4330-a282-046a193881ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentDescription"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_DebtInstrumentDescription_0f855248-fc3c-4330-a282-046a193881ec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_eb5613fd-bfd7-43b0-965f-17b17cc700c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_eb5613fd-bfd7-43b0-965f-17b17cc700c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_7a977f54-1d22-41bd-9998-9c9e6eaa264a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_7a977f54-1d22-41bd-9998-9c9e6eaa264a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_4bb9342f-4b20-4dff-88ba-4f0fe65f7d6b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_4bb9342f-4b20-4dff-88ba-4f0fe65f7d6b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateDescription_4879e082-dbfa-491e-bf34-9b7fc56c5999" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityInterestRateDescription"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateDescription_4879e082-dbfa-491e-bf34-9b7fc56c5999" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCovenantTerms_f9bd2d96-3e47-4c33-8cac-935ec504cf97" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityCovenantTerms"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_LineOfCreditFacilityCovenantTerms_f9bd2d96-3e47-4c33-8cac-935ec504cf97" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_d126f6d5-2adf-4016-a06e-a97a6ba37323" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_d126f6d5-2adf-4016-a06e-a97a6ba37323" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_5e192ea7-f587-43ea-9e2e-340ab7fd2bfd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_5e192ea7-f587-43ea-9e2e-340ab7fd2bfd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCollateralAmount_6282d6f4-8f51-4df3-b7a0-a82e564706b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCollateralAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_DebtInstrumentCollateralAmount_6282d6f4-8f51-4df3-b7a0-a82e564706b5" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_ca861cf7-425e-4518-ab85-9f5f3eec1293" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_313c213b-c7cb-4322-acbf-2944b7a140a0" xlink:to="loc_us-gaap_DebtInstrumentTable_ca861cf7-425e-4518-ab85-9f5f3eec1293" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_986e819b-ed8b-4df6-9f5a-484a783f736e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_ca861cf7-425e-4518-ab85-9f5f3eec1293" xlink:to="loc_us-gaap_DebtInstrumentAxis_986e819b-ed8b-4df6-9f5a-484a783f736e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_986e819b-ed8b-4df6-9f5a-484a783f736e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_986e819b-ed8b-4df6-9f5a-484a783f736e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_986e819b-ed8b-4df6-9f5a-484a783f736e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_dd02eb51-0d74-4d4c-9ea3-ed11db3ef0dd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_986e819b-ed8b-4df6-9f5a-484a783f736e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_dd02eb51-0d74-4d4c-9ea3-ed11db3ef0dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_GozoneBondsMember_39b983b3-b355-4e99-b713-9b33d269979d" xlink:href="ns-20200930.xsd#ns_GozoneBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_dd02eb51-0d74-4d4c-9ea3-ed11db3ef0dd" xlink:to="loc_ns_GozoneBondsMember_39b983b3-b355-4e99-b713-9b33d269979d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_LogisticsRevolvingCreditAgreementMember_3c18395a-7b59-4da9-91bb-43e172b25800" xlink:href="ns-20200930.xsd#ns_LogisticsRevolvingCreditAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_dd02eb51-0d74-4d4c-9ea3-ed11db3ef0dd" xlink:to="loc_ns_LogisticsRevolvingCreditAgreementMember_3c18395a-7b59-4da9-91bb-43e172b25800" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_AmendedReceivablesFinancingAgreementMember_dd399af4-9b7e-403a-a616-95b980d2454c" xlink:href="ns-20200930.xsd#ns_AmendedReceivablesFinancingAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_dd02eb51-0d74-4d4c-9ea3-ed11db3ef0dd" xlink:to="loc_ns_AmendedReceivablesFinancingAgreementMember_dd399af4-9b7e-403a-a616-95b980d2454c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIES" xlink:type="simple" xlink:href="ns-20200930.xsd#COMMITMENTSANDCONTINGENCIES"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIES" xlink:type="extended" id="i503c769589de4241a1d3680197cef9ca_COMMITMENTSANDCONTINGENCIES"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#COMMITMENTSANDCONTINGENCIESNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/COMMITMENTSANDCONTINGENCIESNarrativeDetails" xlink:type="extended" id="i0ba820cbd9fd4f44b57522d769523bc5_COMMITMENTSANDCONTINGENCIESNarrativeDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTS" xlink:type="extended" id="i2954108afe354c83b167ffa8ec36231b_DERIVATIVESANDFAIRVALUEMEASUREMENTS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTSTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTables" xlink:type="extended" id="if3f36111c8ed464aa41c7664290d0338_DERIVATIVESANDFAIRVALUEMEASUREMENTSTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details" xlink:type="extended" id="i668865fad8ef474cb5f75d6a99311d58_DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative1Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFixedInterestRate_e940f45e-a636-4b47-970b-2bedae8c5c92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFixedInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:to="loc_us-gaap_DerivativeFixedInterestRate_e940f45e-a636-4b47-970b-2bedae8c5c92" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_InterestRateSwapsInterestRateReceived_6226cce9-e45a-4ad6-84ec-4a119eafd57d" xlink:href="ns-20200930.xsd#ns_InterestRateSwapsInterestRateReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:to="loc_ns_InterestRateSwapsInterestRateReceived_6226cce9-e45a-4ad6-84ec-4a119eafd57d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DerivativeNotionalAmountTerminated_0e2f4e40-6e3f-4c23-8f0d-87c7b12b3aa7" xlink:href="ns-20200930.xsd#ns_DerivativeNotionalAmountTerminated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:to="loc_ns_DerivativeNotionalAmountTerminated_0e2f4e40-6e3f-4c23-8f0d-87c7b12b3aa7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeCostOfHedgeNetOfCashReceived_abb275e1-a47b-4daf-8918-af9329bb7b6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeCostOfHedgeNetOfCashReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:to="loc_us-gaap_DerivativeCostOfHedgeNetOfCashReceived_abb275e1-a47b-4daf-8918-af9329bb7b6c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_f5a09bcf-832f-4341-a8d5-d202e1a4843d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_85663d14-8530-4e37-a13d-291ff211e1ec" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_f5a09bcf-832f-4341-a8d5-d202e1a4843d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_379e7cc9-7992-4432-abe0-f484ed8fc97a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_f5a09bcf-832f-4341-a8d5-d202e1a4843d" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_379e7cc9-7992-4432-abe0-f484ed8fc97a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_379e7cc9-7992-4432-abe0-f484ed8fc97a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_379e7cc9-7992-4432-abe0-f484ed8fc97a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_379e7cc9-7992-4432-abe0-f484ed8fc97a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_562bb92d-0fcc-46a1-962f-bd32ef673841" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_379e7cc9-7992-4432-abe0-f484ed8fc97a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_562bb92d-0fcc-46a1-962f-bd32ef673841" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_e95d5dd9-4284-4d5d-b3d6-08a94d09dfa3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_562bb92d-0fcc-46a1-962f-bd32ef673841" xlink:to="loc_us-gaap_InterestRateContractMember_e95d5dd9-4284-4d5d-b3d6-08a94d09dfa3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3d8da63c-5476-4790-9c20-5e4ffd219b27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_f5a09bcf-832f-4341-a8d5-d202e1a4843d" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3d8da63c-5476-4790-9c20-5e4ffd219b27" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_3d8da63c-5476-4790-9c20-5e4ffd219b27_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3d8da63c-5476-4790-9c20-5e4ffd219b27" xlink:to="loc_us-gaap_HedgingRelationshipDomain_3d8da63c-5476-4790-9c20-5e4ffd219b27_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_2665f7a2-baa2-41a6-a061-a7eb50d5f668" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3d8da63c-5476-4790-9c20-5e4ffd219b27" xlink:to="loc_us-gaap_HedgingRelationshipDomain_2665f7a2-baa2-41a6-a061-a7eb50d5f668" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_dc53ee1a-94b4-49f2-bd5d-124f58f3ccde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_2665f7a2-baa2-41a6-a061-a7eb50d5f668" xlink:to="loc_us-gaap_CashFlowHedgingMember_dc53ee1a-94b4-49f2-bd5d-124f58f3ccde" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails" xlink:type="extended" id="ie8e90fee618b43a8ac8178599c33ac23_DERIVATIVESANDFAIRVALUEMEASUREMENTSTable1ImpactofDerivativesonEarningsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_3421241f-0881-4da6-a6a8-fec7b83710f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_5742c42c-71c7-4d22-8df1-2a5efdd10df8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_3421241f-0881-4da6-a6a8-fec7b83710f5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_5742c42c-71c7-4d22-8df1-2a5efdd10df8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_8c4c0923-87c7-40cc-b849-8ee735480162" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_3421241f-0881-4da6-a6a8-fec7b83710f5" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_8c4c0923-87c7-40cc-b849-8ee735480162" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_3421241f-0881-4da6-a6a8-fec7b83710f5" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_101b383a-36b5-4691-8534-3de7bc80dd4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_101b383a-36b5-4691-8534-3de7bc80dd4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_101b383a-36b5-4691-8534-3de7bc80dd4a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_101b383a-36b5-4691-8534-3de7bc80dd4a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_101b383a-36b5-4691-8534-3de7bc80dd4a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b8189a76-cbbb-4f7a-9303-633366fbd88f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_101b383a-36b5-4691-8534-3de7bc80dd4a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b8189a76-cbbb-4f7a-9303-633366fbd88f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_912281c5-a565-42bb-98f3-9d5d4f90ccb4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b8189a76-cbbb-4f7a-9303-633366fbd88f" xlink:to="loc_us-gaap_InterestRateContractMember_912281c5-a565-42bb-98f3-9d5d4f90ccb4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_b2fdf58c-9024-4eb3-9c24-d0eafb501b53" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_b2fdf58c-9024-4eb3-9c24-d0eafb501b53" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b2fdf58c-9024-4eb3-9c24-d0eafb501b53_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b2fdf58c-9024-4eb3-9c24-d0eafb501b53" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b2fdf58c-9024-4eb3-9c24-d0eafb501b53_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_1ac72a4d-b07a-40cc-b214-ce282108a48d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b2fdf58c-9024-4eb3-9c24-d0eafb501b53" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_1ac72a4d-b07a-40cc-b214-ce282108a48d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeMember_bfb9c7c6-d22c-4c36-a545-4dc02b6b9724" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1ac72a4d-b07a-40cc-b214-ce282108a48d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeMember_bfb9c7c6-d22c-4c36-a545-4dc02b6b9724" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_189b4120-cad9-4a6d-ad35-1287b573c115" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1ac72a4d-b07a-40cc-b214-ce282108a48d" xlink:to="loc_us-gaap_InterestExpenseMember_189b4120-cad9-4a6d-ad35-1287b573c115" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_077d10a4-09b0-4d2a-b7da-7f88993d2991" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:to="loc_us-gaap_HedgingDesignationAxis_077d10a4-09b0-4d2a-b7da-7f88993d2991" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_077d10a4-09b0-4d2a-b7da-7f88993d2991_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_077d10a4-09b0-4d2a-b7da-7f88993d2991" xlink:to="loc_us-gaap_HedgingDesignationDomain_077d10a4-09b0-4d2a-b7da-7f88993d2991_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_035ff3dd-7b2c-4a19-9d24-71afbd5392d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_077d10a4-09b0-4d2a-b7da-7f88993d2991" xlink:to="loc_us-gaap_HedgingDesignationDomain_035ff3dd-7b2c-4a19-9d24-71afbd5392d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_5ef09523-5b1b-4545-85a5-00ba1740a0dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_035ff3dd-7b2c-4a19-9d24-71afbd5392d3" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_5ef09523-5b1b-4545-85a5-00ba1740a0dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_e2fee02a-f629-4f41-9e44-89d35b013a55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_748e0144-12ff-4833-8ee7-fed38a0cafa6" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_e2fee02a-f629-4f41-9e44-89d35b013a55" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_e2fee02a-f629-4f41-9e44-89d35b013a55_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_e2fee02a-f629-4f41-9e44-89d35b013a55" xlink:to="loc_us-gaap_HedgingRelationshipDomain_e2fee02a-f629-4f41-9e44-89d35b013a55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_b6c829d0-effc-406c-92e8-16593c7b3a16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_e2fee02a-f629-4f41-9e44-89d35b013a55" xlink:to="loc_us-gaap_HedgingRelationshipDomain_b6c829d0-effc-406c-92e8-16593c7b3a16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_5110d21b-3cc4-4be5-aa51-0c40e8a3270a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_b6c829d0-effc-406c-92e8-16593c7b3a16" xlink:to="loc_us-gaap_CashFlowHedgingMember_5110d21b-3cc4-4be5-aa51-0c40e8a3270a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details" xlink:type="extended" id="iaebba4329f8e4b19868140df4c1e822f_DERIVATIVESANDFAIRVALUEMEASUREMENTSNarrative2Details">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_af0b03f2-6780-4167-885b-63b7a6ad733f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet_9285dc65-48e7-4cc7-af63-c577f74bd99c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_af0b03f2-6780-4167-885b-63b7a6ad733f" xlink:to="loc_us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet_9285dc65-48e7-4cc7-af63-c577f74bd99c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_502ae5e0-9ee5-47c7-8cf5-328bff125865" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_af0b03f2-6780-4167-885b-63b7a6ad733f" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_502ae5e0-9ee5-47c7-8cf5-328bff125865" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_918c14e0-ffa6-46f8-bc17-d3ccf860dd66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_af0b03f2-6780-4167-885b-63b7a6ad733f" xlink:to="loc_us-gaap_DerivativeNotionalAmount_918c14e0-ffa6-46f8-bc17-d3ccf860dd66" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_af0b03f2-6780-4167-885b-63b7a6ad733f" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_d7dc4429-132c-45ee-a0c1-96e9549f68b6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_d7dc4429-132c-45ee-a0c1-96e9549f68b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_d7dc4429-132c-45ee-a0c1-96e9549f68b6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_d7dc4429-132c-45ee-a0c1-96e9549f68b6" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_d7dc4429-132c-45ee-a0c1-96e9549f68b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_7988399d-1519-4ca0-9060-2d19b46c3feb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_d7dc4429-132c-45ee-a0c1-96e9549f68b6" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_7988399d-1519-4ca0-9060-2d19b46c3feb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_061d0531-4983-42f2-8187-9bc924b99447" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_7988399d-1519-4ca0-9060-2d19b46c3feb" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_061d0531-4983-42f2-8187-9bc924b99447" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_9f4a7d2d-0b84-4b84-9933-dc954cd62462" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_9f4a7d2d-0b84-4b84-9933-dc954cd62462" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9f4a7d2d-0b84-4b84-9933-dc954cd62462_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9f4a7d2d-0b84-4b84-9933-dc954cd62462" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9f4a7d2d-0b84-4b84-9933-dc954cd62462_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_af79fe9e-abd5-41f6-b8c3-afbfcc0ef747" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_9f4a7d2d-0b84-4b84-9933-dc954cd62462" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_af79fe9e-abd5-41f6-b8c3-afbfcc0ef747" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_6d607d43-5a74-4c88-8476-0b16a5d413ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_af79fe9e-abd5-41f6-b8c3-afbfcc0ef747" xlink:to="loc_us-gaap_InterestRateContractMember_6d607d43-5a74-4c88-8476-0b16a5d413ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2f24f9b2-11d8-469d-af78-8e69602d563b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2f24f9b2-11d8-469d-af78-8e69602d563b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2f24f9b2-11d8-469d-af78-8e69602d563b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2f24f9b2-11d8-469d-af78-8e69602d563b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2f24f9b2-11d8-469d-af78-8e69602d563b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_da3b4888-05f2-44e3-9ef5-2d8e2075b6b6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2f24f9b2-11d8-469d-af78-8e69602d563b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_da3b4888-05f2-44e3-9ef5-2d8e2075b6b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_3eeb452e-460e-4ad0-b9c3-9c2bfe028f61" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_da3b4888-05f2-44e3-9ef5-2d8e2075b6b6" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_3eeb452e-460e-4ad0-b9c3-9c2bfe028f61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_258d4869-c1b3-4335-b416-814e55c76b55" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:to="loc_us-gaap_HedgingDesignationAxis_258d4869-c1b3-4335-b416-814e55c76b55" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_258d4869-c1b3-4335-b416-814e55c76b55_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_258d4869-c1b3-4335-b416-814e55c76b55" xlink:to="loc_us-gaap_HedgingDesignationDomain_258d4869-c1b3-4335-b416-814e55c76b55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_47062ec7-ae1c-43c0-90a0-c61d954900a7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_258d4869-c1b3-4335-b416-814e55c76b55" xlink:to="loc_us-gaap_HedgingDesignationDomain_47062ec7-ae1c-43c0-90a0-c61d954900a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_a3391e2c-1556-4980-974b-ba2123391f24" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_47062ec7-ae1c-43c0-90a0-c61d954900a7" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_a3391e2c-1556-4980-974b-ba2123391f24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_bf159c07-2596-4d59-a7ac-2ccf0d5deea9" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10" xlink:to="loc_us-gaap_HedgingRelationshipDomain_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_3b09e383-537f-466c-bb7f-581bf368d96f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_4d0f7018-e40d-4b8a-8b5c-e5a59d96fd10" xlink:to="loc_us-gaap_HedgingRelationshipDomain_3b09e383-537f-466c-bb7f-581bf368d96f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_98b19187-033c-4a9c-8a4c-909f9f8a132b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_3b09e383-537f-466c-bb7f-581bf368d96f" xlink:to="loc_us-gaap_CashFlowHedgingMember_98b19187-033c-4a9c-8a4c-909f9f8a132b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails" xlink:type="extended" id="i66d879c260bb43df9034745904eeaa03_DERIVATIVESANDFAIRVALUEMEASUREMENTSTable2EstimatedFairValuesandCarryingAmountsofLongTermDebtDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS" xlink:type="simple" xlink:href="ns-20200930.xsd#SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS" xlink:type="extended" id="i78a2b42aff36407ab244777ed94d7e72_SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails" xlink:type="extended" id="iaa3b881a2e3f48ecad98562f63d24b35_SERIESDCUMULATIVECONVERTIBLEPREFERREDUNITSNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_21a612a2-cb2d-459e-84db-bf1687cdbf94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_21a612a2-cb2d-459e-84db-bf1687cdbf94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDividendAmountPerUnitPerDistributionPeriod_8ec5e76a-e2aa-498f-8992-c063f9a7e25b" xlink:href="ns-20200930.xsd#ns_PreferredStockDividendAmountPerUnitPerDistributionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_ns_PreferredStockDividendAmountPerUnitPerDistributionPeriod_8ec5e76a-e2aa-498f-8992-c063f9a7e25b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendPaymentRateVariable_8c9c762f-6dc7-43f4-b03e-cb6724bada27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendPaymentRateVariable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_us-gaap_PreferredStockDividendPaymentRateVariable_8c9c762f-6dc7-43f4-b03e-cb6724bada27" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_MinimumPerUnitCashDividendRequiredToPermitDividendInKind_b99f9f65-c92c-4281-a6c5-0cbb1de860f0" xlink:href="ns-20200930.xsd#ns_MinimumPerUnitCashDividendRequiredToPermitDividendInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_ns_MinimumPerUnitCashDividendRequiredToPermitDividendInKind_b99f9f65-c92c-4281-a6c5-0cbb1de860f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_4df8ca6e-eeaa-48f8-ac9d-19a1381e722e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_4df8ca6e-eeaa-48f8-ac9d-19a1381e722e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_71fe2ca9-8acc-468f-beca-002eca39c327" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_923bca1a-2dc7-4675-acb0-d40c0c79ee23" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_923bca1a-2dc7-4675-acb0-d40c0c79ee23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_923bca1a-2dc7-4675-acb0-d40c0c79ee23_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_923bca1a-2dc7-4675-acb0-d40c0c79ee23" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_923bca1a-2dc7-4675-acb0-d40c0c79ee23_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_6e571734-b6cb-496b-9cd7-75d81dfc5d34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_923bca1a-2dc7-4675-acb0-d40c0c79ee23" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_6e571734-b6cb-496b-9cd7-75d81dfc5d34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_554bd735-9003-4f79-adc3-470ec492075b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_6e571734-b6cb-496b-9cd7-75d81dfc5d34" xlink:to="loc_us-gaap_SubsequentEventMember_554bd735-9003-4f79-adc3-470ec492075b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis_61c92c86-e2c0-4f05-a361-5c295c0bca0e" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:to="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis_61c92c86-e2c0-4f05-a361-5c295c0bca0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodDomain_61c92c86-e2c0-4f05-a361-5c295c0bca0e_default" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis_61c92c86-e2c0-4f05-a361-5c295c0bca0e" xlink:to="loc_ns_PreferredStockDistributionsPeriodDomain_61c92c86-e2c0-4f05-a361-5c295c0bca0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodDomain_81821097-d6a3-4978-bc50-b89bc5a92e52" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveAxis_61c92c86-e2c0-4f05-a361-5c295c0bca0e" xlink:to="loc_ns_PreferredStockDistributionsPeriodDomain_81821097-d6a3-4978-bc50-b89bc5a92e52" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292018toJune282020Member_606205e1-1317-4d9d-aaa3-73e4c97961a4" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292018toJune282020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ns_PreferredStockDistributionsPeriodDomain_81821097-d6a3-4978-bc50-b89bc5a92e52" xlink:to="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292018toJune282020Member_606205e1-1317-4d9d-aaa3-73e4c97961a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292020toJune282023Member_68be2e71-0267-4097-9cc4-294b182f09d2" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292020toJune282023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ns_PreferredStockDistributionsPeriodDomain_81821097-d6a3-4978-bc50-b89bc5a92e52" xlink:to="loc_ns_PreferredStockDistributionsPeriodDuringWhichRateIsEffectiveJune292020toJune282023Member_68be2e71-0267-4097-9cc4-294b182f09d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredStockDistributionsPeriodPeriodDuringWhichRateIsEffectiveJune292023andthereafterMember_d8aa01a6-ab6b-4abf-b357-af4d3e321f33" xlink:href="ns-20200930.xsd#ns_PreferredStockDistributionsPeriodPeriodDuringWhichRateIsEffectiveJune292023andthereafterMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ns_PreferredStockDistributionsPeriodDomain_81821097-d6a3-4978-bc50-b89bc5a92e52" xlink:to="loc_ns_PreferredStockDistributionsPeriodPeriodDuringWhichRateIsEffectiveJune292023andthereafterMember_d8aa01a6-ab6b-4abf-b357-af4d3e321f33" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_c4cb551b-9646-44e9-82e6-fddb907df26e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_3b1fcc5b-32df-40f6-bcdd-23e0b2805c45" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_c4cb551b-9646-44e9-82e6-fddb907df26e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesDPreferredLimitedPartnerMember_f0d11013-3a4b-4e49-9bc3-735faceb9ef4" xlink:href="ns-20200930.xsd#ns_SeriesDPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_c4cb551b-9646-44e9-82e6-fddb907df26e" xlink:to="loc_ns_SeriesDPreferredLimitedPartnerMember_f0d11013-3a4b-4e49-9bc3-735faceb9ef4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_a3edce4c-6bca-4ba4-8a65-6940b9511926" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_d3495ac6-e1ae-49ed-ac9d-72738f259648" xlink:to="loc_srt_RangeAxis_a3edce4c-6bca-4ba4-8a65-6940b9511926" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a3edce4c-6bca-4ba4-8a65-6940b9511926_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_a3edce4c-6bca-4ba4-8a65-6940b9511926" xlink:to="loc_srt_RangeMember_a3edce4c-6bca-4ba4-8a65-6940b9511926_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5b189440-fc97-46d5-9c2d-d9d451423899" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_a3edce4c-6bca-4ba4-8a65-6940b9511926" xlink:to="loc_srt_RangeMember_5b189440-fc97-46d5-9c2d-d9d451423899" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3422b6dc-5358-47e4-8ada-895d86941877" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5b189440-fc97-46d5-9c2d-d9d451423899" xlink:to="loc_srt_MinimumMember_3422b6dc-5358-47e4-8ada-895d86941877" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITY" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITY" xlink:type="extended" id="ie12ee40e73824db4b20247040f2d24a4_PARTNERSEQUITY"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITYTables" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITYTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITYTables" xlink:type="extended" id="i5acf8c21b64f45f1b2cf4b93250a469f_PARTNERSEQUITYTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_e9d7f364-7c95-462b-9d2d-e686251cd7e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionsMadeToLimitedPartnerByDistributionTableTextBlock_4e8302ea-c0c0-435c-a094-3047e12cdce8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionsMadeToLimitedPartnerByDistributionTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_e9d7f364-7c95-462b-9d2d-e686251cd7e3" xlink:to="loc_us-gaap_DistributionsMadeToLimitedPartnerByDistributionTableTextBlock_4e8302ea-c0c0-435c-a094-3047e12cdce8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_e7e40b72-8783-40d2-9593-96402ef15e97" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_e9d7f364-7c95-462b-9d2d-e686251cd7e3" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_e7e40b72-8783-40d2-9593-96402ef15e97" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f7057483-7aac-4e8a-9e5e-24b684cceb43" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_e7e40b72-8783-40d2-9593-96402ef15e97" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f7057483-7aac-4e8a-9e5e-24b684cceb43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_f7057483-7aac-4e8a-9e5e-24b684cceb43_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f7057483-7aac-4e8a-9e5e-24b684cceb43" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_f7057483-7aac-4e8a-9e5e-24b684cceb43_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bbccdf04-ffb5-4911-a845-bd53f2c25ebd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f7057483-7aac-4e8a-9e5e-24b684cceb43" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bbccdf04-ffb5-4911-a845-bd53f2c25ebd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredLimitedPartnerMember_82dc9fa9-18c8-4f3f-adee-ef208a78585e" xlink:href="ns-20200930.xsd#ns_PreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bbccdf04-ffb5-4911-a845-bd53f2c25ebd" xlink:to="loc_ns_PreferredLimitedPartnerMember_82dc9fa9-18c8-4f3f-adee-ef208a78585e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CommonLimitedPartnerMember_7913eddc-f95d-41bb-8150-bf9bb3580d0f" xlink:href="ns-20200930.xsd#ns_CommonLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_bbccdf04-ffb5-4911-a845-bd53f2c25ebd" xlink:to="loc_ns_CommonLimitedPartnerMember_7913eddc-f95d-41bb-8150-bf9bb3580d0f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails" xlink:type="extended" id="i35afc562830b4d25aa261d323fac64da_PARTNERSEQUITYTable1CashDistributionsPreferredUnitsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_d73b9200-ac1c-4cde-aab6-468f99e37e80" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendRatePercentage_ede82e61-dd0f-4592-bee4-fed02ce83734" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_d73b9200-ac1c-4cde-aab6-468f99e37e80" xlink:to="loc_us-gaap_PreferredStockDividendRatePercentage_ede82e61-dd0f-4592-bee4-fed02ce83734" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_3d29db8f-7275-4018-85d3-73ccb4b8d184" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_d73b9200-ac1c-4cde-aab6-468f99e37e80" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_3d29db8f-7275-4018-85d3-73ccb4b8d184" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapitalAccountDistributions_01230239-a527-4be5-8208-9a604e8da44c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapitalAccountDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_d73b9200-ac1c-4cde-aab6-468f99e37e80" xlink:to="loc_us-gaap_PartnersCapitalAccountDistributions_01230239-a527-4be5-8208-9a604e8da44c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_15ed1b1e-75c7-42be-a7b6-71c167caeb96" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionsMadeToLimitedPartnerTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_d73b9200-ac1c-4cde-aab6-468f99e37e80" xlink:to="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_15ed1b1e-75c7-42be-a7b6-71c167caeb96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_15ed1b1e-75c7-42be-a7b6-71c167caeb96" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_f8e6a9d1-550d-4a65-bd35-ca272ce1c61e" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesAPreferredLimitedPartnerMember_02a717d3-52f1-40b8-b159-1ffd01bf94a3" xlink:href="ns-20200930.xsd#ns_SeriesAPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:to="loc_ns_SeriesAPreferredLimitedPartnerMember_02a717d3-52f1-40b8-b159-1ffd01bf94a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesBPreferredLimitedPartnerMember_7225d655-6b9f-4a36-9eb0-e088f289ab72" xlink:href="ns-20200930.xsd#ns_SeriesBPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:to="loc_ns_SeriesBPreferredLimitedPartnerMember_7225d655-6b9f-4a36-9eb0-e088f289ab72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_SeriesCPreferredLimitedPartnerMember_eabde142-88c8-4dce-9456-3684778e8fdd" xlink:href="ns-20200930.xsd#ns_SeriesCPreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:to="loc_ns_SeriesCPreferredLimitedPartnerMember_eabde142-88c8-4dce-9456-3684778e8fdd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PreferredLimitedPartnerMember_ff88dbd6-3fb6-444f-91b5-d919519d7ae3" xlink:href="ns-20200930.xsd#ns_PreferredLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_7f8878dd-97b2-4765-aae2-c3f0d6f65ff4" xlink:to="loc_ns_PreferredLimitedPartnerMember_ff88dbd6-3fb6-444f-91b5-d919519d7ae3" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITYNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITYNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITYNarrativeDetails" xlink:type="extended" id="i60ca3ce112514537b253011f1d9377cb_PARTNERSEQUITYNarrativeDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails" xlink:type="extended" id="i4c14bc22d65c4938835b7f13cb07a404_PARTNERSEQUITYTable2CashDistributionsDeclaredCommonLimitedPartnersDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_a57239e8-5772-403b-a462-2d8a29975983" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerDistributionsDeclaredPerUnit_a57239e8-5772-403b-a462-2d8a29975983" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerCashDistributionsDeclared_b593374a-2214-457a-9087-211398fbd412" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerCashDistributionsDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerCashDistributionsDeclared_b593374a-2214-457a-9087-211398fbd412" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionMadeToLimitedPartnerDateOfRecord_aac36c54-bc3a-4993-80d1-ac8ce570295c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionMadeToLimitedPartnerDateOfRecord"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:to="loc_us-gaap_DistributionMadeToLimitedPartnerDateOfRecord_aac36c54-bc3a-4993-80d1-ac8ce570295c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DistributionPaymentDate_684e2863-f140-4c66-89fc-c2ce48959e88" xlink:href="ns-20200930.xsd#ns_DistributionPaymentDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:to="loc_ns_DistributionPaymentDate_684e2863-f140-4c66-89fc-c2ce48959e88" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_57bc008a-1148-4210-94a4-f3e4e0a79238" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributionsMadeToLimitedPartnerTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DistributionMadeToLimitedPartnerLineItems_6b433eaa-11fd-4389-a997-4ae8ca910c11" xlink:to="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_57bc008a-1148-4210-94a4-f3e4e0a79238" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_b49531bf-0c17-4b68-972b-1f42d0512fb6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DistributionsMadeToLimitedPartnerTable_57bc008a-1148-4210-94a4-f3e4e0a79238" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_b49531bf-0c17-4b68-972b-1f42d0512fb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_b49531bf-0c17-4b68-972b-1f42d0512fb6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_b49531bf-0c17-4b68-972b-1f42d0512fb6" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_b49531bf-0c17-4b68-972b-1f42d0512fb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_4fa16738-99d3-44ea-bceb-6b63e74ba0ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountAxis_b49531bf-0c17-4b68-972b-1f42d0512fb6" xlink:to="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_4fa16738-99d3-44ea-bceb-6b63e74ba0ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_CommonLimitedPartnerMember_ace73714-3756-4c69-8a4f-df35ff37f0a4" xlink:href="ns-20200930.xsd#ns_CommonLimitedPartnerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PartnerTypeOfPartnersCapitalAccountNameDomain_4fa16738-99d3-44ea-bceb-6b63e74ba0ab" xlink:to="loc_ns_CommonLimitedPartnerMember_ace73714-3756-4c69-8a4f-df35ff37f0a4" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails" xlink:type="extended" id="i57589d9fe39e47ea9e7b5d1b593aa203_PARTNERSEQUITYTable3BalanceofandChangesinAccumulatedOtherComprehensiveIncomeLossDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f0a85916-0860-471e-abdc-e64ded25271b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f0a85916-0860-471e-abdc-e64ded25271b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_bc209386-272c-4764-a902-42e5fbd1e5d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_bc209386-272c-4764-a902-42e5fbd1e5d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_a2017176-6164-47ce-bd57-94dead012614" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_a2017176-6164-47ce-bd57-94dead012614" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_f6773064-5890-4708-94cd-928469ed51d4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeOtherNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeOtherNetOfTax_f6773064-5890-4708-94cd-928469ed51d4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1ed56e91-e933-4fec-a9be-b64557445fe4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_1ed56e91-e933-4fec-a9be-b64557445fe4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_2b9d7a86-b336-409f-a27b-e271c88f76f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_4b23a220-68b2-4105-9f58-863d0d9ab3c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_203c372b-4422-4306-8b3e-b63c113e6c83" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_4b23a220-68b2-4105-9f58-863d0d9ab3c9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_16492e03-7e36-4122-8266-4a2ba4636cf6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_4b23a220-68b2-4105-9f58-863d0d9ab3c9" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_16492e03-7e36-4122-8266-4a2ba4636cf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_16492e03-7e36-4122-8266-4a2ba4636cf6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_16492e03-7e36-4122-8266-4a2ba4636cf6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_16492e03-7e36-4122-8266-4a2ba4636cf6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b3ec7ecb-a757-4e02-af3a-cec261703b3e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_16492e03-7e36-4122-8266-4a2ba4636cf6" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b3ec7ecb-a757-4e02-af3a-cec261703b3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncomeMember_8239c43e-1b00-4526-9781-419139fdfc3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_b3ec7ecb-a757-4e02-af3a-cec261703b3e" xlink:to="loc_us-gaap_OtherIncomeMember_8239c43e-1b00-4526-9781-419139fdfc3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_a12522da-4c81-48ea-875c-641bdfee0f73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_b3ec7ecb-a757-4e02-af3a-cec261703b3e" xlink:to="loc_us-gaap_InterestExpenseMember_a12522da-4c81-48ea-875c-641bdfee0f73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_4ac7fe18-bda8-4f14-92eb-42ae39d652dd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_4b23a220-68b2-4105-9f58-863d0d9ab3c9" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_4ac7fe18-bda8-4f14-92eb-42ae39d652dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4ac7fe18-bda8-4f14-92eb-42ae39d652dd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4ac7fe18-bda8-4f14-92eb-42ae39d652dd" xlink:to="loc_us-gaap_EquityComponentDomain_4ac7fe18-bda8-4f14-92eb-42ae39d652dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4ac7fe18-bda8-4f14-92eb-42ae39d652dd" xlink:to="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_87322efc-0682-4f5c-ac00-2cb12f1ac61b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_87322efc-0682-4f5c-ac00-2cb12f1ac61b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_78b7237a-9a69-421c-b01e-c8a61ecb80c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_78b7237a-9a69-421c-b01e-c8a61ecb80c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_421947a6-8c90-4211-9934-8c02a1ff7802" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_421947a6-8c90-4211-9934-8c02a1ff7802" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_989a6c4a-9c24-406a-8583-224d70d782b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1ef441ae-bf44-497b-88af-e97136240429" xlink:to="loc_us-gaap_ParentMember_989a6c4a-9c24-406a-8583-224d70d782b2" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNIT" xlink:type="simple" xlink:href="ns-20200930.xsd#NETLOSSINCOMEPERCOMMONUNIT"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNIT" xlink:type="extended" id="i2b5bcc423032470aaa2e30a82c10a035_NETLOSSINCOMEPERCOMMONUNIT"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTables" xlink:type="simple" xlink:href="ns-20200930.xsd#NETLOSSINCOMEPERCOMMONUNITTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTables" xlink:type="extended" id="icd4037f0205e4572b23c2be12e526b08_NETLOSSINCOMEPERCOMMONUNITTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails" xlink:type="extended" id="ia1866bae8e794bb882bdff649d040312_NETLOSSINCOMEPERCOMMONUNITTableNetIncomeLossperCommonUnitDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATION" xlink:type="simple" xlink:href="ns-20200930.xsd#SUPPLEMENTALCASHFLOWINFORMATION"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATION" xlink:type="extended" id="i93658bbfd84e43e298f3ad31ad00b112_SUPPLEMENTALCASHFLOWINFORMATION"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables" xlink:type="simple" xlink:href="ns-20200930.xsd#SUPPLEMENTALCASHFLOWINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTables" xlink:type="extended" id="i63a8ccbb20cd4dc4ac671c39464df841_SUPPLEMENTALCASHFLOWINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails" xlink:type="extended" id="i16788edcad964e36be3e1585613ca7e2_SUPPLEMENTALCASHFLOWINFORMATIONTable1ChangesinCurrentAssetsandLiabilitiesDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails" xlink:type="extended" id="i7c9eb7bcc5e644b9a3c39f850e87c0a8_SUPPLEMENTALCASHFLOWINFORMATIONTable2CashFlowsRelatedtoInterestandIncomeTaxesDetails"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails" xlink:type="extended" id="i5eb79b65fce04325af7c9ec848bcff67_SUPPLEMENTALCASHFLOWINFORMATIONTable3ScheduleofCashCashEquivalentsandRestrictedCashDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_92f57d03-6f63-4810-9b3b-3999b626bbc1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_30006087-0959-4b85-a2d0-e3ba66f699cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_92f57d03-6f63-4810-9b3b-3999b626bbc1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_30006087-0959-4b85-a2d0-e3ba66f699cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_8402079f-a63b-460a-9313-c2688209e2d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_92f57d03-6f63-4810-9b3b-3999b626bbc1" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_8402079f-a63b-460a-9313-c2688209e2d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_ce7baf95-ecd2-477c-8d01-d7b35e068bd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsItemsLineItems_92f57d03-6f63-4810-9b3b-3999b626bbc1" xlink:to="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_ce7baf95-ecd2-477c-8d01-d7b35e068bd3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_f48285d4-d8ce-49ee-81ee-56cd3d376f21" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestrictedCashAndCashEquivalentsTable_ce7baf95-ecd2-477c-8d01-d7b35e068bd3" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_f48285d4-d8ce-49ee-81ee-56cd3d376f21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_f48285d4-d8ce-49ee-81ee-56cd3d376f21_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f48285d4-d8ce-49ee-81ee-56cd3d376f21" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_f48285d4-d8ce-49ee-81ee-56cd3d376f21_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_d5bdfe6f-79db-4b82-9140-b8f56ddd87ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f48285d4-d8ce-49ee-81ee-56cd3d376f21" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_d5bdfe6f-79db-4b82-9140-b8f56ddd87ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_ba974762-c3e3-4dd0-aee4-759d3800072d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_d5bdfe6f-79db-4b82-9140-b8f56ddd87ad" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_ba974762-c3e3-4dd0-aee4-759d3800072d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_d83a86cb-a1ab-4656-9f5d-c0cc8ae0b311" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_d5bdfe6f-79db-4b82-9140-b8f56ddd87ad" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_d83a86cb-a1ab-4656-9f5d-c0cc8ae0b311" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SEGMENTINFORMATION" xlink:type="simple" xlink:href="ns-20200930.xsd#SEGMENTINFORMATION"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SEGMENTINFORMATION" xlink:type="extended" id="i6c414d6088ff4796b363980ee0eaf960_SEGMENTINFORMATION"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTables" xlink:type="simple" xlink:href="ns-20200930.xsd#SEGMENTINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTables" xlink:type="extended" id="i0076d55895b145af960974df6c4628a6_SEGMENTINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SEGMENTINFORMATIONTable1ResultsofOperationsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable1ResultsofOperationsDetails" xlink:type="extended" id="i4e75017ac7224f0b959dfabaac911836_SEGMENTINFORMATIONTable1ResultsofOperationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_bb38fd63-742e-459c-a220-014a9324b7c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationRevenueAbstract_431a178c-e91c-4bcd-b016-7bcfbd5dbec8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_bb38fd63-742e-459c-a220-014a9324b7c7" xlink:to="loc_us-gaap_SegmentReportingInformationRevenueAbstract_431a178c-e91c-4bcd-b016-7bcfbd5dbec8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_aad40835-2db1-4567-a895-4c481ef78f3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationRevenueAbstract_431a178c-e91c-4bcd-b016-7bcfbd5dbec8" xlink:to="loc_us-gaap_Revenues_aad40835-2db1-4567-a895-4c481ef78f3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_94056f5e-ff85-4211-a2cd-4af872d9b7b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_bb38fd63-742e-459c-a220-014a9324b7c7" xlink:to="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_94056f5e-ff85-4211-a2cd-4af872d9b7b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_8adc1bc4-3bad-4698-9b66-d64c933ae342" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_94056f5e-ff85-4211-a2cd-4af872d9b7b5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_8adc1bc4-3bad-4698-9b66-d64c933ae342" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDepreciationAndAmortization_e88ac345-266a-4fc6-b42e-6f7d9bd06f6c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_94056f5e-ff85-4211-a2cd-4af872d9b7b5" xlink:to="loc_us-gaap_OtherDepreciationAndAmortization_e88ac345-266a-4fc6-b42e-6f7d9bd06f6c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_80aa1477-fb4e-422a-9475-131f8783ebf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationOperatingIncomeLossAbstract_94056f5e-ff85-4211-a2cd-4af872d9b7b5" xlink:to="loc_us-gaap_OperatingIncomeLoss_80aa1477-fb4e-422a-9475-131f8783ebf9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee96007e-b0c7-4779-b4c8-1c87dd65045b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_bb38fd63-742e-459c-a220-014a9324b7c7" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee96007e-b0c7-4779-b4c8-1c87dd65045b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_5d129dc2-824d-460a-99e0-c847fd6efe68" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee96007e-b0c7-4779-b4c8-1c87dd65045b" xlink:to="loc_srt_ConsolidationItemsAxis_5d129dc2-824d-460a-99e0-c847fd6efe68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_5d129dc2-824d-460a-99e0-c847fd6efe68_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_5d129dc2-824d-460a-99e0-c847fd6efe68" xlink:to="loc_srt_ConsolidationItemsDomain_5d129dc2-824d-460a-99e0-c847fd6efe68_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_d1255df3-9b2e-47e6-9214-cf0bc041d03f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_5d129dc2-824d-460a-99e0-c847fd6efe68" xlink:to="loc_srt_ConsolidationItemsDomain_d1255df3-9b2e-47e6-9214-cf0bc041d03f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_4af5ad87-fcaa-4ca5-87b0-7cb3ec3914f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_d1255df3-9b2e-47e6-9214-cf0bc041d03f" xlink:to="loc_us-gaap_OperatingSegmentsMember_4af5ad87-fcaa-4ca5-87b0-7cb3ec3914f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_447736ba-dcf9-424c-aee0-a6e50607bb1b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_d1255df3-9b2e-47e6-9214-cf0bc041d03f" xlink:to="loc_us-gaap_IntersegmentEliminationMember_447736ba-dcf9-424c-aee0-a6e50607bb1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_1724942e-4bdc-4aa4-9f97-b22407f9bc6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_d1255df3-9b2e-47e6-9214-cf0bc041d03f" xlink:to="loc_us-gaap_CorporateNonSegmentMember_1724942e-4bdc-4aa4-9f97-b22407f9bc6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_d554f4ff-3e64-4653-a570-3c5931ded161" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee96007e-b0c7-4779-b4c8-1c87dd65045b" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_d554f4ff-3e64-4653-a570-3c5931ded161" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d554f4ff-3e64-4653-a570-3c5931ded161_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d554f4ff-3e64-4653-a570-3c5931ded161" xlink:to="loc_us-gaap_SegmentDomain_d554f4ff-3e64-4653-a570-3c5931ded161_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_18826230-7100-41a6-8131-0bbe45aca1eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d554f4ff-3e64-4653-a570-3c5931ded161" xlink:to="loc_us-gaap_SegmentDomain_18826230-7100-41a6-8131-0bbe45aca1eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PipelineSegmentMember_776429b1-c8f1-481c-a6dc-dc5b3444fe38" xlink:href="ns-20200930.xsd#ns_PipelineSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_18826230-7100-41a6-8131-0bbe45aca1eb" xlink:to="loc_ns_PipelineSegmentMember_776429b1-c8f1-481c-a6dc-dc5b3444fe38" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_StorageSegmentMember_c0ab8c1e-6c10-4dd4-9ef6-3b727a755e49" xlink:href="ns-20200930.xsd#ns_StorageSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_18826230-7100-41a6-8131-0bbe45aca1eb" xlink:to="loc_ns_StorageSegmentMember_c0ab8c1e-6c10-4dd4-9ef6-3b727a755e49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_FuelsMarketingSegmentMember_585489f3-5af9-4555-b287-1f4c3e43e01e" xlink:href="ns-20200930.xsd#ns_FuelsMarketingSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_18826230-7100-41a6-8131-0bbe45aca1eb" xlink:to="loc_ns_FuelsMarketingSegmentMember_585489f3-5af9-4555-b287-1f4c3e43e01e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails" xlink:type="extended" id="i70721a7a37d648e9867e60cc5ccc124c_SEGMENTINFORMATIONTable2AssetsbyReportableSegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_43e1dccb-b5de-4c10-9881-6bb876ba5e1b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_04f9dc96-fe58-4024-9e86-aa35e3532b10" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_43e1dccb-b5de-4c10-9881-6bb876ba5e1b" xlink:to="loc_us-gaap_Assets_04f9dc96-fe58-4024-9e86-aa35e3532b10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_bef383ff-0499-428c-9d24-b661d0e12f3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_43e1dccb-b5de-4c10-9881-6bb876ba5e1b" xlink:to="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_bef383ff-0499-428c-9d24-b661d0e12f3f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_528bf2b4-143e-477b-915c-d486c6a76b7f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_bef383ff-0499-428c-9d24-b661d0e12f3f" xlink:to="loc_srt_ConsolidationItemsAxis_528bf2b4-143e-477b-915c-d486c6a76b7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_528bf2b4-143e-477b-915c-d486c6a76b7f_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_528bf2b4-143e-477b-915c-d486c6a76b7f" xlink:to="loc_srt_ConsolidationItemsDomain_528bf2b4-143e-477b-915c-d486c6a76b7f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_541cefac-2050-4208-b085-f5877763be6a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_528bf2b4-143e-477b-915c-d486c6a76b7f" xlink:to="loc_srt_ConsolidationItemsDomain_541cefac-2050-4208-b085-f5877763be6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_39eec5f2-c32a-40a4-8599-05ee46eb74a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_541cefac-2050-4208-b085-f5877763be6a" xlink:to="loc_us-gaap_OperatingSegmentsMember_39eec5f2-c32a-40a4-8599-05ee46eb74a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_67f94a3c-47dd-47fb-ba53-5ac9519c478a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_541cefac-2050-4208-b085-f5877763be6a" xlink:to="loc_us-gaap_CorporateNonSegmentMember_67f94a3c-47dd-47fb-ba53-5ac9519c478a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_e5169732-710d-4a6a-942c-f0dc3a493858" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_bef383ff-0499-428c-9d24-b661d0e12f3f" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_e5169732-710d-4a6a-942c-f0dc3a493858" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e5169732-710d-4a6a-942c-f0dc3a493858_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e5169732-710d-4a6a-942c-f0dc3a493858" xlink:to="loc_us-gaap_SegmentDomain_e5169732-710d-4a6a-942c-f0dc3a493858_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8ad65c9f-db4c-4748-8767-1cea10ebcd04" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e5169732-710d-4a6a-942c-f0dc3a493858" xlink:to="loc_us-gaap_SegmentDomain_8ad65c9f-db4c-4748-8767-1cea10ebcd04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_PipelineSegmentMember_81e755b7-ef07-472a-a252-aaa088e2022f" xlink:href="ns-20200930.xsd#ns_PipelineSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ad65c9f-db4c-4748-8767-1cea10ebcd04" xlink:to="loc_ns_PipelineSegmentMember_81e755b7-ef07-472a-a252-aaa088e2022f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_StorageSegmentMember_1d464291-dcce-492f-b70f-f0bae3058a4e" xlink:href="ns-20200930.xsd#ns_StorageSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ad65c9f-db4c-4748-8767-1cea10ebcd04" xlink:to="loc_ns_StorageSegmentMember_1d464291-dcce-492f-b70f-f0bae3058a4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_FuelsMarketingSegmentMember_aa6dd09a-4294-45f4-b3af-ce9739d72230" xlink:href="ns-20200930.xsd#ns_FuelsMarketingSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8ad65c9f-db4c-4748-8767-1cea10ebcd04" xlink:to="loc_ns_FuelsMarketingSegmentMember_aa6dd09a-4294-45f4-b3af-ce9739d72230" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS" xlink:type="extended" id="if67d6cc22c28417398b91bf8963b6d38_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables" xlink:type="extended" id="i825e4257015b4b4b9564abfc53ca63b6_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails" xlink:type="extended" id="i2e0f209f52e344d78a6b18756a87e220_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSNarrativeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems_fef6a626-de5a-4566-98d1-076190cdd910" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest_1ee8cb30-76b5-45ac-9cc1-2c5359e364a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems_fef6a626-de5a-4566-98d1-076190cdd910" xlink:to="loc_us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipOwnershipInterest_1ee8cb30-76b5-45ac-9cc1-2c5359e364a9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable_7b4612b4-8c68-4e24-934e-38fa1d9bc614" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipLineItems_fef6a626-de5a-4566-98d1-076190cdd910" xlink:to="loc_us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable_7b4612b4-8c68-4e24-934e-38fa1d9bc614" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_e47343f7-e5a7-4faa-b5e1-62b4ad096b74" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable_7b4612b4-8c68-4e24-934e-38fa1d9bc614" xlink:to="loc_srt_OwnershipAxis_e47343f7-e5a7-4faa-b5e1-62b4ad096b74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_e47343f7-e5a7-4faa-b5e1-62b4ad096b74_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_e47343f7-e5a7-4faa-b5e1-62b4ad096b74" xlink:to="loc_srt_OwnershipDomain_e47343f7-e5a7-4faa-b5e1-62b4ad096b74_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_a929643d-0050-4726-9924-ce60410b92e9" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_e47343f7-e5a7-4faa-b5e1-62b4ad096b74" xlink:to="loc_srt_OwnershipDomain_a929643d-0050-4726-9924-ce60410b92e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarLogisticsLpMember_9263c141-580a-4767-9b07-e1f7c0ed7fcf" xlink:href="ns-20200930.xsd#ns_NustarLogisticsLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_a929643d-0050-4726-9924-ce60410b92e9" xlink:to="loc_ns_NustarLogisticsLpMember_9263c141-580a-4767-9b07-e1f7c0ed7fcf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarPipelineOperatingPartnershipLpMember_6388af88-7b94-4e4a-87f2-6dab9185f55a" xlink:href="ns-20200930.xsd#ns_NustarPipelineOperatingPartnershipLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_a929643d-0050-4726-9924-ce60410b92e9" xlink:to="loc_ns_NustarPipelineOperatingPartnershipLpMember_6388af88-7b94-4e4a-87f2-6dab9185f55a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_afb1fd26-b5d3-4d58-8759-328c78a2f825" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSubsidiaryOfLimitedLiabilityCompanyOrLimitedPartnershipTable_7b4612b4-8c68-4e24-934e-38fa1d9bc614" xlink:to="loc_dei_LegalEntityAxis_afb1fd26-b5d3-4d58-8759-328c78a2f825" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_afb1fd26-b5d3-4d58-8759-328c78a2f825_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_afb1fd26-b5d3-4d58-8759-328c78a2f825" xlink:to="loc_dei_EntityDomain_afb1fd26-b5d3-4d58-8759-328c78a2f825_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5d29671c-ed49-4c6a-8d82-5f2733b81c01" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_afb1fd26-b5d3-4d58-8759-328c78a2f825" xlink:to="loc_dei_EntityDomain_5d29671c-ed49-4c6a-8d82-5f2733b81c01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarEnergyLpMember_8a83720a-2303-423d-9019-d9c51d9b51e5" xlink:href="ns-20200930.xsd#ns_NustarEnergyLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5d29671c-ed49-4c6a-8d82-5f2733b81c01" xlink:to="loc_ns_NustarEnergyLpMember_8a83720a-2303-423d-9019-d9c51d9b51e5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails" xlink:type="extended" id="i2e7c59fa38c44ec098dce506cdaaa94d_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable1CondensedConsolidatingBalanceSheetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_b383068e-82d7-4a41-8b2e-dfcda5dd97bb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_b383068e-82d7-4a41-8b2e-dfcda5dd97bb" xlink:to="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b91a0640-5562-400a-b252-49ea2f719696" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b91a0640-5562-400a-b252-49ea2f719696" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivablesNetCurrent_c817e7b9-e1c7-4536-beab-b5a9dab206f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_ReceivablesNetCurrent_c817e7b9-e1c7-4536-beab-b5a9dab206f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_ac74e2b1-cedb-4f42-b327-5b90937501e0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_InventoryNet_ac74e2b1-cedb-4f42-b327-5b90937501e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPrepaidExpenseCurrent_9606e9fa-b6a4-4871-85e3-3cb30e5f505a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherPrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_OtherPrepaidExpenseCurrent_9606e9fa-b6a4-4871-85e3-3cb30e5f505a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_IntercompanyReceivable_3f352a42-9cbc-401f-b890-118653a076bc" xlink:href="ns-20200930.xsd#ns_IntercompanyReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_ns_IntercompanyReceivable_3f352a42-9cbc-401f-b890-118653a076bc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_c53eb9a4-f9c6-4476-a567-47db1fc7c6a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_AssetsCurrent_c53eb9a4-f9c6-4476-a567-47db1fc7c6a0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_df534f61-70bc-477f-bdaa-8af23206ad4c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_df534f61-70bc-477f-bdaa-8af23206ad4c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1936dd23-a1df-486e-bae8-8f7fe678ca31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1936dd23-a1df-486e-bae8-8f7fe678ca31" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_b32f9f9d-45ea-4d05-8586-8432d4d8df3e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_Goodwill_b32f9f9d-45ea-4d05-8586-8432d4d8df3e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_InvestmentInWhollyOwnedSubsidiaries_36b84b3a-0635-4263-991b-dc994b4fe73e" xlink:href="ns-20200930.xsd#ns_InvestmentInWhollyOwnedSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_ns_InvestmentInWhollyOwnedSubsidiaries_36b84b3a-0635-4263-991b-dc994b4fe73e" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_6a0420e7-af71-4048-86c2-154d5e1bd993" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_6a0420e7-af71-4048-86c2-154d5e1bd993" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_d87df4bf-7d11-4084-9448-920e8dc7ba94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_da25311c-f7b3-48ca-a3ff-839cdb523a0b" xlink:to="loc_us-gaap_Assets_d87df4bf-7d11-4084-9448-920e8dc7ba94" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_b383068e-82d7-4a41-8b2e-dfcda5dd97bb" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_7eebcb8f-c904-4c6e-b509-a0999768d1f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_AccountsPayableCurrent_7eebcb8f-c904-4c6e-b509-a0999768d1f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_9816f1f7-b15b-4325-a0b4-9579b40069c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_ShortTermBorrowings_9816f1f7-b15b-4325-a0b4-9579b40069c1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_94cd5a9f-f811-4331-a832-695a482ad10f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_LongTermDebtCurrent_94cd5a9f-f811-4331-a832-695a482ad10f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_9275364a-8e5b-4e16-ac1f-85d110748fd2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_InterestPayableCurrent_9275364a-8e5b-4e16-ac1f-85d110748fd2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_f2c35126-ac02-4327-8f60-065a88671263" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_f2c35126-ac02-4327-8f60-065a88671263" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_519dc2fe-0be1-4106-aae6-22dbdc6f9fc7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent_519dc2fe-0be1-4106-aae6-22dbdc6f9fc7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_IntercompanyPayable_03e251bf-640d-4957-bb79-1b3afa305b1f" xlink:href="ns-20200930.xsd#ns_IntercompanyPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_ns_IntercompanyPayable_03e251bf-640d-4957-bb79-1b3afa305b1f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_189c74b4-d1a7-44fe-bc3e-1cb0a3c7a258" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_LiabilitiesCurrent_189c74b4-d1a7-44fe-bc3e-1cb0a3c7a258" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_24896cda-aca3-47de-a253-8cc5676ef49f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_24896cda-aca3-47de-a253-8cc5676ef49f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1457a4a9-28b6-4ed3-8f81-f755538e8cb4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_1457a4a9-28b6-4ed3-8f81-f755538e8cb4" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_2aa69d54-5139-4aee-acf3-5c8c03b04f92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_2aa69d54-5139-4aee-acf3-5c8c03b04f92" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_3cc5e3c0-fdc1-47ed-b548-f26df791fb31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_3cc5e3c0-fdc1-47ed-b548-f26df791fb31" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PartnersCapital_92bd65cc-edd1-4452-a8bf-ab1f42d894c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PartnersCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_PartnersCapital_92bd65cc-edd1-4452-a8bf-ab1f42d894c3" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_b7f2278e-1ec8-4998-b8b3-9479ee7252d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_6d838dd7-6876-441a-9348-3fdac051a665" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_b7f2278e-1ec8-4998-b8b3-9479ee7252d2" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a875bc87-07d1-4820-b53e-27bbda1bc3c9" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_b383068e-82d7-4a41-8b2e-dfcda5dd97bb" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a875bc87-07d1-4820-b53e-27bbda1bc3c9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_6b824350-eb94-4616-b1b9-965bc53c7461" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a875bc87-07d1-4820-b53e-27bbda1bc3c9" xlink:to="loc_srt_ConsolidatedEntitiesAxis_6b824350-eb94-4616-b1b9-965bc53c7461" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_6b824350-eb94-4616-b1b9-965bc53c7461_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_6b824350-eb94-4616-b1b9-965bc53c7461" xlink:to="loc_srt_ConsolidatedEntitiesDomain_6b824350-eb94-4616-b1b9-965bc53c7461_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_6b824350-eb94-4616-b1b9-965bc53c7461" xlink:to="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ParentCompanyGuarantorMember_b60e3cdf-e50c-4940-8819-443a74e54f7d" xlink:href="ns-20200930.xsd#ns_ParentCompanyGuarantorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:to="loc_ns_ParentCompanyGuarantorMember_b60e3cdf-e50c-4940-8819-443a74e54f7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiaryIssuerMember_686c2e7b-6aa7-4645-ab36-4dc2fe99e209" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SubsidiaryIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:to="loc_srt_SubsidiaryIssuerMember_686c2e7b-6aa7-4645-ab36-4dc2fe99e209" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_GuarantorSubsidiariesMember_f8ada773-bed1-4b29-b2a0-acfe38409c59" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_GuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:to="loc_srt_GuarantorSubsidiariesMember_f8ada773-bed1-4b29-b2a0-acfe38409c59" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_24944c61-542a-4da3-a6d7-5f82120ca608" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NonGuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_c7cdb939-22d8-442a-a187-e748b0ff144c" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_24944c61-542a-4da3-a6d7-5f82120ca608" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_60404b45-8577-498d-86e7-fbf7fd944742" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a875bc87-07d1-4820-b53e-27bbda1bc3c9" xlink:to="loc_dei_LegalEntityAxis_60404b45-8577-498d-86e7-fbf7fd944742" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_60404b45-8577-498d-86e7-fbf7fd944742_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_60404b45-8577-498d-86e7-fbf7fd944742" xlink:to="loc_dei_EntityDomain_60404b45-8577-498d-86e7-fbf7fd944742_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_ce24d55f-4028-4bc0-b5b9-c562dedec604" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_60404b45-8577-498d-86e7-fbf7fd944742" xlink:to="loc_dei_EntityDomain_ce24d55f-4028-4bc0-b5b9-c562dedec604" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarEnergyLpMember_cd55ef34-4ca9-47ad-b776-0a766e241f9d" xlink:href="ns-20200930.xsd#ns_NustarEnergyLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_ce24d55f-4028-4bc0-b5b9-c562dedec604" xlink:to="loc_ns_NustarEnergyLpMember_cd55ef34-4ca9-47ad-b776-0a766e241f9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarLogisticsLpMember_11b2fb1e-6dcd-4b54-81a1-2153443d49dd" xlink:href="ns-20200930.xsd#ns_NustarLogisticsLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_ce24d55f-4028-4bc0-b5b9-c562dedec604" xlink:to="loc_ns_NustarLogisticsLpMember_11b2fb1e-6dcd-4b54-81a1-2153443d49dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarPipelineOperatingPartnershipLpMember_4d650163-56c3-4a9b-9938-9826f5298134" xlink:href="ns-20200930.xsd#ns_NustarPipelineOperatingPartnershipLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_ce24d55f-4028-4bc0-b5b9-c562dedec604" xlink:to="loc_ns_NustarPipelineOperatingPartnershipLpMember_4d650163-56c3-4a9b-9938-9826f5298134" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_8502cd5a-2fc3-4616-a642-7ee00d5b9afe" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a875bc87-07d1-4820-b53e-27bbda1bc3c9" xlink:to="loc_srt_ConsolidationItemsAxis_8502cd5a-2fc3-4616-a642-7ee00d5b9afe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8502cd5a-2fc3-4616-a642-7ee00d5b9afe_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_8502cd5a-2fc3-4616-a642-7ee00d5b9afe" xlink:to="loc_srt_ConsolidationItemsDomain_8502cd5a-2fc3-4616-a642-7ee00d5b9afe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_00c57850-c9d7-4e0a-8ffe-2b78582402c7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_8502cd5a-2fc3-4616-a642-7ee00d5b9afe" xlink:to="loc_srt_ConsolidationItemsDomain_00c57850-c9d7-4e0a-8ffe-2b78582402c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ReportableLegalEntitiesMember_40d37270-8912-4103-a74b-e9326e72b74e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ReportableLegalEntitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_00c57850-c9d7-4e0a-8ffe-2b78582402c7" xlink:to="loc_srt_ReportableLegalEntitiesMember_40d37270-8912-4103-a74b-e9326e72b74e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_b14a5187-86b6-4195-ad37-6ab9e4e24135" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_00c57850-c9d7-4e0a-8ffe-2b78582402c7" xlink:to="loc_srt_ConsolidationEliminationsMember_b14a5187-86b6-4195-ad37-6ab9e4e24135" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails" xlink:type="extended" id="i1f86b95a71dd4c2584dc7f7dc1237646_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable2CondensedConsolidatingStatementsofComprehensiveIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_f3098a21-7d3d-47a0-94ea-bd3863e0db20" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_Revenues_f3098a21-7d3d-47a0-94ea-bd3863e0db20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_71df5402-fef9-4a5a-b874-fa3989c2a703" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostsAndExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_CostsAndExpenses_71df5402-fef9-4a5a-b874-fa3989c2a703" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_71bc5a3f-01c6-4f36-aabb-2cf5ea47ab6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_OperatingIncomeLoss_71bc5a3f-01c6-4f36-aabb-2cf5ea47ab6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_57a52e74-1f71-40b4-ab01-582a178631c5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesBeforeTax_57a52e74-1f71-40b4-ab01-582a178631c5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_147457f3-e983-486c-9e93-52660a1c40cb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_147457f3-e983-486c-9e93-52660a1c40cb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_5ee0af68-b2c5-4db1-8cf4-f0cd25cd836b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_5ee0af68-b2c5-4db1-8cf4-f0cd25cd836b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_fdff635b-e090-406b-ab5a-a7f424702c33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_fdff635b-e090-406b-ab5a-a7f424702c33" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossAttributableToParent_def60d90-19f2-4830-8b48-84fd88fdc01b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeLossAttributableToParent_def60d90-19f2-4830-8b48-84fd88fdc01b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_19129f61-bd08-46eb-af50-cbafada24603" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_19129f61-bd08-46eb-af50-cbafada24603" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_58cece37-f2cf-4518-99a4-c7d170dd5fd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_58cece37-f2cf-4518-99a4-c7d170dd5fd1" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperations_474fee34-4ce2-439a-90f3-702421cab05f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperations_474fee34-4ce2-439a-90f3-702421cab05f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_f0a53e57-ce3a-4149-ba41-6083c8ac427f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity_f0a53e57-ce3a-4149-ba41-6083c8ac427f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6b77f2a1-c96b-4118-86df-7b11c9290594" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_NetIncomeLoss_6b77f2a1-c96b-4118-86df-7b11c9290594" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_75118859-3bfc-4f97-857b-5c022ef97d1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_75118859-3bfc-4f97-857b-5c022ef97d1c" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a22fcf70-b0b0-4e0d-b600-d20bedc48c67" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_9088042b-9f7a-4001-b2a7-ea936beeae1c" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a22fcf70-b0b0-4e0d-b600-d20bedc48c67" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_aeedfc0d-b62a-4892-b72c-2c02269bdcd8" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a22fcf70-b0b0-4e0d-b600-d20bedc48c67" xlink:to="loc_srt_ConsolidatedEntitiesAxis_aeedfc0d-b62a-4892-b72c-2c02269bdcd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_aeedfc0d-b62a-4892-b72c-2c02269bdcd8_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_aeedfc0d-b62a-4892-b72c-2c02269bdcd8" xlink:to="loc_srt_ConsolidatedEntitiesDomain_aeedfc0d-b62a-4892-b72c-2c02269bdcd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_aeedfc0d-b62a-4892-b72c-2c02269bdcd8" xlink:to="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ParentCompanyGuarantorMember_a59ba861-0c15-43b6-9b68-597c0edc0aad" xlink:href="ns-20200930.xsd#ns_ParentCompanyGuarantorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:to="loc_ns_ParentCompanyGuarantorMember_a59ba861-0c15-43b6-9b68-597c0edc0aad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiaryIssuerMember_46d0adb1-bc22-4b8d-ba73-4d435d633c83" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SubsidiaryIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:to="loc_srt_SubsidiaryIssuerMember_46d0adb1-bc22-4b8d-ba73-4d435d633c83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_GuarantorSubsidiariesMember_7a8dce8f-0cd3-4296-82e9-edda01a03bf5" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_GuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:to="loc_srt_GuarantorSubsidiariesMember_7a8dce8f-0cd3-4296-82e9-edda01a03bf5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_99ed2488-c3af-4be9-8afe-d9981cbc2e1f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NonGuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_a2368f75-3f74-4ac5-8464-4934057727cb" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_99ed2488-c3af-4be9-8afe-d9981cbc2e1f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_96fd35e3-f114-47a9-9d6a-3b065ed6eedd" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a22fcf70-b0b0-4e0d-b600-d20bedc48c67" xlink:to="loc_dei_LegalEntityAxis_96fd35e3-f114-47a9-9d6a-3b065ed6eedd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_96fd35e3-f114-47a9-9d6a-3b065ed6eedd_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_96fd35e3-f114-47a9-9d6a-3b065ed6eedd" xlink:to="loc_dei_EntityDomain_96fd35e3-f114-47a9-9d6a-3b065ed6eedd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_86c2ab01-e8ea-464c-865f-0acfddd04393" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_96fd35e3-f114-47a9-9d6a-3b065ed6eedd" xlink:to="loc_dei_EntityDomain_86c2ab01-e8ea-464c-865f-0acfddd04393" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarEnergyLpMember_0b58a3c8-4603-4d46-b039-909a74955e45" xlink:href="ns-20200930.xsd#ns_NustarEnergyLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_86c2ab01-e8ea-464c-865f-0acfddd04393" xlink:to="loc_ns_NustarEnergyLpMember_0b58a3c8-4603-4d46-b039-909a74955e45" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarLogisticsLpMember_fb778c2d-da53-4976-808d-2df0b6d4971e" xlink:href="ns-20200930.xsd#ns_NustarLogisticsLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_86c2ab01-e8ea-464c-865f-0acfddd04393" xlink:to="loc_ns_NustarLogisticsLpMember_fb778c2d-da53-4976-808d-2df0b6d4971e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarPipelineOperatingPartnershipLpMember_6d6fb808-c6b0-4276-868f-9d55e1d36bac" xlink:href="ns-20200930.xsd#ns_NustarPipelineOperatingPartnershipLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_86c2ab01-e8ea-464c-865f-0acfddd04393" xlink:to="loc_ns_NustarPipelineOperatingPartnershipLpMember_6d6fb808-c6b0-4276-868f-9d55e1d36bac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_b8cee21d-0cb5-4f4a-83b9-24b76503659e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_a22fcf70-b0b0-4e0d-b600-d20bedc48c67" xlink:to="loc_srt_ConsolidationItemsAxis_b8cee21d-0cb5-4f4a-83b9-24b76503659e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b8cee21d-0cb5-4f4a-83b9-24b76503659e_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_b8cee21d-0cb5-4f4a-83b9-24b76503659e" xlink:to="loc_srt_ConsolidationItemsDomain_b8cee21d-0cb5-4f4a-83b9-24b76503659e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_171303b8-c7b1-42df-a356-a75bb296b13e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_b8cee21d-0cb5-4f4a-83b9-24b76503659e" xlink:to="loc_srt_ConsolidationItemsDomain_171303b8-c7b1-42df-a356-a75bb296b13e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ReportableLegalEntitiesMember_ddead3ac-aeb6-4677-b53f-c68e4df9d1ea" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ReportableLegalEntitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_171303b8-c7b1-42df-a356-a75bb296b13e" xlink:to="loc_srt_ReportableLegalEntitiesMember_ddead3ac-aeb6-4677-b53f-c68e4df9d1ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_a0ef91cf-f690-4ccf-988f-6f858092a4ac" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_171303b8-c7b1-42df-a356-a75bb296b13e" xlink:to="loc_srt_ConsolidationEliminationsMember_a0ef91cf-f690-4ccf-988f-6f858092a4ac" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails" xlink:type="extended" id="i7c33b1989a4240eda1370cfa71865cb8_CONDENSEDCONSOLIDATINGFINANCIALSTATEMENTSTable3CondensedConsolidatingStatementsofCashFlowsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CondensedFinancialStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_46314045-62c7-4bed-b486-847a115f3bf7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_46314045-62c7-4bed-b486-847a115f3bf7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f8db5bd3-9570-497a-8c9c-3cbce2918a98" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_46314045-62c7-4bed-b486-847a115f3bf7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f8db5bd3-9570-497a-8c9c-3cbce2918a98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_5a7831b4-36d0-4f82-9388-c8e9ab74fa53" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_5a7831b4-36d0-4f82-9388-c8e9ab74fa53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures_c8c82abb-e023-4eee-b692-a6406972dd92" xlink:href="ns-20200930.xsd#ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_ns_IncreaseDecreaseinAccountsPayableRelatedtoCapitalExpenditures_c8c82abb-e023-4eee-b692-a6406972dd92" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_a8007eb2-7498-45bd-995c-2f377e03d691" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_a8007eb2-7498-45bd-995c-2f377e03d691" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_b0b549d1-7497-4f54-a63a-665aaf29ed16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_b0b549d1-7497-4f54-a63a-665aaf29ed16" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_InvestmentInSubsidiaries_11ffbb34-0307-4b19-9013-3c394aa22569" xlink:href="ns-20200930.xsd#ns_InvestmentInSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_ns_InvestmentInSubsidiaries_11ffbb34-0307-4b19-9013-3c394aa22569" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_5e5cf487-d3d8-4cd9-899c-2e8b6a098c90" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_5e5cf487-d3d8-4cd9-899c-2e8b6a098c90" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1a53a7cf-0ca6-44b2-a806-9d4b9d4c50ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_c5ee3dec-e184-4c79-b56d-46579bc43831" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1a53a7cf-0ca6-44b2-a806-9d4b9d4c50ae" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_48dbf94d-b515-43e9-84aa-72b0423a1dd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_48dbf94d-b515-43e9-84aa-72b0423a1dd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_d72aefb4-3e05-4865-bc0a-4f6be208fe46" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_d72aefb4-3e05-4865-bc0a-4f6be208fe46" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_8f562da0-7957-4513-9d95-03fc8e4431ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_RepaymentsOfDebt_8f562da0-7957-4513-9d95-03fc8e4431ef" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_RepaymentOfDebtAndPaymentForExtinguishmentCosts_28195006-c569-493b-b3b8-a06aefd74412" xlink:href="ns-20200930.xsd#ns_RepaymentOfDebtAndPaymentForExtinguishmentCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_ns_RepaymentOfDebtAndPaymentForExtinguishmentCosts_28195006-c569-493b-b3b8-a06aefd74412" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_01cdd324-39d0-46ec-b221-4d2ef45859f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_01cdd324-39d0-46ec-b221-4d2ef45859f9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_de99968e-ba26-4b54-a7e4-f016923568c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_de99968e-ba26-4b54-a7e4-f016923568c2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps_df474795-6e3c-4ce2-8e5a-31b955b4e67c" xlink:href="ns-20200930.xsd#ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_ns_ProceedsFromPaymentsForTerminationOfInterestRateSwaps_df474795-6e3c-4ce2-8e5a-31b955b4e67c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ContributionsFromDistributionsToAffiliates_e1651845-6852-4b9a-bf84-653e04b342fc" xlink:href="ns-20200930.xsd#ns_ContributionsFromDistributionsToAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_ns_ContributionsFromDistributionsToAffiliates_e1651845-6852-4b9a-bf84-653e04b342fc" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NetIntercompanyBorrowingsRepayments_63d35098-9242-4301-acf3-626e061a8c74" xlink:href="ns-20200930.xsd#ns_NetIntercompanyBorrowingsRepayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_ns_NetIntercompanyBorrowingsRepayments_63d35098-9242-4301-acf3-626e061a8c74" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6b8aef98-37fa-49e2-b25f-96651b3c84a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_6b8aef98-37fa-49e2-b25f-96651b3c84a1" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements_56074036-3fb5-4514-9171-507fb612826c" xlink:href="ns-20200930.xsd#ns_ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_ns_ProceedsFromPaymentsForOtherFinancingActivitiesCondensedFinancialStatements_56074036-3fb5-4514-9171-507fb612826c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2aecc102-85f9-44a5-9080-870a13509eb3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_af664649-37c1-4a87-966f-4d9e43fecd0b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_2aecc102-85f9-44a5-9080-870a13509eb3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_bd89d25f-c5c4-4243-9263-03b19e4900d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents_bd89d25f-c5c4-4243-9263-03b19e4900d9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b3f9daea-ba98-4656-975a-4132192e2d60" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b3f9daea-ba98-4656-975a-4132192e2d60" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_878aded5-6d45-4aaf-a3a6-2a34081a61f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_878aded5-6d45-4aaf-a3a6-2a34081a61f0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_fb9802c3-f460-4e6c-b561-e0dd5748c8ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfCondensedFinancialStatementsTable_85ffa715-b9e4-445d-b902-2abc82320f69" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScheduleOfCondensedFinancialStatementsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedFinancialStatementsCaptionsLineItems_eebcf4a2-0156-40d8-85e7-a4f30a5f3aba" xlink:to="loc_srt_ScheduleOfCondensedFinancialStatementsTable_85ffa715-b9e4-445d-b902-2abc82320f69" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_85ffa715-b9e4-445d-b902-2abc82320f69" xlink:to="loc_srt_ConsolidatedEntitiesAxis_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46" xlink:to="loc_srt_ConsolidatedEntitiesDomain_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_c5c7aaed-03d7-4cfc-a22e-a8d9271dea46" xlink:to="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_ParentCompanyGuarantorMember_203e1c8e-d2c7-4996-ab31-ff2f0af866e2" xlink:href="ns-20200930.xsd#ns_ParentCompanyGuarantorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:to="loc_ns_ParentCompanyGuarantorMember_203e1c8e-d2c7-4996-ab31-ff2f0af866e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SubsidiaryIssuerMember_b9fc02ca-8ad4-4506-b676-11a67b3ad1ab" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SubsidiaryIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:to="loc_srt_SubsidiaryIssuerMember_b9fc02ca-8ad4-4506-b676-11a67b3ad1ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_GuarantorSubsidiariesMember_550b95b9-c1e9-4f73-941c-6359a9f86e44" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_GuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:to="loc_srt_GuarantorSubsidiariesMember_550b95b9-c1e9-4f73-941c-6359a9f86e44" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NonGuarantorSubsidiariesMember_61d85937-fd48-41a8-8dbb-7cfe6c0c55cf" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NonGuarantorSubsidiariesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9d003569-b85e-400a-bafe-edd07f99f88c" xlink:to="loc_srt_NonGuarantorSubsidiariesMember_61d85937-fd48-41a8-8dbb-7cfe6c0c55cf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d531058f-4489-4b7c-aab6-27f31a2e752d" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_85ffa715-b9e4-445d-b902-2abc82320f69" xlink:to="loc_dei_LegalEntityAxis_d531058f-4489-4b7c-aab6-27f31a2e752d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d531058f-4489-4b7c-aab6-27f31a2e752d_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d531058f-4489-4b7c-aab6-27f31a2e752d" xlink:to="loc_dei_EntityDomain_d531058f-4489-4b7c-aab6-27f31a2e752d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b8a022ab-7cba-43df-bb29-29a33158326c" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d531058f-4489-4b7c-aab6-27f31a2e752d" xlink:to="loc_dei_EntityDomain_b8a022ab-7cba-43df-bb29-29a33158326c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarEnergyLpMember_e71d99f2-16e6-458f-93b8-ad645f8f0831" xlink:href="ns-20200930.xsd#ns_NustarEnergyLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b8a022ab-7cba-43df-bb29-29a33158326c" xlink:to="loc_ns_NustarEnergyLpMember_e71d99f2-16e6-458f-93b8-ad645f8f0831" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarLogisticsLpMember_f10fc6da-fa3a-481d-8670-f828458ce11e" xlink:href="ns-20200930.xsd#ns_NustarLogisticsLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b8a022ab-7cba-43df-bb29-29a33158326c" xlink:to="loc_ns_NustarLogisticsLpMember_f10fc6da-fa3a-481d-8670-f828458ce11e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NustarPipelineOperatingPartnershipLpMember_62231d32-be46-47db-ab20-505ce36130ef" xlink:href="ns-20200930.xsd#ns_NustarPipelineOperatingPartnershipLpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b8a022ab-7cba-43df-bb29-29a33158326c" xlink:to="loc_ns_NustarPipelineOperatingPartnershipLpMember_62231d32-be46-47db-ab20-505ce36130ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_252dfafa-c853-4e25-b71f-d0be949852b5" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_ScheduleOfCondensedFinancialStatementsTable_85ffa715-b9e4-445d-b902-2abc82320f69" xlink:to="loc_srt_ConsolidationItemsAxis_252dfafa-c853-4e25-b71f-d0be949852b5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_252dfafa-c853-4e25-b71f-d0be949852b5_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_252dfafa-c853-4e25-b71f-d0be949852b5" xlink:to="loc_srt_ConsolidationItemsDomain_252dfafa-c853-4e25-b71f-d0be949852b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_3b14b295-835f-4cc1-b543-3f4c7de558b4" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_252dfafa-c853-4e25-b71f-d0be949852b5" xlink:to="loc_srt_ConsolidationItemsDomain_3b14b295-835f-4cc1-b543-3f4c7de558b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ReportableLegalEntitiesMember_ea297b45-c5c9-483c-a4f4-5fa92d71d4c7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ReportableLegalEntitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3b14b295-835f-4cc1-b543-3f4c7de558b4" xlink:to="loc_srt_ReportableLegalEntitiesMember_ea297b45-c5c9-483c-a4f4-5fa92d71d4c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_0b54c0bd-5032-44c7-a753-331a928ea16f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_3b14b295-835f-4cc1-b543-3f4c7de558b4" xlink:to="loc_srt_ConsolidationEliminationsMember_0b54c0bd-5032-44c7-a753-331a928ea16f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUBSEQUENTEVENTS" xlink:type="simple" xlink:href="ns-20200930.xsd#SUBSEQUENTEVENTS"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUBSEQUENTEVENTS" xlink:type="extended" id="i771ed1bfeb2547ab88df292a79344475_SUBSEQUENTEVENTS"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUBSEQUENTEVENTSTables" xlink:type="simple" xlink:href="ns-20200930.xsd#SUBSEQUENTEVENTSTables"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUBSEQUENTEVENTSTables" xlink:type="extended" id="if842501a63904c148714efc7d636b7d5_SUBSEQUENTEVENTSTables"/>
  <link:roleRef roleURI="http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails" xlink:type="simple" xlink:href="ns-20200930.xsd#SUBSEQUENTEVENTSDetails"/>
  <link:definitionLink xlink:role="http://www.nustarenergy.com/role/SUBSEQUENTEVENTSDetails" xlink:type="extended" id="i93fe0c1e4c694fd69769535034c392e4_SUBSEQUENTEVENTSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_NumberOfTerminals_7360a4d6-6d5e-49fa-bb6e-7a860df284c5" xlink:href="ns-20200930.xsd#ns_NumberOfTerminals"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:to="loc_ns_NumberOfTerminals_7360a4d6-6d5e-49fa-bb6e-7a860df284c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_effa11f2-225d-41ab-b293-255a8367a887" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleOfProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:to="loc_us-gaap_ProceedsFromSaleOfProductiveAssets_effa11f2-225d-41ab-b293-255a8367a887" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_DescriptionOfAssetsSold_ff3460b5-c4bc-4f24-845f-0a315893cc58" xlink:href="ns-20200930.xsd#ns_DescriptionOfAssetsSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:to="loc_ns_DescriptionOfAssetsSold_ff3460b5-c4bc-4f24-845f-0a315893cc58" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_cb14d2ba-6ca9-49a0-807d-7fbc5ef2323c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_cb14d2ba-6ca9-49a0-807d-7fbc5ef2323c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_ab257d59-d872-41c1-8cf0-dda9b4c94462" xlink:to="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_93f3f1da-e143-4496-a539-4da11b5e71f3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_93f3f1da-e143-4496-a539-4da11b5e71f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_93f3f1da-e143-4496-a539-4da11b5e71f3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_93f3f1da-e143-4496-a539-4da11b5e71f3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_93f3f1da-e143-4496-a539-4da11b5e71f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_91ca5ab0-153d-4b29-816d-621ce93c807b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_93f3f1da-e143-4496-a539-4da11b5e71f3" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_91ca5ab0-153d-4b29-816d-621ce93c807b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_78dd2bc6-3fbf-4a64-8bee-40ec3f4faa31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_91ca5ab0-153d-4b29-816d-621ce93c807b" xlink:to="loc_us-gaap_SubsequentEventMember_78dd2bc6-3fbf-4a64-8bee-40ec3f4faa31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_dc616c53-2238-4112-a686-0b9afdb01ddd" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:to="loc_srt_StatementScenarioAxis_dc616c53-2238-4112-a686-0b9afdb01ddd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_dc616c53-2238-4112-a686-0b9afdb01ddd_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_dc616c53-2238-4112-a686-0b9afdb01ddd" xlink:to="loc_srt_ScenarioUnspecifiedDomain_dc616c53-2238-4112-a686-0b9afdb01ddd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_9e9ddd27-4073-46b5-bcca-7fd9a627aa6d" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_dc616c53-2238-4112-a686-0b9afdb01ddd" xlink:to="loc_srt_ScenarioUnspecifiedDomain_9e9ddd27-4073-46b5-bcca-7fd9a627aa6d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_234fec0e-7192-42ef-8ae5-40009b4b7bec" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_9e9ddd27-4073-46b5-bcca-7fd9a627aa6d" xlink:to="loc_srt_ScenarioForecastMember_234fec0e-7192-42ef-8ae5-40009b4b7bec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1cc6442f-0ce5-4e24-a311-e258d240055e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1cc6442f-0ce5-4e24-a311-e258d240055e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_1cc6442f-0ce5-4e24-a311-e258d240055e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1cc6442f-0ce5-4e24-a311-e258d240055e" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_1cc6442f-0ce5-4e24-a311-e258d240055e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_e7830158-e519-4968-8e0b-5a7f41cb515c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1cc6442f-0ce5-4e24-a311-e258d240055e" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_e7830158-e519-4968-8e0b-5a7f41cb515c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ns_TexasCityTXOwnershipInterestMember_de9dbc2d-1b76-45d1-b7c9-56fd63e5573a" xlink:href="ns-20200930.xsd#ns_TexasCityTXOwnershipInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_e7830158-e519-4968-8e0b-5a7f41cb515c" xlink:to="loc_ns_TexasCityTXOwnershipInterestMember_de9dbc2d-1b76-45d1-b7c9-56fd63e5573a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ec5356f5-7702-440f-bc28-19f31b374023" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_debc08af-7883-4b75-849d-2e88e9e8ae13" xlink:to="loc_srt_RangeAxis_ec5356f5-7702-440f-bc28-19f31b374023" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ec5356f5-7702-440f-bc28-19f31b374023_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ec5356f5-7702-440f-bc28-19f31b374023" xlink:to="loc_srt_RangeMember_ec5356f5-7702-440f-bc28-19f31b374023_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9e783a32-de9a-4844-b265-4fe1a6be964c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ec5356f5-7702-440f-bc28-19f31b374023" xlink:to="loc_srt_RangeMember_9e783a32-de9a-4844-b265-4fe1a6be964c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_1a183519-4f8a-49c4-b278-f09463da9da0" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9e783a32-de9a-4844-b265-4fe1a6be964c" xlink:to="loc_srt_MinimumMember_1a183519-4f8a-49c4-b278-f09463da9da0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_11fde544-b2ed-42f0-96ce-2eebeea69ed2" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9e783a32-de9a-4844-b265-4fe1a6be964c" xlink:to="loc_srt_MaximumMember_11fde544-b2ed-42f0-96ce-2eebeea69ed2" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
</XBRL>
