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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:1f34a3f7-5ae4-47b4-86a6-4692d4d8e2cf,g:b549ee28-7802-4b6a-969f-d4487ac6c16c-->
<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.unfi.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="unfi-20230729.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_af31bed3-9990-4831-8644-f70b3cbfac59" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_af31bed3-9990-4831-8644-f70b3cbfac59" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_5d7584bd-9b9f-4faa-9b5a-cdf012a9d7f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_5d7584bd-9b9f-4faa-9b5a-cdf012a9d7f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_b2727e95-97fa-43d3-9712-7ccd4162ccf5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_b2727e95-97fa-43d3-9712-7ccd4162ccf5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_eb5b1e84-c6cd-4ca7-a4f0-89c249a862f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_TreasuryStockCommonShares_eb5b1e84-c6cd-4ca7-a4f0-89c249a862f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_275ea7a1-a7ec-42fa-8615-65d9dcc7fb0b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_275ea7a1-a7ec-42fa-8615-65d9dcc7fb0b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_ca99fb29-640d-4739-a109-078d9bca7235" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross_ca99fb29-640d-4739-a109-078d9bca7235" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_4a7ad3da-ad70-4afd-afbd-be4875860e70" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_4a7ad3da-ad70-4afd-afbd-be4875860e70" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_34668df7-22bc-4714-8325-f62ec64686fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_34668df7-22bc-4714-8325-f62ec64686fb" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_4916acf8-545b-431c-83e5-12883b6a1b08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_4916acf8-545b-431c-83e5-12883b6a1b08" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_9ff01686-bcd5-4bed-bad8-89c5d47fd698" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_9ff01686-bcd5-4bed-bad8-89c5d47fd698" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_de3157ff-34f1-4398-b2bd-dbc10a08c94c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_de3157ff-34f1-4398-b2bd-dbc10a08c94c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_6c7d24d3-7748-493f-aa60-d77db83c0acc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_6c7d24d3-7748-493f-aa60-d77db83c0acc" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_a5c7dbe5-e461-4de6-b202-f0f83b41e97a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_a5c7dbe5-e461-4de6-b202-f0f83b41e97a" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromRedemptions_0d117537-13aa-465c-bbb7-9301993a5890" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MinorityInterestDecreaseFromRedemptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromRedemptions_0d117537-13aa-465c-bbb7-9301993a5890" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_6611b5bd-2c0c-49fe-9dec-75ef081941e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_86f577ec-7e62-487d-9bd9-da49be5482ea" xlink:to="loc_us-gaap_ProfitLoss_6611b5bd-2c0c-49fe-9dec-75ef081941e1" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_006a1edb-201c-4c75-a877-572f677d6714" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_d42b79e7-3a5f-43eb-ae2c-87c84b9fad52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonShares_4da878ef-f073-4eff-8fdf-b6d3104b2399" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonShares"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_8e70896e-07b0-493e-a19f-4bfbb8786127" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_af31bed3-9990-4831-8644-f70b3cbfac59" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_8e70896e-07b0-493e-a19f-4bfbb8786127" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_aeba64dd-9d74-4432-b270-d60a8632dd1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_af31bed3-9990-4831-8644-f70b3cbfac59" xlink:to="loc_us-gaap_StatementTable_aeba64dd-9d74-4432-b270-d60a8632dd1e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_bf3cd532-153d-4c1e-9469-14d0201efa01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_aeba64dd-9d74-4432-b270-d60a8632dd1e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_bf3cd532-153d-4c1e-9469-14d0201efa01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_bf3cd532-153d-4c1e-9469-14d0201efa01_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bf3cd532-153d-4c1e-9469-14d0201efa01" xlink:to="loc_us-gaap_EquityComponentDomain_bf3cd532-153d-4c1e-9469-14d0201efa01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e0e44e35-2822-46d2-8058-f311b0db7f49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bf3cd532-153d-4c1e-9469-14d0201efa01" xlink:to="loc_us-gaap_EquityComponentDomain_e0e44e35-2822-46d2-8058-f311b0db7f49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e0e44e35-2822-46d2-8058-f311b0db7f49" xlink:to="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_05dc9c44-c35f-41c0-9093-98aa07551bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:to="loc_us-gaap_CommonStockMember_05dc9c44-c35f-41c0-9093-98aa07551bf8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_5cb2e077-cbdd-489d-9e3e-4306f3dbb67b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:to="loc_us-gaap_TreasuryStockCommonMember_5cb2e077-cbdd-489d-9e3e-4306f3dbb67b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_977e93a2-6aee-42cf-a48d-56a92c17103c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_977e93a2-6aee-42cf-a48d-56a92c17103c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_fd89dacb-8933-4f4a-8baa-bebfd6fda80d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:to="loc_us-gaap_AociIncludingPortionAttributableToNoncontrollingInterestMember_fd89dacb-8933-4f4a-8baa-bebfd6fda80d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_a0ea17f0-8693-4252-9c65-1536f841be1a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_c31d6590-30c9-4360-9fc1-0584a5a75973" xlink:to="loc_us-gaap_RetainedEarningsMember_a0ea17f0-8693-4252-9c65-1536f841be1a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_bba60cc4-51cb-4fbb-aafd-72390374d53c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e0e44e35-2822-46d2-8058-f311b0db7f49" xlink:to="loc_us-gaap_NoncontrollingInterestMember_bba60cc4-51cb-4fbb-aafd-72390374d53c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_90bd39a3-c6b1-4bb7-9388-6302a9c577ee" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_aeba64dd-9d74-4432-b270-d60a8632dd1e" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_90bd39a3-c6b1-4bb7-9388-6302a9c577ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_90bd39a3-c6b1-4bb7-9388-6302a9c577ee_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_90bd39a3-c6b1-4bb7-9388-6302a9c577ee" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_90bd39a3-c6b1-4bb7-9388-6302a9c577ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4edead47-0304-4aba-b5ce-f04883ffb1a8" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_90bd39a3-c6b1-4bb7-9388-6302a9c577ee" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4edead47-0304-4aba-b5ce-f04883ffb1a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_d4a49e0a-0bd9-484e-87ab-be1bd2674a8c" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4edead47-0304-4aba-b5ce-f04883ffb1a8" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_d4a49e0a-0bd9-484e-87ab-be1bd2674a8c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESCostofSalesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SIGNIFICANTACCOUNTINGPOLICIESCostofSalesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESCostofSalesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_4358035b-de67-4158-b381-b26c85b14885" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_ac10a735-eef4-4eaa-8862-3a3ce57ad47c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_4358035b-de67-4158-b381-b26c85b14885" xlink:to="loc_us-gaap_OperatingExpenses_ac10a735-eef4-4eaa-8862-3a3ce57ad47c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_252a6292-fa7e-4aba-970f-37bc6336e7df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_4358035b-de67-4158-b381-b26c85b14885" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_252a6292-fa7e-4aba-970f-37bc6336e7df" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_c5ef38c2-b515-47c2-8bf9-726a70fb9de4" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_252a6292-fa7e-4aba-970f-37bc6336e7df" xlink:to="loc_srt_ProductOrServiceAxis_c5ef38c2-b515-47c2-8bf9-726a70fb9de4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_c5ef38c2-b515-47c2-8bf9-726a70fb9de4_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_c5ef38c2-b515-47c2-8bf9-726a70fb9de4" xlink:to="loc_srt_ProductsAndServicesDomain_c5ef38c2-b515-47c2-8bf9-726a70fb9de4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_f68fcc21-fb84-41c5-97a7-fce83e008e2f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_c5ef38c2-b515-47c2-8bf9-726a70fb9de4" xlink:to="loc_srt_ProductsAndServicesDomain_f68fcc21-fb84-41c5-97a7-fce83e008e2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShippingAndHandlingMember_17708a54-75d4-47af-ad4c-3da32690c37a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShippingAndHandlingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_f68fcc21-fb84-41c5-97a7-fce83e008e2f" xlink:to="loc_us-gaap_ShippingAndHandlingMember_17708a54-75d4-47af-ad4c-3da32690c37a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESIntangibleAssetsWithDefiniteLivesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SIGNIFICANTACCOUNTINGPOLICIESIntangibleAssetsWithDefiniteLivesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESIntangibleAssetsWithDefiniteLivesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_c73f8c73-af0b-47ee-b0ed-03d34c3b4b26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_d3089983-2995-42ae-98ed-fedb78421fcf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_c73f8c73-af0b-47ee-b0ed-03d34c3b4b26" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_d3089983-2995-42ae-98ed-fedb78421fcf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_b0a6e41d-43cb-4b8a-aedb-ede608afc6bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_c73f8c73-af0b-47ee-b0ed-03d34c3b4b26" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_b0a6e41d-43cb-4b8a-aedb-ede608afc6bb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_0dc36f95-8230-4931-9b7e-640dd8955183" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_b0a6e41d-43cb-4b8a-aedb-ede608afc6bb" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_0dc36f95-8230-4931-9b7e-640dd8955183" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0dc36f95-8230-4931-9b7e-640dd8955183_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_0dc36f95-8230-4931-9b7e-640dd8955183" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0dc36f95-8230-4931-9b7e-640dd8955183_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_0dc36f95-8230-4931-9b7e-640dd8955183" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_21b8e170-35bf-4aa6-b9b4-c8aec15ec361" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:to="loc_us-gaap_CustomerRelationshipsMember_21b8e170-35bf-4aa6-b9b4-c8aec15ec361" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_62b48742-8cf1-4957-85cf-e5eda15d3486" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TrademarksAndTradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_62b48742-8cf1-4957-85cf-e5eda15d3486" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_FavorableOperatingLeasesMember_0c78cd56-cd01-4d42-bbb5-f83bf5a8254f" xlink:href="unfi-20230729.xsd#unfi_FavorableOperatingLeasesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:to="loc_unfi_FavorableOperatingLeasesMember_0c78cd56-cd01-4d42-bbb5-f83bf5a8254f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PharmacyPrescriptionFilesMember_44bafe30-e4a8-4b7c-a03e-273ab494cffa" xlink:href="unfi-20230729.xsd#unfi_PharmacyPrescriptionFilesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b94f08fa-9f6e-4c1a-9b43-8a2b1e4118c9" xlink:to="loc_unfi_PharmacyPrescriptionFilesMember_44bafe30-e4a8-4b7c-a03e-273ab494cffa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_b0a6e41d-43cb-4b8a-aedb-ede608afc6bb" xlink:to="loc_srt_RangeAxis_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5" xlink:to="loc_srt_RangeMember_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_012a2239-9803-4319-8e35-e564ce465c7d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_15e3ff39-5e9c-4ae2-916f-9b0e34f181d5" xlink:to="loc_srt_RangeMember_012a2239-9803-4319-8e35-e564ce465c7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_bb59da99-6e89-4e65-9ee6-4ed823a89485" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_012a2239-9803-4319-8e35-e564ce465c7d" xlink:to="loc_srt_MinimumMember_bb59da99-6e89-4e65-9ee6-4ed823a89485" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_5346882e-72f2-4c83-a67b-1d4eadf35e25" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_012a2239-9803-4319-8e35-e564ce465c7d" xlink:to="loc_srt_MaximumMember_5346882e-72f2-4c83-a67b-1d4eadf35e25" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESTreasuryStockDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SIGNIFICANTACCOUNTINGPOLICIESTreasuryStockDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESTreasuryStockDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_f323a223-6390-4942-9542-4ac2314ef949" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_f323a223-6390-4942-9542-4ac2314ef949" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_47521003-41ca-4acf-a635-61731df83542" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramPeriodInForce1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_StockRepurchaseProgramPeriodInForce1_47521003-41ca-4acf-a635-61731df83542" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_b59b83c7-2c44-4f9e-9a92-f52839e2f40f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_b59b83c7-2c44-4f9e-9a92-f52839e2f40f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_0da5a59a-7df6-4d0c-9ebd-356885072003" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_0da5a59a-7df6-4d0c-9ebd-356885072003" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_3ab508e4-b211-43bd-b7c1-0aee7ce4591b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_3ab508e4-b211-43bd-b7c1-0aee7ce4591b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_0de3fc75-0b7e-4367-aaf8-dee4bd20053f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_a61630da-d1cd-42c0-bc09-df37e4f1f222" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_0de3fc75-0b7e-4367-aaf8-dee4bd20053f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_bada21ed-1191-4d5c-ae44-c4e7933da7fa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_0de3fc75-0b7e-4367-aaf8-dee4bd20053f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_bada21ed-1191-4d5c-ae44-c4e7933da7fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_bada21ed-1191-4d5c-ae44-c4e7933da7fa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bada21ed-1191-4d5c-ae44-c4e7933da7fa" xlink:to="loc_us-gaap_EquityComponentDomain_bada21ed-1191-4d5c-ae44-c4e7933da7fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_686b9fca-edee-4c9c-962c-4cfd84ad7be5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bada21ed-1191-4d5c-ae44-c4e7933da7fa" xlink:to="loc_us-gaap_EquityComponentDomain_686b9fca-edee-4c9c-962c-4cfd84ad7be5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_1977e5db-90ce-431c-86ed-73f53300ba5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_686b9fca-edee-4c9c-962c-4cfd84ad7be5" xlink:to="loc_us-gaap_TreasuryStockCommonMember_1977e5db-90ce-431c-86ed-73f53300ba5d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESSelfInsuranceLiabilitiesNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SIGNIFICANTACCOUNTINGPOLICIESSelfInsuranceLiabilitiesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESSelfInsuranceLiabilitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualInsuranceRelatedAssessmentDiscountRate_5a84963b-1430-4a4c-9b6a-7f7077ea383e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyAccrualInsuranceRelatedAssessmentDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_LossContingencyAccrualInsuranceRelatedAssessmentDiscountRate_5a84963b-1430-4a4c-9b6a-7f7077ea383e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserveCurrent_88544b6b-c7c0-4159-9cc9-2e86babf69f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SelfInsuranceReserveCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_SelfInsuranceReserveCurrent_88544b6b-c7c0-4159-9cc9-2e86babf69f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_f6a41052-9673-43b6-b9f8-0c22bd965755" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_f6a41052-9673-43b6-b9f8-0c22bd965755" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SelfInsuranceReserveNoncurrent_19765ec8-d461-42c8-9b19-cad9b279bac6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SelfInsuranceReserveNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_SelfInsuranceReserveNoncurrent_19765ec8-d461-42c8-9b19-cad9b279bac6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_b676aea4-6388-4eb0-ae3d-7b336591fb48" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_b676aea4-6388-4eb0-ae3d-7b336591fb48" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InsuranceLiabilityDiscount_b5011f70-12ec-42a3-b23e-85289edff5f7" xlink:href="unfi-20230729.xsd#unfi_InsuranceLiabilityDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_unfi_InsuranceLiabilityDiscount_b5011f70-12ec-42a3-b23e-85289edff5f7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DuefromInsuranceCompanies_206f1b5f-6f30-40ec-b907-3f6950ff54ff" xlink:href="unfi-20230729.xsd#unfi_DuefromInsuranceCompanies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_unfi_DuefromInsuranceCompanies_206f1b5f-6f30-40ec-b907-3f6950ff54ff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration_4f54718f-ed09-453d-83e7-bbfc428fa38b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration_4f54718f-ed09-453d-83e7-bbfc428fa38b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration_4633cc9b-16a2-4344-8b66-f479ef6449a6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration_4633cc9b-16a2-4344-8b66-f479ef6449a6" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_f5e2a76f-c0f5-4967-bbe7-ca3894057674" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_af0f1d0e-5f88-4a3b-82ae-6bd50592376c" xlink:to="loc_us-gaap_LossContingenciesTable_f5e2a76f-c0f5-4967-bbe7-ca3894057674" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_38a18fa8-74dd-48dd-ba82-3deaae187caf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_f5e2a76f-c0f5-4967-bbe7-ca3894057674" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_38a18fa8-74dd-48dd-ba82-3deaae187caf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_38a18fa8-74dd-48dd-ba82-3deaae187caf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_38a18fa8-74dd-48dd-ba82-3deaae187caf" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_38a18fa8-74dd-48dd-ba82-3deaae187caf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_6b326f60-f7ea-4d80-938a-051e5959e6bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_38a18fa8-74dd-48dd-ba82-3deaae187caf" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_6b326f60-f7ea-4d80-938a-051e5959e6bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember_6bb44731-139e-4eab-8000-884d9507be50" xlink:href="unfi-20230729.xsd#unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_6b326f60-f7ea-4d80-938a-051e5959e6bb" xlink:to="loc_unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember_6bb44731-139e-4eab-8000-884d9507be50" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherLongTermLiabilitiesMember_162881b1-7ca7-4f66-b673-22035eab0004" xlink:href="unfi-20230729.xsd#unfi_OtherLongTermLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_6b326f60-f7ea-4d80-938a-051e5959e6bb" xlink:to="loc_unfi_OtherLongTermLiabilitiesMember_162881b1-7ca7-4f66-b673-22035eab0004" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/REVENUERECOGNITIONNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#REVENUERECOGNITIONNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/REVENUERECOGNITIONNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_d05b558a-7d12-4c47-ad9a-7663ea90cb33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_d05b558a-7d12-4c47-ad9a-7663ea90cb33" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_NumberOfCustomerChannels_44369b55-524a-42cc-9d1f-c5b3649dca7c" xlink:href="unfi-20230729.xsd#unfi_NumberOfCustomerChannels"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_unfi_NumberOfCustomerChannels_44369b55-524a-42cc-9d1f-c5b3649dca7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfStores_a4e39a9d-2461-4f6d-9d22-964427cd1cef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfStores"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_us-gaap_NumberOfStores_a4e39a9d-2461-4f6d-9d22-964427cd1cef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AccountsReceivableSaleAuthorizedAmount_3a64db9c-8b48-44cb-894d-ee81f6878580" xlink:href="unfi-20230729.xsd#unfi_AccountsReceivableSaleAuthorizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_unfi_AccountsReceivableSaleAuthorizedAmount_3a64db9c-8b48-44cb-894d-ee81f6878580" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableSale_b9b7a930-edd7-4809-ba12-201025b424a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_us-gaap_AccountsReceivableSale_b9b7a930-edd7-4809-ba12-201025b424a8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfAccountsReceivable_3763115c-b791-4640-a6c5-46f375b88154" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnSaleOfAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_us-gaap_GainLossOnSaleOfAccountsReceivable_3763115c-b791-4640-a6c5-46f375b88154" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_1f83ec8e-bcae-4248-8a4f-89e525c4ed6f" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_4f4f1b36-a520-4340-b883-3a9025187ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_4f4f1b36-a520-4340-b883-3a9025187ba3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4f4f1b36-a520-4340-b883-3a9025187ba3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_4f4f1b36-a520-4340-b883-3a9025187ba3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4f4f1b36-a520-4340-b883-3a9025187ba3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_a2d316ca-4429-461d-b541-4278cadd0093" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_4f4f1b36-a520-4340-b883-3a9025187ba3" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_a2d316ca-4429-461d-b541-4278cadd0093" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_099c23a8-4511-458f-b1f7-a698c4fc208a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_a2d316ca-4429-461d-b541-4278cadd0093" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_099c23a8-4511-458f-b1f7-a698c4fc208a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_961f48c2-a7e8-4604-870c-b4c55dc7ffe6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_961f48c2-a7e8-4604-870c-b4c55dc7ffe6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_961f48c2-a7e8-4604-870c-b4c55dc7ffe6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_961f48c2-a7e8-4604-870c-b4c55dc7ffe6" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_961f48c2-a7e8-4604-870c-b4c55dc7ffe6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_a0553b81-1efd-4281-800c-6ab915a8e239" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_961f48c2-a7e8-4604-870c-b4c55dc7ffe6" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_a0553b81-1efd-4281-800c-6ab915a8e239" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_e3ec62e0-50cb-4f27-b728-b1de4c1e71f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_a0553b81-1efd-4281-800c-6ab915a8e239" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_e3ec62e0-50cb-4f27-b728-b1de4c1e71f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_3b0a75f6-5396-4d22-b7fb-eac86d9222e7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_a0553b81-1efd-4281-800c-6ab915a8e239" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_3b0a75f6-5396-4d22-b7fb-eac86d9222e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_39c6db40-e52f-49c4-a635-afa3c96c329d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:to="loc_srt_ProductOrServiceAxis_39c6db40-e52f-49c4-a635-afa3c96c329d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_39c6db40-e52f-49c4-a635-afa3c96c329d_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_39c6db40-e52f-49c4-a635-afa3c96c329d" xlink:to="loc_srt_ProductsAndServicesDomain_39c6db40-e52f-49c4-a635-afa3c96c329d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_e42c7a58-780d-4812-988d-d095458f38fa" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_39c6db40-e52f-49c4-a635-afa3c96c329d" xlink:to="loc_srt_ProductsAndServicesDomain_e42c7a58-780d-4812-988d-d095458f38fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ProfessionalServicesMember_353f9e21-292c-477c-958c-4f31a33bd575" xlink:href="unfi-20230729.xsd#unfi_ProfessionalServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_e42c7a58-780d-4812-988d-d095458f38fa" xlink:to="loc_unfi_ProfessionalServicesMember_353f9e21-292c-477c-958c-4f31a33bd575" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_fa74072e-f744-4846-81fd-3d5628557c77" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:to="loc_srt_MajorCustomersAxis_fa74072e-f744-4846-81fd-3d5628557c77" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_fa74072e-f744-4846-81fd-3d5628557c77_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_fa74072e-f744-4846-81fd-3d5628557c77" xlink:to="loc_srt_NameOfMajorCustomerDomain_fa74072e-f744-4846-81fd-3d5628557c77_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_2b1279ca-44c7-46ef-983a-478d40f17a4b" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_fa74072e-f744-4846-81fd-3d5628557c77" xlink:to="loc_srt_NameOfMajorCustomerDomain_2b1279ca-44c7-46ef-983a-478d40f17a4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholeFoodsMarketMember_4a513b00-7311-4ce6-b6a4-dfe5f42bc2e3" xlink:href="unfi-20230729.xsd#unfi_WholeFoodsMarketMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_2b1279ca-44c7-46ef-983a-478d40f17a4b" xlink:to="loc_unfi_WholeFoodsMarketMember_4a513b00-7311-4ce6-b6a4-dfe5f42bc2e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_df18a421-e728-4ee7-b813-5f4532a663ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_a6889bc4-66b0-430b-9723-d9039a7318e8" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_df18a421-e728-4ee7-b813-5f4532a663ed" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_df18a421-e728-4ee7-b813-5f4532a663ed_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_df18a421-e728-4ee7-b813-5f4532a663ed" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_df18a421-e728-4ee7-b813-5f4532a663ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_69bd2b72-092c-47ae-9e92-e99bfb0f75a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_df18a421-e728-4ee7-b813-5f4532a663ed" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_69bd2b72-092c-47ae-9e92-e99bfb0f75a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ChainsMember_0c73c04c-6b42-45d3-9462-fa9fa788167a" xlink:href="unfi-20230729.xsd#unfi_ChainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_69bd2b72-092c-47ae-9e92-e99bfb0f75a7" xlink:to="loc_unfi_ChainsMember_0c73c04c-6b42-45d3-9462-fa9fa788167a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/REVENUERECOGNITIONDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#REVENUERECOGNITIONDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/REVENUERECOGNITIONDisaggregationofRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_76d0ffe2-2f36-4e0c-be7e-225522baf101" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2099406b-88aa-4962-bae8-aef940b96e77" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_76d0ffe2-2f36-4e0c-be7e-225522baf101" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_2099406b-88aa-4962-bae8-aef940b96e77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_f72ad957-fed5-45ae-8d79-d3bef8b87026" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_76d0ffe2-2f36-4e0c-be7e-225522baf101" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_f72ad957-fed5-45ae-8d79-d3bef8b87026" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_55a64581-e193-44ce-b836-59d0795a69a3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_f72ad957-fed5-45ae-8d79-d3bef8b87026" xlink:to="loc_srt_ConsolidationItemsAxis_55a64581-e193-44ce-b836-59d0795a69a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_55a64581-e193-44ce-b836-59d0795a69a3_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_55a64581-e193-44ce-b836-59d0795a69a3" xlink:to="loc_srt_ConsolidationItemsDomain_55a64581-e193-44ce-b836-59d0795a69a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_94d06a38-18ef-4257-8db8-d8b352047edf" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_55a64581-e193-44ce-b836-59d0795a69a3" xlink:to="loc_srt_ConsolidationItemsDomain_94d06a38-18ef-4257-8db8-d8b352047edf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_53f4baa4-6eb4-42f7-8c11-8a4f54925bef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_94d06a38-18ef-4257-8db8-d8b352047edf" xlink:to="loc_us-gaap_OperatingSegmentsMember_53f4baa4-6eb4-42f7-8c11-8a4f54925bef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_7dc8eeb6-3cb0-484e-bc4d-90746a4579e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_94d06a38-18ef-4257-8db8-d8b352047edf" xlink:to="loc_us-gaap_IntersegmentEliminationMember_7dc8eeb6-3cb0-484e-bc4d-90746a4579e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_292cec90-f3d3-475f-8ca3-a69e17d5d62e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_f72ad957-fed5-45ae-8d79-d3bef8b87026" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_292cec90-f3d3-475f-8ca3-a69e17d5d62e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_292cec90-f3d3-475f-8ca3-a69e17d5d62e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_292cec90-f3d3-475f-8ca3-a69e17d5d62e" xlink:to="loc_us-gaap_SegmentDomain_292cec90-f3d3-475f-8ca3-a69e17d5d62e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a9e9bb42-945c-4c1e-b269-eacf4f26f44f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_292cec90-f3d3-475f-8ca3-a69e17d5d62e" xlink:to="loc_us-gaap_SegmentDomain_a9e9bb42-945c-4c1e-b269-eacf4f26f44f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_7d71be3c-114e-4867-ad2d-f0718a290431" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a9e9bb42-945c-4c1e-b269-eacf4f26f44f" xlink:to="loc_unfi_WholesaleSegmentMember_7d71be3c-114e-4867-ad2d-f0718a290431" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailSegmentMember_4790f092-c6d0-42d7-b3bf-0bf50507cd90" xlink:href="unfi-20230729.xsd#unfi_RetailSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a9e9bb42-945c-4c1e-b269-eacf4f26f44f" xlink:to="loc_unfi_RetailSegmentMember_4790f092-c6d0-42d7-b3bf-0bf50507cd90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_671f0555-7890-48bf-944d-2b2c66d43761" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a9e9bb42-945c-4c1e-b269-eacf4f26f44f" xlink:to="loc_us-gaap_AllOtherSegmentsMember_671f0555-7890-48bf-944d-2b2c66d43761" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelAxis_4dc64836-abbe-45ee-925a-21cc6be82b4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_f72ad957-fed5-45ae-8d79-d3bef8b87026" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelAxis_4dc64836-abbe-45ee-925a-21cc6be82b4b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_4dc64836-abbe-45ee-925a-21cc6be82b4b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_4dc64836-abbe-45ee-925a-21cc6be82b4b" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_4dc64836-abbe-45ee-925a-21cc6be82b4b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerSalesChannelDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelAxis_4dc64836-abbe-45ee-925a-21cc6be82b4b" xlink:to="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ChainsMember_af5951b1-d05e-47c5-adc5-cf1b313f5e55" xlink:href="unfi-20230729.xsd#unfi_ChainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:to="loc_unfi_ChainsMember_af5951b1-d05e-47c5-adc5-cf1b313f5e55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_IndependentRetailersMember_f8c7c7db-8006-4fcb-96d8-8a54bfad692f" xlink:href="unfi-20230729.xsd#unfi_IndependentRetailersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:to="loc_unfi_IndependentRetailersMember_f8c7c7db-8006-4fcb-96d8-8a54bfad692f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SupernaturalMember_5e993d9f-825b-4063-8056-e31431ac253d" xlink:href="unfi-20230729.xsd#unfi_SupernaturalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:to="loc_unfi_SupernaturalMember_5e993d9f-825b-4063-8056-e31431ac253d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailCustomerMember_5e24486b-ca44-497e-85d7-0e2011f479d4" xlink:href="unfi-20230729.xsd#unfi_RetailCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:to="loc_unfi_RetailCustomerMember_5e24486b-ca44-497e-85d7-0e2011f479d4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCustomerMember_b52bb789-8add-456d-829a-53f2027e3801" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ContractWithCustomerSalesChannelDomain_ff160358-593b-4036-ad11-7a486c064404" xlink:to="loc_us-gaap_OtherCustomerMember_b52bb789-8add-456d-829a-53f2027e3801" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/REVENUERECOGNITIONAllowanceforUncollectibleReceivablesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#REVENUERECOGNITIONAllowanceforUncollectibleReceivablesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/REVENUERECOGNITIONAllowanceforUncollectibleReceivablesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_568c3ebb-8eb7-4f62-a219-d47f7bb0ceeb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_568c3ebb-8eb7-4f62-a219-d47f7bb0ceeb" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_9b64ca2c-c603-4d29-9ec6-43e5688b85f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_9b64ca2c-c603-4d29-9ec6-43e5688b85f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_6cf248ec-017c-4af0-b3e8-b1838d5a2df0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_6cf248ec-017c-4af0-b3e8-b1838d5a2df0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AllowanceforDoubtfulAccountsReceivablesRevenueReduction_cd87c2c6-5166-4769-9bce-7d26e788f047" xlink:href="unfi-20230729.xsd#unfi_AllowanceforDoubtfulAccountsReceivablesRevenueReduction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:to="loc_unfi_AllowanceforDoubtfulAccountsReceivablesRevenueReduction_cd87c2c6-5166-4769-9bce-7d26e788f047" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_2199897c-9de7-4450-b44d-b2b40d55d55c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_ea78d702-821a-4191-84e6-ea6e45dcf893" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_2199897c-9de7-4450-b44d-b2b40d55d55c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_db4dd9e6-20f4-49a0-b298-ac01f5459159" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_50ce4df3-d229-42e7-ae30-f16a3677aedd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_568c3ebb-8eb7-4f62-a219-d47f7bb0ceeb" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_50ce4df3-d229-42e7-ae30-f16a3677aedd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_176cb8f0-6a4c-466b-9cbb-38446fbabf1f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_50ce4df3-d229-42e7-ae30-f16a3677aedd" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_176cb8f0-6a4c-466b-9cbb-38446fbabf1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_176cb8f0-6a4c-466b-9cbb-38446fbabf1f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_176cb8f0-6a4c-466b-9cbb-38446fbabf1f" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_176cb8f0-6a4c-466b-9cbb-38446fbabf1f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_be861b80-d6fe-4824-91d8-cd65dd7d9fc8" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_176cb8f0-6a4c-466b-9cbb-38446fbabf1f" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_be861b80-d6fe-4824-91d8-cd65dd7d9fc8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_2329deb0-38ff-45fb-80e8-de232f1bc95e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_be861b80-d6fe-4824-91d8-cd65dd7d9fc8" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_2329deb0-38ff-45fb-80e8-de232f1bc95e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_a71da4db-b720-4f43-856d-008591c06046" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_76faeb37-a7e3-48a9-a9bb-ec947c495131" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_a71da4db-b720-4f43-856d-008591c06046" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_76faeb37-a7e3-48a9-a9bb-ec947c495131" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_5a7ae056-dfec-4244-aec8-f160617391d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_a71da4db-b720-4f43-856d-008591c06046" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_5a7ae056-dfec-4244-aec8-f160617391d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_6e2ebff2-0403-4d9f-8d2f-fe45933fb0c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_a71da4db-b720-4f43-856d-008591c06046" xlink:to="loc_us-gaap_RestructuringCharges_6e2ebff2-0403-4d9f-8d2f-fe45933fb0c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c6c3982b-8e70-4acf-9e3a-250fdf662715" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_a71da4db-b720-4f43-856d-008591c06046" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c6c3982b-8e70-4acf-9e3a-250fdf662715" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_6e708643-fb72-4692-988c-6e2bf9720fac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c6c3982b-8e70-4acf-9e3a-250fdf662715" xlink:to="loc_us-gaap_RestructuringPlanAxis_6e708643-fb72-4692-988c-6e2bf9720fac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_6e708643-fb72-4692-988c-6e2bf9720fac_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_6e708643-fb72-4692-988c-6e2bf9720fac" xlink:to="loc_us-gaap_RestructuringPlanDomain_6e708643-fb72-4692-988c-6e2bf9720fac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_1ada7893-55ca-42d5-94df-8d93bb237be1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_6e708643-fb72-4692-988c-6e2bf9720fac" xlink:to="loc_us-gaap_RestructuringPlanDomain_1ada7893-55ca-42d5-94df-8d93bb237be1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SUPERVALUMember_98576543-a1b1-4d16-83c7-eea8918b54ba" xlink:href="unfi-20230729.xsd#unfi_SUPERVALUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_1ada7893-55ca-42d5-94df-8d93bb237be1" xlink:to="loc_unfi_SUPERVALUMember_98576543-a1b1-4d16-83c7-eea8918b54ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_47046fa2-663a-49be-9e8b-27d8dc2270c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_c6c3982b-8e70-4acf-9e3a-250fdf662715" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_47046fa2-663a-49be-9e8b-27d8dc2270c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_47046fa2-663a-49be-9e8b-27d8dc2270c4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_47046fa2-663a-49be-9e8b-27d8dc2270c4" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_47046fa2-663a-49be-9e8b-27d8dc2270c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_c56e9051-615a-49d7-b5c0-dd678faf9abc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_47046fa2-663a-49be-9e8b-27d8dc2270c4" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_c56e9051-615a-49d7-b5c0-dd678faf9abc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FacilityClosingMember_27bc26c9-61f2-4b94-9830-f4df43178484" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FacilityClosingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_c56e9051-615a-49d7-b5c0-dd678faf9abc" xlink:to="loc_us-gaap_FacilityClosingMember_27bc26c9-61f2-4b94-9830-f4df43178484" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#PROPERTYANDEQUIPMENTNETPropertyandEquipmentNetDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_47b01bff-7f24-4687-a548-40ae4dae707d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_47b01bff-7f24-4687-a548-40ae4dae707d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_b1bcd431-e613-411d-b5ef-08da34115940" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_b1bcd431-e613-411d-b5ef-08da34115940" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_63ea77fe-976c-404d-a7b0-295ef6d6d843" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_63ea77fe-976c-404d-a7b0-295ef6d6d843" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_42627330-ca0d-41ba-bdf8-2492e5837b91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_42627330-ca0d-41ba-bdf8-2492e5837b91" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf4de95f-4b41-4b5e-a5e7-b2e707d9d877" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_956b95b8-5bf1-4023-a6f3-456fc72f30dc" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf4de95f-4b41-4b5e-a5e7-b2e707d9d877" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_88d1656e-60bc-4745-9982-4c78e02aec3a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf4de95f-4b41-4b5e-a5e7-b2e707d9d877" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_88d1656e-60bc-4745-9982-4c78e02aec3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_88d1656e-60bc-4745-9982-4c78e02aec3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_88d1656e-60bc-4745-9982-4c78e02aec3a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_88d1656e-60bc-4745-9982-4c78e02aec3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_88d1656e-60bc-4745-9982-4c78e02aec3a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_0de3ab23-0322-4efc-b9b9-81970b3ec481" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_LandMember_0de3ab23-0322-4efc-b9b9-81970b3ec481" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_d2fa0c11-668f-44c8-886d-9d18d03608ee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_d2fa0c11-668f-44c8-886d-9d18d03608ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_b9ad5a4b-b0c2-4cb1-ae82-99134862ff8f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_b9ad5a4b-b0c2-4cb1-ae82-99134862ff8f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquipmentMember_c69ebb3a-cd97-4a35-b799-6bfc8ce491dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_EquipmentMember_c69ebb3a-cd97-4a35-b799-6bfc8ce491dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VehiclesMember_283f87cf-d477-4611-808c-443d15dabcce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VehiclesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_VehiclesMember_283f87cf-d477-4611-808c-443d15dabcce" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_FinanceLeaseAssetsMember_308251bd-5c61-4a6f-b1b1-763e25a92d4e" xlink:href="unfi-20230729.xsd#unfi_FinanceLeaseAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_unfi_FinanceLeaseAssetsMember_308251bd-5c61-4a6f-b1b1-763e25a92d4e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_d5714053-d117-4efa-904b-29344c927d40" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_904160a2-2455-439a-8054-2ceedcee5adc" xlink:to="loc_us-gaap_ConstructionInProgressMember_d5714053-d117-4efa-904b-29344c927d40" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_134277e1-0a2f-402f-b379-1bb35f87e028" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_bf4de95f-4b41-4b5e-a5e7-b2e707d9d877" xlink:to="loc_srt_RangeAxis_134277e1-0a2f-402f-b379-1bb35f87e028" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_134277e1-0a2f-402f-b379-1bb35f87e028_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_134277e1-0a2f-402f-b379-1bb35f87e028" xlink:to="loc_srt_RangeMember_134277e1-0a2f-402f-b379-1bb35f87e028_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6c4668f5-3e5f-4e9d-9dbc-1c6352e7b7ca" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_134277e1-0a2f-402f-b379-1bb35f87e028" xlink:to="loc_srt_RangeMember_6c4668f5-3e5f-4e9d-9dbc-1c6352e7b7ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_dad86ce6-83da-4281-9288-34b6e2c7aa13" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6c4668f5-3e5f-4e9d-9dbc-1c6352e7b7ca" xlink:to="loc_srt_MinimumMember_dad86ce6-83da-4281-9288-34b6e2c7aa13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_7e07e19a-a564-478a-8418-2136fb316b70" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6c4668f5-3e5f-4e9d-9dbc-1c6352e7b7ca" xlink:to="loc_srt_MaximumMember_7e07e19a-a564-478a-8418-2136fb316b70" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#PROPERTYANDEQUIPMENTNETNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_f98cb278-d67a-4741-92f2-f868345016f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_d9d9a3f8-677c-457f-a6d1-954a17f607b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_f98cb278-d67a-4741-92f2-f868345016f9" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_d9d9a3f8-677c-457f-a6d1-954a17f607b2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_ebd8174f-8411-466b-93b8-c10113c3c44b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_f98cb278-d67a-4741-92f2-f868345016f9" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_ebd8174f-8411-466b-93b8-c10113c3c44b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_ebd8174f-8411-466b-93b8-c10113c3c44b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_445c6f3b-867e-490a-85d9-f6c148e03bab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_ee7c1a15-a0b0-437e-a396-9e4b1ea4c0c7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_445c6f3b-867e-490a-85d9-f6c148e03bab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentMember_de967b1b-0031-48e7-90aa-5eb26b3beee9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_445c6f3b-867e-490a-85d9-f6c148e03bab" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentMember_de967b1b-0031-48e7-90aa-5eb26b3beee9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#GOODWILLANDINTANGIBLEASSETSNETNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportingUnits_7474079d-159c-42bb-a15d-a34877c3337a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfReportingUnits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:to="loc_us-gaap_NumberOfReportingUnits_7474079d-159c-42bb-a15d-a34877c3337a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_3caf69ab-f95f-4281-82e5-b5d0517763f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:to="loc_us-gaap_NumberOfOperatingSegments_3caf69ab-f95f-4281-82e5-b5d0517763f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_30484985-f8f5-424b-ad09-e0b6d8619696" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_30484985-f8f5-424b-ad09-e0b6d8619696" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_3f53d76d-f1ea-4215-aa96-8ddbb0a3da12" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_3f53d76d-f1ea-4215-aa96-8ddbb0a3da12" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_b86c3852-0953-484d-8e66-814ccfc094de" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_ef956f4a-d164-4b20-8e62-8ffb673b1f02" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_b86c3852-0953-484d-8e66-814ccfc094de" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAxis_eb47a0e7-4e54-458f-a99a-ad366306f07b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReportingUnitAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_b86c3852-0953-484d-8e66-814ccfc094de" xlink:to="loc_us-gaap_ReportingUnitAxis_eb47a0e7-4e54-458f-a99a-ad366306f07b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_eb47a0e7-4e54-458f-a99a-ad366306f07b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReportingUnitAxis_eb47a0e7-4e54-458f-a99a-ad366306f07b" xlink:to="loc_us-gaap_ReportingUnitDomain_eb47a0e7-4e54-458f-a99a-ad366306f07b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_5dfa92f6-00cc-4e7b-9adf-7437bc6dd289" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReportingUnitAxis_eb47a0e7-4e54-458f-a99a-ad366306f07b" xlink:to="loc_us-gaap_ReportingUnitDomain_5dfa92f6-00cc-4e7b-9adf-7437bc6dd289" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_a61c3c3b-5194-41f7-a768-d0229595c16f" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_5dfa92f6-00cc-4e7b-9adf-7437bc6dd289" xlink:to="loc_unfi_WholesaleSegmentMember_a61c3c3b-5194-41f7-a768-d0229595c16f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailReportingUnitMember_afd9e439-f714-4009-829f-52f0819eee9c" xlink:href="unfi-20230729.xsd#unfi_RetailReportingUnitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_5dfa92f6-00cc-4e7b-9adf-7437bc6dd289" xlink:to="loc_unfi_RetailReportingUnitMember_afd9e439-f714-4009-829f-52f0819eee9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SeparateOperatingSegmentMember_2226e58d-6edc-4b29-b705-8f72e20b073b" xlink:href="unfi-20230729.xsd#unfi_SeparateOperatingSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_5dfa92f6-00cc-4e7b-9adf-7437bc6dd289" xlink:to="loc_unfi_SeparateOperatingSegmentMember_2226e58d-6edc-4b29-b705-8f72e20b073b" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETGoodwillandIntangibleAssetsChangesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#GOODWILLANDINTANGIBLEASSETSNETGoodwillandIntangibleAssetsChangesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETGoodwillandIntangibleAssetsChangesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_c825b879-4762-4284-bc7e-85ef7bac0901" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_fcba3493-4d16-447c-8ceb-afb4f6374c26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_c825b879-4762-4284-bc7e-85ef7bac0901" xlink:to="loc_us-gaap_GoodwillRollForward_fcba3493-4d16-447c-8ceb-afb4f6374c26" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1510f87c-8fdf-49f6-9d7d-a56e8c0a8f9f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_fcba3493-4d16-447c-8ceb-afb4f6374c26" xlink:to="loc_us-gaap_Goodwill_1510f87c-8fdf-49f6-9d7d-a56e8c0a8f9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_f9031d80-4311-40cc-9569-62ff6ad66175" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_fcba3493-4d16-447c-8ceb-afb4f6374c26" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_f9031d80-4311-40cc-9569-62ff6ad66175" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1cc27a68-f476-44c3-b352-29dd1d4084fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_8469d153-6d4a-4166-9d75-c3edda7f1758" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_c825b879-4762-4284-bc7e-85ef7bac0901" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_8469d153-6d4a-4166-9d75-c3edda7f1758" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_e0163a4a-a316-4e1b-a323-1562174f4ec5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_c825b879-4762-4284-bc7e-85ef7bac0901" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_e0163a4a-a316-4e1b-a323-1562174f4ec5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8159d45a-7a73-4d59-bdf6-57a77dae1814" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_e0163a4a-a316-4e1b-a323-1562174f4ec5" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8159d45a-7a73-4d59-bdf6-57a77dae1814" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8159d45a-7a73-4d59-bdf6-57a77dae1814_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8159d45a-7a73-4d59-bdf6-57a77dae1814" xlink:to="loc_us-gaap_SegmentDomain_8159d45a-7a73-4d59-bdf6-57a77dae1814_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f5263a62-1055-437a-9acd-b1323762a107" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8159d45a-7a73-4d59-bdf6-57a77dae1814" xlink:to="loc_us-gaap_SegmentDomain_f5263a62-1055-437a-9acd-b1323762a107" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_77ba40f9-60c5-4e04-ba6c-c3892e7be1e9" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f5263a62-1055-437a-9acd-b1323762a107" xlink:to="loc_unfi_WholesaleSegmentMember_77ba40f9-60c5-4e04-ba6c-c3892e7be1e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_5937de45-44b3-4172-910d-aaf27068602b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f5263a62-1055-437a-9acd-b1323762a107" xlink:to="loc_us-gaap_AllOtherSegmentsMember_5937de45-44b3-4172-910d-aaf27068602b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETIdentifiableIntangibleAssetsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#GOODWILLANDINTANGIBLEASSETSNETIdentifiableIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETIdentifiableIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ScheduleofIntangibleAssetsLineItems_fee416c7-3acc-4ef6-98a6-894ab7817db5" xlink:href="unfi-20230729.xsd#unfi_ScheduleofIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_9274c95c-da73-41a1-8cbd-a12aaee4b430" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_ScheduleofIntangibleAssetsLineItems_fee416c7-3acc-4ef6-98a6-894ab7817db5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_9274c95c-da73-41a1-8cbd-a12aaee4b430" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_eb7d6ca2-3863-4411-b710-9e846732b481" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_9274c95c-da73-41a1-8cbd-a12aaee4b430" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_eb7d6ca2-3863-4411-b710-9e846732b481" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_78a2c7ae-918b-444d-a381-ffa0eac0d8c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_9274c95c-da73-41a1-8cbd-a12aaee4b430" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_78a2c7ae-918b-444d-a381-ffa0eac0d8c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_23e5498c-3a61-4954-b7ee-cce3786aa092" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_9274c95c-da73-41a1-8cbd-a12aaee4b430" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_23e5498c-3a61-4954-b7ee-cce3786aa092" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_6a27dc97-c230-4505-8427-6e100d88319c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_ScheduleofIntangibleAssetsLineItems_fee416c7-3acc-4ef6-98a6-894ab7817db5" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_6a27dc97-c230-4505-8427-6e100d88319c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_6092aa4e-876a-4f38-b80d-fcd592d08823" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_6a27dc97-c230-4505-8427-6e100d88319c" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_6092aa4e-876a-4f38-b80d-fcd592d08823" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_fcabd827-4ba0-49a1-98b2-0844dfb4b09e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IntangibleAssetsNetExcludingGoodwillAbstract_6a27dc97-c230-4505-8427-6e100d88319c" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_fcabd827-4ba0-49a1-98b2-0844dfb4b09e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_3d1bd005-9449-4fc2-86c7-21e13c96bf5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e74f8d0f-1034-4411-ab49-2df5f4c53fad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_ScheduleofIntangibleAssetsLineItems_fee416c7-3acc-4ef6-98a6-894ab7817db5" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_e74f8d0f-1034-4411-ab49-2df5f4c53fad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ScheduleofIntangibleAssetsTable_725cdc0c-59a8-4137-91fd-9523a998df6f" xlink:href="unfi-20230729.xsd#unfi_ScheduleofIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_unfi_ScheduleofIntangibleAssetsLineItems_fee416c7-3acc-4ef6-98a6-894ab7817db5" xlink:to="loc_unfi_ScheduleofIntangibleAssetsTable_725cdc0c-59a8-4137-91fd-9523a998df6f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_dee5318d-eeb7-437c-8dc2-6586a98bd410" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_unfi_ScheduleofIntangibleAssetsTable_725cdc0c-59a8-4137-91fd-9523a998df6f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_dee5318d-eeb7-437c-8dc2-6586a98bd410" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_dee5318d-eeb7-437c-8dc2-6586a98bd410_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_dee5318d-eeb7-437c-8dc2-6586a98bd410" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_dee5318d-eeb7-437c-8dc2-6586a98bd410_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_dee5318d-eeb7-437c-8dc2-6586a98bd410" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_9f2bfe6b-13d1-4954-b755-927626c46672" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:to="loc_us-gaap_CustomerRelationshipsMember_9f2bfe6b-13d1-4954-b755-927626c46672" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PharmacyPrescriptionFilesMember_355364eb-9221-4af5-b3f1-4025554e062b" xlink:href="unfi-20230729.xsd#unfi_PharmacyPrescriptionFilesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:to="loc_unfi_PharmacyPrescriptionFilesMember_355364eb-9221-4af5-b3f1-4025554e062b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OperatingLeaseIntangibleMember_be4a2ccc-4863-4954-9e39-1e82396fa966" xlink:href="unfi-20230729.xsd#unfi_OperatingLeaseIntangibleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:to="loc_unfi_OperatingLeaseIntangibleMember_be4a2ccc-4863-4954-9e39-1e82396fa966" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_23c4ec5e-b8e6-44d6-ad7e-c80acba8ee1f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TrademarksAndTradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_6f37fbc1-1b13-4e32-bc15-70eb8df1dced" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_23c4ec5e-b8e6-44d6-ad7e-c80acba8ee1f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_39b3db5f-8c55-422d-ba34-d99e86bb5eb9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_unfi_ScheduleofIntangibleAssetsTable_725cdc0c-59a8-4137-91fd-9523a998df6f" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_39b3db5f-8c55-422d-ba34-d99e86bb5eb9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_39b3db5f-8c55-422d-ba34-d99e86bb5eb9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_39b3db5f-8c55-422d-ba34-d99e86bb5eb9" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_39b3db5f-8c55-422d-ba34-d99e86bb5eb9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e3e799f5-f11e-4b37-ac1a-b858bb169b1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_39b3db5f-8c55-422d-ba34-d99e86bb5eb9" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e3e799f5-f11e-4b37-ac1a-b858bb169b1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksAndTradeNamesMember_ddc8e2f2-3fb5-4ad3-81bf-5df05f27e1e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TrademarksAndTradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e3e799f5-f11e-4b37-ac1a-b858bb169b1b" xlink:to="loc_us-gaap_TrademarksAndTradeNamesMember_ddc8e2f2-3fb5-4ad3-81bf-5df05f27e1e0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSRecurringFairValueMeasurementsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSRecurringFairValueMeasurementsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSRecurringFairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsCurrent_89e23f45-7a79-465b-a320-d1b946689373" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeAssetsCurrent_89e23f45-7a79-465b-a320-d1b946689373" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsNoncurrent_4909542d-7916-4237-af9a-13a6de24bf09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeAssetsNoncurrent_4909542d-7916-4237-af9a-13a6de24bf09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration_25e8f739-6270-4f84-8987-35d13fcd3aff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeAssetCurrentStatementOfFinancialPositionExtensibleEnumeration_25e8f739-6270-4f84-8987-35d13fcd3aff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration_145cb170-26a7-48af-a2ed-38adce8ce710" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeAssetNoncurrentStatementOfFinancialPositionExtensibleEnumeration_145cb170-26a7-48af-a2ed-38adce8ce710" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_c3f69974-38f0-43dd-8f29-940aff071885" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeLiabilityCurrentStatementOfFinancialPositionExtensibleEnumeration_c3f69974-38f0-43dd-8f29-940aff071885" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_48d987f9-10b4-4369-bf3e-120239c3b99a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_48d987f9-10b4-4369-bf3e-120239c3b99a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_97d97462-6b04-42e5-bb68-ce83e314efe2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeLiabilities_97d97462-6b04-42e5-bb68-ce83e314efe2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems_a0ea6a2d-3adc-40bd-8464-b0d197591922" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_aaf67b4c-1836-441a-bd1f-87d463856202" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_aaf67b4c-1836-441a-bd1f-87d463856202" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_aaf67b4c-1836-441a-bd1f-87d463856202_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_aaf67b4c-1836-441a-bd1f-87d463856202" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_aaf67b4c-1836-441a-bd1f-87d463856202_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8f985e26-8783-4473-8a38-fba09d39c8e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_aaf67b4c-1836-441a-bd1f-87d463856202" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8f985e26-8783-4473-8a38-fba09d39c8e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_0b4425d5-61fc-43b2-aacb-b4087be6e13d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_8f985e26-8783-4473-8a38-fba09d39c8e9" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_0b4425d5-61fc-43b2-aacb-b4087be6e13d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_63dd2a96-a0aa-4628-810c-8c7f9b79e098" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_63dd2a96-a0aa-4628-810c-8c7f9b79e098" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_63dd2a96-a0aa-4628-810c-8c7f9b79e098_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_63dd2a96-a0aa-4628-810c-8c7f9b79e098" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_63dd2a96-a0aa-4628-810c-8c7f9b79e098_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_291d35fa-31dc-4038-89b4-f12adca691d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_63dd2a96-a0aa-4628-810c-8c7f9b79e098" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_291d35fa-31dc-4038-89b4-f12adca691d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_9b623a50-7cca-4d10-9915-56a3f8f83015" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_291d35fa-31dc-4038-89b4-f12adca691d2" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_9b623a50-7cca-4d10-9915-56a3f8f83015" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_5f65326f-6912-47a9-b704-25886093a747" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_291d35fa-31dc-4038-89b4-f12adca691d2" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_5f65326f-6912-47a9-b704-25886093a747" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_68aed462-59d1-4489-8c99-06bb65173ea3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_291d35fa-31dc-4038-89b4-f12adca691d2" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_68aed462-59d1-4489-8c99-06bb65173ea3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_34b6c8ba-dfd0-41e0-9ce5-0a73e01c1770" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_c2c2a0a0-4d17-4c2b-8dbe-3bce461df44b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_34b6c8ba-dfd0-41e0-9ce5-0a73e01c1770" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_3655da82-7d0b-40d7-bbcd-dd632c322ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_34b6c8ba-dfd0-41e0-9ce5-0a73e01c1770" xlink:to="loc_us-gaap_InterestRateSwapMember_3655da82-7d0b-40d7-bbcd-dd632c322ecc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_FuelderivativeMember_0ed61e60-e693-4976-982b-642de74b5a7c" xlink:href="unfi-20230729.xsd#unfi_FuelderivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_34b6c8ba-dfd0-41e0-9ce5-0a73e01c1770" xlink:to="loc_unfi_FuelderivativeMember_0ed61e60-e693-4976-982b-642de74b5a7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:to="loc_us-gaap_HedgingDesignationAxis_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5" xlink:to="loc_us-gaap_HedgingDesignationDomain_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_332a1307-1819-4b06-8d8b-76b6a0be8e81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_3c7ab9bf-0a0e-4b79-908e-e7b4b1340de5" xlink:to="loc_us-gaap_HedgingDesignationDomain_332a1307-1819-4b06-8d8b-76b6a0be8e81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_cb5ada2f-ebf8-45fc-a1d6-a7140892b8e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_332a1307-1819-4b06-8d8b-76b6a0be8e81" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_cb5ada2f-ebf8-45fc-a1d6-a7140892b8e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosuresTable_56aec478-01b9-4d7e-b24a-7c3fa698a9f6" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4702d71e-7000-4319-8107-083710282d08" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_87c61c83-e5bf-4c6c-b8fc-8392ec7b0381" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4702d71e-7000-4319-8107-083710282d08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember_178fed79-4e18-4c8f-81d2-262a08d5bcf5" xlink:href="unfi-20230729.xsd#unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4702d71e-7000-4319-8107-083710282d08" xlink:to="loc_unfi_AccruedExpensesAndOtherCurrentLiabilitiesMember_178fed79-4e18-4c8f-81d2-262a08d5bcf5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSFairValueEstimatesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSFairValueEstimatesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSFairValueEstimatesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_5a665013-28c5-47fd-b0ce-916ae8374566" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableFairValueDisclosure_d6f40b9e-beda-4083-ba5c-9b90ea57220d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NotesReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_5a665013-28c5-47fd-b0ce-916ae8374566" xlink:to="loc_us-gaap_NotesReceivableFairValueDisclosure_d6f40b9e-beda-4083-ba5c-9b90ea57220d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_447b841e-347d-49ee-937d-81b1f7b43acf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_5a665013-28c5-47fd-b0ce-916ae8374566" xlink:to="loc_us-gaap_LongTermDebtFairValue_447b841e-347d-49ee-937d-81b1f7b43acf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c7c3cb5f-827f-4d5a-af8c-6871b051568a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_5a665013-28c5-47fd-b0ce-916ae8374566" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c7c3cb5f-827f-4d5a-af8c-6871b051568a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_6969b2dc-1e40-4aee-b76a-a3d81616c98d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c7c3cb5f-827f-4d5a-af8c-6871b051568a" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_6969b2dc-1e40-4aee-b76a-a3d81616c98d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_6969b2dc-1e40-4aee-b76a-a3d81616c98d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_6969b2dc-1e40-4aee-b76a-a3d81616c98d" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_6969b2dc-1e40-4aee-b76a-a3d81616c98d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63e26261-8a9a-4859-ab33-0f349182f863" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_6969b2dc-1e40-4aee-b76a-a3d81616c98d" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63e26261-8a9a-4859-ab33-0f349182f863" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1bce5df1-145c-4281-8181-25c1b21e4126" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_63e26261-8a9a-4859-ab33-0f349182f863" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1bce5df1-145c-4281-8181-25c1b21e4126" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_37c3bb86-eeba-4ed5-9096-b41794c43676" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1bce5df1-145c-4281-8181-25c1b21e4126" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_37c3bb86-eeba-4ed5-9096-b41794c43676" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_d87b6ed9-e376-428b-8e15-241349b2f23c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_1bce5df1-145c-4281-8181-25c1b21e4126" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_d87b6ed9-e376-428b-8e15-241349b2f23c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/DERIVATIVESOutstandingSwapContractsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#DERIVATIVESOutstandingSwapContractsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/DERIVATIVESOutstandingSwapContractsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_6d4e1ed0-5724-49f6-bb34-58b125fa2172" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_2320c444-b23e-4e0a-b34d-ef758368a9d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6d4e1ed0-5724-49f6-bb34-58b125fa2172" xlink:to="loc_us-gaap_DerivativeNotionalAmount_2320c444-b23e-4e0a-b34d-ef758368a9d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeForwardInterestRate_770d699e-3ee9-4188-b0e4-11759cb5d43d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeForwardInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_6d4e1ed0-5724-49f6-bb34-58b125fa2172" xlink:to="loc_us-gaap_DerivativeForwardInterestRate_770d699e-3ee9-4188-b0e4-11759cb5d43d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_9fee986f-7546-4ac1-b4d2-08db84c5db71" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_6d4e1ed0-5724-49f6-bb34-58b125fa2172" xlink:to="loc_us-gaap_DerivativeTable_9fee986f-7546-4ac1-b4d2-08db84c5db71" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_a2fe8b1b-bca6-41ff-9df8-424be3405021" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_9fee986f-7546-4ac1-b4d2-08db84c5db71" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_a2fe8b1b-bca6-41ff-9df8-424be3405021" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_a2fe8b1b-bca6-41ff-9df8-424be3405021_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_a2fe8b1b-bca6-41ff-9df8-424be3405021" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_a2fe8b1b-bca6-41ff-9df8-424be3405021_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_a2fe8b1b-bca6-41ff-9df8-424be3405021" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueSeptember302023Member_913616e5-873c-4b63-8a15-287d40a226a5" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueSeptember302023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueSeptember302023Member_913616e5-873c-4b63-8a15-287d40a226a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober312023Member_61c84a77-acae-47de-bda3-10e6f2186a23" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober312023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober312023Member_61c84a77-acae-47de-bda3-10e6f2186a23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueMarch2820241Member_ec31e6ed-eaad-4485-8f37-a77898a203b6" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueMarch2820241Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueMarch2820241Member_ec31e6ed-eaad-4485-8f37-a77898a203b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueMarch2820242Member_accfe846-fe5e-4ec0-9a35-2f8c955c7429" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueMarch2820242Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueMarch2820242Member_accfe846-fe5e-4ec0-9a35-2f8c955c7429" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober3120241Member_bdbeb437-f1b6-408e-82d2-7802e36585af" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober3120241Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober3120241Member_bdbeb437-f1b6-408e-82d2-7802e36585af" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober3120242Member_a2e0336b-2d7d-480f-825e-55a2063e8c79" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober3120242Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober3120242Member_a2e0336b-2d7d-480f-825e-55a2063e8c79" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober3120243Member_69e304f2-17b9-41b4-aa2c-01daa9ab4592" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober3120243Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober3120243Member_69e304f2-17b9-41b4-aa2c-01daa9ab4592" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober2220251Member_c272a7df-23a7-4621-9d76-f9d0a10c6c2c" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober2220251Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober2220251Member_c272a7df-23a7-4621-9d76-f9d0a10c6c2c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober2220252Member_36b57f78-b50b-484b-ad28-de8aaca39425" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober2220252Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober2220252Member_36b57f78-b50b-484b-ad28-de8aaca39425" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober2220253Member_144533f3-d3e4-468c-aea6-df54f2d47dfa" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober2220253Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober2220253Member_144533f3-d3e4-468c-aea6-df54f2d47dfa" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InterestRateSwapDueOctober2220254Member_c5face04-e833-42bd-a233-4d3b17092ffe" xlink:href="unfi-20230729.xsd#unfi_InterestRateSwapDueOctober2220254Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c586493d-e53c-44d6-abd2-a0bde2915b03" xlink:to="loc_unfi_InterestRateSwapDueOctober2220254Member_c5face04-e833-42bd-a233-4d3b17092ffe" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/DERIVATIVESNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#DERIVATIVESNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/DERIVATIVESNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PaymentToTerminateDerivativeContract_843cb7ce-b6f6-4117-924d-9cde333919b8" xlink:href="unfi-20230729.xsd#unfi_PaymentToTerminateDerivativeContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:to="loc_unfi_PaymentToTerminateDerivativeContract_843cb7ce-b6f6-4117-924d-9cde333919b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_59cabe6a-c582-4d0f-a331-c81706a3dab7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:to="loc_us-gaap_DerivativeNotionalAmount_59cabe6a-c582-4d0f-a331-c81706a3dab7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_d41b543e-f90f-4f7f-ac67-84a357aaf117" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_d41b543e-f90f-4f7f-ac67-84a357aaf117" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DerivativeGainLossOnTerminationOfDerivativeNet_485a7b69-65b8-49b0-a283-6d10ad5362d2" xlink:href="unfi-20230729.xsd#unfi_DerivativeGainLossOnTerminationOfDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:to="loc_unfi_DerivativeGainLossOnTerminationOfDerivativeNet_485a7b69-65b8-49b0-a283-6d10ad5362d2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_c95b4f9d-23bc-461a-a01d-6cbf41e557d0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_628d46e4-b889-45d8-9d61-fd6d96cbc1cb" xlink:to="loc_us-gaap_DerivativeTable_c95b4f9d-23bc-461a-a01d-6cbf41e557d0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_fcfc746c-342f-4250-a7bc-b70ded951dbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c95b4f9d-23bc-461a-a01d-6cbf41e557d0" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_fcfc746c-342f-4250-a7bc-b70ded951dbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_fcfc746c-342f-4250-a7bc-b70ded951dbc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_fcfc746c-342f-4250-a7bc-b70ded951dbc" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_fcfc746c-342f-4250-a7bc-b70ded951dbc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_a258a986-155a-4f2a-9e52-6e3b606fdbca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_fcfc746c-342f-4250-a7bc-b70ded951dbc" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_a258a986-155a-4f2a-9e52-6e3b606fdbca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_63a8edcb-39b3-4f2f-8b0c-282829e65dbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a258a986-155a-4f2a-9e52-6e3b606fdbca" xlink:to="loc_us-gaap_InterestRateSwapMember_63a8edcb-39b3-4f2f-8b0c-282829e65dbc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ForwardStartingInterestRateSwapMember_982a9c63-d4e1-4d2e-9636-95b263874241" xlink:href="unfi-20230729.xsd#unfi_ForwardStartingInterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_a258a986-155a-4f2a-9e52-6e3b606fdbca" xlink:to="loc_unfi_ForwardStartingInterestRateSwapMember_982a9c63-d4e1-4d2e-9636-95b263874241" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_5cb120b9-8875-41de-9de7-fba503f24c82" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_c95b4f9d-23bc-461a-a01d-6cbf41e557d0" xlink:to="loc_us-gaap_DebtInstrumentAxis_5cb120b9-8875-41de-9de7-fba503f24c82" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5cb120b9-8875-41de-9de7-fba503f24c82_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_5cb120b9-8875-41de-9de7-fba503f24c82" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5cb120b9-8875-41de-9de7-fba503f24c82_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_37e756e7-1335-4ca7-b432-d9bf777f7ba8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_5cb120b9-8875-41de-9de7-fba503f24c82" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_37e756e7-1335-4ca7-b432-d9bf777f7ba8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SeniorNotesDueOctober20286750Member_58b4aac9-8869-4993-bd69-adec712f23cf" xlink:href="unfi-20230729.xsd#unfi_SeniorNotesDueOctober20286750Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_37e756e7-1335-4ca7-b432-d9bf777f7ba8" xlink:to="loc_unfi_SeniorNotesDueOctober20286750Member_58b4aac9-8869-4993-bd69-adec712f23cf" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LONGTERMDEBTScheduleofLongtermDebtDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LONGTERMDEBTScheduleofLongtermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LONGTERMDEBTScheduleofLongtermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_67aed7f0-c4dd-42e9-adaf-2459ba6aefa4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_DebtInstrumentInterestRateDuringPeriod_67aed7f0-c4dd-42e9-adaf-2459ba6aefa4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_bb66b5de-b257-4c17-a136-cd07ffe281e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_bb66b5de-b257-4c17-a136-cd07ffe281e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_b11167a2-b582-4982-8bd5-bbc16a3bd913" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_b11167a2-b582-4982-8bd5-bbc16a3bd913" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_17618b40-bec1-4792-93e5-8c5b3fe9b2d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_17618b40-bec1-4792-93e5-8c5b3fe9b2d3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_008873fa-1d6e-42c4-8d4f-418e15b1dd06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_LongTermDebt_008873fa-1d6e-42c4-8d4f-418e15b1dd06" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_b9d5d397-daf9-4cbd-8520-805085d19458" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_LongTermDebtCurrent_b9d5d397-daf9-4cbd-8520-805085d19458" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_4d0696a6-1444-4c0a-953f-8c262e2c17e9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_4d0696a6-1444-4c0a-953f-8c262e2c17e9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_4948e4df-09fb-4308-82b5-b5e7ee2c2d4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_87cf5b46-f1e7-4a1e-b530-648d792e441f" xlink:to="loc_us-gaap_DebtInstrumentTable_4948e4df-09fb-4308-82b5-b5e7ee2c2d4e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_5af1b1bc-0b99-411e-a68f-095484a969eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4948e4df-09fb-4308-82b5-b5e7ee2c2d4e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_5af1b1bc-0b99-411e-a68f-095484a969eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5af1b1bc-0b99-411e-a68f-095484a969eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5af1b1bc-0b99-411e-a68f-095484a969eb" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5af1b1bc-0b99-411e-a68f-095484a969eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_889f3aa7-6422-46c6-a250-6b166baafd75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5af1b1bc-0b99-411e-a68f-095484a969eb" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_889f3aa7-6422-46c6-a250-6b166baafd75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_54526454-5e13-4a6a-87ba-80f5489a351a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_889f3aa7-6422-46c6-a250-6b166baafd75" xlink:to="loc_us-gaap_SecuredDebtMember_54526454-5e13-4a6a-87ba-80f5489a351a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_b2e7b9d3-af09-4a0c-ace6-d3562849ce9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_889f3aa7-6422-46c6-a250-6b166baafd75" xlink:to="loc_us-gaap_SeniorNotesMember_b2e7b9d3-af09-4a0c-ace6-d3562849ce9b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_a7d0c7d6-6840-425e-accf-e248972f62d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4948e4df-09fb-4308-82b5-b5e7ee2c2d4e" xlink:to="loc_us-gaap_DebtInstrumentAxis_a7d0c7d6-6840-425e-accf-e248972f62d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a7d0c7d6-6840-425e-accf-e248972f62d1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_a7d0c7d6-6840-425e-accf-e248972f62d1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a7d0c7d6-6840-425e-accf-e248972f62d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_a7d0c7d6-6840-425e-accf-e248972f62d1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_TermLoanFacilityMember_946595b5-7975-401c-b197-e0905377073c" xlink:href="unfi-20230729.xsd#unfi_TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:to="loc_unfi_TermLoanFacilityMember_946595b5-7975-401c-b197-e0905377073c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ABLCreditFacilityMember_36352738-c1b9-4ab8-b706-073fa59bdfd6" xlink:href="unfi-20230729.xsd#unfi_ABLCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:to="loc_unfi_ABLCreditFacilityMember_36352738-c1b9-4ab8-b706-073fa59bdfd6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SeniorNotesDueOctober20286750Member_2da4f7de-aae9-4ec6-bb88-22df41463736" xlink:href="unfi-20230729.xsd#unfi_SeniorNotesDueOctober20286750Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:to="loc_unfi_SeniorNotesDueOctober20286750Member_2da4f7de-aae9-4ec6-bb88-22df41463736" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherSecuredDebtsMember_149c3fff-5ddc-444c-a8eb-d8d9edc82641" xlink:href="unfi-20230729.xsd#unfi_OtherSecuredDebtsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b606b449-6fab-484e-bb5d-f828f3f02358" xlink:to="loc_unfi_OtherSecuredDebtsMember_149c3fff-5ddc-444c-a8eb-d8d9edc82641" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LONGTERMDEBTSeniorNotesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LONGTERMDEBTSeniorNotesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LONGTERMDEBTSeniorNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_c0a3febb-61a6-4014-acbe-b2aca5e8823b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_f6a91cda-17bd-45a6-a420-3f242ac90c21" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c0a3febb-61a6-4014-acbe-b2aca5e8823b" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_f6a91cda-17bd-45a6-a420-3f242ac90c21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f9a92542-39c9-41d1-bf9c-778c3afa9355" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c0a3febb-61a6-4014-acbe-b2aca5e8823b" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f9a92542-39c9-41d1-bf9c-778c3afa9355" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_65f393c1-600e-4374-a126-38e406580883" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c0a3febb-61a6-4014-acbe-b2aca5e8823b" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_65f393c1-600e-4374-a126-38e406580883" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_9d8423c8-df6c-41d0-be20-769beba52d3c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_c0a3febb-61a6-4014-acbe-b2aca5e8823b" xlink:to="loc_us-gaap_DebtInstrumentTable_9d8423c8-df6c-41d0-be20-769beba52d3c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_0602ef15-de39-4e57-85f8-4172bf882ea3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9d8423c8-df6c-41d0-be20-769beba52d3c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_0602ef15-de39-4e57-85f8-4172bf882ea3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_0602ef15-de39-4e57-85f8-4172bf882ea3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0602ef15-de39-4e57-85f8-4172bf882ea3" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_0602ef15-de39-4e57-85f8-4172bf882ea3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_22948d27-484d-4604-9c15-be8b4d5cbf66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_0602ef15-de39-4e57-85f8-4172bf882ea3" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_22948d27-484d-4604-9c15-be8b4d5cbf66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_7285f2be-2785-4fa3-b54b-ce871d220f77" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_22948d27-484d-4604-9c15-be8b4d5cbf66" xlink:to="loc_us-gaap_SeniorNotesMember_7285f2be-2785-4fa3-b54b-ce871d220f77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_2c8dcd5a-178e-413a-847d-0b7b9add9575" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9d8423c8-df6c-41d0-be20-769beba52d3c" xlink:to="loc_us-gaap_DebtInstrumentAxis_2c8dcd5a-178e-413a-847d-0b7b9add9575" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_2c8dcd5a-178e-413a-847d-0b7b9add9575_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_2c8dcd5a-178e-413a-847d-0b7b9add9575" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_2c8dcd5a-178e-413a-847d-0b7b9add9575_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c004cc8b-a688-4459-96ac-95cb72bf6db4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_2c8dcd5a-178e-413a-847d-0b7b9add9575" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c004cc8b-a688-4459-96ac-95cb72bf6db4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SeniorNotesDueOctober20286750Member_42055b92-306f-4719-ada9-e69dc3ba0bd3" xlink:href="unfi-20230729.xsd#unfi_SeniorNotesDueOctober20286750Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c004cc8b-a688-4459-96ac-95cb72bf6db4" xlink:to="loc_unfi_SeniorNotesDueOctober20286750Member_42055b92-306f-4719-ada9-e69dc3ba0bd3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_55bbd4ad-2c5f-4e36-b635-8881211ac9f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9d8423c8-df6c-41d0-be20-769beba52d3c" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_55bbd4ad-2c5f-4e36-b635-8881211ac9f2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_55bbd4ad-2c5f-4e36-b635-8881211ac9f2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_55bbd4ad-2c5f-4e36-b635-8881211ac9f2" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_55bbd4ad-2c5f-4e36-b635-8881211ac9f2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_b96948ee-2250-4b4a-85c8-7a52bedcac31" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_55bbd4ad-2c5f-4e36-b635-8881211ac9f2" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_b96948ee-2250-4b4a-85c8-7a52bedcac31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_0708cd1f-6e77-490c-8d8f-8fe2e97b3039" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_b96948ee-2250-4b4a-85c8-7a52bedcac31" xlink:to="loc_us-gaap_SecuredDebtMember_0708cd1f-6e77-490c-8d8f-8fe2e97b3039" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LONGTERMDEBTABLCreditFacilityDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LONGTERMDEBTABLCreditFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LONGTERMDEBTABLCreditFacilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_63bbbcd4-fe23-4069-90f0-c6de7b5ecb01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_63bbbcd4-fe23-4069-90f0-c6de7b5ecb01" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LineOfCreditFacilityMaximumBorrowingCapacityOptionalIncrease_5f6a0ab8-db93-4754-8363-af5b1c3de0fa" xlink:href="unfi-20230729.xsd#unfi_LineOfCreditFacilityMaximumBorrowingCapacityOptionalIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_unfi_LineOfCreditFacilityMaximumBorrowingCapacityOptionalIncrease_5f6a0ab8-db93-4754-8363-af5b1c3de0fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_1b4fef9c-b3e1-4d94-aa2f-991fc646f17b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_1b4fef9c-b3e1-4d94-aa2f-991fc646f17b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_815489f5-2093-4c92-9770-f989dba7f337" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_815489f5-2093-4c92-9770-f989dba7f337" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityExpirationPeriod_a5d0d63c-7e9b-4d99-b7fc-229dc4afc458" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityExpirationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_LineOfCreditFacilityExpirationPeriod_a5d0d63c-7e9b-4d99-b7fc-229dc4afc458" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_347904f1-925d-4a1f-900b-3c7aec0bed9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_347904f1-925d-4a1f-900b-3c7aec0bed9e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_bd75bf58-3620-4d1b-b13e-e62fae96b219" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_bd75bf58-3620-4d1b-b13e-e62fae96b219" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DebtInstrumentUnusedBorrowingCapacityPercentageOfBorrowingBase_14a2441e-e4ae-4d98-95cb-d687645e19a3" xlink:href="unfi-20230729.xsd#unfi_DebtInstrumentUnusedBorrowingCapacityPercentageOfBorrowingBase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_unfi_DebtInstrumentUnusedBorrowingCapacityPercentageOfBorrowingBase_14a2441e-e4ae-4d98-95cb-d687645e19a3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LineOfCreditFacilityBorrowingBaseEligibilityPercent_5f5c0e08-d589-4fc6-a595-5706cdaace91" xlink:href="unfi-20230729.xsd#unfi_LineOfCreditFacilityBorrowingBaseEligibilityPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_unfi_LineOfCreditFacilityBorrowingBaseEligibilityPercent_5f5c0e08-d589-4fc6-a595-5706cdaace91" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LineOfCreditFacilityBorrowingCapacityReserves_1cf14c26-a084-4c79-863d-f43f90f5d1b7" xlink:href="unfi-20230729.xsd#unfi_LineOfCreditFacilityBorrowingCapacityReserves"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_unfi_LineOfCreditFacilityBorrowingCapacityReserves_1cf14c26-a084-4c79-863d-f43f90f5d1b7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_02b360a9-74d0-462a-9a15-d3a206c70e10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_02b360a9-74d0-462a-9a15-d3a206c70e10" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_f203e792-6466-41b7-a6f5-d11fcbb3826f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_f203e792-6466-41b7-a6f5-d11fcbb3826f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3b5d365b-5b54-4cfc-b439-d8f99b73e0a8" xlink:to="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_6d68a666-65d2-42a0-917c-e652120cc8a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_us-gaap_CreditFacilityAxis_6d68a666-65d2-42a0-917c-e652120cc8a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_6d68a666-65d2-42a0-917c-e652120cc8a8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_6d68a666-65d2-42a0-917c-e652120cc8a8" xlink:to="loc_us-gaap_CreditFacilityDomain_6d68a666-65d2-42a0-917c-e652120cc8a8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_ee46e852-3b97-41ff-8a41-458f542ef112" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_6d68a666-65d2-42a0-917c-e652120cc8a8" xlink:to="loc_us-gaap_CreditFacilityDomain_ee46e852-3b97-41ff-8a41-458f542ef112" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_9f6ffcdb-d7fa-4f37-bc18-20cc829e2b9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_ee46e852-3b97-41ff-8a41-458f542ef112" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_9f6ffcdb-d7fa-4f37-bc18-20cc829e2b9a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_78df1ddc-aa21-46c7-b7f9-d20d43de76ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_ee46e852-3b97-41ff-8a41-458f542ef112" xlink:to="loc_us-gaap_LetterOfCreditMember_78df1ddc-aa21-46c7-b7f9-d20d43de76ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_dc324864-bab4-411e-a2d2-9e758db43cf5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_us-gaap_DebtInstrumentAxis_dc324864-bab4-411e-a2d2-9e758db43cf5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_dc324864-bab4-411e-a2d2-9e758db43cf5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_dc324864-bab4-411e-a2d2-9e758db43cf5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_dc324864-bab4-411e-a2d2-9e758db43cf5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_870cdc80-4e24-4ae8-a261-873edbea9747" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_dc324864-bab4-411e-a2d2-9e758db43cf5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_870cdc80-4e24-4ae8-a261-873edbea9747" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ABLCreditFacilityMember_24724e8f-2df6-408e-ac99-f03a2e710751" xlink:href="unfi-20230729.xsd#unfi_ABLCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_870cdc80-4e24-4ae8-a261-873edbea9747" xlink:to="loc_unfi_ABLCreditFacilityMember_24724e8f-2df6-408e-ac99-f03a2e710751" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ABLLoansMember_3ca73154-201e-4c66-86b0-c96371815aac" xlink:href="unfi-20230729.xsd#unfi_ABLLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_870cdc80-4e24-4ae8-a261-873edbea9747" xlink:to="loc_unfi_ABLLoansMember_3ca73154-201e-4c66-86b0-c96371815aac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_fe0de380-42c3-4c5a-b498-a670eb875f9c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_fe0de380-42c3-4c5a-b498-a670eb875f9c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fe0de380-42c3-4c5a-b498-a670eb875f9c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fe0de380-42c3-4c5a-b498-a670eb875f9c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fe0de380-42c3-4c5a-b498-a670eb875f9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_4bc6a3fc-fb35-4660-b778-6c0520119e01" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_fe0de380-42c3-4c5a-b498-a670eb875f9c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4bc6a3fc-fb35-4660-b778-6c0520119e01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_cd9cc729-c78e-4734-ba45-51b41d22c065" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_4bc6a3fc-fb35-4660-b778-6c0520119e01" xlink:to="loc_us-gaap_LineOfCreditMember_cd9cc729-c78e-4734-ba45-51b41d22c065" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_7dd06afc-90fb-46f8-a329-7eb66ce73018" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_srt_RangeAxis_7dd06afc-90fb-46f8-a329-7eb66ce73018" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7dd06afc-90fb-46f8-a329-7eb66ce73018_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_7dd06afc-90fb-46f8-a329-7eb66ce73018" xlink:to="loc_srt_RangeMember_7dd06afc-90fb-46f8-a329-7eb66ce73018_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_639ebc6f-eebb-4a68-9bd7-59714147a647" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_7dd06afc-90fb-46f8-a329-7eb66ce73018" xlink:to="loc_srt_RangeMember_639ebc6f-eebb-4a68-9bd7-59714147a647" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_c06213b3-76aa-421a-910a-5273d9a306da" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_639ebc6f-eebb-4a68-9bd7-59714147a647" xlink:to="loc_srt_MinimumMember_c06213b3-76aa-421a-910a-5273d9a306da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_241d9d73-f6ff-42a6-8099-9e3fc94aa621" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_639ebc6f-eebb-4a68-9bd7-59714147a647" xlink:to="loc_srt_MaximumMember_241d9d73-f6ff-42a6-8099-9e3fc94aa621" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_2c9a14a4-4b35-4995-b246-acfe57bf240c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_us-gaap_VariableRateAxis_2c9a14a4-4b35-4995-b246-acfe57bf240c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2c9a14a4-4b35-4995-b246-acfe57bf240c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_2c9a14a4-4b35-4995-b246-acfe57bf240c" xlink:to="loc_us-gaap_VariableRateDomain_2c9a14a4-4b35-4995-b246-acfe57bf240c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_d3a51d97-844d-4ad0-82bf-7db469fd8826" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_2c9a14a4-4b35-4995-b246-acfe57bf240c" xlink:to="loc_us-gaap_VariableRateDomain_d3a51d97-844d-4ad0-82bf-7db469fd8826" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_115b35b2-2187-4bbd-a5b8-6035c8514279" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_d3a51d97-844d-4ad0-82bf-7db469fd8826" xlink:to="loc_us-gaap_BaseRateMember_115b35b2-2187-4bbd-a5b8-6035c8514279" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SecuredOvernightFinancingRateSOFRMember_18eb7bf5-88e1-4ab6-9863-6e5f8802b454" xlink:href="unfi-20230729.xsd#unfi_SecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_d3a51d97-844d-4ad0-82bf-7db469fd8826" xlink:to="loc_unfi_SecuredOvernightFinancingRateSOFRMember_18eb7bf5-88e1-4ab6-9863-6e5f8802b454" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_BorrowingBaseEligibleAssetAxis_4d3e523d-3a79-4854-9c80-5ccf6e444dea" xlink:href="unfi-20230729.xsd#unfi_BorrowingBaseEligibleAssetAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_unfi_BorrowingBaseEligibleAssetAxis_4d3e523d-3a79-4854-9c80-5ccf6e444dea" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_BorrowingBaseEligibleAssetDomain_4d3e523d-3a79-4854-9c80-5ccf6e444dea_default" xlink:href="unfi-20230729.xsd#unfi_BorrowingBaseEligibleAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_unfi_BorrowingBaseEligibleAssetAxis_4d3e523d-3a79-4854-9c80-5ccf6e444dea" xlink:to="loc_unfi_BorrowingBaseEligibleAssetDomain_4d3e523d-3a79-4854-9c80-5ccf6e444dea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:href="unfi-20230729.xsd#unfi_BorrowingBaseEligibleAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_unfi_BorrowingBaseEligibleAssetAxis_4d3e523d-3a79-4854-9c80-5ccf6e444dea" xlink:to="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_6ebd1268-b6cc-4940-acf6-7afedb9ca487" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:to="loc_us-gaap_AccountsReceivableMember_6ebd1268-b6cc-4940-acf6-7afedb9ca487" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditCardReceivablesMember_4084b099-472e-4fb7-b071-25ac61ae119c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditCardReceivablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:to="loc_us-gaap_CreditCardReceivablesMember_4084b099-472e-4fb7-b071-25ac61ae119c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoriesMember_699d08c0-c333-4fe5-afb7-8841a4ae482c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoriesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:to="loc_us-gaap_InventoriesMember_699d08c0-c333-4fe5-afb7-8841a4ae482c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PharmacyReceivableMember_4a077d34-215a-482b-b4c4-7ca6cbf0f3fb" xlink:href="unfi-20230729.xsd#unfi_PharmacyReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_BorrowingBaseEligibleAssetDomain_c3aef985-e25a-43ea-8fa1-3d51c8416052" xlink:to="loc_unfi_PharmacyReceivableMember_4a077d34-215a-482b-b4c4-7ca6cbf0f3fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_a75ef130-f8ec-40f4-b496-2b6cb25d8edd" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_56e3373b-4096-4c87-a205-1b43fd19f62c" xlink:to="loc_srt_StatementGeographicalAxis_a75ef130-f8ec-40f4-b496-2b6cb25d8edd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a75ef130-f8ec-40f4-b496-2b6cb25d8edd_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_a75ef130-f8ec-40f4-b496-2b6cb25d8edd" xlink:to="loc_srt_SegmentGeographicalDomain_a75ef130-f8ec-40f4-b496-2b6cb25d8edd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_944e8ce0-9f8e-4d2a-a867-330510ad106a" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_a75ef130-f8ec-40f4-b496-2b6cb25d8edd" xlink:to="loc_srt_SegmentGeographicalDomain_944e8ce0-9f8e-4d2a-a867-330510ad106a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_0095089d-eee3-4835-81b8-434ed74ec450" xlink:href="https://xbrl.sec.gov/country/2023/country-2023.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_944e8ce0-9f8e-4d2a-a867-330510ad106a" xlink:to="loc_country_US_0095089d-eee3-4835-81b8-434ed74ec450" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LONGTERMDEBTScheduleofLineofCreditFacilitiesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LONGTERMDEBTScheduleofLineofCreditFacilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LONGTERMDEBTScheduleofLineofCreditFacilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCollateralAmount_1dc90bd7-95ce-4490-935f-630c8079cca8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCollateralAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_DebtInstrumentCollateralAmount_1dc90bd7-95ce-4490-935f-630c8079cca8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_20cfde58-f357-4f76-9f64-4cac514ffabd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_20cfde58-f357-4f76-9f64-4cac514ffabd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_48c0160a-d86c-4dec-bb42-4d7abee6dc04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_DebtInstrumentUnusedBorrowingCapacityAmount_48c0160a-d86c-4dec-bb42-4d7abee6dc04" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_aa3646f7-9a7c-4ae8-aa3e-fb5c43e9b424" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_aa3646f7-9a7c-4ae8-aa3e-fb5c43e9b424" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_b4c6fa1d-5ce6-4e95-bdeb-aae7621c3162" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_b4c6fa1d-5ce6-4e95-bdeb-aae7621c3162" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_2d2c52ed-9e78-4d35-a093-4639a377aeac" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeePercentage_2d2c52ed-9e78-4d35-a093-4639a377aeac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c41bb33a-e718-4b4b-a0a4-544939747e5c" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_37a9320e-f4ca-4365-b275-7efe83658559" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_37a9320e-f4ca-4365-b275-7efe83658559" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_37a9320e-f4ca-4365-b275-7efe83658559_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_37a9320e-f4ca-4365-b275-7efe83658559" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_37a9320e-f4ca-4365-b275-7efe83658559_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_91c8634f-4f52-4c3c-9c89-835b598c50c0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_37a9320e-f4ca-4365-b275-7efe83658559" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_91c8634f-4f52-4c3c-9c89-835b598c50c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_InventoriesAndCurrentAssetsofDiscontinuedOperationsMember_185f3375-c8e3-4efb-b115-6f5aeafba4a1" xlink:href="unfi-20230729.xsd#unfi_InventoriesAndCurrentAssetsofDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_91c8634f-4f52-4c3c-9c89-835b598c50c0" xlink:to="loc_unfi_InventoriesAndCurrentAssetsofDiscontinuedOperationsMember_185f3375-c8e3-4efb-b115-6f5aeafba4a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ReceivablesandCurrentAssetsofDiscontinuedOperationsMember_ded16b14-ebdc-41b4-96e6-b44a89b1837b" xlink:href="unfi-20230729.xsd#unfi_ReceivablesandCurrentAssetsofDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_91c8634f-4f52-4c3c-9c89-835b598c50c0" xlink:to="loc_unfi_ReceivablesandCurrentAssetsofDiscontinuedOperationsMember_ded16b14-ebdc-41b4-96e6-b44a89b1837b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_IntangibleAssetsNetMember_ed2229c0-44fd-40ad-9eb8-1fee8682a988" xlink:href="unfi-20230729.xsd#unfi_IntangibleAssetsNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_91c8634f-4f52-4c3c-9c89-835b598c50c0" xlink:to="loc_unfi_IntangibleAssetsNetMember_ed2229c0-44fd-40ad-9eb8-1fee8682a988" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_us-gaap_CreditFacilityAxis_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4" xlink:to="loc_us-gaap_CreditFacilityDomain_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_e81bd9e9-4c64-43ca-99e3-418bbb5a0307" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_a8c4806a-1b29-47f6-ac64-a60d48fc4eb4" xlink:to="loc_us-gaap_CreditFacilityDomain_e81bd9e9-4c64-43ca-99e3-418bbb5a0307" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_cacc80ae-647b-49e2-a9c7-c64a9ff229cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_e81bd9e9-4c64-43ca-99e3-418bbb5a0307" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_cacc80ae-647b-49e2-a9c7-c64a9ff229cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_6dd7ead2-ecfd-4c00-82f0-f81558e01ba3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_e81bd9e9-4c64-43ca-99e3-418bbb5a0307" xlink:to="loc_us-gaap_LetterOfCreditMember_6dd7ead2-ecfd-4c00-82f0-f81558e01ba3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_ae46fa4f-7d0e-4f3f-bda6-0b27e1cf52c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6c18d5c4-3834-4a20-85e8-4aebe70b5eb2" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_ae46fa4f-7d0e-4f3f-bda6-0b27e1cf52c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_3556e702-b6e2-40af-9d78-17c83a51cb04" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_ae46fa4f-7d0e-4f3f-bda6-0b27e1cf52c1" xlink:to="loc_us-gaap_LineOfCreditMember_3556e702-b6e2-40af-9d78-17c83a51cb04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_c56a80a4-100f-4c48-8443-f9a4a824cff8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_us-gaap_DebtInstrumentAxis_c56a80a4-100f-4c48-8443-f9a4a824cff8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c56a80a4-100f-4c48-8443-f9a4a824cff8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_c56a80a4-100f-4c48-8443-f9a4a824cff8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c56a80a4-100f-4c48-8443-f9a4a824cff8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_341f601e-7c09-4d75-8c9a-b9d43dd26af6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_c56a80a4-100f-4c48-8443-f9a4a824cff8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_341f601e-7c09-4d75-8c9a-b9d43dd26af6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ABLLoansMember_3f45a3b8-3fa5-4846-9aaf-c9297bec1f48" xlink:href="unfi-20230729.xsd#unfi_ABLLoansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_341f601e-7c09-4d75-8c9a-b9d43dd26af6" xlink:to="loc_unfi_ABLLoansMember_3f45a3b8-3fa5-4846-9aaf-c9297bec1f48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ABLCreditFacilityMember_576682cb-26db-4f56-b9d1-735a7fed60c4" xlink:href="unfi-20230729.xsd#unfi_ABLCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_341f601e-7c09-4d75-8c9a-b9d43dd26af6" xlink:to="loc_unfi_ABLCreditFacilityMember_576682cb-26db-4f56-b9d1-735a7fed60c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_3a178f1c-48f6-44c3-a482-ca69ac61e96d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_srt_RangeAxis_3a178f1c-48f6-44c3-a482-ca69ac61e96d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_3a178f1c-48f6-44c3-a482-ca69ac61e96d_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3a178f1c-48f6-44c3-a482-ca69ac61e96d" xlink:to="loc_srt_RangeMember_3a178f1c-48f6-44c3-a482-ca69ac61e96d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fe494595-2ac0-42aa-9083-3fa281091d4e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3a178f1c-48f6-44c3-a482-ca69ac61e96d" xlink:to="loc_srt_RangeMember_fe494595-2ac0-42aa-9083-3fa281091d4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_74331ef3-d995-4fe5-8ec9-212962c1289d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fe494595-2ac0-42aa-9083-3fa281091d4e" xlink:to="loc_srt_MinimumMember_74331ef3-d995-4fe5-8ec9-212962c1289d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_5701d013-5200-4465-bb02-d72a7d48cf20" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fe494595-2ac0-42aa-9083-3fa281091d4e" xlink:to="loc_srt_MaximumMember_5701d013-5200-4465-bb02-d72a7d48cf20" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_09e69bd4-188b-4aa2-b313-ab4ad3f5f9c3" xlink:to="loc_us-gaap_VariableRateAxis_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca" xlink:to="loc_us-gaap_VariableRateDomain_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_788ee836-a04c-4660-b1cb-251090fd9473" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_5a5a41d7-d5f5-4240-b62a-64ddc951b6ca" xlink:to="loc_us-gaap_VariableRateDomain_788ee836-a04c-4660-b1cb-251090fd9473" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_d8a870d9-aa64-4262-8abd-102a0212b3a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_788ee836-a04c-4660-b1cb-251090fd9473" xlink:to="loc_us-gaap_BaseRateMember_d8a870d9-aa64-4262-8abd-102a0212b3a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LIBORAndBankersAcceptanceRateMember_3fc8dd43-a881-4ae6-8070-97fcd03d5079" xlink:href="unfi-20230729.xsd#unfi_LIBORAndBankersAcceptanceRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_788ee836-a04c-4660-b1cb-251090fd9473" xlink:to="loc_unfi_LIBORAndBankersAcceptanceRateMember_3fc8dd43-a881-4ae6-8070-97fcd03d5079" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LONGTERMDEBTTermLoanFacilityDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LONGTERMDEBTTermLoanFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LONGTERMDEBTTermLoanFacilityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_4fc5ea43-7456-49b2-8e34-036103d19eed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_4fc5ea43-7456-49b2-8e34-036103d19eed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_71b23135-1430-45f5-89cf-a356005d1e33" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentTerm_71b23135-1430-45f5-89cf-a356005d1e33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LineofCreditAdditionalBorrowingCapacity_5ff2f289-5f2d-4ea7-87df-76d16ce39b20" xlink:href="unfi-20230729.xsd#unfi_LineofCreditAdditionalBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_unfi_LineofCreditAdditionalBorrowingCapacity_5ff2f289-5f2d-4ea7-87df-76d16ce39b20" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DebtInstrumentGuaranteesExceptionCarryingValueofOwnedRealProperty_c3b6d7d6-4a18-4366-ac0b-65b4ad067107" xlink:href="unfi-20230729.xsd#unfi_DebtInstrumentGuaranteesExceptionCarryingValueofOwnedRealProperty"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_unfi_DebtInstrumentGuaranteesExceptionCarryingValueofOwnedRealProperty_c3b6d7d6-4a18-4366-ac0b-65b4ad067107" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCollateralAmount_e9845275-e9d6-4a51-978a-ec7f42c8b27a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCollateralAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentCollateralAmount_e9845275-e9d6-4a51-978a-ec7f42c8b27a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DebtInstrumentDebtPrepaymentPeriod_333cfc53-f22a-4d51-84b7-f9e8b07cf804" xlink:href="unfi-20230729.xsd#unfi_DebtInstrumentDebtPrepaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_unfi_DebtInstrumentDebtPrepaymentPeriod_333cfc53-f22a-4d51-84b7-f9e8b07cf804" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DebtInstrumentCovenantCompliancePercentageOfLoansOutstandingRequiredToBePaidFollowingSpecifiedTermFollowingFiscalYearEnd_4b4ce344-8c61-4bbb-a086-81e8bb3ee43a" xlink:href="unfi-20230729.xsd#unfi_DebtInstrumentCovenantCompliancePercentageOfLoansOutstandingRequiredToBePaidFollowingSpecifiedTermFollowingFiscalYearEnd"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_unfi_DebtInstrumentCovenantCompliancePercentageOfLoansOutstandingRequiredToBePaidFollowingSpecifiedTermFollowingFiscalYearEnd_4b4ce344-8c61-4bbb-a086-81e8bb3ee43a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_b056899e-581a-43d3-82de-7f8793fbd7ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_b056899e-581a-43d3-82de-7f8793fbd7ec" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_4e5d89d7-284f-4044-a3fe-079aab6fd268" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_4e5d89d7-284f-4044-a3fe-079aab6fd268" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_5f0da90f-4eae-4250-924d-6b4b9d78acfa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_LongTermDebtCurrent_5f0da90f-4eae-4250-924d-6b4b9d78acfa" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_6e1c3640-ff8a-4ee9-86de-6ff3445dcddf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_6e1c3640-ff8a-4ee9-86de-6ff3445dcddf" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DebtInstrumentMinimumVariableRate_3c09a68f-8504-478d-b363-03ccd32a3996" xlink:href="unfi-20230729.xsd#unfi_DebtInstrumentMinimumVariableRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_unfi_DebtInstrumentMinimumVariableRate_3c09a68f-8504-478d-b363-03ccd32a3996" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_a98bc9af-425f-435d-951e-27b0c19ea8f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_RepaymentsOfDebt_a98bc9af-425f-435d-951e-27b0c19ea8f0" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_7070635f-24c4-4965-b9a1-b7e8076bb714" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_7070635f-24c4-4965-b9a1-b7e8076bb714" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_70da8a23-27e5-4ab1-8f5c-33753429a64e" xlink:to="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_09148793-416c-4dc3-b2e6-516b4f666e2a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_09148793-416c-4dc3-b2e6-516b4f666e2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_09148793-416c-4dc3-b2e6-516b4f666e2a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_09148793-416c-4dc3-b2e6-516b4f666e2a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_09148793-416c-4dc3-b2e6-516b4f666e2a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_eb5f4131-26a5-4386-bcf3-31d4e31bce60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_09148793-416c-4dc3-b2e6-516b4f666e2a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_eb5f4131-26a5-4386-bcf3-31d4e31bce60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_bbfff53b-0c0f-48db-9edc-31e5fc152df0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_eb5f4131-26a5-4386-bcf3-31d4e31bce60" xlink:to="loc_us-gaap_SecuredDebtMember_bbfff53b-0c0f-48db-9edc-31e5fc152df0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_fd46ab99-a59f-4efc-b8e6-b0e05ddce153" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:to="loc_us-gaap_DebtInstrumentAxis_fd46ab99-a59f-4efc-b8e6-b0e05ddce153" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fd46ab99-a59f-4efc-b8e6-b0e05ddce153_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_fd46ab99-a59f-4efc-b8e6-b0e05ddce153" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fd46ab99-a59f-4efc-b8e6-b0e05ddce153_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9ff6682c-8cba-4e6e-9016-1370e688df17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_fd46ab99-a59f-4efc-b8e6-b0e05ddce153" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9ff6682c-8cba-4e6e-9016-1370e688df17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_TermLoanFacilityMember_5e4e205b-f435-4588-a69b-7af5a57660a0" xlink:href="unfi-20230729.xsd#unfi_TermLoanFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_9ff6682c-8cba-4e6e-9016-1370e688df17" xlink:to="loc_unfi_TermLoanFacilityMember_5e4e205b-f435-4588-a69b-7af5a57660a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2018TermLoanFacilitySevenYearTrancheMember_5241913f-0780-42b1-9e3d-673d8c6750e1" xlink:href="unfi-20230729.xsd#unfi_A2018TermLoanFacilitySevenYearTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_TermLoanFacilityMember_5e4e205b-f435-4588-a69b-7af5a57660a0" xlink:to="loc_unfi_A2018TermLoanFacilitySevenYearTrancheMember_5241913f-0780-42b1-9e3d-673d8c6750e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2018TermLoanFacility364dayTrancheMember_9611436a-db15-4d96-a24a-1c25d93a724a" xlink:href="unfi-20230729.xsd#unfi_A2018TermLoanFacility364dayTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_TermLoanFacilityMember_5e4e205b-f435-4588-a69b-7af5a57660a0" xlink:to="loc_unfi_A2018TermLoanFacility364dayTrancheMember_9611436a-db15-4d96-a24a-1c25d93a724a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_TermLoanFacilityTermBTrancheMember_04936b82-8a43-4867-8661-73a48a255ec9" xlink:href="unfi-20230729.xsd#unfi_TermLoanFacilityTermBTrancheMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_9ff6682c-8cba-4e6e-9016-1370e688df17" xlink:to="loc_unfi_TermLoanFacilityTermBTrancheMember_04936b82-8a43-4867-8661-73a48a255ec9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ff718535-8139-41c1-ab96-5f729572b2aa" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:to="loc_srt_RangeAxis_ff718535-8139-41c1-ab96-5f729572b2aa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ff718535-8139-41c1-ab96-5f729572b2aa_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ff718535-8139-41c1-ab96-5f729572b2aa" xlink:to="loc_srt_RangeMember_ff718535-8139-41c1-ab96-5f729572b2aa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_04b75a39-c7c6-409e-bfbb-5a414a4634c1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ff718535-8139-41c1-ab96-5f729572b2aa" xlink:to="loc_srt_RangeMember_04b75a39-c7c6-409e-bfbb-5a414a4634c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_0cafcaa5-63b5-4be7-87dc-e830e95f6c89" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_04b75a39-c7c6-409e-bfbb-5a414a4634c1" xlink:to="loc_srt_MaximumMember_0cafcaa5-63b5-4be7-87dc-e830e95f6c89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_bdefa757-0d97-4ceb-959a-385e52a91804" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_04b75a39-c7c6-409e-bfbb-5a414a4634c1" xlink:to="loc_srt_MinimumMember_bdefa757-0d97-4ceb-959a-385e52a91804" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_77292a63-ed85-4105-8ddb-6d5416fdcd7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:to="loc_us-gaap_VariableRateAxis_77292a63-ed85-4105-8ddb-6d5416fdcd7f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_77292a63-ed85-4105-8ddb-6d5416fdcd7f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_77292a63-ed85-4105-8ddb-6d5416fdcd7f" xlink:to="loc_us-gaap_VariableRateDomain_77292a63-ed85-4105-8ddb-6d5416fdcd7f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_a592c3ec-d99c-4cc3-bbd9-2c1227e84518" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_77292a63-ed85-4105-8ddb-6d5416fdcd7f" xlink:to="loc_us-gaap_VariableRateDomain_a592c3ec-d99c-4cc3-bbd9-2c1227e84518" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_c185cfc8-9fd6-4040-8ec2-ee4b912c48d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a592c3ec-d99c-4cc3-bbd9-2c1227e84518" xlink:to="loc_us-gaap_BaseRateMember_c185cfc8-9fd6-4040-8ec2-ee4b912c48d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SecuredOvernightFinancingRateSOFRMember_ae1d2f2c-ee23-420c-a5c5-07db4bdf29d9" xlink:href="unfi-20230729.xsd#unfi_SecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_a592c3ec-d99c-4cc3-bbd9-2c1227e84518" xlink:to="loc_unfi_SecuredOvernightFinancingRateSOFRMember_ae1d2f2c-ee23-420c-a5c5-07db4bdf29d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_a925ef93-ca8f-4a7e-9432-069878c4660c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1bf4ea10-492d-4184-b194-1e0ce9ed27ea" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_a925ef93-ca8f-4a7e-9432-069878c4660c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_a925ef93-ca8f-4a7e-9432-069878c4660c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_a925ef93-ca8f-4a7e-9432-069878c4660c" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_a925ef93-ca8f-4a7e-9432-069878c4660c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_5afc2444-16e5-4074-b8be-563ba66280f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_a925ef93-ca8f-4a7e-9432-069878c4660c" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_5afc2444-16e5-4074-b8be-563ba66280f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_03c2ab36-27fe-4403-8975-760062c90501" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_5afc2444-16e5-4074-b8be-563ba66280f3" xlink:to="loc_us-gaap_SecuredDebtMember_03c2ab36-27fe-4403-8975-760062c90501" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSChangesbyComponentDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSChangesbyComponentDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSChangesbyComponentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_17bce1ee-dc5c-4ae3-8e6b-5f3f13ed3789" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_17bce1ee-dc5c-4ae3-8e6b-5f3f13ed3789" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_3c213e8a-ddce-4bbc-9e23-3e464c720417" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_3c213e8a-ddce-4bbc-9e23-3e464c720417" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_270288c9-54ba-4645-96a8-c5bc64b6021e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_270288c9-54ba-4645-96a8-c5bc64b6021e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_6eaec90a-a78f-4ac3-801c-50f74d9baf52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_6eaec90a-a78f-4ac3-801c-50f74d9baf52" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax_3577d107-88ae-42fb-9077-2471836da326" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax_3577d107-88ae-42fb-9077-2471836da326" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_bd36d357-2e02-481e-bcb9-c130bab07d2a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_dc297761-94d5-4aea-b375-079c827389d5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_bd36d357-2e02-481e-bcb9-c130bab07d2a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_dc04f3de-59c7-468d-86de-f24aa9b53b46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_bf60aef1-0a2c-4a3f-9a00-4041fd24ed6c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_17bce1ee-dc5c-4ae3-8e6b-5f3f13ed3789" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_bf60aef1-0a2c-4a3f-9a00-4041fd24ed6c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_5035aa45-4fe7-46de-b92c-32a9c6912c5a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_bf60aef1-0a2c-4a3f-9a00-4041fd24ed6c" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_5035aa45-4fe7-46de-b92c-32a9c6912c5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_5035aa45-4fe7-46de-b92c-32a9c6912c5a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_5035aa45-4fe7-46de-b92c-32a9c6912c5a" xlink:to="loc_us-gaap_EquityComponentDomain_5035aa45-4fe7-46de-b92c-32a9c6912c5a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_fcda65dd-b6f1-44ea-9feb-1892073df418" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_5035aa45-4fe7-46de-b92c-32a9c6912c5a" xlink:to="loc_us-gaap_EquityComponentDomain_fcda65dd-b6f1-44ea-9feb-1892073df418" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c12cc5dd-634f-4ea7-af1f-4629e93cfe24" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fcda65dd-b6f1-44ea-9feb-1892073df418" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c12cc5dd-634f-4ea7-af1f-4629e93cfe24" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_2972f1cb-8b28-4ac7-a65f-8e740b93b456" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c12cc5dd-634f-4ea7-af1f-4629e93cfe24" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_2972f1cb-8b28-4ac7-a65f-8e740b93b456" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_c322b573-b02a-4287-8698-8556b11982a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_c12cc5dd-634f-4ea7-af1f-4629e93cfe24" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_c322b573-b02a-4287-8698-8556b11982a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_c2de3252-8203-4290-b484-b8b6e5a3bf85" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fcda65dd-b6f1-44ea-9feb-1892073df418" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_c2de3252-8203-4290-b484-b8b6e5a3bf85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_42b486db-fa0a-4ebd-83fe-8864cbdd8159" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_bf60aef1-0a2c-4a3f-9a00-4041fd24ed6c" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_42b486db-fa0a-4ebd-83fe-8864cbdd8159" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_42b486db-fa0a-4ebd-83fe-8864cbdd8159_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_42b486db-fa0a-4ebd-83fe-8864cbdd8159" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_42b486db-fa0a-4ebd-83fe-8864cbdd8159_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_21aa4036-51df-4038-903f-45f1291af065" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_42b486db-fa0a-4ebd-83fe-8864cbdd8159" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_21aa4036-51df-4038-903f-45f1291af065" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherContractMember_c5856c93-9777-4654-ad0d-f8031674ccd7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_21aa4036-51df-4038-903f-45f1291af065" xlink:to="loc_us-gaap_OtherContractMember_c5856c93-9777-4654-ad0d-f8031674ccd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SwapAgreementsMember_f1216fdb-229d-41df-8768-a011aecaae5d" xlink:href="unfi-20230729.xsd#unfi_SwapAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_21aa4036-51df-4038-903f-45f1291af065" xlink:to="loc_unfi_SwapAgreementsMember_f1216fdb-229d-41df-8768-a011aecaae5d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSReclassificationoutofOtherComprehensiveLossDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSReclassificationoutofOtherComprehensiveLossDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/COMPREHENSIVEINCOMELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSReclassificationoutofOtherComprehensiveLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_ae274c72-361f-4dc1-b0a3-a5c93a412f19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_ae274c72-361f-4dc1-b0a3-a5c93a412f19" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_8bf0ce8b-b51f-4831-80ef-085eb0f76a4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_8bf0ce8b-b51f-4831-80ef-085eb0f76a4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_82de65bc-4751-4771-b70a-e927bc5dde23" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_82de65bc-4751-4771-b70a-e927bc5dde23" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b28024c5-6bbf-4cbc-9f0e-3ed3a9bc99e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b28024c5-6bbf-4cbc-9f0e-3ed3a9bc99e6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_fac6ff4c-4750-495f-81f1-328bb6e1b20c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_fac6ff4c-4750-495f-81f1-328bb6e1b20c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_af6f1d97-bfc8-4033-90f5-2d87e9cd0368" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_ProfitLoss_af6f1d97-bfc8-4033-90f5-2d87e9cd0368" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_eb234771-452f-4e45-9d59-042da710c0a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_65978167-85f3-4cb2-8d98-61cadfdb14f4" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_eb234771-452f-4e45-9d59-042da710c0a4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_eb234771-452f-4e45-9d59-042da710c0a4" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_88ca17cd-d162-4f58-a5ea-b95c0a78da1f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_bb13e12b-cf92-4514-8f8d-b47fcbbcefb0" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_88ca17cd-d162-4f58-a5ea-b95c0a78da1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_1ee87784-ae73-42e4-ac2b-9a64dcfe0c2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_88ca17cd-d162-4f58-a5ea-b95c0a78da1f" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_1ee87784-ae73-42e4-ac2b-9a64dcfe0c2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_2a7ea8e8-6386-43a0-a546-385a6db7a15f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_eb234771-452f-4e45-9d59-042da710c0a4" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_2a7ea8e8-6386-43a0-a546-385a6db7a15f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_2a7ea8e8-6386-43a0-a546-385a6db7a15f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_2a7ea8e8-6386-43a0-a546-385a6db7a15f" xlink:to="loc_us-gaap_EquityComponentDomain_2a7ea8e8-6386-43a0-a546-385a6db7a15f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_2a7ea8e8-6386-43a0-a546-385a6db7a15f" xlink:to="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember_6d0478cb-0329-4e4e-86a0-fe332c428262" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember_6d0478cb-0329-4e4e-86a0-fe332c428262" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_e90fd2d8-fefb-493d-95c8-4b2114c12dc9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_e90fd2d8-fefb-493d-95c8-4b2114c12dc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember_a9edaf74-45f1-45f9-8726-51aeaea00bd4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentIncludingPortionAttributableToNoncontrollingInterestMember_a9edaf74-45f1-45f9-8726-51aeaea00bd4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f5372414-62d2-45ff-9d85-6708aa5a0557" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e35f642-268a-4ed8-a5fb-00e89ac21bf1" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f5372414-62d2-45ff-9d85-6708aa5a0557" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_20f1d877-43d9-49b9-9cf3-5c5774a70e1e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_eb234771-452f-4e45-9d59-042da710c0a4" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_20f1d877-43d9-49b9-9cf3-5c5774a70e1e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_20f1d877-43d9-49b9-9cf3-5c5774a70e1e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_20f1d877-43d9-49b9-9cf3-5c5774a70e1e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_20f1d877-43d9-49b9-9cf3-5c5774a70e1e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7b43581b-3751-44cb-8335-63a9ae08486a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_20f1d877-43d9-49b9-9cf3-5c5774a70e1e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7b43581b-3751-44cb-8335-63a9ae08486a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SwapAgreementsMember_259678dc-c2de-461e-b51a-d56a6647650f" xlink:href="unfi-20230729.xsd#unfi_SwapAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7b43581b-3751-44cb-8335-63a9ae08486a" xlink:to="loc_unfi_SwapAgreementsMember_259678dc-c2de-461e-b51a-d56a6647650f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherCashFlowHedgesMember_43177e63-393a-4cf2-81a2-55d665449bc2" xlink:href="unfi-20230729.xsd#unfi_OtherCashFlowHedgesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7b43581b-3751-44cb-8335-63a9ae08486a" xlink:to="loc_unfi_OtherCashFlowHedgesMember_43177e63-393a-4cf2-81a2-55d665449bc2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LEASESLeaseCostDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LEASESLeaseCostDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LEASESLeaseCostDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_4129b864-d334-4c33-b142-d79908443977" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_OperatingLeaseCost_4129b864-d334-4c33-b142-d79908443977" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermLeaseCost_7d4bdaee-5125-41f0-8721-c7e1229182d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_ShortTermLeaseCost_7d4bdaee-5125-41f0-8721-c7e1229182d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_9c95fad6-5f2f-4d1c-96d5-e1885592e1e0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableLeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_VariableLeaseCost_9c95fad6-5f2f-4d1c-96d5-e1885592e1e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_43665feb-5b96-41fe-801d-6d85e88b6c4c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubleaseIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_SubleaseIncome_43665feb-5b96-41fe-801d-6d85e88b6c4c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_Othersubleaseincomenet_46852684-66cd-4a04-8f77-870203874f64" xlink:href="unfi-20230729.xsd#unfi_Othersubleaseincomenet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_unfi_Othersubleaseincomenet_46852684-66cd-4a04-8f77-870203874f64" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_67496df5-0482-4136-b23a-1ceabfe61784" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_e36a7e4e-3a71-47d4-95be-1df938d65378" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_e36a7e4e-3a71-47d4-95be-1df938d65378" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_53726f4a-4c1b-445f-943c-834c79ef1209" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseInterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_53726f4a-4c1b-445f-943c-834c79ef1209" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_Financeleasecost_4bc493a7-cb3a-435a-a93e-947b82f73e66" xlink:href="unfi-20230729.xsd#unfi_Financeleasecost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_unfi_Financeleasecost_4bc493a7-cb3a-435a-a93e-947b82f73e66" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_2a515ada-2b9d-4215-ae53-757b4929e088" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_LeaseCost_2a515ada-2b9d-4215-ae53-757b4929e088" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_Netoperatingleasecost_964f0481-64b2-4fdc-8715-4883e719a297" xlink:href="unfi-20230729.xsd#unfi_Netoperatingleasecost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_unfi_Netoperatingleasecost_964f0481-64b2-4fdc-8715-4883e719a297" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseExpense_85cd4aa8-8c44-42a3-bd10-a0f335987753" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_OperatingLeaseExpense_85cd4aa8-8c44-42a3-bd10-a0f335987753" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_f202af13-9248-48ee-8605-0b88834203f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b145f799-b708-4a9f-bcae-65c9f94dd173" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_f202af13-9248-48ee-8605-0b88834203f5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_dbd1b11c-2b86-4610-a27a-c25516323846" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_f202af13-9248-48ee-8605-0b88834203f5" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_dbd1b11c-2b86-4610-a27a-c25516323846" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_dbd1b11c-2b86-4610-a27a-c25516323846_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_dbd1b11c-2b86-4610-a27a-c25516323846" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_dbd1b11c-2b86-4610-a27a-c25516323846_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_dbd1b11c-2b86-4610-a27a-c25516323846" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenseMember_b8d6846f-aeb7-4cfd-a270-227c1a740eeb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:to="loc_us-gaap_OperatingExpenseMember_b8d6846f-aeb7-4cfd-a270-227c1a740eeb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesMember_49398e0f-c8db-4acd-870c-7d3f736a476f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:to="loc_us-gaap_SalesMember_49398e0f-c8db-4acd-870c-7d3f736a476f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_c15f2291-67f2-4699-8127-a6007a8b55ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:to="loc_us-gaap_InterestExpenseMember_c15f2291-67f2-4699-8127-a6007a8b55ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_7f186b10-13e1-4c30-a216-edda03396487" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_83556cbe-ed8d-44c5-a257-20f1702a3f29" xlink:to="loc_us-gaap_RestructuringChargesMember_7f186b10-13e1-4c30-a216-edda03396487" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisposalGroupClassificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_f202af13-9248-48ee-8605-0b88834203f5" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_3d586947-842e-4991-afe9-d1ac33c530d3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_062f0ddd-cdb9-4ce4-b5c4-8460dc11e9d9" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_3d586947-842e-4991-afe9-d1ac33c530d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDiscontinuedOperationsMember_0c0a1f32-31e7-4c05-aa2a-7f0f76deda8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_3d586947-842e-4991-afe9-d1ac33c530d3" xlink:to="loc_us-gaap_SegmentDiscontinuedOperationsMember_0c0a1f32-31e7-4c05-aa2a-7f0f76deda8a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/LEASESNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#LEASESNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/LEASESNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleLeasebackTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireRealEstate_b831d572-11ba-462d-bf0e-47d95e98ec7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireRealEstate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:to="loc_us-gaap_PaymentsToAcquireRealEstate_b831d572-11ba-462d-bf0e-47d95e98ec7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfBuildings_d2ccf498-9a31-434e-8be6-02f5385d5533" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfBuildings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:to="loc_us-gaap_ProceedsFromSaleOfBuildings_d2ccf498-9a31-434e-8be6-02f5385d5533" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_ceb37ed6-aa39-4c38-ab68-a9f528da5361" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_ceb37ed6-aa39-4c38-ab68-a9f528da5361" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_abd277d5-cc38-4bb5-9d9e-18b46c024d05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleAndLeasebackTransactionGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:to="loc_us-gaap_SaleAndLeasebackTransactionGainLossNet_abd277d5-cc38-4bb5-9d9e-18b46c024d05" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionTable_21a595ca-43de-4c38-bf3f-5dc40754c492" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleLeasebackTransactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SaleLeasebackTransactionLineItems_b318eb3c-ebba-4ec1-85b2-22c8e8e43004" xlink:to="loc_us-gaap_SaleLeasebackTransactionTable_21a595ca-43de-4c38-bf3f-5dc40754c492" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_564c1e9c-7cd3-4f3c-8a1e-08af08994abd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleLeasebackTransactionDescriptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SaleLeasebackTransactionTable_21a595ca-43de-4c38-bf3f-5dc40754c492" xlink:to="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_564c1e9c-7cd3-4f3c-8a1e-08af08994abd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_564c1e9c-7cd3-4f3c-8a1e-08af08994abd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleLeasebackTransactionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_564c1e9c-7cd3-4f3c-8a1e-08af08994abd" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_564c1e9c-7cd3-4f3c-8a1e-08af08994abd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleLeasebackTransactionNameDomain_39343ce8-d11d-4807-b631-d233d46f2b91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleLeasebackTransactionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SaleLeasebackTransactionDescriptionAxis_564c1e9c-7cd3-4f3c-8a1e-08af08994abd" xlink:to="loc_us-gaap_SaleLeasebackTransactionNameDomain_39343ce8-d11d-4807-b631-d233d46f2b91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SaleLeasebackOfDistributionCenterMember_06c882a3-f09a-466a-9ea3-ce6ea3e3793f" xlink:href="unfi-20230729.xsd#unfi_SaleLeasebackOfDistributionCenterMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleLeasebackTransactionNameDomain_39343ce8-d11d-4807-b631-d233d46f2b91" xlink:to="loc_unfi_SaleLeasebackOfDistributionCenterMember_06c882a3-f09a-466a-9ea3-ce6ea3e3793f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SHAREBASEDAWARDSAdditionalInformationDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SHAREBASEDAWARDSAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SHAREBASEDAWARDSAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ShareBasedCompensationNumberOfStockOptionPlans_5d301fad-174e-4dc4-9703-61c1c4e4a427" xlink:href="unfi-20230729.xsd#unfi_ShareBasedCompensationNumberOfStockOptionPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_unfi_ShareBasedCompensationNumberOfStockOptionPlans_5d301fad-174e-4dc4-9703-61c1c4e4a427" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_6c5b98ee-0627-4c80-ab61-28cd29f54fd3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_6c5b98ee-0627-4c80-ab61-28cd29f54fd3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_892c14d0-ba62-4480-8973-ad70f59a561f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_892c14d0-ba62-4480-8973-ad70f59a561f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfInstallments_103583cb-cbe0-4a30-b09f-c85c7086e248" xlink:href="unfi-20230729.xsd#unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfInstallments_103583cb-cbe0-4a30-b09f-c85c7086e248" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_05264690-f424-4443-9d01-6ae9f21602f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_05264690-f424-4443-9d01-6ae9f21602f6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6ef11b8e-6c54-4d5e-be94-f548a939f037" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6ef11b8e-6c54-4d5e-be94-f548a939f037" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9fe812e6-f222-4725-bc7a-b02235b55f67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_9fe812e6-f222-4725-bc7a-b02235b55f67" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_bfa09d21-ac6a-44b6-aa4d-284eafa95dcd" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_cb76c229-e69f-4393-9467-37547a701bf1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:to="loc_us-gaap_PlanNameAxis_cb76c229-e69f-4393-9467-37547a701bf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_cb76c229-e69f-4393-9467-37547a701bf1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_cb76c229-e69f-4393-9467-37547a701bf1" xlink:to="loc_us-gaap_PlanNameDomain_cb76c229-e69f-4393-9467-37547a701bf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_804dcd1f-dc94-44f2-b989-a64f2a76c664" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_cb76c229-e69f-4393-9467-37547a701bf1" xlink:to="loc_us-gaap_PlanNameDomain_804dcd1f-dc94-44f2-b989-a64f2a76c664" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2020EquityIncentivePlanMember_49fc7804-c4b0-4aec-b90d-e18768280bc9" xlink:href="unfi-20230729.xsd#unfi_A2020EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_804dcd1f-dc94-44f2-b989-a64f2a76c664" xlink:to="loc_unfi_A2020EquityIncentivePlanMember_49fc7804-c4b0-4aec-b90d-e18768280bc9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_f42b4594-d889-4d19-adc0-56081c4b71f6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:to="loc_srt_RangeAxis_f42b4594-d889-4d19-adc0-56081c4b71f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_f42b4594-d889-4d19-adc0-56081c4b71f6_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_f42b4594-d889-4d19-adc0-56081c4b71f6" xlink:to="loc_srt_RangeMember_f42b4594-d889-4d19-adc0-56081c4b71f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_efdc5acc-ee0b-479a-8902-0f6e47145e17" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_f42b4594-d889-4d19-adc0-56081c4b71f6" xlink:to="loc_srt_RangeMember_efdc5acc-ee0b-479a-8902-0f6e47145e17" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_07281e2e-440a-434d-9315-9075fe8cb6bf" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_efdc5acc-ee0b-479a-8902-0f6e47145e17" xlink:to="loc_srt_MinimumMember_07281e2e-440a-434d-9315-9075fe8cb6bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d38d8ede-635b-42f5-816e-660438ed4a5d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_efdc5acc-ee0b-479a-8902-0f6e47145e17" xlink:to="loc_srt_MaximumMember_d38d8ede-635b-42f5-816e-660438ed4a5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GranteeStatusAxis_03f28277-bef6-4368-9ce9-0fc25a09c057" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GranteeStatusAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:to="loc_us-gaap_GranteeStatusAxis_03f28277-bef6-4368-9ce9-0fc25a09c057" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GranteeStatusDomain_03f28277-bef6-4368-9ce9-0fc25a09c057_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GranteeStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GranteeStatusAxis_03f28277-bef6-4368-9ce9-0fc25a09c057" xlink:to="loc_us-gaap_GranteeStatusDomain_03f28277-bef6-4368-9ce9-0fc25a09c057_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GranteeStatusDomain_7d18ea9a-ae6e-48e0-8fec-72601c3a5e58" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GranteeStatusDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GranteeStatusAxis_03f28277-bef6-4368-9ce9-0fc25a09c057" xlink:to="loc_us-gaap_GranteeStatusDomain_7d18ea9a-ae6e-48e0-8fec-72601c3a5e58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedPaymentArrangementNonemployeeMember_bdba2f38-4bab-4ce2-8212-acd59613c8b4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedPaymentArrangementNonemployeeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GranteeStatusDomain_7d18ea9a-ae6e-48e0-8fec-72601c3a5e58" xlink:to="loc_us-gaap_ShareBasedPaymentArrangementNonemployeeMember_bdba2f38-4bab-4ce2-8212-acd59613c8b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedPaymentArrangementEmployeeMember_da672a0d-eaa3-4551-9e5f-83ff9723945f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedPaymentArrangementEmployeeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GranteeStatusDomain_7d18ea9a-ae6e-48e0-8fec-72601c3a5e58" xlink:to="loc_us-gaap_ShareBasedPaymentArrangementEmployeeMember_da672a0d-eaa3-4551-9e5f-83ff9723945f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_d279b473-8995-4982-9f98-6664ab9d0fdf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_b63994e7-f57d-40d7-9eed-f9e21fc91c7a" xlink:to="loc_us-gaap_AwardTypeAxis_d279b473-8995-4982-9f98-6664ab9d0fdf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d279b473-8995-4982-9f98-6664ab9d0fdf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_d279b473-8995-4982-9f98-6664ab9d0fdf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d279b473-8995-4982-9f98-6664ab9d0fdf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e40a674b-d7cf-495f-abd1-3f40c6c6aef9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_d279b473-8995-4982-9f98-6664ab9d0fdf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e40a674b-d7cf-495f-abd1-3f40c6c6aef9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_175efb35-1077-4474-b363-3ae9824c89ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e40a674b-d7cf-495f-abd1-3f40c6c6aef9" xlink:to="loc_us-gaap_RestrictedStockMember_175efb35-1077-4474-b363-3ae9824c89ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_3b3ad27d-dd35-452c-9632-15ea15a50d10" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e40a674b-d7cf-495f-abd1-3f40c6c6aef9" xlink:to="loc_us-gaap_PerformanceSharesMember_3b3ad27d-dd35-452c-9632-15ea15a50d10" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SHAREBASEDAWARDSShareBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SHAREBASEDAWARDSShareBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SHAREBASEDAWARDSShareBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_7506dff3-e514-4dcd-8377-4efa48b43d4e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_7506dff3-e514-4dcd-8377-4efa48b43d4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_2fc7c5f4-7d8a-4ab4-bf68-d8a6397f5cee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_2fc7c5f4-7d8a-4ab4-bf68-d8a6397f5cee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_49b63dc1-096a-4065-8350-58c91be8dbb9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_49b63dc1-096a-4065-8350-58c91be8dbb9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_EquityClassifiedAwards_d2c0e2aa-82bc-4c92-b273-34b231eba223" xlink:href="unfi-20230729.xsd#unfi_EquityClassifiedAwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:to="loc_unfi_EquityClassifiedAwards_d2c0e2aa-82bc-4c92-b273-34b231eba223" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90cc0108-fdfe-432d-9627-7c4384a28790" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b78767be-5dbd-42c0-9a7a-391951e717bb" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90cc0108-fdfe-432d-9627-7c4384a28790" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7f457ad6-72d3-4fc1-890f-8c8bf281847a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90cc0108-fdfe-432d-9627-7c4384a28790" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7f457ad6-72d3-4fc1-890f-8c8bf281847a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_7f457ad6-72d3-4fc1-890f-8c8bf281847a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7f457ad6-72d3-4fc1-890f-8c8bf281847a" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7f457ad6-72d3-4fc1-890f-8c8bf281847a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_2925134f-f4e7-4c9d-8f69-c0fdaf94a620" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7f457ad6-72d3-4fc1-890f-8c8bf281847a" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_2925134f-f4e7-4c9d-8f69-c0fdaf94a620" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenseMember_7550d68d-f34d-4c0b-91c1-51c4478198f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2925134f-f4e7-4c9d-8f69-c0fdaf94a620" xlink:to="loc_us-gaap_OperatingExpenseMember_7550d68d-f34d-4c0b-91c1-51c4478198f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RestructuringAcquisitionandIntegrationRelatedExpensesMember_5962504e-c93b-465b-8f29-5124b0d609bd" xlink:href="unfi-20230729.xsd#unfi_RestructuringAcquisitionandIntegrationRelatedExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2925134f-f4e7-4c9d-8f69-c0fdaf94a620" xlink:to="loc_unfi_RestructuringAcquisitionandIntegrationRelatedExpensesMember_5962504e-c93b-465b-8f29-5124b0d609bd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_401e10e7-0942-499e-a032-c27b638eacd9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_90cc0108-fdfe-432d-9627-7c4384a28790" xlink:to="loc_us-gaap_AwardTypeAxis_401e10e7-0942-499e-a032-c27b638eacd9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_401e10e7-0942-499e-a032-c27b638eacd9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_401e10e7-0942-499e-a032-c27b638eacd9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_401e10e7-0942-499e-a032-c27b638eacd9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_deb3fca0-cb4c-4fec-92eb-7c9b1916f65c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_401e10e7-0942-499e-a032-c27b638eacd9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_deb3fca0-cb4c-4fec-92eb-7c9b1916f65c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_982dcc25-c236-4e92-ba8e-c488ba0b193b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_deb3fca0-cb4c-4fec-92eb-7c9b1916f65c" xlink:to="loc_us-gaap_RestrictedStockMember_982dcc25-c236-4e92-ba8e-c488ba0b193b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SupervaluReplacementAwardsMember_76950f31-4b2a-41e5-9e91-0e4252eb200f" xlink:href="unfi-20230729.xsd#unfi_SupervaluReplacementAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_deb3fca0-cb4c-4fec-92eb-7c9b1916f65c" xlink:to="loc_unfi_SupervaluReplacementAwardsMember_76950f31-4b2a-41e5-9e91-0e4252eb200f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PerformanceAwardMember_13781562-6f3b-4030-bb98-8b3d4662952c" xlink:href="unfi-20230729.xsd#unfi_PerformanceAwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_deb3fca0-cb4c-4fec-92eb-7c9b1916f65c" xlink:to="loc_unfi_PerformanceAwardMember_13781562-6f3b-4030-bb98-8b3d4662952c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SHAREBASEDAWARDSRestrictedStockAwardsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SHAREBASEDAWARDSRestrictedStockAwardsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SHAREBASEDAWARDSRestrictedStockAwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_012dd428-7c89-46b4-8252-3721c7230a65" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_012dd428-7c89-46b4-8252-3721c7230a65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_3c04661b-160b-4be0-88e8-f7abfc3f8aad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_3c04661b-160b-4be0-88e8-f7abfc3f8aad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3e78a9a4-a010-4d0e-9b5d-d47b90fe0d49" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_3e78a9a4-a010-4d0e-9b5d-d47b90fe0d49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_30a8ce35-a6b4-4869-9cb1-48aeec234925" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_30a8ce35-a6b4-4869-9cb1-48aeec234925" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_45e2ee9e-af17-4b4e-9f9d-77fc7ff49c25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_fedb73e3-6c17-496e-b0b1-6cdd8a7ce987" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_45e2ee9e-af17-4b4e-9f9d-77fc7ff49c25" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_18d47f2e-ffa2-418e-8418-6d1de80b41eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_012dd428-7c89-46b4-8252-3721c7230a65" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_32309415-30e9-48ac-8567-95516f347c4f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_32309415-30e9-48ac-8567-95516f347c4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_39720568-9f9f-4ea5-9637-2847404af4d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_39720568-9f9f-4ea5-9637-2847404af4d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_337aaeb2-8f18-4957-8317-c492fda584a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_337aaeb2-8f18-4957-8317-c492fda584a8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_5f865c78-a634-4607-b0b2-99209719a58d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsAdditionalDisclosuresAbstract_92184565-8ebe-4978-987a-05b78dc17edf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_5f865c78-a634-4607-b0b2-99209719a58d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_3b8701b8-9ac2-432a-beeb-0a70a06f9cee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsVestedInPeriodIntrinsicValue_6bcc3c38-92b3-4cbd-8ccd-18c1a8deb15e" xlink:href="unfi-20230729.xsd#unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsVestedInPeriodIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_012dd428-7c89-46b4-8252-3721c7230a65" xlink:to="loc_unfi_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsVestedInPeriodIntrinsicValue_6bcc3c38-92b3-4cbd-8ccd-18c1a8deb15e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0fe3206f-ff41-4284-9b72-e018c397d4c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_012dd428-7c89-46b4-8252-3721c7230a65" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0fe3206f-ff41-4284-9b72-e018c397d4c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0fe3206f-ff41-4284-9b72-e018c397d4c1" xlink:to="loc_us-gaap_AwardTypeAxis_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0c705ff8-e83a-4581-8dbb-fa719c1eb837" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_05c15f23-a6c5-4a58-8b43-e43bdeba9cd0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0c705ff8-e83a-4581-8dbb-fa719c1eb837" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember_121f6f01-6907-4991-8283-7b65b6f46b85" xlink:href="unfi-20230729.xsd#unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0c705ff8-e83a-4581-8dbb-fa719c1eb837" xlink:to="loc_unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember_121f6f01-6907-4991-8283-7b65b6f46b85" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SHAREBASEDAWARDSPerformanceBasedShareAwardsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SHAREBASEDAWARDSPerformanceBasedShareAwardsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SHAREBASEDAWARDSPerformanceBasedShareAwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_315735a0-dad7-4f65-9350-10b5cf0e36fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_315735a0-dad7-4f65-9350-10b5cf0e36fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_f1062716-4bd1-49b7-bc25-36727f89556f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_f1062716-4bd1-49b7-bc25-36727f89556f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_172c3003-6c94-493d-8a01-9a9e62fdae8e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_172c3003-6c94-493d-8a01-9a9e62fdae8e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_621b7971-d7d0-4902-9966-70facbd9cbf1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_621b7971-d7d0-4902-9966-70facbd9cbf1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_aad97d26-d9c8-46a8-a474-dcb3ba0cc5a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f019a6cd-c57f-4290-8ade-51681f5e7c02" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_aad97d26-d9c8-46a8-a474-dcb3ba0cc5a4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_fae837fa-8a38-406d-b25b-93c38972b9ba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_aad97d26-d9c8-46a8-a474-dcb3ba0cc5a4" xlink:to="loc_us-gaap_AwardTypeAxis_fae837fa-8a38-406d-b25b-93c38972b9ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fae837fa-8a38-406d-b25b-93c38972b9ba_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_fae837fa-8a38-406d-b25b-93c38972b9ba" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_fae837fa-8a38-406d-b25b-93c38972b9ba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_19583d48-748b-4269-805d-9475075b302f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_fae837fa-8a38-406d-b25b-93c38972b9ba" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_19583d48-748b-4269-805d-9475075b302f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2021PerformanceShareUnitsMember_0fd494bb-1a17-47dd-b1d8-a904543bfd3d" xlink:href="unfi-20230729.xsd#unfi_A2021PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_19583d48-748b-4269-805d-9475075b302f" xlink:to="loc_unfi_A2021PerformanceShareUnitsMember_0fd494bb-1a17-47dd-b1d8-a904543bfd3d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2020PerformanceShareUnitsMember_f2c8d1d0-b32d-4c4c-aee0-f04cd89d2c6f" xlink:href="unfi-20230729.xsd#unfi_A2020PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_19583d48-748b-4269-805d-9475075b302f" xlink:to="loc_unfi_A2020PerformanceShareUnitsMember_f2c8d1d0-b32d-4c4c-aee0-f04cd89d2c6f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2019PerformanceShareUnitsMember_ec80cc04-4024-412d-a3f7-f56d39cad16d" xlink:href="unfi-20230729.xsd#unfi_A2019PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_19583d48-748b-4269-805d-9475075b302f" xlink:to="loc_unfi_A2019PerformanceShareUnitsMember_ec80cc04-4024-412d-a3f7-f56d39cad16d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/SHAREBASEDAWARDSSupervaluReplacementAwardsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#SHAREBASEDAWARDSSupervaluReplacementAwardsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/SHAREBASEDAWARDSSupervaluReplacementAwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_3e814426-3806-400a-9254-216b5d9b422b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionSharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_3e814426-3806-400a-9254-216b5d9b422b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ConversionCostofSharesfromSupervaluPlantoReplacementAwardPlan_5697d537-3f39-4583-ad2b-c4937cd0353b" xlink:href="unfi-20230729.xsd#unfi_ConversionCostofSharesfromSupervaluPlantoReplacementAwardPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_unfi_ConversionCostofSharesfromSupervaluPlantoReplacementAwardPlan_5697d537-3f39-4583-ad2b-c4937cd0353b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_213824bb-67d0-4714-b134-b23cb91efbf8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_213824bb-67d0-4714-b134-b23cb91efbf8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_9682d3ec-b9e1-42d5-9ac1-a85b74b1f1e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_9682d3ec-b9e1-42d5-9ac1-a85b74b1f1e1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_0a3df588-eb41-47cc-bc69-a93d1c1c1608" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_0a3df588-eb41-47cc-bc69-a93d1c1c1608" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6be60539-b764-47e5-8adb-4972a9b2ba3c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4b921b26-58b4-4808-aeb2-902ca097e190" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6be60539-b764-47e5-8adb-4972a9b2ba3c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_abb6005b-658f-4681-95bd-a74827c33188" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6be60539-b764-47e5-8adb-4972a9b2ba3c" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_abb6005b-658f-4681-95bd-a74827c33188" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_abb6005b-658f-4681-95bd-a74827c33188_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_abb6005b-658f-4681-95bd-a74827c33188" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_abb6005b-658f-4681-95bd-a74827c33188_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fc8a7d1a-60c9-41d7-bc93-3d9f84df1f73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_abb6005b-658f-4681-95bd-a74827c33188" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fc8a7d1a-60c9-41d7-bc93-3d9f84df1f73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SUPERVALUMember_5ca1b11c-347f-48bf-ba2f-d4875f7edddd" xlink:href="unfi-20230729.xsd#unfi_SUPERVALUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_fc8a7d1a-60c9-41d7-bc93-3d9f84df1f73" xlink:to="loc_unfi_SUPERVALUMember_5ca1b11c-347f-48bf-ba2f-d4875f7edddd" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSAdditionalInformationDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate_079559b8-580d-4e17-896b-e23ee10c0bea" xlink:href="unfi-20230729.xsd#unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate_079559b8-580d-4e17-896b-e23ee10c0bea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax_3429f090-b540-4d00-abd6-8577bbcbc58f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossFinalizationOfPensionAndNonPensionPostretirementPlanValuationNetOfTax_3429f090-b540-4d00-abd6-8577bbcbc58f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_61c80b73-e144-45fe-bb96-ad43c1f92a13" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_61c80b73-e144-45fe-bb96-ad43c1f92a13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_40fe1cd1-12d4-4eb8-a674-c629aa742513" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_40fe1cd1-12d4-4eb8-a674-c629aa742513" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_b1781561-20c5-4a8e-97dc-11e0b1fe58ed" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_DerivativeLiabilityNoncurrentStatementOfFinancialPositionExtensibleEnumeration_b1781561-20c5-4a8e-97dc-11e0b1fe58ed" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlansWithdrawalObligation_4b731363-f9e3-4110-bd36-dad59d88477a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlansWithdrawalObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_MultiemployerPlansWithdrawalObligation_4b731363-f9e3-4110-bd36-dad59d88477a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlansPaymentPeriod_01741b9f-5d8c-4292-aa3d-43bc659cc31a" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlansPaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_unfi_MultiemployerPlansPaymentPeriod_01741b9f-5d8c-4292-aa3d-43bc659cc31a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0a776ae7-e8b1-4301-bffb-7abdb6daa7a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_2634e2a7-3d20-4dce-aa76-ea48ecd91810" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0a776ae7-e8b1-4301-bffb-7abdb6daa7a7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_24f8e9b6-e869-408f-88db-232bdb4d3e9e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0a776ae7-e8b1-4301-bffb-7abdb6daa7a7" xlink:to="loc_us-gaap_RetirementPlanNameAxis_24f8e9b6-e869-408f-88db-232bdb4d3e9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_24f8e9b6-e869-408f-88db-232bdb4d3e9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_24f8e9b6-e869-408f-88db-232bdb4d3e9e" xlink:to="loc_us-gaap_RetirementPlanNameDomain_24f8e9b6-e869-408f-88db-232bdb4d3e9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_b77e57b9-3d12-4c78-8478-28c33a69e648" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_24f8e9b6-e869-408f-88db-232bdb4d3e9e" xlink:to="loc_us-gaap_RetirementPlanNameDomain_b77e57b9-3d12-4c78-8478-28c33a69e648" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SupervaluRetirementPlanMember_52c276b5-d66d-4c7a-a24d-d5c22a5e00cf" xlink:href="unfi-20230729.xsd#unfi_SupervaluRetirementPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b77e57b9-3d12-4c78-8478-28c33a69e648" xlink:to="loc_unfi_SupervaluRetirementPlanMember_52c276b5-d66d-4c7a-a24d-d5c22a5e00cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_5e0d693b-ae69-4d79-b180-dddb7d1be3a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0a776ae7-e8b1-4301-bffb-7abdb6daa7a7" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_5e0d693b-ae69-4d79-b180-dddb7d1be3a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_5e0d693b-ae69-4d79-b180-dddb7d1be3a0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_5e0d693b-ae69-4d79-b180-dddb7d1be3a0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_5e0d693b-ae69-4d79-b180-dddb7d1be3a0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_419e5a2e-4096-4d20-85c0-811a07617ab7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_5e0d693b-ae69-4d79-b180-dddb7d1be3a0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_419e5a2e-4096-4d20-85c0-811a07617ab7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PostemploymentRetirementBenefitsMember_9cd9363d-d9db-437f-b70a-b0c2373e3993" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PostemploymentRetirementBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_419e5a2e-4096-4d20-85c0-811a07617ab7" xlink:to="loc_us-gaap_PostemploymentRetirementBenefitsMember_9cd9363d-d9db-437f-b70a-b0c2373e3993" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_b529eac0-795f-4360-8426-46800bd2dd5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_0a776ae7-e8b1-4301-bffb-7abdb6daa7a7" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_b529eac0-795f-4360-8426-46800bd2dd5f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_b529eac0-795f-4360-8426-46800bd2dd5f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_b529eac0-795f-4360-8426-46800bd2dd5f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_b529eac0-795f-4360-8426-46800bd2dd5f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4bce1de2-68b4-4a77-8a0a-e709da5f5fd8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_b529eac0-795f-4360-8426-46800bd2dd5f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4bce1de2-68b4-4a77-8a0a-e709da5f5fd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_bf6fdd59-dda4-49b4-bfeb-1e055c668d99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4bce1de2-68b4-4a77-8a0a-e709da5f5fd8" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_bf6fdd59-dda4-49b4-bfeb-1e055c668d99" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesMember_b73a3de5-ac15-4b3f-8da8-9a2ee77e6583" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4bce1de2-68b4-4a77-8a0a-e709da5f5fd8" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_b73a3de5-ac15-4b3f-8da8-9a2ee77e6583" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSDefinedBenefitPensionPlansDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSDefinedBenefitPensionPlansDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSDefinedBenefitPensionPlansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_bbf37939-0a6a-41b8-9b71-07d6f85cf628" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_bbf37939-0a6a-41b8-9b71-07d6f85cf628" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_ba6aadcc-c212-4550-b758-1be87382c820" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_ba6aadcc-c212-4550-b758-1be87382c820" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_0bebca16-708e-4ff4-ac49-a82f14acd0e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid_0bebca16-708e-4ff4-ac49-a82f14acd0e6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_ebe9e4ac-dd24-4970-9bab-ecf97502fc0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_ebe9e4ac-dd24-4970-9bab-ecf97502fc0f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligationPaymentForSettlement_e6b46a27-0e7f-49b8-869a-bc84beb82c7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligationPaymentForSettlement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_045d7a21-7d9e-4fac-b015-649bf596eca3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligationPaymentForSettlement_e6b46a27-0e7f-49b8-869a-bc84beb82c7f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_15f5f7ac-3a2c-4496-bd3a-aaf959714cff" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_13304690-27fc-4c9c-9faa-b1f21f77984e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_13304690-27fc-4c9c-9faa-b1f21f77984e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_16176d2b-4269-46e1-adfe-a2a15c4f5ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_16176d2b-4269-46e1-adfe-a2a15c4f5ebd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_21f0943b-345d-4032-baff-65bc06774add" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid_21f0943b-345d-4032-baff-65bc06774add" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanSettlementsPlanAssets_aa123966-73a9-44bc-8eac-6bfc748e9707" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanSettlementsPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:to="loc_us-gaap_DefinedBenefitPlanSettlementsPlanAssets_aa123966-73a9-44bc-8eac-6bfc748e9707" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_396d9655-55ca-42db-a8e0-b421810e5ec2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_3647022d-f9e1-413a-bc0b-9e43bc49cfad" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_396d9655-55ca-42db-a8e0-b421810e5ec2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_bd28d31d-c87a-4584-a515-88e0b45701b0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_a3100b16-4a57-4438-af64-9662f9cc4bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_a3100b16-4a57-4438-af64-9662f9cc4bf9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate_1c35619d-8eea-4574-bfe9-170719c3307f" xlink:href="unfi-20230729.xsd#unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:to="loc_unfi_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationChangeInDiscountRate_1c35619d-8eea-4574-bfe9-170719c3307f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_14f013ef-a66a-47b8-91bb-061d491fd29b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_cbfba9bf-cb62-4e01-b826-5f65cec3fb0d" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_14f013ef-a66a-47b8-91bb-061d491fd29b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_e17a79c9-6d5a-4150-89a6-0cc33675a66b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_14f013ef-a66a-47b8-91bb-061d491fd29b" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_e17a79c9-6d5a-4150-89a6-0cc33675a66b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_e17a79c9-6d5a-4150-89a6-0cc33675a66b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_e17a79c9-6d5a-4150-89a6-0cc33675a66b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_e17a79c9-6d5a-4150-89a6-0cc33675a66b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_bdba6312-8885-4c4d-b462-5a67869214aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_e17a79c9-6d5a-4150-89a6-0cc33675a66b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_bdba6312-8885-4c4d-b462-5a67869214aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_7737880c-7430-4866-b48c-e96741b6b86c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_bdba6312-8885-4c4d-b462-5a67869214aa" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_7737880c-7430-4866-b48c-e96741b6b86c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6cff1ab8-ba02-485a-a93a-ba5f04ec5cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_bdba6312-8885-4c4d-b462-5a67869214aa" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6cff1ab8-ba02-485a-a93a-ba5f04ec5cb5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_e73da87b-65d9-4554-91f2-83706ff8d41a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_14f013ef-a66a-47b8-91bb-061d491fd29b" xlink:to="loc_us-gaap_RetirementPlanNameAxis_e73da87b-65d9-4554-91f2-83706ff8d41a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_e73da87b-65d9-4554-91f2-83706ff8d41a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_e73da87b-65d9-4554-91f2-83706ff8d41a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_e73da87b-65d9-4554-91f2-83706ff8d41a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_2386aada-6ffc-456e-869b-9140be761f69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_e73da87b-65d9-4554-91f2-83706ff8d41a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_2386aada-6ffc-456e-869b-9140be761f69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SUPERVALUINCRetirementPlanMember_10b78765-1b37-45b4-b1cc-7a9e3d47e5c0" xlink:href="unfi-20230729.xsd#unfi_SUPERVALUINCRetirementPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_2386aada-6ffc-456e-869b-9140be761f69" xlink:to="loc_unfi_SUPERVALUINCRetirementPlanMember_10b78765-1b37-45b4-b1cc-7a9e3d47e5c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherPensionPlansMember_c6d4c86e-2757-4b7f-8ae3-7a9148028cf2" xlink:href="unfi-20230729.xsd#unfi_OtherPensionPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_2386aada-6ffc-456e-869b-9140be761f69" xlink:to="loc_unfi_OtherPensionPlansMember_c6d4c86e-2757-4b7f-8ae3-7a9148028cf2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSFairValueofPlanAssetsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSFairValueofPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSFairValueofPlanAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_26a8958a-5d66-4a17-9262-83b9fe68c629" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_531e4025-f1de-4705-b154-1a805325446b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_26a8958a-5d66-4a17-9262-83b9fe68c629" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_531e4025-f1de-4705-b154-1a805325446b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_a934ac38-3452-4dd7-821a-0c14ecbbd40b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_26a8958a-5d66-4a17-9262-83b9fe68c629" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_a934ac38-3452-4dd7-821a-0c14ecbbd40b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_89c6c07b-8518-4e85-bc24-18f17c4ff9bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_26a8958a-5d66-4a17-9262-83b9fe68c629" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_89c6c07b-8518-4e85-bc24-18f17c4ff9bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_233bf0df-5e04-48cc-b9c0-702de7e6e4bc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_26a8958a-5d66-4a17-9262-83b9fe68c629" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_233bf0df-5e04-48cc-b9c0-702de7e6e4bc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_818c3c2d-d233-4e13-bbfd-7ccd95157e46" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_233bf0df-5e04-48cc-b9c0-702de7e6e4bc" xlink:to="loc_us-gaap_RetirementPlanNameAxis_818c3c2d-d233-4e13-bbfd-7ccd95157e46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_818c3c2d-d233-4e13-bbfd-7ccd95157e46_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_818c3c2d-d233-4e13-bbfd-7ccd95157e46" xlink:to="loc_us-gaap_RetirementPlanNameDomain_818c3c2d-d233-4e13-bbfd-7ccd95157e46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_89df538a-ede9-4496-95d0-344b2ee23d7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_818c3c2d-d233-4e13-bbfd-7ccd95157e46" xlink:to="loc_us-gaap_RetirementPlanNameDomain_89df538a-ede9-4496-95d0-344b2ee23d7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SUPERVALUINCRetirementPlanMember_676e6b63-15f5-4272-80ed-d6fde529a652" xlink:href="unfi-20230729.xsd#unfi_SUPERVALUINCRetirementPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_89df538a-ede9-4496-95d0-344b2ee23d7f" xlink:to="loc_unfi_SUPERVALUINCRetirementPlanMember_676e6b63-15f5-4272-80ed-d6fde529a652" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherPensionPlansMember_52d29461-9521-4196-87a8-4fe16d5d9ea5" xlink:href="unfi-20230729.xsd#unfi_OtherPensionPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_89df538a-ede9-4496-95d0-344b2ee23d7f" xlink:to="loc_unfi_OtherPensionPlansMember_52d29461-9521-4196-87a8-4fe16d5d9ea5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_9966b529-9ac4-4561-8dbd-4a2dd596d966" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_233bf0df-5e04-48cc-b9c0-702de7e6e4bc" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_9966b529-9ac4-4561-8dbd-4a2dd596d966" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_9966b529-9ac4-4561-8dbd-4a2dd596d966_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_9966b529-9ac4-4561-8dbd-4a2dd596d966" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_9966b529-9ac4-4561-8dbd-4a2dd596d966_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_4baf79cc-2de2-43d8-a8c7-7adb098e01d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_9966b529-9ac4-4561-8dbd-4a2dd596d966" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_4baf79cc-2de2-43d8-a8c7-7adb098e01d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_811c63db-b658-41eb-b009-86695ff20395" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_4baf79cc-2de2-43d8-a8c7-7adb098e01d8" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_811c63db-b658-41eb-b009-86695ff20395" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSNetPeriodicBenefitIncomeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSNetPeriodicBenefitIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSNetPeriodicBenefitIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f5f3f502-bbf7-484f-af95-b4445b3d2b95" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f5f3f502-bbf7-484f-af95-b4445b3d2b95" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_f8b2b7c8-cf8d-4ef6-8037-3fd79589d0a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_f8b2b7c8-cf8d-4ef6-8037-3fd79589d0a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_37d08011-2f60-46a3-a004-2c4c9e1761df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_37d08011-2f60-46a3-a004-2c4c9e1761df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_3cfe5c36-3654-4445-bae0-d2b417d32253" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_3cfe5c36-3654-4445-bae0-d2b417d32253" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_751cc95f-7500-4018-b571-64781b002095" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_751cc95f-7500-4018-b571-64781b002095" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_ee5794e7-e021-4376-bdbd-d4b073cd2aa9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_ee5794e7-e021-4376-bdbd-d4b073cd2aa9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_9517d59d-3769-4819-b6e1-d45c585d9c0c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_9517d59d-3769-4819-b6e1-d45c585d9c0c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_5db73024-d72a-4d04-b048-6d18dad1d15e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditExpectedReturnLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_5db73024-d72a-4d04-b048-6d18dad1d15e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList_a87a98e7-fd4e-49a8-839e-f00825d576a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditInterestCostStatementOfIncomeOrComprehensiveIncomeExtensibleList_a87a98e7-fd4e-49a8-839e-f00825d576a1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfPriorServiceCostCreditStatementOfIncomeOrComprehensiveIncomeExtensibleList_97ce38d4-4539-48d3-968d-b6a2bb9abf8e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfPriorServiceCostCreditStatementOfIncomeOrComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfPriorServiceCostCreditStatementOfIncomeOrComprehensiveIncomeExtensibleList_97ce38d4-4539-48d3-968d-b6a2bb9abf8e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_e6b8816f-0076-4907-ba21-217375f5e77f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationOfGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_e6b8816f-0076-4907-ba21-217375f5e77f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditSettlementGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_8efb930e-79c1-43e4-a615-3c64c8f0081d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditSettlementGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_c512d89a-2fc3-4fb3-a2d4-8866a2697055" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostCreditSettlementGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleList_8efb930e-79c1-43e4-a615-3c64c8f0081d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f5f3f502-bbf7-484f-af95-b4445b3d2b95" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_16af5040-c0dc-4886-ad0c-641ff6533729" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlanNetPriorServiceCostCreditArisingDuringPeriodBeforeTax_16af5040-c0dc-4886-ad0c-641ff6533729" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax_29e5f5fe-33e4-45ed-b4d2-c3792bfa41f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAmortizationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetPriorServiceCostCreditBeforeTax_29e5f5fe-33e4-45ed-b4d2-c3792bfa41f5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_05724ab2-7fd7-4042-8bf3-f92277736fc8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax_05724ab2-7fd7-4042-8bf3-f92277736fc8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherComprehensiveIncomeLossDefinedBenefitPlanAmortizationOfNetActuarialLoss_a5e8913a-12df-4475-9ab5-911da39ce01e" xlink:href="unfi-20230729.xsd#unfi_OtherComprehensiveIncomeLossDefinedBenefitPlanAmortizationOfNetActuarialLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_unfi_OtherComprehensiveIncomeLossDefinedBenefitPlanAmortizationOfNetActuarialLoss_a5e8913a-12df-4475-9ab5-911da39ce01e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_b6283275-0bb7-4c03-94f5-260d22f740aa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_b6283275-0bb7-4c03-94f5-260d22f740aa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_760e6775-0113-4931-a964-dbe181e5c2f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeAbstract_b8d15441-f054-4bf1-baa1-2ddb4505cc9a" xlink:to="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_760e6775-0113-4931-a964-dbe181e5c2f3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fdfb7ae4-bc45-4993-964b-f88648621b3f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_f5f3f502-bbf7-484f-af95-b4445b3d2b95" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fdfb7ae4-bc45-4993-964b-f88648621b3f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_21dcd6a7-782a-4b15-8978-5c65d943b6f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_fdfb7ae4-bc45-4993-964b-f88648621b3f" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_21dcd6a7-782a-4b15-8978-5c65d943b6f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_21dcd6a7-782a-4b15-8978-5c65d943b6f5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_21dcd6a7-782a-4b15-8978-5c65d943b6f5" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_21dcd6a7-782a-4b15-8978-5c65d943b6f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_5a08615b-7fe6-4ae3-b6b9-a47f05e46739" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_21dcd6a7-782a-4b15-8978-5c65d943b6f5" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_5a08615b-7fe6-4ae3-b6b9-a47f05e46739" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_8d8aa4fa-584a-4dad-b60b-21e34fabe272" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_5a08615b-7fe6-4ae3-b6b9-a47f05e46739" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_8d8aa4fa-584a-4dad-b60b-21e34fabe272" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0ca466c1-7b76-4219-bdfa-408d57310267" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_5a08615b-7fe6-4ae3-b6b9-a47f05e46739" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0ca466c1-7b76-4219-bdfa-408d57310267" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSAmountsRecognizedinConsolidatedBalanceSheetDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSAmountsRecognizedinConsolidatedBalanceSheetDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSAmountsRecognizedinConsolidatedBalanceSheetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_94cf9a2a-e6ed-4e3f-816a-1e93ee9499c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:to="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_94cf9a2a-e6ed-4e3f-816a-1e93ee9499c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_57cf9ac8-5d7f-4f3b-947f-9e8147e0727c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_57cf9ac8-5d7f-4f3b-947f-9e8147e0727c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_fdd1b305-fd55-4eb0-887b-bf1698b5d6eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_fdd1b305-fd55-4eb0-887b-bf1698b5d6eb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_73757643-2fcf-4fdc-9dcd-5e9f851402bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_73757643-2fcf-4fdc-9dcd-5e9f851402bd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6acb8dca-c992-4e59-8c63-51cc80e144dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0c252ca9-b389-4f36-aead-cfa3c7c399d4" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6acb8dca-c992-4e59-8c63-51cc80e144dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_487f0153-c9d5-412d-836a-739377328a61" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6acb8dca-c992-4e59-8c63-51cc80e144dc" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_487f0153-c9d5-412d-836a-739377328a61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_487f0153-c9d5-412d-836a-739377328a61_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_487f0153-c9d5-412d-836a-739377328a61" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_487f0153-c9d5-412d-836a-739377328a61_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_35f9288e-f59a-4da0-acd1-b215710d3994" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_487f0153-c9d5-412d-836a-739377328a61" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_35f9288e-f59a-4da0-acd1-b215710d3994" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_ac62fdba-ca14-4943-acb9-87a1a9f8f84e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_35f9288e-f59a-4da0-acd1-b215710d3994" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_ac62fdba-ca14-4943-acb9-87a1a9f8f84e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_cf65b743-143f-491a-a47c-d0ab216f8b05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_35f9288e-f59a-4da0-acd1-b215710d3994" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_cf65b743-143f-491a-a47c-d0ab216f8b05" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSBenefitPlanAssumptionsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSBenefitPlanAssumptionsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSBenefitPlanAssumptionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract_c10d24bc-654b-4e8f-95f9-3995f057f0cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:to="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract_c10d24bc-654b-4e8f-95f9-3995f057f0cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_f259d261-df49-4118-9098-a52b573cfba4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract_c10d24bc-654b-4e8f-95f9-3995f057f0cd" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_f259d261-df49-4118-9098-a52b573cfba4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:to="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_c4d7e29d-2563-4e15-85d6-98ff2f880292" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_c4d7e29d-2563-4e15-85d6-98ff2f880292" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_0450cd7a-2ad5-4e51-b3da-8d8c2f70a9fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_0450cd7a-2ad5-4e51-b3da-8d8c2f70a9fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_c23131dc-1855-4740-8213-000610ef3533" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_c23131dc-1855-4740-8213-000610ef3533" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostWeightedAverageInterestCreditingRate_f08f6ee0-e67d-404f-8272-d8cf0e2d0455" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostWeightedAverageInterestCreditingRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract_46af4f3b-f67c-4472-bc53-21c4e44efefd" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostWeightedAverageInterestCreditingRate_f08f6ee0-e67d-404f-8272-d8cf0e2d0455" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DefinedBenefitPlanHealthCareCostTrendRateAssumed_2e08e2b1-ad8a-44b6-b829-c393b2db9c99" xlink:href="unfi-20230729.xsd#unfi_DefinedBenefitPlanHealthCareCostTrendRateAssumed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:to="loc_unfi_DefinedBenefitPlanHealthCareCostTrendRateAssumed_2e08e2b1-ad8a-44b6-b829-c393b2db9c99" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_c365135d-816a-478c-9622-46546032cd9d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:to="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1_c365135d-816a-478c-9622-46546032cd9d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f8d4fd2c-a5a3-46fb-bbd8-c20df487fbaa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6aa6504e-9c58-41bb-b9a9-5543e5a7eea8" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f8d4fd2c-a5a3-46fb-bbd8-c20df487fbaa" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_54c7cbed-7bdb-4eee-a73f-bd34a94aa541" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f8d4fd2c-a5a3-46fb-bbd8-c20df487fbaa" xlink:to="loc_srt_RangeAxis_54c7cbed-7bdb-4eee-a73f-bd34a94aa541" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_54c7cbed-7bdb-4eee-a73f-bd34a94aa541_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_54c7cbed-7bdb-4eee-a73f-bd34a94aa541" xlink:to="loc_srt_RangeMember_54c7cbed-7bdb-4eee-a73f-bd34a94aa541_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_9a39ef89-ad76-43d8-8418-23bdc64242d8" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_54c7cbed-7bdb-4eee-a73f-bd34a94aa541" xlink:to="loc_srt_RangeMember_9a39ef89-ad76-43d8-8418-23bdc64242d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_fbe8d665-67be-4f75-9b51-e497e84af2ed" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9a39ef89-ad76-43d8-8418-23bdc64242d8" xlink:to="loc_srt_MinimumMember_fbe8d665-67be-4f75-9b51-e497e84af2ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6815de97-8d43-47fc-bd49-7447196900ca" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_9a39ef89-ad76-43d8-8418-23bdc64242d8" xlink:to="loc_srt_MaximumMember_6815de97-8d43-47fc-bd49-7447196900ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetirementPlanAgeAxis_44b7e73a-7bc7-4a71-9b34-8fd14c041a13" xlink:href="unfi-20230729.xsd#unfi_RetirementPlanAgeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f8d4fd2c-a5a3-46fb-bbd8-c20df487fbaa" xlink:to="loc_unfi_RetirementPlanAgeAxis_44b7e73a-7bc7-4a71-9b34-8fd14c041a13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetirementPlanAgeDomain_44b7e73a-7bc7-4a71-9b34-8fd14c041a13_default" xlink:href="unfi-20230729.xsd#unfi_RetirementPlanAgeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_unfi_RetirementPlanAgeAxis_44b7e73a-7bc7-4a71-9b34-8fd14c041a13" xlink:to="loc_unfi_RetirementPlanAgeDomain_44b7e73a-7bc7-4a71-9b34-8fd14c041a13_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetirementPlanAgeDomain_5f7fdc1b-65ee-4f58-b270-a4388f9c299e" xlink:href="unfi-20230729.xsd#unfi_RetirementPlanAgeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_unfi_RetirementPlanAgeAxis_44b7e73a-7bc7-4a71-9b34-8fd14c041a13" xlink:to="loc_unfi_RetirementPlanAgeDomain_5f7fdc1b-65ee-4f58-b270-a4388f9c299e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetirementPlanBeforeAge65Member_38b962e8-3ec2-49e6-85f4-0a7ef92ed552" xlink:href="unfi-20230729.xsd#unfi_RetirementPlanBeforeAge65Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_RetirementPlanAgeDomain_5f7fdc1b-65ee-4f58-b270-a4388f9c299e" xlink:to="loc_unfi_RetirementPlanBeforeAge65Member_38b962e8-3ec2-49e6-85f4-0a7ef92ed552" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetirementPlanAfterAge65Member_c24c10b8-3e09-45a9-af1a-50fc6a061224" xlink:href="unfi-20230729.xsd#unfi_RetirementPlanAfterAge65Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_unfi_RetirementPlanAgeDomain_5f7fdc1b-65ee-4f58-b270-a4388f9c299e" xlink:to="loc_unfi_RetirementPlanAfterAge65Member_c24c10b8-3e09-45a9-af1a-50fc6a061224" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_bb52b25e-5a73-46be-be7a-7178279287bf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f8d4fd2c-a5a3-46fb-bbd8-c20df487fbaa" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_bb52b25e-5a73-46be-be7a-7178279287bf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_bb52b25e-5a73-46be-be7a-7178279287bf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_bb52b25e-5a73-46be-be7a-7178279287bf" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_bb52b25e-5a73-46be-be7a-7178279287bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_e07f332c-e1de-4deb-b295-114bc9fc51c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_bb52b25e-5a73-46be-be7a-7178279287bf" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_e07f332c-e1de-4deb-b295-114bc9fc51c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PostemploymentRetirementBenefitsMember_4deab6c3-6a47-4116-8139-649e38170d54" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PostemploymentRetirementBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_e07f332c-e1de-4deb-b295-114bc9fc51c2" xlink:to="loc_us-gaap_PostemploymentRetirementBenefitsMember_4deab6c3-6a47-4116-8139-649e38170d54" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSAllocationofPensionPlanAssetsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSAllocationofPensionPlanAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSAllocationofPensionPlanAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_79c2a97b-67b8-42af-885f-a9e09dd9b501" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_ab238ff7-8d0d-4aaa-b53f-8fac5e6d4417" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_79c2a97b-67b8-42af-885f-a9e09dd9b501" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage_ab238ff7-8d0d-4aaa-b53f-8fac5e6d4417" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_cc982534-7e26-4f50-825d-f46dddeddb44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_79c2a97b-67b8-42af-885f-a9e09dd9b501" xlink:to="loc_us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations_cc982534-7e26-4f50-825d-f46dddeddb44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_67c0c300-edef-48ba-b75c-fedf33558659" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_79c2a97b-67b8-42af-885f-a9e09dd9b501" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_67c0c300-edef-48ba-b75c-fedf33558659" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_007aaf8e-71e1-4831-b573-206eb96c6a28" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_67c0c300-edef-48ba-b75c-fedf33558659" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_007aaf8e-71e1-4831-b573-206eb96c6a28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_007aaf8e-71e1-4831-b573-206eb96c6a28_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_007aaf8e-71e1-4831-b573-206eb96c6a28" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_007aaf8e-71e1-4831-b573-206eb96c6a28_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_007aaf8e-71e1-4831-b573-206eb96c6a28" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FixedIncomeFundsMember_893e66bf-d40c-4fa9-ab43-896a70b2c6c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FixedIncomeFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:to="loc_us-gaap_FixedIncomeFundsMember_893e66bf-d40c-4fa9-ab43-896a70b2c6c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesUsMember_b8f31c8c-e9fc-4091-8226-f41eb66798c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesUsMember_b8f31c8c-e9fc-4091-8226-f41eb66798c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrivateEquityFundsMember_38a93f71-efac-4ae6-ba2a-42d4d5ec7a4a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrivateEquityFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:to="loc_us-gaap_PrivateEquityFundsMember_38a93f71-efac-4ae6-ba2a-42d4d5ec7a4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesNonUsMember_2ac84fac-c1c9-46ca-b0d5-d10900caa2b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesNonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesNonUsMember_2ac84fac-c1c9-46ca-b0d5-d10900caa2b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRealEstateMember_ead3a85a-f976-4e78-8c4a-9efec2f24ce0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_4a2faa15-5a97-4f23-935d-ce221ec0dcd0" xlink:to="loc_us-gaap_DefinedBenefitPlanRealEstateMember_ead3a85a-f976-4e78-8c4a-9efec2f24ce0" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSFairValueofDefinedBenefitPensionPlansAssetsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSFairValueofDefinedBenefitPensionPlansAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSFairValueofDefinedBenefitPensionPlansAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_62486353-2178-45c9-b38e-8d74f9073b66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_a58133cb-b1ed-4cca-a4e6-fecfda81d03c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_62486353-2178-45c9-b38e-8d74f9073b66" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_a58133cb-b1ed-4cca-a4e6-fecfda81d03c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8392ca9d-704a-42f0-9304-3cbe4269e33e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_62486353-2178-45c9-b38e-8d74f9073b66" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8392ca9d-704a-42f0-9304-3cbe4269e33e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8392ca9d-704a-42f0-9304-3cbe4269e33e" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PlanAssetCategoriesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_a7a91b10-b90a-4f84-8d27-5d92cc00b1a8" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_9b69c396-3ba5-44d1-bc1d-0205d85135c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanEquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_DefinedBenefitPlanEquitySecuritiesMember_9b69c396-3ba5-44d1-bc1d-0205d85135c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember_cbd08bd4-8500-4867-9e7c-ae1d7c778d15" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_DefinedBenefitPlanCommonCollectiveTrustMember_cbd08bd4-8500-4867-9e7c-ae1d7c778d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_f81dbfb7-f941-4588-b70c-8249524b83fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_f81dbfb7-f941-4588-b70c-8249524b83fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_c962b16c-4a56-4248-ab08-d3fd1cace26a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_c962b16c-4a56-4248-ab08-d3fd1cace26a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MortgageBackedSecuritiesMember_d9e7c3d7-b80a-4021-a41e-6c8baaccc160" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MortgageBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_MortgageBackedSecuritiesMember_d9e7c3d7-b80a-4021-a41e-6c8baaccc160" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAggregatedInvestmentsMember_ff10c5d4-d0d3-4b81-bf5a-ffc8e0582e57" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAggregatedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_us-gaap_OtherAggregatedInvestmentsMember_ff10c5d4-d0d3-4b81-bf5a-ffc8e0582e57" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PrivateEquityFundsAndRealEstateMember_0c5c8cb5-7850-4cc5-9c8c-374067dab4e5" xlink:href="unfi-20230729.xsd#unfi_PrivateEquityFundsAndRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_ad379c80-630a-41ba-9eca-06b24b265503" xlink:to="loc_unfi_PrivateEquityFundsAndRealEstateMember_0c5c8cb5-7850-4cc5-9c8c-374067dab4e5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_47542fba-3536-4dbe-9b2b-72c9cede590f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8392ca9d-704a-42f0-9304-3cbe4269e33e" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_47542fba-3536-4dbe-9b2b-72c9cede590f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_47542fba-3536-4dbe-9b2b-72c9cede590f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_47542fba-3536-4dbe-9b2b-72c9cede590f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_47542fba-3536-4dbe-9b2b-72c9cede590f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_47542fba-3536-4dbe-9b2b-72c9cede590f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_222b5b59-bcb8-4540-8e81-07bdd035452a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_222b5b59-bcb8-4540-8e81-07bdd035452a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_f2c099f2-5698-4d03-a050-ffdf74ed4820" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_f2c099f2-5698-4d03-a050-ffdf74ed4820" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_05d89a54-d14a-4a7e-9f4e-410476ea9479" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_05d89a54-d14a-4a7e-9f4e-410476ea9479" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_39844dea-37a6-4ee6-9c70-df0dd1a5ae1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_ea46a82f-a718-44df-85c4-8771b2c1e5fd" xlink:to="loc_us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember_39844dea-37a6-4ee6-9c70-df0dd1a5ae1b" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSContributionsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSContributionsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSContributionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b0ae3bad-0e04-40d0-950c-6c25286dd0e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsCurrentFiscalYear_e9eef047-4fb6-4f74-bf14-6b3c8b79c05e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsCurrentFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b0ae3bad-0e04-40d0-950c-6c25286dd0e6" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsCurrentFiscalYear_e9eef047-4fb6-4f74-bf14-6b3c8b79c05e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7259339e-c114-4967-90f1-0607b90bc1cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b0ae3bad-0e04-40d0-950c-6c25286dd0e6" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7259339e-c114-4967-90f1-0607b90bc1cd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_44067924-4a92-433b-a335-9f541e653855" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7259339e-c114-4967-90f1-0607b90bc1cd" xlink:to="loc_srt_RangeAxis_44067924-4a92-433b-a335-9f541e653855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_44067924-4a92-433b-a335-9f541e653855_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_44067924-4a92-433b-a335-9f541e653855" xlink:to="loc_srt_RangeMember_44067924-4a92-433b-a335-9f541e653855_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_2d1c6f16-687d-4da9-856f-5685283a0c45" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_44067924-4a92-433b-a335-9f541e653855" xlink:to="loc_srt_RangeMember_2d1c6f16-687d-4da9-856f-5685283a0c45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_c28dbf86-fe73-4076-a725-d912745dcb60" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2d1c6f16-687d-4da9-856f-5685283a0c45" xlink:to="loc_srt_MinimumMember_c28dbf86-fe73-4076-a725-d912745dcb60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6902185e-a8f2-4428-a276-a77c3fb01361" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_2d1c6f16-687d-4da9-856f-5685283a0c45" xlink:to="loc_srt_MaximumMember_6902185e-a8f2-4428-a276-a77c3fb01361" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSEstimatedFutureBenefitPaymentsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSEstimatedFutureBenefitPaymentsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSEstimatedFutureBenefitPaymentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_f2a66121-f91d-4037-90db-5e923cdd1356" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_f2a66121-f91d-4037-90db-5e923cdd1356" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_9c424204-21bf-44ab-9108-13327d0607f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_9c424204-21bf-44ab-9108-13327d0607f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_39a887c0-1a79-47d6-812e-bed40c8e64d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_39a887c0-1a79-47d6-812e-bed40c8e64d5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_04a618bf-88b7-4868-ac31-46fd8e08b9c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_04a618bf-88b7-4868-ac31-46fd8e08b9c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_ddaea60f-484c-4c35-9372-33ad00b0cced" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_ddaea60f-484c-4c35-9372-33ad00b0cced" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_022e6462-cbd9-4113-a189-8e9cf76c2ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_022e6462-cbd9-4113-a189-8e9cf76c2ebd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7ec97120-8f1a-4652-97db-b92d9df4c6a5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_6fb71f39-2a80-4407-a3b5-fd713417b768" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7ec97120-8f1a-4652-97db-b92d9df4c6a5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_3e009815-da13-45b8-9f57-a2b7fed1769b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7ec97120-8f1a-4652-97db-b92d9df4c6a5" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_3e009815-da13-45b8-9f57-a2b7fed1769b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_3e009815-da13-45b8-9f57-a2b7fed1769b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_3e009815-da13-45b8-9f57-a2b7fed1769b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_3e009815-da13-45b8-9f57-a2b7fed1769b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_60baa01a-eea4-4317-b8d8-7c67fbdcabaa" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_3e009815-da13-45b8-9f57-a2b7fed1769b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_60baa01a-eea4-4317-b8d8-7c67fbdcabaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_a0c99af9-daa1-4c57-b318-5a3e59c3a8d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_60baa01a-eea4-4317-b8d8-7c67fbdcabaa" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_a0c99af9-daa1-4c57-b318-5a3e59c3a8d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_663243d1-ef0c-4a6d-a227-90c7a4512a84" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_60baa01a-eea4-4317-b8d8-7c67fbdcabaa" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_663243d1-ef0c-4a6d-a227-90c7a4512a84" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSPostEmploymentBenefitsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSPostEmploymentBenefitsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSPostEmploymentBenefitsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_cedbadf9-33b9-4d2f-a318-aac2d06baaf9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_80e21c1d-f08e-4421-92ea-844d3f22b939" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_cedbadf9-33b9-4d2f-a318-aac2d06baaf9" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_80e21c1d-f08e-4421-92ea-844d3f22b939" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_38d56b45-24bf-444c-8954-580a9ad518df" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_cedbadf9-33b9-4d2f-a318-aac2d06baaf9" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_38d56b45-24bf-444c-8954-580a9ad518df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_52a94f11-36d3-48fb-a74a-f96de241c0c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansTableTextBlockLineItems_cedbadf9-33b9-4d2f-a318-aac2d06baaf9" xlink:to="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_52a94f11-36d3-48fb-a74a-f96de241c0c7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_6c06b272-a5de-4292-99db-5b43c02d8d36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DefinedBenefitPlansAndOtherPostretirementBenefitPlansDisclosuresTable_52a94f11-36d3-48fb-a74a-f96de241c0c7" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_6c06b272-a5de-4292-99db-5b43c02d8d36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_6c06b272-a5de-4292-99db-5b43c02d8d36_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_6c06b272-a5de-4292-99db-5b43c02d8d36" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_6c06b272-a5de-4292-99db-5b43c02d8d36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_7cd91379-6269-4be0-8fe9-96d639ede98a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_6c06b272-a5de-4292-99db-5b43c02d8d36" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_7cd91379-6269-4be0-8fe9-96d639ede98a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PostemploymentRetirementBenefitsMember_67656a50-a8f2-4eea-94fc-58361d8d59c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PostemploymentRetirementBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_7cd91379-6269-4be0-8fe9-96d639ede98a" xlink:to="loc_us-gaap_PostemploymentRetirementBenefitsMember_67656a50-a8f2-4eea-94fc-58361d8d59c7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSSignificantMultiemployerPlansDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSSignificantMultiemployerPlansDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSSignificantMultiemployerPlansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanPensionSignificantFundingImprovementOrRehabilitationPlanImplementationStatusFixedList_0d608a55-a640-4c5c-9a0b-58fbb4ace758" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanPensionSignificantFundingImprovementOrRehabilitationPlanImplementationStatusFixedList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_us-gaap_MultiemployerPlanPensionSignificantFundingImprovementOrRehabilitationPlanImplementationStatusFixedList_0d608a55-a640-4c5c-9a0b-58fbb4ace758" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanEmployerContributionCost_6928e805-8291-41ac-8eaa-2caf474bb06f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanEmployerContributionCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_us-gaap_MultiemployerPlanEmployerContributionCost_6928e805-8291-41ac-8eaa-2caf474bb06f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanPensionSignificantSurchargeFixedList_fd524d92-be5a-41cf-8911-ad3e35a9d1d2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanPensionSignificantSurchargeFixedList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_us-gaap_MultiemployerPlanPensionSignificantSurchargeFixedList_fd524d92-be5a-41cf-8911-ad3e35a9d1d2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanPPASurchargesonEligibleContributionsPercent_4b8ee42a-6441-46be-9d8c-c2f835276543" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanPPASurchargesonEligibleContributionsPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_unfi_MultiemployerPlanPPASurchargesonEligibleContributionsPercent_4b8ee42a-6441-46be-9d8c-c2f835276543" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanNumberofPlans_a33e0d6e-f7e2-41a2-bd7c-366a03efe21e" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanNumberofPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_unfi_MultiemployerPlanNumberofPlans_a33e0d6e-f7e2-41a2-bd7c-366a03efe21e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanPensionNumberOfPlansWithoutFutureContributions_07914665-bf04-41a6-8276-973b5eb8aee7" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanPensionNumberOfPlansWithoutFutureContributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_unfi_MultiemployerPlanPensionNumberOfPlansWithoutFutureContributions_07914665-bf04-41a6-8276-973b5eb8aee7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_d308a218-6b4c-4f9e-8ba4-7a87022eb639" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_678ee1cb-3295-4eee-8e22-5ee75e606071" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_d308a218-6b4c-4f9e-8ba4-7a87022eb639" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_59e88144-02e7-495c-b99b-6e388cd0011a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_d308a218-6b4c-4f9e-8ba4-7a87022eb639" xlink:to="loc_us-gaap_RetirementPlanNameAxis_59e88144-02e7-495c-b99b-6e388cd0011a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_59e88144-02e7-495c-b99b-6e388cd0011a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_59e88144-02e7-495c-b99b-6e388cd0011a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_59e88144-02e7-495c-b99b-6e388cd0011a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_59e88144-02e7-495c-b99b-6e388cd0011a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisFoodDistributingIndustryPensionPlanMember_dd66ff16-40ef-4a5d-98bb-c77d070a3233" xlink:href="unfi-20230729.xsd#unfi_MinneapolisFoodDistributingIndustryPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_MinneapolisFoodDistributingIndustryPensionPlanMember_dd66ff16-40ef-4a5d-98bb-c77d070a3233" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember_4b22f4f7-81e1-4e3c-a6c5-8a558e8375b6" xlink:href="unfi-20230729.xsd#unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember_4b22f4f7-81e1-4e3c-a6c5-8a558e8375b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember_5bc146a2-632c-4ce6-ad98-e14245ae7b35" xlink:href="unfi-20230729.xsd#unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember_5bc146a2-632c-4ce6-ad98-e14245ae7b35" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember_68fc27be-c61a-4906-984f-40686f5ff5bb" xlink:href="unfi-20230729.xsd#unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember_68fc27be-c61a-4906-984f-40686f5ff5bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_UFCWUnionsAndParticipatingEmployersPensionFundMember_2b9fe41e-937b-4d29-b39d-94f109742c9a" xlink:href="unfi-20230729.xsd#unfi_UFCWUnionsAndParticipatingEmployersPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_UFCWUnionsAndParticipatingEmployersPensionFundMember_2b9fe41e-937b-4d29-b39d-94f109742c9a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WesternConferenceOfTeamstersPensionPlanMember_cbef301d-ab7d-48f7-a3d6-d724c713d23d" xlink:href="unfi-20230729.xsd#unfi_WesternConferenceOfTeamstersPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_WesternConferenceOfTeamstersPensionPlanMember_cbef301d-ab7d-48f7-a3d6-d724c713d23d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_UfcwUnionsAndEmployersPensionPlanMember_85cc77cf-98c8-4185-903d-73c34d4fde04" xlink:href="unfi-20230729.xsd#unfi_UfcwUnionsAndEmployersPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_UfcwUnionsAndEmployersPensionPlanMember_85cc77cf-98c8-4185-903d-73c34d4fde04" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AllOtherMultiemployerPensionPlansMember_2afbd297-92f5-48bc-a345-85f3035c6a66" xlink:href="unfi-20230729.xsd#unfi_AllOtherMultiemployerPensionPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_ed29e7f0-f1a7-4ae3-b4da-c8d4a5e51306" xlink:to="loc_unfi_AllOtherMultiemployerPensionPlansMember_2afbd297-92f5-48bc-a345-85f3035c6a66" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSScheduleofCollectiveBargainingAgreementDatesandContributionstoEachPlanTableDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSScheduleofCollectiveBargainingAgreementDatesandContributionstoEachPlanTableDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSScheduleofCollectiveBargainingAgreementDatesandContributionstoEachPlanTableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0bfa8da9-96a4-43ab-b972-36fc6a32b010" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_NumberOfCollectiveBargainingAgreements_5700ae0e-9586-4669-a225-d8b1e621e120" xlink:href="unfi-20230729.xsd#unfi_NumberOfCollectiveBargainingAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0bfa8da9-96a4-43ab-b972-36fc6a32b010" xlink:to="loc_unfi_NumberOfCollectiveBargainingAgreements_5700ae0e-9586-4669-a225-d8b1e621e120" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanPensionSignificantEmployeesCoveredByCollectiveBargainingArrangementToAllEntitysEmployeesPercentage_f1cb96a9-eb35-4844-a3da-358f33e650d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanPensionSignificantEmployeesCoveredByCollectiveBargainingArrangementToAllEntitysEmployeesPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0bfa8da9-96a4-43ab-b972-36fc6a32b010" xlink:to="loc_us-gaap_MultiemployerPlanPensionSignificantEmployeesCoveredByCollectiveBargainingArrangementToAllEntitysEmployeesPercentage_f1cb96a9-eb35-4844-a3da-358f33e650d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanPensionSignificantEmployerContributionExceedsFivePercent_53843372-fd36-4988-a318-be92e8c8bd1d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanPensionSignificantEmployerContributionExceedsFivePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0bfa8da9-96a4-43ab-b972-36fc6a32b010" xlink:to="loc_us-gaap_MultiemployerPlanPensionSignificantEmployerContributionExceedsFivePercent_53843372-fd36-4988-a318-be92e8c8bd1d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3c23e089-abf2-4abf-b76e-3c699c1455c9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0bfa8da9-96a4-43ab-b972-36fc6a32b010" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3c23e089-abf2-4abf-b76e-3c699c1455c9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_3a41bd06-32d6-43f6-b62a-c04bbeb141a9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_3c23e089-abf2-4abf-b76e-3c699c1455c9" xlink:to="loc_us-gaap_RetirementPlanNameAxis_3a41bd06-32d6-43f6-b62a-c04bbeb141a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_3a41bd06-32d6-43f6-b62a-c04bbeb141a9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_3a41bd06-32d6-43f6-b62a-c04bbeb141a9" xlink:to="loc_us-gaap_RetirementPlanNameDomain_3a41bd06-32d6-43f6-b62a-c04bbeb141a9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_3a41bd06-32d6-43f6-b62a-c04bbeb141a9" xlink:to="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisFoodDistributingIndustryPensionPlanMember_9713bf4e-e469-41eb-8bfc-337339e1534a" xlink:href="unfi-20230729.xsd#unfi_MinneapolisFoodDistributingIndustryPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_MinneapolisFoodDistributingIndustryPensionPlanMember_9713bf4e-e469-41eb-8bfc-337339e1534a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember_2ce2cf2a-d055-4de2-ac2b-9a725a54d117" xlink:href="unfi-20230729.xsd#unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersPensionFundMember_2ce2cf2a-d055-4de2-ac2b-9a725a54d117" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember_6b1db47d-6db2-4c88-b9c0-36284368878b" xlink:href="unfi-20230729.xsd#unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_MinneapolisRetailMeatCuttersAndFoodHandlersVariableAnnuityPensionFundMember_6b1db47d-6db2-4c88-b9c0-36284368878b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember_0a692af2-bfc3-45e5-9e98-000795ee12f5" xlink:href="unfi-20230729.xsd#unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_CentralStatesSoutheastandSouthwestAreasPensionFundMember_0a692af2-bfc3-45e5-9e98-000795ee12f5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_UfcwUnionsAndParticipatingEmployersPensionFundMember_3b7f158b-ed86-4e3c-916f-c9d4e707e1f4" xlink:href="unfi-20230729.xsd#unfi_UfcwUnionsAndParticipatingEmployersPensionFundMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_UfcwUnionsAndParticipatingEmployersPensionFundMember_3b7f158b-ed86-4e3c-916f-c9d4e707e1f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WesternConferenceOfTeamstersPensionPlanMember_1e077b5a-37cb-4bd1-ad0e-6d9ae6727b6b" xlink:href="unfi-20230729.xsd#unfi_WesternConferenceOfTeamstersPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_WesternConferenceOfTeamstersPensionPlanMember_1e077b5a-37cb-4bd1-ad0e-6d9ae6727b6b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_UfcwUnionsAndEmployersPensionPlanMember_6918eb08-af69-4a17-b4c5-e3b26cc4cb0e" xlink:href="unfi-20230729.xsd#unfi_UfcwUnionsAndEmployersPensionPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_b09fc3f4-5a41-4de0-adeb-e13d689fceb3" xlink:to="loc_unfi_UfcwUnionsAndEmployersPensionPlanMember_6918eb08-af69-4a17-b4c5-e3b26cc4cb0e" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSMultiemployerPensionPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSMultiemployerPensionPlansAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSMultiemployerPensionPlansAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanSignificantDeepRedZoneStatusFundingPercentage_a26be730-b1c8-4b47-82b6-0003febf3552" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanSignificantDeepRedZoneStatusFundingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanSignificantDeepRedZoneStatusFundingPercentage_a26be730-b1c8-4b47-82b6-0003febf3552" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanSignificantDeepRedZoneStatusExpectedInsolventPeriod_946bbcf3-06f8-4d11-a4a8-84d88162fe4e" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanSignificantDeepRedZoneStatusExpectedInsolventPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanSignificantDeepRedZoneStatusExpectedInsolventPeriod_946bbcf3-06f8-4d11-a4a8-84d88162fe4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanSignificantRedZoneStatusFundingPercentage_f28d2d2b-3dbe-48ed-aafa-29d1b6456a69" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanSignificantRedZoneStatusFundingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanSignificantRedZoneStatusFundingPercentage_f28d2d2b-3dbe-48ed-aafa-29d1b6456a69" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanSignificantYellowZoneStatusFundingPercentage_3b6cc79f-40de-4ce9-91bd-a31328ecd23b" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanSignificantYellowZoneStatusFundingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanSignificantYellowZoneStatusFundingPercentage_3b6cc79f-40de-4ce9-91bd-a31328ecd23b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanSignificantGreenZoneStatusFundingPercentage_655d4b78-a462-4dbc-8509-740db29e56ec" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanSignificantGreenZoneStatusFundingPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanSignificantGreenZoneStatusFundingPercentage_655d4b78-a462-4dbc-8509-740db29e56ec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanPensionNumberOfPlansWithdrawal_b058bff7-c045-4115-930f-4dbe999ac60f" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanPensionNumberOfPlansWithdrawal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanPensionNumberOfPlansWithdrawal_b058bff7-c045-4115-930f-4dbe999ac60f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanWithdrawalCharges_20e51e34-6eae-4fbb-933d-a27c2bb86e4c" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanWithdrawalCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlanWithdrawalCharges_20e51e34-6eae-4fbb-933d-a27c2bb86e4c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlansWithdrawalObligation_05dfac9d-562f-4e9f-a526-0affc645da76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlansWithdrawalObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_us-gaap_MultiemployerPlansWithdrawalObligation_05dfac9d-562f-4e9f-a526-0affc645da76" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_NumberOfMultiemployerPlans_fc54431f-66f2-4177-8e77-f69f6f5a1595" xlink:href="unfi-20230729.xsd#unfi_NumberOfMultiemployerPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_NumberOfMultiemployerPlans_fc54431f-66f2-4177-8e77-f69f6f5a1595" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlansPaymentPeriod_f1a66863-b67e-4f1d-b255-f737fb8fd4c6" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlansPaymentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_unfi_MultiemployerPlansPaymentPeriod_f1a66863-b67e-4f1d-b255-f737fb8fd4c6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a8f41391-e390-42b3-ac2d-a471d8284b30" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_e07d8973-f4ce-4864-a27c-3524ae3def36" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a8f41391-e390-42b3-ac2d-a471d8284b30" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_bf22f588-1324-41c5-bd36-6b80dc27c0e5" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a8f41391-e390-42b3-ac2d-a471d8284b30" xlink:to="loc_srt_RangeAxis_bf22f588-1324-41c5-bd36-6b80dc27c0e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_bf22f588-1324-41c5-bd36-6b80dc27c0e5_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_bf22f588-1324-41c5-bd36-6b80dc27c0e5" xlink:to="loc_srt_RangeMember_bf22f588-1324-41c5-bd36-6b80dc27c0e5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b0dcede6-2bc7-4539-a015-0ec3b6d71a13" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_bf22f588-1324-41c5-bd36-6b80dc27c0e5" xlink:to="loc_srt_RangeMember_b0dcede6-2bc7-4539-a015-0ec3b6d71a13" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_1c0104a7-3e03-4a0c-9f81-2109c165ef1c" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b0dcede6-2bc7-4539-a015-0ec3b6d71a13" xlink:to="loc_srt_MinimumMember_1c0104a7-3e03-4a0c-9f81-2109c165ef1c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_41b7b1ef-132c-43bc-8ba9-a1c5e5ceed55" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b0dcede6-2bc7-4539-a015-0ec3b6d71a13" xlink:to="loc_srt_MaximumMember_41b7b1ef-132c-43bc-8ba9-a1c5e5ceed55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_8744b162-0074-4f2c-84e5-d2432604fc8a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a8f41391-e390-42b3-ac2d-a471d8284b30" xlink:to="loc_us-gaap_RetirementPlanNameAxis_8744b162-0074-4f2c-84e5-d2432604fc8a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_8744b162-0074-4f2c-84e5-d2432604fc8a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_8744b162-0074-4f2c-84e5-d2432604fc8a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_8744b162-0074-4f2c-84e5-d2432604fc8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_0764321f-7455-49a7-88e7-ad6d336f4b26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_8744b162-0074-4f2c-84e5-d2432604fc8a" xlink:to="loc_us-gaap_RetirementPlanNameDomain_0764321f-7455-49a7-88e7-ad6d336f4b26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailMultiemployerPensionPlansMember_e5f8962e-d4c3-4379-b389-d93711b6762b" xlink:href="unfi-20230729.xsd#unfi_RetailMultiemployerPensionPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanNameDomain_0764321f-7455-49a7-88e7-ad6d336f4b26" xlink:to="loc_unfi_RetailMultiemployerPensionPlansMember_e5f8962e-d4c3-4379-b389-d93711b6762b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_d642a28e-778f-4ad1-9ef9-9157aca6371a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_a8f41391-e390-42b3-ac2d-a471d8284b30" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_d642a28e-778f-4ad1-9ef9-9157aca6371a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_d642a28e-778f-4ad1-9ef9-9157aca6371a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_d642a28e-778f-4ad1-9ef9-9157aca6371a" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_d642a28e-778f-4ad1-9ef9-9157aca6371a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4eec15aa-6c04-4257-a66f-a6c57b27db68" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_d642a28e-778f-4ad1-9ef9-9157aca6371a" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4eec15aa-6c04-4257-a66f-a6c57b27db68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_47fcee37-7a73-4dc7-a9cc-3c7f29e979c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4eec15aa-6c04-4257-a66f-a6c57b27db68" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_47fcee37-7a73-4dc7-a9cc-3c7f29e979c6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BENEFITPLANSMultiemployerBenefitPlansOtherthanPensionsDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BENEFITPLANSMultiemployerBenefitPlansOtherthanPensionsDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BENEFITPLANSMultiemployerBenefitPlansOtherthanPensionsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b8af1d00-1fa9-47d1-8def-d0390965c7d4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MultiemployerPlanEmployerContributionCost_38bbdd52-53e4-410e-b4fe-f44c85c733fd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MultiemployerPlanEmployerContributionCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b8af1d00-1fa9-47d1-8def-d0390965c7d4" xlink:to="loc_us-gaap_MultiemployerPlanEmployerContributionCost_38bbdd52-53e4-410e-b4fe-f44c85c733fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bec234be-dd1b-4b32-9f43-2d60b6db1cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_b8af1d00-1fa9-47d1-8def-d0390965c7d4" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bec234be-dd1b-4b32-9f43-2d60b6db1cdf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_e5537c8a-e08d-4ef6-871e-e330b1831669" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_bec234be-dd1b-4b32-9f43-2d60b6db1cdf" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_e5537c8a-e08d-4ef6-871e-e330b1831669" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_e5537c8a-e08d-4ef6-871e-e330b1831669_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_e5537c8a-e08d-4ef6-871e-e330b1831669" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_e5537c8a-e08d-4ef6-871e-e330b1831669_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_438da1f7-5d0e-471f-8339-1a5f1fa9cab5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_e5537c8a-e08d-4ef6-871e-e330b1831669" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_438da1f7-5d0e-471f-8339-1a5f1fa9cab5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_8c3ead2c-f003-480d-9323-4388cb106d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_438da1f7-5d0e-471f-8339-1a5f1fa9cab5" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_8c3ead2c-f003-480d-9323-4388cb106d5b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/INCOMETAXESTaxCreditsandValuationAllowancesDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#INCOMETAXESTaxCreditsandValuationAllowancesDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/INCOMETAXESTaxCreditsandValuationAllowancesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxCreditCarryforwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_43a97ee5-4423-4861-8713-913d28856522" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_43a97ee5-4423-4861-8713-913d28856522" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_dfcdc77f-e514-405e-a8cc-53b4e9e544c4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_us-gaap_OperatingLossCarryforwards_dfcdc77f-e514-405e-a8cc-53b4e9e544c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OperatingLossCarryforwardsLimitationsOnUseAmount_fef1723c-cfc5-4da5-ad28-307bfdbd2e1b" xlink:href="unfi-20230729.xsd#unfi_OperatingLossCarryforwardsLimitationsOnUseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_unfi_OperatingLossCarryforwardsLimitationsOnUseAmount_fef1723c-cfc5-4da5-ad28-307bfdbd2e1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforward_a8a3fbd2-b55e-46a2-ac52-05111736597b" xlink:href="unfi-20230729.xsd#unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforward_a8a3fbd2-b55e-46a2-ac52-05111736597b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardUtilized_1ae78a73-e250-4ec9-bb1c-9999c1bfe7eb" xlink:href="unfi-20230729.xsd#unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardUtilized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardUtilized_1ae78a73-e250-4ec9-bb1c-9999c1bfe7eb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardValuationAllowance_373f0920-57ce-4ed5-9bc5-9a6a84a606cd" xlink:href="unfi-20230729.xsd#unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_unfi_DeferredTaxAssetsDisallowedInterestExpenseCarryforwardValuationAllowance_373f0920-57ce-4ed5-9bc5-9a6a84a606cd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsForeign_68598d5b-7107-4b96-9a96-4949545f6cda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsForeign"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsForeign_68598d5b-7107-4b96-9a96-4949545f6cda" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_c7eaea52-ce83-432f-b84b-08740d72394f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TaxCreditCarryforwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_TaxCreditCarryforwardLineItems_7c2a04cf-d33e-4a45-8ba1-a5b4e1b18728" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_c7eaea52-ce83-432f-b84b-08740d72394f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_5772623f-9c52-4cd6-a6fd-08870f7d09e7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_c7eaea52-ce83-432f-b84b-08740d72394f" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_5772623f-9c52-4cd6-a6fd-08870f7d09e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_5772623f-9c52-4cd6-a6fd-08870f7d09e7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_5772623f-9c52-4cd6-a6fd-08870f7d09e7" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_5772623f-9c52-4cd6-a6fd-08870f7d09e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_4495b323-5c74-46ab-b429-0d55e45795da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_5772623f-9c52-4cd6-a6fd-08870f7d09e7" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_4495b323-5c74-46ab-b429-0d55e45795da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_27eeebd3-e785-476b-bb20-f5916b5de0e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InternalRevenueServiceIRSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_4495b323-5c74-46ab-b429-0d55e45795da" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_27eeebd3-e785-476b-bb20-f5916b5de0e2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BUSINESSSEGEMENTSSegmentInformationDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BUSINESSSEGEMENTSSegmentInformationDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BUSINESSSEGEMENTSSegmentInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_d7bb1893-ff74-4718-9fde-3b5c56f1cb2b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_d7bb1893-ff74-4718-9fde-3b5c56f1cb2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AdjustedEBITDA_92560a84-84ec-4e78-ab6f-52449fba1473" xlink:href="unfi-20230729.xsd#unfi_AdjustedEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_unfi_AdjustedEBITDA_92560a84-84ec-4e78-ab6f-52449fba1473" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_NetIncomeAttributableToNoncontrollingInterests_3193ca01-07bd-4731-9ecd-3559461b35fb" xlink:href="unfi-20230729.xsd#unfi_NetIncomeAttributableToNoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_unfi_NetIncomeAttributableToNoncontrollingInterests_3193ca01-07bd-4731-9ecd-3559461b35fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_2ad8f280-fc47-4398-a496-4b88cb78a5af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_NetPeriodicDefinedBenefitsExpenseReversalOfExpenseExcludingServiceCostComponent_2ad8f280-fc47-4398-a496-4b88cb78a5af" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_bdbd2034-b941-4f74-a18d-5a97ee3cbe5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_InterestExpense_bdbd2034-b941-4f74-a18d-5a97ee3cbe5d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_473cc624-7b7d-4fc7-9ee8-105a944453d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_473cc624-7b7d-4fc7-9ee8-105a944453d5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_9204024e-703f-411c-b543-42142f81063f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_Depreciation_9204024e-703f-411c-b543-42142f81063f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ShareBasedCompensationEBITDAAdjustment_cc098fe5-de7a-4fd3-b8e4-ee4400482ad0" xlink:href="unfi-20230729.xsd#unfi_ShareBasedCompensationEBITDAAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_unfi_ShareBasedCompensationEBITDAAdjustment_cc098fe5-de7a-4fd3-b8e4-ee4400482ad0" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryLIFOReservePeriodCharge_7f5a724c-40db-4722-be11-5ca98a472791" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryLIFOReservePeriodCharge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_InventoryLIFOReservePeriodCharge_7f5a724c-40db-4722-be11-5ca98a472791" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_69a84c4a-a9e4-47dc-8da0-f7dacfb8b5cd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_RestructuringCharges_69a84c4a-a9e4-47dc-8da0-f7dacfb8b5cd" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_272a6c81-f4f0-42c4-be3a-dffc31051294" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_AssetImpairmentCharges_272a6c81-f4f0-42c4-be3a-dffc31051294" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_f4337597-4a7a-4972-a7a7-21d7d01dd89c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_f4337597-4a7a-4972-a7a7-21d7d01dd89c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_MultiemployerPlanWithdrawalCharges_86ae1fe0-3516-4c29-9a74-1f737e3e7891" xlink:href="unfi-20230729.xsd#unfi_MultiemployerPlanWithdrawalCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_unfi_MultiemployerPlanWithdrawalCharges_86ae1fe0-3516-4c29-9a74-1f737e3e7891" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_OtherRetailExpense_bb8bbacc-bc87-4cd2-b2e8-d297e8ee6795" xlink:href="unfi-20230729.xsd#unfi_OtherRetailExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_unfi_OtherRetailExpense_bb8bbacc-bc87-4cd2-b2e8-d297e8ee6795" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_675bca38-5ee0-48e0-a231-1d5adfd839ae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_OtherIncome_675bca38-5ee0-48e0-a231-1d5adfd839ae" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d996d131-03f5-4d93-a766-623679fad3a4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_d996d131-03f5-4d93-a766-623679fad3a4" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_fe7b5708-6de7-403b-98a9-3061b877a106" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_fe7b5708-6de7-403b-98a9-3061b877a106" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_193c3383-8dc7-497e-92fc-d7e312be2931" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_193c3383-8dc7-497e-92fc-d7e312be2931" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_936c493f-a885-4189-b6c1-2fbca8228cc6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_86e299b9-ee1a-452b-ac82-d1eca9f57bb8" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_936c493f-a885-4189-b6c1-2fbca8228cc6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_3f417b93-2332-4e92-b1fa-b36a258cd7ab" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_936c493f-a885-4189-b6c1-2fbca8228cc6" xlink:to="loc_srt_ConsolidationItemsAxis_3f417b93-2332-4e92-b1fa-b36a258cd7ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_3f417b93-2332-4e92-b1fa-b36a258cd7ab_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_3f417b93-2332-4e92-b1fa-b36a258cd7ab" xlink:to="loc_srt_ConsolidationItemsDomain_3f417b93-2332-4e92-b1fa-b36a258cd7ab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8830ba83-9e68-48ce-8e83-aa79e08108a3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_3f417b93-2332-4e92-b1fa-b36a258cd7ab" xlink:to="loc_srt_ConsolidationItemsDomain_8830ba83-9e68-48ce-8e83-aa79e08108a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_7eca4446-4f5f-4cc3-a438-94fe218f5d75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8830ba83-9e68-48ce-8e83-aa79e08108a3" xlink:to="loc_us-gaap_OperatingSegmentsMember_7eca4446-4f5f-4cc3-a438-94fe218f5d75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_f8242ff5-7460-415e-9947-cccf11d92e59" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8830ba83-9e68-48ce-8e83-aa79e08108a3" xlink:to="loc_srt_ConsolidationEliminationsMember_f8242ff5-7460-415e-9947-cccf11d92e59" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_dcc04284-10fd-4756-96ba-2d194b982beb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8830ba83-9e68-48ce-8e83-aa79e08108a3" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_dcc04284-10fd-4756-96ba-2d194b982beb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_c9e7d323-33a7-4c04-a736-1342ea5ee921" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_936c493f-a885-4189-b6c1-2fbca8228cc6" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_c9e7d323-33a7-4c04-a736-1342ea5ee921" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c9e7d323-33a7-4c04-a736-1342ea5ee921_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_c9e7d323-33a7-4c04-a736-1342ea5ee921" xlink:to="loc_us-gaap_SegmentDomain_c9e7d323-33a7-4c04-a736-1342ea5ee921_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6a7b7e5a-3ec3-46e0-a457-1490bc2a7f44" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_c9e7d323-33a7-4c04-a736-1342ea5ee921" xlink:to="loc_us-gaap_SegmentDomain_6a7b7e5a-3ec3-46e0-a457-1490bc2a7f44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_c96da02d-10f0-4174-a82f-1846dcd34837" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6a7b7e5a-3ec3-46e0-a457-1490bc2a7f44" xlink:to="loc_unfi_WholesaleSegmentMember_c96da02d-10f0-4174-a82f-1846dcd34837" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailSegmentMember_0753cdeb-1b97-4603-9d71-87c308d7515a" xlink:href="unfi-20230729.xsd#unfi_RetailSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6a7b7e5a-3ec3-46e0-a457-1490bc2a7f44" xlink:to="loc_unfi_RetailSegmentMember_0753cdeb-1b97-4603-9d71-87c308d7515a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_f24bc2b2-40cb-4a47-877f-d89dea059186" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6a7b7e5a-3ec3-46e0-a457-1490bc2a7f44" xlink:to="loc_us-gaap_AllOtherSegmentsMember_f24bc2b2-40cb-4a47-877f-d89dea059186" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_40c309a5-3dbe-41c7-bc2c-1d343833fa81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_936c493f-a885-4189-b6c1-2fbca8228cc6" xlink:to="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_40c309a5-3dbe-41c7-bc2c-1d343833fa81" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_40c309a5-3dbe-41c7-bc2c-1d343833fa81_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_40c309a5-3dbe-41c7-bc2c-1d343833fa81" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_40c309a5-3dbe-41c7-bc2c-1d343833fa81_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_3f8f02cf-56f0-4991-89ed-612c93c59adb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_40c309a5-3dbe-41c7-bc2c-1d343833fa81" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_3f8f02cf-56f0-4991-89ed-612c93c59adb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentContinuingOperationsMember_40c46fa8-5a4c-417b-b207-33caaceee2da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentContinuingOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_3f8f02cf-56f0-4991-89ed-612c93c59adb" xlink:to="loc_us-gaap_SegmentContinuingOperationsMember_40c46fa8-5a4c-417b-b207-33caaceee2da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDiscontinuedOperationsMember_667d6731-0e35-4db0-8c1f-c093f3b03077" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_3f8f02cf-56f0-4991-89ed-612c93c59adb" xlink:to="loc_us-gaap_SegmentDiscontinuedOperationsMember_667d6731-0e35-4db0-8c1f-c093f3b03077" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/BUSINESSSEGEMENTSAssetsbyReportableSegmentDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#BUSINESSSEGEMENTSAssetsbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/BUSINESSSEGEMENTSAssetsbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_8c46483e-536f-4b8e-8942-3fc9b4cf9a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_99bb9a48-2695-4511-b9d1-5d5d33e70065" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8c46483e-536f-4b8e-8942-3fc9b4cf9a1b" xlink:to="loc_us-gaap_Assets_99bb9a48-2695-4511-b9d1-5d5d33e70065" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6fc5ddd5-ecdf-4ee8-b5d8-c247b914307d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_8c46483e-536f-4b8e-8942-3fc9b4cf9a1b" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6fc5ddd5-ecdf-4ee8-b5d8-c247b914307d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_5d140c6c-7867-479a-b833-c9150860c381" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6fc5ddd5-ecdf-4ee8-b5d8-c247b914307d" xlink:to="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_5d140c6c-7867-479a-b833-c9150860c381" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_5d140c6c-7867-479a-b833-c9150860c381_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_5d140c6c-7867-479a-b833-c9150860c381" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_5d140c6c-7867-479a-b833-c9150860c381_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_9902ad66-b3ba-4e07-8a6b-32a90e557d70" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_5d140c6c-7867-479a-b833-c9150860c381" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_9902ad66-b3ba-4e07-8a6b-32a90e557d70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentContinuingOperationsMember_e4d53a66-224e-4cb2-b526-d438b28f3bd2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentContinuingOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_9902ad66-b3ba-4e07-8a6b-32a90e557d70" xlink:to="loc_us-gaap_SegmentContinuingOperationsMember_e4d53a66-224e-4cb2-b526-d438b28f3bd2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7b8b172c-8f7e-436c-88d9-6db92dea6187" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6fc5ddd5-ecdf-4ee8-b5d8-c247b914307d" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7b8b172c-8f7e-436c-88d9-6db92dea6187" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7b8b172c-8f7e-436c-88d9-6db92dea6187_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7b8b172c-8f7e-436c-88d9-6db92dea6187" xlink:to="loc_us-gaap_SegmentDomain_7b8b172c-8f7e-436c-88d9-6db92dea6187_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_963ef994-3603-4096-865a-4c0b1fceda53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7b8b172c-8f7e-436c-88d9-6db92dea6187" xlink:to="loc_us-gaap_SegmentDomain_963ef994-3603-4096-865a-4c0b1fceda53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_408579fc-0880-4efd-bf5e-210bf31ff0aa" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_963ef994-3603-4096-865a-4c0b1fceda53" xlink:to="loc_unfi_WholesaleSegmentMember_408579fc-0880-4efd-bf5e-210bf31ff0aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RetailSegmentMember_a1783434-a3f7-477b-a1fd-9efd319befd9" xlink:href="unfi-20230729.xsd#unfi_RetailSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_963ef994-3603-4096-865a-4c0b1fceda53" xlink:to="loc_unfi_RetailSegmentMember_a1783434-a3f7-477b-a1fd-9efd319befd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllOtherSegmentsMember_16c1e113-8802-4094-ad76-a1f023e9b14f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AllOtherSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_963ef994-3603-4096-865a-4c0b1fceda53" xlink:to="loc_us-gaap_AllOtherSegmentsMember_16c1e113-8802-4094-ad76-a1f023e9b14f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_b29e5560-c987-4fea-a833-145ad112c66f" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6fc5ddd5-ecdf-4ee8-b5d8-c247b914307d" xlink:to="loc_srt_ConsolidationItemsAxis_b29e5560-c987-4fea-a833-145ad112c66f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b29e5560-c987-4fea-a833-145ad112c66f_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_b29e5560-c987-4fea-a833-145ad112c66f" xlink:to="loc_srt_ConsolidationItemsDomain_b29e5560-c987-4fea-a833-145ad112c66f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_95efb4a9-d6fa-47ab-9379-85dd2b9008ed" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_b29e5560-c987-4fea-a833-145ad112c66f" xlink:to="loc_srt_ConsolidationItemsDomain_95efb4a9-d6fa-47ab-9379-85dd2b9008ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_477104a7-8c5c-42f6-8adb-9ffd1a562727" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_95efb4a9-d6fa-47ab-9379-85dd2b9008ed" xlink:to="loc_us-gaap_OperatingSegmentsMember_477104a7-8c5c-42f6-8adb-9ffd1a562727" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_9d51cf26-51f9-47a6-b112-3daf7724c655" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_95efb4a9-d6fa-47ab-9379-85dd2b9008ed" xlink:to="loc_srt_ConsolidationEliminationsMember_9d51cf26-51f9-47a6-b112-3daf7724c655" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTSDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_GuarantorObligationsGuaranteesTerm_c1197648-ab3f-457a-909a-4475085783cd" xlink:href="unfi-20230729.xsd#unfi_GuarantorObligationsGuaranteesTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_unfi_GuarantorObligationsGuaranteesTerm_c1197648-ab3f-457a-909a-4475085783cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_1744e86a-93e5-48f6-85e4-6d20a43ec6d1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_1744e86a-93e5-48f6-85e4-6d20a43ec6d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_GuarantorObligationsMaximumExposureDiscounted_96138817-6a7b-45a1-8a87-d32c548074a9" xlink:href="unfi-20230729.xsd#unfi_GuarantorObligationsMaximumExposureDiscounted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_unfi_GuarantorObligationsMaximumExposureDiscounted_96138817-6a7b-45a1-8a87-d32c548074a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyAccrualAtCarryingValue_2eb3066c-868f-481f-804e-ae82ce2a915c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyAccrualAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LossContingencyAccrualAtCarryingValue_2eb3066c-868f-481f-804e-ae82ce2a915c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_62d09e3c-f6e2-46c4-bfe6-a86072fad7f4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PurchaseObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_PurchaseObligation_62d09e3c-f6e2-46c4-bfe6-a86072fad7f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LesseeOperatingLeaseSignedNotYetCommenced_c9685bad-6d29-419c-9b26-6f79069069de" xlink:href="unfi-20230729.xsd#unfi_LesseeOperatingLeaseSignedNotYetCommenced"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_unfi_LesseeOperatingLeaseSignedNotYetCommenced_c9685bad-6d29-419c-9b26-6f79069069de" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_c90adae3-4efe-4ba6-ad00-3786a955f2bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_c90adae3-4efe-4ba6-ad00-3786a955f2bd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyPendingClaimsNumber_9953f3d7-86da-472f-b2c8-5199615ed908" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyPendingClaimsNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LossContingencyPendingClaimsNumber_9953f3d7-86da-472f-b2c8-5199615ed908" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNewClaimsFiledNumber_3d5779f6-a2d9-4560-bad9-cdf93472a663" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyNewClaimsFiledNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LossContingencyNewClaimsFiledNumber_3d5779f6-a2d9-4560-bad9-cdf93472a663" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesSoughtValue_c2beeaea-3dd7-404a-a59c-80d2518acf11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyDamagesSoughtValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LossContingencyDamagesSoughtValue_c2beeaea-3dd7-404a-a59c-80d2518acf11" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_LossContingencyShareofPotentialAwardValue_1ff50047-eac9-4075-a4a7-a560289fb667" xlink:href="unfi-20230729.xsd#unfi_LossContingencyShareofPotentialAwardValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_unfi_LossContingencyShareofPotentialAwardValue_1ff50047-eac9-4075-a4a7-a560289fb667" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_568cba39-bb95-4ec9-aea3-3b378783bb50" xlink:to="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_664be311-0938-4a8c-b45f-1a5a602f7b8d" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:to="loc_srt_RangeAxis_664be311-0938-4a8c-b45f-1a5a602f7b8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_664be311-0938-4a8c-b45f-1a5a602f7b8d_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_664be311-0938-4a8c-b45f-1a5a602f7b8d" xlink:to="loc_srt_RangeMember_664be311-0938-4a8c-b45f-1a5a602f7b8d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_de2cb43a-e4cc-424f-8ffe-4c8a73f108e8" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_664be311-0938-4a8c-b45f-1a5a602f7b8d" xlink:to="loc_srt_RangeMember_de2cb43a-e4cc-424f-8ffe-4c8a73f108e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_20875037-f364-483e-a823-45f9b34e70a1" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_de2cb43a-e4cc-424f-8ffe-4c8a73f108e8" xlink:to="loc_srt_MinimumMember_20875037-f364-483e-a823-45f9b34e70a1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d34e1806-0d2e-4d3a-91b1-19313fa180be" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_de2cb43a-e4cc-424f-8ffe-4c8a73f108e8" xlink:to="loc_srt_MaximumMember_d34e1806-0d2e-4d3a-91b1-19313fa180be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_4138f608-180c-442c-a489-68623b52acd9" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_de2cb43a-e4cc-424f-8ffe-4c8a73f108e8" xlink:to="loc_srt_WeightedAverageMember_4138f608-180c-442c-a489-68623b52acd9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_470720ff-4196-468c-a237-4a1dc834720a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_3e1ed2f5-e2a3-4db5-9cd1-61ca8d40bfb8" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_470720ff-4196-468c-a237-4a1dc834720a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentGuaranteeMember_d2389e29-3116-430e-be2a-7843b44f72bb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_470720ff-4196-468c-a237-4a1dc834720a" xlink:to="loc_us-gaap_PaymentGuaranteeMember_d2389e29-3116-430e-be2a-7843b44f72bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3e48a2cd-df94-48dc-bd27-57bf7d79cc31" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3e48a2cd-df94-48dc-bd27-57bf7d79cc31" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_3e48a2cd-df94-48dc-bd27-57bf7d79cc31_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3e48a2cd-df94-48dc-bd27-57bf7d79cc31" xlink:to="loc_us-gaap_LossContingencyNatureDomain_3e48a2cd-df94-48dc-bd27-57bf7d79cc31_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_9419e87e-52eb-43ab-a65d-7e57c8e5cf09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_3e48a2cd-df94-48dc-bd27-57bf7d79cc31" xlink:to="loc_us-gaap_LossContingencyNatureDomain_9419e87e-52eb-43ab-a65d-7e57c8e5cf09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMember_980714c7-3def-4bc2-9e46-ee9b8c118e60" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GuaranteeObligationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_9419e87e-52eb-43ab-a65d-7e57c8e5cf09" xlink:to="loc_us-gaap_GuaranteeObligationsMember_980714c7-3def-4bc2-9e46-ee9b8c118e60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndemnificationGuaranteeMember_701511fb-a6ae-41a8-9d40-fa74ce2dd18b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IndemnificationGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_9419e87e-52eb-43ab-a65d-7e57c8e5cf09" xlink:to="loc_us-gaap_IndemnificationGuaranteeMember_701511fb-a6ae-41a8-9d40-fa74ce2dd18b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_583e0169-1645-48e6-bf9f-c38a2933c055" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:to="loc_srt_LitigationCaseAxis_583e0169-1645-48e6-bf9f-c38a2933c055" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_583e0169-1645-48e6-bf9f-c38a2933c055_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_583e0169-1645-48e6-bf9f-c38a2933c055" xlink:to="loc_srt_LitigationCaseTypeDomain_583e0169-1645-48e6-bf9f-c38a2933c055_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_5b70727d-cb68-4395-b112-70e248b1fda3" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_583e0169-1645-48e6-bf9f-c38a2933c055" xlink:to="loc_srt_LitigationCaseTypeDomain_5b70727d-cb68-4395-b112-70e248b1fda3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_NationalOpioidEpidemicMember_af7cb472-4159-4323-ade1-d6d830567dd7" xlink:href="unfi-20230729.xsd#unfi_NationalOpioidEpidemicMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_5b70727d-cb68-4395-b112-70e248b1fda3" xlink:to="loc_unfi_NationalOpioidEpidemicMember_af7cb472-4159-4323-ade1-d6d830567dd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_ComplaintFromVariousHealthPlansMember_8b66ef95-ef14-49af-aa5a-a676b0f5fa5b" xlink:href="unfi-20230729.xsd#unfi_ComplaintFromVariousHealthPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_5b70727d-cb68-4395-b112-70e248b1fda3" xlink:to="loc_unfi_ComplaintFromVariousHealthPlansMember_8b66ef95-ef14-49af-aa5a-a676b0f5fa5b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SchutteandYarberryv.SuperValuNewAlbertsonsInc.etalMember_a0a26dfc-a688-4e46-9c17-380a3bf6e01a" xlink:href="unfi-20230729.xsd#unfi_SchutteandYarberryv.SuperValuNewAlbertsonsInc.etalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_5b70727d-cb68-4395-b112-70e248b1fda3" xlink:to="loc_unfi_SchutteandYarberryv.SuperValuNewAlbertsonsInc.etalMember_a0a26dfc-a688-4e46-9c17-380a3bf6e01a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1e294f2c-7480-4bdd-b7fc-34d42a35081a" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_04c7afb7-f9f3-46ba-84c9-6bc67da23ceb" xlink:to="loc_dei_LegalEntityAxis_1e294f2c-7480-4bdd-b7fc-34d42a35081a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1e294f2c-7480-4bdd-b7fc-34d42a35081a_default" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1e294f2c-7480-4bdd-b7fc-34d42a35081a" xlink:to="loc_dei_EntityDomain_1e294f2c-7480-4bdd-b7fc-34d42a35081a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_522e2d4a-e7bc-49df-a6ff-2e2a7bc05d8f" xlink:href="https://xbrl.sec.gov/dei/2023/dei-2023.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1e294f2c-7480-4bdd-b7fc-34d42a35081a" xlink:to="loc_dei_EntityDomain_522e2d4a-e7bc-49df-a6ff-2e2a7bc05d8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_AdvantageLogisticsMember_58b63414-d9e1-42de-bd8b-b7f09d3019ec" xlink:href="unfi-20230729.xsd#unfi_AdvantageLogisticsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_522e2d4a-e7bc-49df-a6ff-2e2a7bc05d8f" xlink:to="loc_unfi_AdvantageLogisticsMember_58b63414-d9e1-42de-bd8b-b7f09d3019ec" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.unfi.com/role/DISCONTINUEDOPERATIONSNarrativeDetails" xlink:type="simple" xlink:href="unfi-20230729.xsd#DISCONTINUEDOPERATIONSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.unfi.com/role/DISCONTINUEDOPERATIONSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_4998f14e-0a3b-452c-8a62-a099947e53db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_3a95b881-3b2c-4aea-aeba-54844e1da5e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_4998f14e-0a3b-452c-8a62-a099947e53db" xlink:to="loc_us-gaap_Revenues_3a95b881-3b2c-4aea-aeba-54844e1da5e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_6bc7f8a1-a767-4531-9042-97f03f9049f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_4998f14e-0a3b-452c-8a62-a099947e53db" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_6bc7f8a1-a767-4531-9042-97f03f9049f2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_2ac2509b-bda5-4605-a513-79c6bae8564c" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_6bc7f8a1-a767-4531-9042-97f03f9049f2" xlink:to="loc_srt_ConsolidationItemsAxis_2ac2509b-bda5-4605-a513-79c6bae8564c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_2ac2509b-bda5-4605-a513-79c6bae8564c_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_2ac2509b-bda5-4605-a513-79c6bae8564c" xlink:to="loc_srt_ConsolidationItemsDomain_2ac2509b-bda5-4605-a513-79c6bae8564c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8bd4a147-2029-48d7-9812-1d798b9e26a4" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_2ac2509b-bda5-4605-a513-79c6bae8564c" xlink:to="loc_srt_ConsolidationItemsDomain_8bd4a147-2029-48d7-9812-1d798b9e26a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_af8ee49c-2d80-4907-8ae9-a77c8d75a00a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8bd4a147-2029-48d7-9812-1d798b9e26a4" xlink:to="loc_us-gaap_OperatingSegmentsMember_af8ee49c-2d80-4907-8ae9-a77c8d75a00a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0a484b57-cfbd-43e1-9250-6b9d302fe929" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_6bc7f8a1-a767-4531-9042-97f03f9049f2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0a484b57-cfbd-43e1-9250-6b9d302fe929" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0a484b57-cfbd-43e1-9250-6b9d302fe929_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0a484b57-cfbd-43e1-9250-6b9d302fe929" xlink:to="loc_us-gaap_SegmentDomain_0a484b57-cfbd-43e1-9250-6b9d302fe929_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_43ce6ed7-e47f-4360-9981-95e045040bec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0a484b57-cfbd-43e1-9250-6b9d302fe929" xlink:to="loc_us-gaap_SegmentDomain_43ce6ed7-e47f-4360-9981-95e045040bec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_WholesaleSegmentMember_6799240c-e7d4-477a-a450-1808e98ad4ee" xlink:href="unfi-20230729.xsd#unfi_WholesaleSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_43ce6ed7-e47f-4360-9981-95e045040bec" xlink:to="loc_unfi_WholesaleSegmentMember_6799240c-e7d4-477a-a450-1808e98ad4ee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_545e3c93-c167-418c-b1db-f64781db9bfc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementOperatingActivitiesSegmentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_6bc7f8a1-a767-4531-9042-97f03f9049f2" xlink:to="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_545e3c93-c167-418c-b1db-f64781db9bfc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_545e3c93-c167-418c-b1db-f64781db9bfc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_545e3c93-c167-418c-b1db-f64781db9bfc" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_545e3c93-c167-418c-b1db-f64781db9bfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentOperatingActivitiesDomain_1960cd1f-b70b-4468-a63a-408f4d2ca3ce" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentOperatingActivitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementOperatingActivitiesSegmentAxis_545e3c93-c167-418c-b1db-f64781db9bfc" xlink:to="loc_us-gaap_SegmentOperatingActivitiesDomain_1960cd1f-b70b-4468-a63a-408f4d2ca3ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDiscontinuedOperationsMember_01708ba4-66f6-4305-a07e-e95facd319f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentOperatingActivitiesDomain_1960cd1f-b70b-4468-a63a-408f4d2ca3ce" xlink:to="loc_us-gaap_SegmentDiscontinuedOperationsMember_01708ba4-66f6-4305-a07e-e95facd319f8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-roles-2023.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#AwardTypeOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_RestrictedStockMember" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_SupervaluReplacementAwardsMember_e3f3dc8b-b898-4aa8-8e77-52fe410a3b88" xlink:href="unfi-20230729.xsd#unfi_SupervaluReplacementAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_SupervaluReplacementAwardsMember_e3f3dc8b-b898-4aa8-8e77-52fe410a3b88" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_PerformanceAwardMember_78f96f47-e35b-4a2b-bb40-14a27ac49999" xlink:href="unfi-20230729.xsd#unfi_PerformanceAwardMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_PerformanceAwardMember_78f96f47-e35b-4a2b-bb40-14a27ac49999" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_us-gaap_PerformanceSharesMember" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember_eb7fdefa-b666-48b1-8a40-27eb7e34bf7b" xlink:href="unfi-20230729.xsd#unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_RestrictedStockUnitsSupervaluReplacementAwardsAndPerformanceStockUnitsMember_eb7fdefa-b666-48b1-8a40-27eb7e34bf7b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2021PerformanceShareUnitsMember_5101b4ce-0e3c-40d2-8c32-f8badf9e35cb" xlink:href="unfi-20230729.xsd#unfi_A2021PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_A2021PerformanceShareUnitsMember_5101b4ce-0e3c-40d2-8c32-f8badf9e35cb" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2020PerformanceShareUnitsMember_bc2a8f03-5963-4ed1-a87d-24682006bfd6" xlink:href="unfi-20230729.xsd#unfi_A2020PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_A2020PerformanceShareUnitsMember_bc2a8f03-5963-4ed1-a87d-24682006bfd6" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_A2019PerformanceShareUnitsMember_e3b9d421-528f-4049-ab31-a53e7b0b05ed" xlink:href="unfi-20230729.xsd#unfi_A2019PerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_unfi_A2019PerformanceShareUnitsMember_e3b9d421-528f-4049-ab31-a53e7b0b05ed" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_unfi_DanielleBenedictMember_205d06ac-8f11-49ae-9ac7-86e762654ab8" xlink:href="unfi-20230729.xsd#unfi_DanielleBenedictMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_unfi_DanielleBenedictMember_205d06ac-8f11-49ae-9ac7-86e762654ab8" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
