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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:c04ea379-9190-4889-ac49-d54cc81b7073,g:ea7ff1a4-e55e-48a1-92f2-59c5f22231f4-->
<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.wdc.com/role/CoverPage" xlink:type="simple" xlink:href="wdc-20210101.xsd#CoverPage"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CoverPage" xlink:type="extended" id="i4c687954ea10484da13652fb77beb75d_CoverPage"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="i2a5bc82a912647de839798d303bb71fc_CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="i52c6af1701a64869b41db734b618121f_CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended" id="ia87f81cfd0db47428e19499e67a9b953_CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS" xlink:type="extended" id="ic290e7901e20485a9b22d2ce1aec1b0c_CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSS"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="i4745462760754b68ad1324d39fbbe3d4_CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="simple" xlink:href="wdc-20210101.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="extended" id="i199f173d03e040e8ae6ac2037cbb21fc_CONDENSEDCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_f8e8a539-bf26-4656-b0ab-4e06879b34a5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_f8e8a539-bf26-4656-b0ab-4e06879b34a5" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_1a14d1e4-56b0-4618-83d6-078f8e0f8da8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_1a14d1e4-56b0-4618-83d6-078f8e0f8da8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9d4f6507-99de-49b3-88d7-790f811aa9b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_StockholdersEquity_9d4f6507-99de-49b3-88d7-790f811aa9b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_711f48d3-485c-4112-8fd9-ed81adc16e14" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_NetIncomeLoss_711f48d3-485c-4112-8fd9-ed81adc16e14" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlansNetOfTaxWithholdings_038e7ef0-cbe3-4868-9baf-f56b352378d3" xlink:href="wdc-20210101.xsd#wdc_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlansNetOfTaxWithholdings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_wdc_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlansNetOfTaxWithholdings_038e7ef0-cbe3-4868-9baf-f56b352378d3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_StockIssuedDuringPeriodValueEmployeeStockPurchasePlanNetOfTaxWithholdings_1852cac8-e117-43ab-b2d9-1c7bd691235b" xlink:href="wdc-20210101.xsd#wdc_StockIssuedDuringPeriodValueEmployeeStockPurchasePlanNetOfTaxWithholdings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_wdc_StockIssuedDuringPeriodValueEmployeeStockPurchasePlanNetOfTaxWithholdings_1852cac8-e117-43ab-b2d9-1c7bd691235b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_120744c9-249b-4a7d-a89d-eac6bf042768" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_120744c9-249b-4a7d-a89d-eac6bf042768" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DividendsDeclared_363b0acd-2509-4406-9d28-d362526975f6" xlink:href="wdc-20210101.xsd#wdc_DividendsDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_wdc_DividendsDeclared_363b0acd-2509-4406-9d28-d362526975f6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_8baa9713-5e2a-4ffb-94c0-c7ec85531bc9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax_8baa9713-5e2a-4ffb-94c0-c7ec85531bc9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_fe4f938d-68f7-4115-a240-fe60889d2b11" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax_fe4f938d-68f7-4115-a240-fe60889d2b11" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_ccf107a8-503d-424e-9549-d7ef88133b8c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_59c0c370-26da-4cba-b908-2fb0ad3cc8d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_ccf107a8-503d-424e-9549-d7ef88133b8c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_589da130-617d-420f-932b-9806af352630" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_b8b0bacd-67fd-47be-a909-bde3f92edc3a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3d82a408-85c1-4264-812d-813873467fdf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_f8e8a539-bf26-4656-b0ab-4e06879b34a5" xlink:to="loc_us-gaap_StatementTable_3d82a408-85c1-4264-812d-813873467fdf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_bcb1d487-a970-437a-ad9f-ec9c4a578d44" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3d82a408-85c1-4264-812d-813873467fdf" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_bcb1d487-a970-437a-ad9f-ec9c4a578d44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_bcb1d487-a970-437a-ad9f-ec9c4a578d44_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bcb1d487-a970-437a-ad9f-ec9c4a578d44" xlink:to="loc_us-gaap_EquityComponentDomain_bcb1d487-a970-437a-ad9f-ec9c4a578d44_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_bcb1d487-a970-437a-ad9f-ec9c4a578d44" xlink:to="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_eadda208-02c6-4327-b0f7-5962718e99f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:to="loc_us-gaap_CommonStockMember_eadda208-02c6-4327-b0f7-5962718e99f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_bc12ae81-c5b0-4042-90a7-7af17ffab3d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:to="loc_us-gaap_TreasuryStockMember_bc12ae81-c5b0-4042-90a7-7af17ffab3d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_45a7036d-7bae-48f4-9b64-08af1a06fe3d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_45a7036d-7bae-48f4-9b64-08af1a06fe3d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_96b56ea7-084a-4c41-aadd-c463d4ed7e83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_96b56ea7-084a-4c41-aadd-c463d4ed7e83" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_d29c7a99-1593-4e03-ab40-fc3bc1a12476" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1682ef84-f212-4741-8f4a-9aa33a1f4e66" xlink:to="loc_us-gaap_RetainedEarningsMember_d29c7a99-1593-4e03-ab40-fc3bc1a12476" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0623d907-3fc2-4e8e-b4fd-96771192eaf6" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3d82a408-85c1-4264-812d-813873467fdf" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0623d907-3fc2-4e8e-b4fd-96771192eaf6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0623d907-3fc2-4e8e-b4fd-96771192eaf6_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0623d907-3fc2-4e8e-b4fd-96771192eaf6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0623d907-3fc2-4e8e-b4fd-96771192eaf6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0456e74d-b973-4aa2-8292-8300530545c3" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_0623d907-3fc2-4e8e-b4fd-96771192eaf6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0456e74d-b973-4aa2-8292-8300530545c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_5610c70e-1532-443d-b7f5-4493af60e86b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_0456e74d-b973-4aa2-8292-8300530545c3" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_5610c70e-1532-443d-b7f5-4493af60e86b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentation"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentation" xlink:type="extended" id="i47f8f4b3e4504c539e892a07e314ee7f_OrganizationandBasisofPresentation"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentationPolicies"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies" xlink:type="extended" id="i83bd3572ec6b4938854a9a6d036bf692_OrganizationandBasisofPresentationPolicies"/>
  <link:roleRef roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#OrganizationandBasisofPresentationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/OrganizationandBasisofPresentationDetails" xlink:type="extended" id="ib746a409c4b743be855920aa82a8c761_OrganizationandBasisofPresentationDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="simple" xlink:href="wdc-20210101.xsd#RecentAccountingPronouncements"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RecentAccountingPronouncements" xlink:type="extended" id="i653bc504fc5d48f9966e04a6954a9219_RecentAccountingPronouncements"/>
  <link:roleRef roleURI="http://www.wdc.com/role/Revenues" xlink:type="simple" xlink:href="wdc-20210101.xsd#Revenues"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/Revenues" xlink:type="extended" id="i5d0e97a306884938a6a8a7a3aaf94f9e_Revenues"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesTables" xlink:type="extended" id="i994dd7181a224c80b1c84d7350fa116d_RevenuesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesRevenueRemainingPerformanceObligationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails" xlink:type="extended" id="iae6956659d2e44bf85f57a1abb8231ff_RevenuesRevenueRemainingPerformanceObligationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_6af62677-c5a5-4db7-89df-3189dbb86361" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_6af62677-c5a5-4db7-89df-3189dbb86361" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_1eb987bf-3a77-4f1b-8b00-caef172e7fd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_1eb987bf-3a77-4f1b-8b00-caef172e7fd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0077ba96-e5e4-4cc1-9dc5-7eb381fff6e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0077ba96-e5e4-4cc1-9dc5-7eb381fff6e3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_2b03ff3e-391d-4727-b7d6-d7925dfe5c7a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0077ba96-e5e4-4cc1-9dc5-7eb381fff6e3" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_2b03ff3e-391d-4727-b7d6-d7925dfe5c7a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesRevenueRemainingPerformanceObligationDetails_1"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesRevenueRemainingPerformanceObligationDetails_1" xlink:type="extended" id="ia89b2bf283304da88bc385eda4470986_RevenuesRevenueRemainingPerformanceObligationDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_6af62677-c5a5-4db7-89df-3189dbb86361" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_6af62677-c5a5-4db7-89df-3189dbb86361" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_1eb987bf-3a77-4f1b-8b00-caef172e7fd4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_1eb987bf-3a77-4f1b-8b00-caef172e7fd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0077ba96-e5e4-4cc1-9dc5-7eb381fff6e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_58ff7c21-0deb-4af5-a00a-1783d69a5d66" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_0077ba96-e5e4-4cc1-9dc5-7eb381fff6e3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesDisaggregationofRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesDisaggregationofRevenueDetails" xlink:type="extended" id="i8d9e9dd4ffcf4efaaed7a29d1766df80_RevenuesDisaggregationofRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_909ca5da-b7fa-4b2a-94c7-640a12c5daf3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_dc9a2ec2-f9a5-43c6-b393-c45c57d68ed9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_909ca5da-b7fa-4b2a-94c7-640a12c5daf3" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_dc9a2ec2-f9a5-43c6-b393-c45c57d68ed9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_d885c407-3bd3-4a40-86df-b0d2e8ba154c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_909ca5da-b7fa-4b2a-94c7-640a12c5daf3" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_d885c407-3bd3-4a40-86df-b0d2e8ba154c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorAxis_f72d08c3-d9f2-4908-a26b-e18fd155fbe6" xlink:href="wdc-20210101.xsd#wdc_FormFactorAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_d885c407-3bd3-4a40-86df-b0d2e8ba154c" xlink:to="loc_wdc_FormFactorAxis_f72d08c3-d9f2-4908-a26b-e18fd155fbe6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorDomain_f72d08c3-d9f2-4908-a26b-e18fd155fbe6_default" xlink:href="wdc-20210101.xsd#wdc_FormFactorDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_FormFactorAxis_f72d08c3-d9f2-4908-a26b-e18fd155fbe6" xlink:to="loc_wdc_FormFactorDomain_f72d08c3-d9f2-4908-a26b-e18fd155fbe6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FormFactorDomain_425969b8-37d9-41e8-8f7f-d0c1e344bf4a" xlink:href="wdc-20210101.xsd#wdc_FormFactorDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_FormFactorAxis_f72d08c3-d9f2-4908-a26b-e18fd155fbe6" xlink:to="loc_wdc_FormFactorDomain_425969b8-37d9-41e8-8f7f-d0c1e344bf4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_HDDMember_7a675d15-4d10-4830-b43b-72d1eb1b4522" xlink:href="wdc-20210101.xsd#wdc_HDDMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_425969b8-37d9-41e8-8f7f-d0c1e344bf4a" xlink:to="loc_wdc_HDDMember_7a675d15-4d10-4830-b43b-72d1eb1b4522" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashbasedMember_e3605d1c-e4ff-4cc6-b311-8a2e0296eb3f" xlink:href="wdc-20210101.xsd#wdc_FlashbasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_FormFactorDomain_425969b8-37d9-41e8-8f7f-d0c1e344bf4a" xlink:to="loc_wdc_FlashbasedMember_e3605d1c-e4ff-4cc6-b311-8a2e0296eb3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_d885c407-3bd3-4a40-86df-b0d2e8ba154c" xlink:to="loc_srt_ProductOrServiceAxis_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0" xlink:to="loc_srt_ProductsAndServicesDomain_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_72c56962-773d-4a3f-a604-df8bacc1015b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_2c55e441-30b9-4a80-a1da-ac4cbdaaffd0" xlink:to="loc_srt_ProductsAndServicesDomain_72c56962-773d-4a3f-a604-df8bacc1015b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientDevicesMember_968ba16a-869d-46f9-ab23-f67a76dba387" xlink:href="wdc-20210101.xsd#wdc_ClientDevicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_72c56962-773d-4a3f-a604-df8bacc1015b" xlink:to="loc_wdc_ClientDevicesMember_968ba16a-869d-46f9-ab23-f67a76dba387" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_DataCenterDevicesSolutionsMember_ae9cdf7d-585a-4a28-80ef-f7d7cc47ee45" xlink:href="wdc-20210101.xsd#wdc_DataCenterDevicesSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_72c56962-773d-4a3f-a604-df8bacc1015b" xlink:to="loc_wdc_DataCenterDevicesSolutionsMember_ae9cdf7d-585a-4a28-80ef-f7d7cc47ee45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClientSolutionsMember_f6959e2f-ca83-456e-a122-7fab32529fbc" xlink:href="wdc-20210101.xsd#wdc_ClientSolutionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_72c56962-773d-4a3f-a604-df8bacc1015b" xlink:to="loc_wdc_ClientSolutionsMember_f6959e2f-ca83-456e-a122-7fab32529fbc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_1b61308f-bc55-4593-91fa-f2b65398413c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_d885c407-3bd3-4a40-86df-b0d2e8ba154c" xlink:to="loc_srt_StatementGeographicalAxis_1b61308f-bc55-4593-91fa-f2b65398413c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_1b61308f-bc55-4593-91fa-f2b65398413c_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_1b61308f-bc55-4593-91fa-f2b65398413c" xlink:to="loc_srt_SegmentGeographicalDomain_1b61308f-bc55-4593-91fa-f2b65398413c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_b8105dc0-6f0c-4013-ae09-d9b654f47e44" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_1b61308f-bc55-4593-91fa-f2b65398413c" xlink:to="loc_srt_SegmentGeographicalDomain_b8105dc0-6f0c-4013-ae09-d9b654f47e44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AmericasMember_0e57faa3-da4f-4ad4-b10e-012c8db24c79" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_AmericasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_b8105dc0-6f0c-4013-ae09-d9b654f47e44" xlink:to="loc_srt_AmericasMember_0e57faa3-da4f-4ad4-b10e-012c8db24c79" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EuropeMiddleEastAndAfricaMember_8c8baf88-8903-431d-b3b0-892d5eac6bde" xlink:href="wdc-20210101.xsd#wdc_EuropeMiddleEastAndAfricaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_b8105dc0-6f0c-4013-ae09-d9b654f47e44" xlink:to="loc_wdc_EuropeMiddleEastAndAfricaMember_8c8baf88-8903-431d-b3b0-892d5eac6bde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_AsiaMember_25460310-f5c0-4b1c-82a3-2992e3521474" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_AsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_b8105dc0-6f0c-4013-ae09-d9b654f47e44" xlink:to="loc_srt_AsiaMember_25460310-f5c0-4b1c-82a3-2992e3521474" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RevenuesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RevenuesAdditionalInformationDetails" xlink:type="extended" id="ib5f34bb19e0f4274a2ed00ddcbe60d1e_RevenuesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_34863c2e-ba5e-4c61-b6d3-3999957388be" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_d55d0591-577d-40ba-989c-6a7a539dee69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_34863c2e-ba5e-4c61-b6d3-3999957388be" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_d55d0591-577d-40ba-989c-6a7a539dee69" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_cfd0cec6-1e3b-43c6-aa1c-88c7d34745b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_34863c2e-ba5e-4c61-b6d3-3999957388be" xlink:to="loc_us-gaap_ConcentrationRiskTable_cfd0cec6-1e3b-43c6-aa1c-88c7d34745b1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6047a253-f7a3-42d3-bfd6-0a6f1567aacb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_cfd0cec6-1e3b-43c6-aa1c-88c7d34745b1" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6047a253-f7a3-42d3-bfd6-0a6f1567aacb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6047a253-f7a3-42d3-bfd6-0a6f1567aacb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6047a253-f7a3-42d3-bfd6-0a6f1567aacb" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6047a253-f7a3-42d3-bfd6-0a6f1567aacb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2f38da4a-3e01-41ae-89b4-3abc37f02fe0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6047a253-f7a3-42d3-bfd6-0a6f1567aacb" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2f38da4a-3e01-41ae-89b4-3abc37f02fe0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_429a75d9-6405-4796-9754-1fc9d0af50b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2f38da4a-3e01-41ae-89b4-3abc37f02fe0" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_429a75d9-6405-4796-9754-1fc9d0af50b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_7ed087dd-2c15-4666-9349-d28deb1f22fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_cfd0cec6-1e3b-43c6-aa1c-88c7d34745b1" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_7ed087dd-2c15-4666-9349-d28deb1f22fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_7ed087dd-2c15-4666-9349-d28deb1f22fb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_7ed087dd-2c15-4666-9349-d28deb1f22fb" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_7ed087dd-2c15-4666-9349-d28deb1f22fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_f00f821e-e574-4b25-9500-b902d6bdeb41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_7ed087dd-2c15-4666-9349-d28deb1f22fb" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_f00f821e-e574-4b25-9500-b902d6bdeb41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_e71f9763-9856-4adf-b620-ecdbb6a1e2d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_f00f821e-e574-4b25-9500-b902d6bdeb41" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_e71f9763-9856-4adf-b620-ecdbb6a1e2d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_a6a75f58-c29c-42ce-835f-ff3878fc9e46" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_cfd0cec6-1e3b-43c6-aa1c-88c7d34745b1" xlink:to="loc_srt_MajorCustomersAxis_a6a75f58-c29c-42ce-835f-ff3878fc9e46" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_a6a75f58-c29c-42ce-835f-ff3878fc9e46_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_a6a75f58-c29c-42ce-835f-ff3878fc9e46" xlink:to="loc_srt_NameOfMajorCustomerDomain_a6a75f58-c29c-42ce-835f-ff3878fc9e46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_352776f2-a779-4c02-9893-c745264fd191" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_a6a75f58-c29c-42ce-835f-ff3878fc9e46" xlink:to="loc_srt_NameOfMajorCustomerDomain_352776f2-a779-4c02-9893-c745264fd191" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TopTenCustomersMember_a8c398c9-8208-4bc6-a90c-73781e6671d1" xlink:href="wdc-20210101.xsd#wdc_TopTenCustomersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_352776f2-a779-4c02-9893-c745264fd191" xlink:to="loc_wdc_TopTenCustomersMember_a8c398c9-8208-4bc6-a90c-73781e6671d1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementData"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementData" xlink:type="extended" id="i7e67f5628cd94cd9ad20926e53aed43f_SupplementalFinancialStatementData"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTables" xlink:type="extended" id="ia7609d26417b4bf383b7c1729a60b2e0_SupplementalFinancialStatementDataTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails" xlink:type="extended" id="i5aed824b0ef941b4bdb547b55211a7ac_SupplementalFinancialStatementDataAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0c92770e-8b1d-41a5-8c8d-3508f0fb963e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_93edb596-1ab4-4a1c-9a3c-0825af93aa70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromSaleAndCollectionOfReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0c92770e-8b1d-41a5-8c8d-3508f0fb963e" xlink:to="loc_us-gaap_ProceedsFromSaleAndCollectionOfReceivables_93edb596-1ab4-4a1c-9a3c-0825af93aa70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableNet_b1adf15e-3118-4972-921f-a356340daf36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0c92770e-8b1d-41a5-8c8d-3508f0fb963e" xlink:to="loc_us-gaap_NotesReceivableNet_b1adf15e-3118-4972-921f-a356340daf36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8079e498-30a0-4b17-827f-2abd2fb4a9a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_0c92770e-8b1d-41a5-8c8d-3508f0fb963e" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8079e498-30a0-4b17-827f-2abd2fb4a9a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_f4492a78-09dc-4520-82e5-6f78067e064a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_8079e498-30a0-4b17-827f-2abd2fb4a9a8" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_f4492a78-09dc-4520-82e5-6f78067e064a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_f4492a78-09dc-4520-82e5-6f78067e064a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_f4492a78-09dc-4520-82e5-6f78067e064a" xlink:to="loc_us-gaap_ReceivableTypeDomain_f4492a78-09dc-4520-82e5-6f78067e064a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableTypeDomain_4cc18c82-b6df-4c71-9e48-131a523f29a0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReceivableTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis_f4492a78-09dc-4520-82e5-6f78067e064a" xlink:to="loc_us-gaap_ReceivableTypeDomain_4cc18c82-b6df-4c71-9e48-131a523f29a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FactoredReceivablesMember_73231703-5836-4c01-93ad-39728793018a" xlink:href="wdc-20210101.xsd#wdc_FactoredReceivablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReceivableTypeDomain_4cc18c82-b6df-4c71-9e48-131a523f29a0" xlink:to="loc_wdc_FactoredReceivablesMember_73231703-5836-4c01-93ad-39728793018a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataInventoryDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails" xlink:type="extended" id="iec3f42551b6f4362a67867f49cd127d4_SupplementalFinancialStatementDataInventoryDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" xlink:type="extended" id="i33f188c6b6884fd2898da66dcc93b4c9_SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_fa544771-35a5-47ba-90a6-6eb0f2619b8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_228f10cc-ce6d-4c93-8ff9-6016c09e7274" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_fa544771-35a5-47ba-90a6-6eb0f2619b8a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_228f10cc-ce6d-4c93-8ff9-6016c09e7274" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_a4b6e896-e649-46e7-a7cb-329c4362b00c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_228f10cc-ce6d-4c93-8ff9-6016c09e7274" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_a4b6e896-e649-46e7-a7cb-329c4362b00c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_dd1a0c63-1e5b-4d95-8e5d-0ebc2864847e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_228f10cc-ce6d-4c93-8ff9-6016c09e7274" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_dd1a0c63-1e5b-4d95-8e5d-0ebc2864847e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f4b60a45-3557-4053-be12-efccd75c4237" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_228f10cc-ce6d-4c93-8ff9-6016c09e7274" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f4b60a45-3557-4053-be12-efccd75c4237" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d41a0dfe-1a66-4e13-a490-08ac16a98b77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_fa544771-35a5-47ba-90a6-6eb0f2619b8a" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d41a0dfe-1a66-4e13-a490-08ac16a98b77" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_cb684ebf-1bc1-4852-b0d4-acccfd7a1332" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_d41a0dfe-1a66-4e13-a490-08ac16a98b77" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_cb684ebf-1bc1-4852-b0d4-acccfd7a1332" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_cb684ebf-1bc1-4852-b0d4-acccfd7a1332_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_cb684ebf-1bc1-4852-b0d4-acccfd7a1332" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_cb684ebf-1bc1-4852-b0d4-acccfd7a1332_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_cb684ebf-1bc1-4852-b0d4-acccfd7a1332" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandMember_7c03ec6b-6e60-4257-97b6-31957ca6380c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LandMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_us-gaap_LandMember_7c03ec6b-6e60-4257-97b6-31957ca6380c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_d92d7c10-96d7-42ef-9a2c-ffa248283aed" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_d92d7c10-96d7-42ef-9a2c-ffa248283aed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_88a47c4e-85a5-4882-9b07-faf70cd41e79" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MachineryAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_88a47c4e-85a5-4882-9b07-faf70cd41e79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ComputerEquipmentandSoftwareMember_4ecfcfe0-d3e0-4961-8763-10ffe2c5473c" xlink:href="wdc-20210101.xsd#wdc_ComputerEquipmentandSoftwareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_wdc_ComputerEquipmentandSoftwareMember_4ecfcfe0-d3e0-4961-8763-10ffe2c5473c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_51e74a18-7cf2-43ce-8b06-ac10dd6aa1a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_51e74a18-7cf2-43ce-8b06-ac10dd6aa1a1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_75777e9d-200f-4a58-aac7-0bc3cf4be178" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b0004e28-a3c7-4814-b8f2-ebe781dfa897" xlink:to="loc_us-gaap_ConstructionInProgressMember_75777e9d-200f-4a58-aac7-0bc3cf4be178" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataGoodwillRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataGoodwillRollForwardDetails" xlink:type="extended" id="i7ff073e1a8084b639a45a6bcc2e92b70_SupplementalFinancialStatementDataGoodwillRollForwardDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataIntangibleAssetsDetails" xlink:type="extended" id="iba927a6ea5f74d5b894d933da462f448_SupplementalFinancialStatementDataIntangibleAssetsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails" xlink:type="extended" id="iceacacaec8384776b4d0355c4fd00778_SupplementalFinancialStatementDataWarrantyAccrualRollForwardDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" xlink:type="extended" id="i48fc41aec3354f698f9dba7fca78d1bb_SupplementalFinancialStatementDataTotalWarrantyAccrualDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails" xlink:type="extended" id="i24e1704e03cf43faab861a4f93bff331_SupplementalFinancialStatementDataOtherLiabilitiesDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails" xlink:type="extended" id="ib67ddf2071e64f79af4223895a772e8c_SupplementalFinancialStatementDataAccumulatedOtherComprehensiveIncomeRollForwardDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_b9c782c2-2da6-4450-b19a-cb746ec96589" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_b9c782c2-2da6-4450-b19a-cb746ec96589" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a1dbc164-1da4-45ff-beba-cfb911f96786" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:to="loc_us-gaap_StockholdersEquity_a1dbc164-1da4-45ff-beba-cfb911f96786" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_c69be284-99b4-42a6-b939-3c11bdd5a108" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_c69be284-99b4-42a6-b939-3c11bdd5a108" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_3b33efa3-5156-4482-8900-e0e338382a97" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_3b33efa3-5156-4482-8900-e0e338382a97" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_8b0f73d2-aee5-42e8-b1e3-ef76a5cfcbb4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_8b0f73d2-aee5-42e8-b1e3-ef76a5cfcbb4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9ca5ede9-fe00-4b92-8f4d-39ef116bcc04" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_059280c7-a926-4c6d-80e9-c72b37afb28a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_9ca5ede9-fe00-4b92-8f4d-39ef116bcc04" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3507dc8a-4778-4ac3-8150-d765aaaa04b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_5b8cc765-a772-4943-86d3-bbfbcb341c57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_b9c782c2-2da6-4450-b19a-cb746ec96589" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_5b8cc765-a772-4943-86d3-bbfbcb341c57" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_3c3912f1-0fa1-4f33-9101-b14bbc50399c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_5b8cc765-a772-4943-86d3-bbfbcb341c57" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_3c3912f1-0fa1-4f33-9101-b14bbc50399c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_3c3912f1-0fa1-4f33-9101-b14bbc50399c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3c3912f1-0fa1-4f33-9101-b14bbc50399c" xlink:to="loc_us-gaap_EquityComponentDomain_3c3912f1-0fa1-4f33-9101-b14bbc50399c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3c3912f1-0fa1-4f33-9101-b14bbc50399c" xlink:to="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_aa411e6e-d54e-47bf-b6f3-6614d6c745a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_aa411e6e-d54e-47bf-b6f3-6614d6c745a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_c672b899-6f13-4e09-acdf-80b0189637b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_c672b899-6f13-4e09-acdf-80b0189637b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_b1a9ca54-38e1-4626-8225-2da098b3f354" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_b1a9ca54-38e1-4626-8225-2da098b3f354" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_78a67a56-7b5e-42b7-9096-7a5330b45e63" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_92235262-2c06-4060-af7b-51c7c23dc80e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_78a67a56-7b5e-42b7-9096-7a5330b45e63" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestments"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestments" xlink:type="extended" id="i76a1244bc28f4ccd91fdf83b02165629_FairValueMeasurementsandInvestments"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables" xlink:type="extended" id="i076e096a186e4580a8b9e9a815df2d9f_FairValueMeasurementsandInvestmentsTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" xlink:type="extended" id="ifc08e2eeec144a5ba897d3ae8c8a7799_FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_13c64b08-345f-4749-9541-23ff33396195" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_632ddd2f-99a4-4fb9-b9b8-b45d07e1c2ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_13c64b08-345f-4749-9541-23ff33396195" xlink:to="loc_us-gaap_AssetsAbstract_632ddd2f-99a4-4fb9-b9b8-b45d07e1c2ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_48550ecf-8da2-43f3-9184-b10bfc15d467" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_632ddd2f-99a4-4fb9-b9b8-b45d07e1c2ca" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_48550ecf-8da2-43f3-9184-b10bfc15d467" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_1ed05617-47b7-4e6f-a713-f6c34ab75217" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_632ddd2f-99a4-4fb9-b9b8-b45d07e1c2ca" xlink:to="loc_us-gaap_DerivativeAssets_1ed05617-47b7-4e6f-a713-f6c34ab75217" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_ba78a21e-1b42-4f8d-aa78-a4f46ed3d2ce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_632ddd2f-99a4-4fb9-b9b8-b45d07e1c2ca" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_ba78a21e-1b42-4f8d-aa78-a4f46ed3d2ce" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_05c3baee-6292-4868-a527-e5f9b2e4048f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_13c64b08-345f-4749-9541-23ff33396195" xlink:to="loc_us-gaap_LiabilitiesAbstract_05c3baee-6292-4868-a527-e5f9b2e4048f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_b0319534-3526-4c2e-8782-346dab1b93a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_05c3baee-6292-4868-a527-e5f9b2e4048f" xlink:to="loc_us-gaap_DerivativeLiabilities_b0319534-3526-4c2e-8782-346dab1b93a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_494debea-b1fd-40ff-900c-dc0b807e7cd8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_05c3baee-6292-4868-a527-e5f9b2e4048f" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_494debea-b1fd-40ff-900c-dc0b807e7cd8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_cf137cb6-6120-4f8a-b0c4-81e6b8d83013" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_13c64b08-345f-4749-9541-23ff33396195" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_cf137cb6-6120-4f8a-b0c4-81e6b8d83013" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7def9b17-514a-4ca1-9549-b1f978e0662c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_cf137cb6-6120-4f8a-b0c4-81e6b8d83013" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7def9b17-514a-4ca1-9549-b1f978e0662c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_7def9b17-514a-4ca1-9549-b1f978e0662c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7def9b17-514a-4ca1-9549-b1f978e0662c" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_7def9b17-514a-4ca1-9549-b1f978e0662c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_eb3a2747-efd5-4ec0-a716-46bca00f7bf9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_7def9b17-514a-4ca1-9549-b1f978e0662c" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_eb3a2747-efd5-4ec0-a716-46bca00f7bf9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_9e587c5e-562f-49c2-ab1e-fd8829540f31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_eb3a2747-efd5-4ec0-a716-46bca00f7bf9" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_9e587c5e-562f-49c2-ab1e-fd8829540f31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_082fb0c5-b114-4bda-8286-ebc4274326e8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_cf137cb6-6120-4f8a-b0c4-81e6b8d83013" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_082fb0c5-b114-4bda-8286-ebc4274326e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_082fb0c5-b114-4bda-8286-ebc4274326e8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_082fb0c5-b114-4bda-8286-ebc4274326e8" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_082fb0c5-b114-4bda-8286-ebc4274326e8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7f29c3bf-4141-4899-961f-a2b81fd2a523" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_082fb0c5-b114-4bda-8286-ebc4274326e8" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7f29c3bf-4141-4899-961f-a2b81fd2a523" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_f0f85c6f-7621-4435-8bce-433007bc8c4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7f29c3bf-4141-4899-961f-a2b81fd2a523" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_f0f85c6f-7621-4435-8bce-433007bc8c4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_1adbc704-7f6e-45df-a526-79a846b33b62" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7f29c3bf-4141-4899-961f-a2b81fd2a523" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_1adbc704-7f6e-45df-a526-79a846b33b62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_3fb47c8d-6b2a-4b93-a7e8-d95bc0676c78" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_7f29c3bf-4141-4899-961f-a2b81fd2a523" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_3fb47c8d-6b2a-4b93-a7e8-d95bc0676c78" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_30898bce-865a-450d-a337-b2b44174a514" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_cf137cb6-6120-4f8a-b0c4-81e6b8d83013" xlink:to="loc_us-gaap_FinancialInstrumentAxis_30898bce-865a-450d-a337-b2b44174a514" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_30898bce-865a-450d-a337-b2b44174a514_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_30898bce-865a-450d-a337-b2b44174a514" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_30898bce-865a-450d-a337-b2b44174a514_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_cf2139c2-0396-4d00-824e-57adac7b04eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_30898bce-865a-450d-a337-b2b44174a514" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_cf2139c2-0396-4d00-824e-57adac7b04eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_9b223cf5-1175-4269-afa1-b0a463663a70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_cf2139c2-0396-4d00-824e-57adac7b04eb" xlink:to="loc_us-gaap_MoneyMarketFundsMember_9b223cf5-1175-4269-afa1-b0a463663a70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_90980135-98a8-4544-bae9-24abdb7d8f0f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_cf2139c2-0396-4d00-824e-57adac7b04eb" xlink:to="loc_us-gaap_ForeignExchangeContractMember_90980135-98a8-4544-bae9-24abdb7d8f0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_e55ad4ec-fed7-40c6-a925-eb41a16b6860" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_cf2139c2-0396-4d00-824e-57adac7b04eb" xlink:to="loc_us-gaap_InterestRateSwapMember_e55ad4ec-fed7-40c6-a925-eb41a16b6860" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" xlink:type="extended" id="i413de11af3db40d0a6f37e86b83c9a12_FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_37f11129-5cb9-4fd7-8aa8-60c789f87634" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5e48be7e-6cbf-4e03-8ccd-91db4e59fa5d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_37f11129-5cb9-4fd7-8aa8-60c789f87634" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_5e48be7e-6cbf-4e03-8ccd-91db4e59fa5d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_7093503f-b1db-4181-bd52-f6b4053a7426" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_37f11129-5cb9-4fd7-8aa8-60c789f87634" xlink:to="loc_us-gaap_LongTermDebtFairValue_7093503f-b1db-4181-bd52-f6b4053a7426" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_37f11129-5cb9-4fd7-8aa8-60c789f87634" xlink:to="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f7683b1f-4299-42e6-8814-466a95ce051a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_2b2eb1d5-2e1f-41fd-8c83-8b1092641da3" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f7683b1f-4299-42e6-8814-466a95ce051a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_ba4edc51-6ccb-493e-8461-c452ea3d6a89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f7683b1f-4299-42e6-8814-466a95ce051a" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_ba4edc51-6ccb-493e-8461-c452ea3d6a89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_56aff8ec-f205-4fbd-8cf7-8de1da300e01" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_56aff8ec-f205-4fbd-8cf7-8de1da300e01" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_56aff8ec-f205-4fbd-8cf7-8de1da300e01_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_56aff8ec-f205-4fbd-8cf7-8de1da300e01" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_56aff8ec-f205-4fbd-8cf7-8de1da300e01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4b3a9d86-d933-407a-80d4-f8f34bb999f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_56aff8ec-f205-4fbd-8cf7-8de1da300e01" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4b3a9d86-d933-407a-80d4-f8f34bb999f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_c0b6f90f-8bfb-460f-9546-403086268b29" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_4b3a9d86-d933-407a-80d4-f8f34bb999f5" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_c0b6f90f-8bfb-460f-9546-403086268b29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_aba5b31f-fa3a-4d8c-810f-3ae65bee5fe7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_c0b6f90f-8bfb-460f-9546-403086268b29" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_aba5b31f-fa3a-4d8c-810f-3ae65bee5fe7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_055d7aa5-a0f9-4b1b-8775-a03e8ff7b89a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_c0b6f90f-8bfb-460f-9546-403086268b29" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_055d7aa5-a0f9-4b1b-8775-a03e8ff7b89a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_feb9dff6-75fb-49e4-b742-877c625d7579" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:to="loc_us-gaap_DebtInstrumentAxis_feb9dff6-75fb-49e4-b742-877c625d7579" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_feb9dff6-75fb-49e4-b742-877c625d7579_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_feb9dff6-75fb-49e4-b742-877c625d7579" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_feb9dff6-75fb-49e4-b742-877c625d7579_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_feb9dff6-75fb-49e4-b742-877c625d7579" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_88ac588d-4316-49c1-bc58-a05c5dfa2761" xlink:href="wdc-20210101.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_88ac588d-4316-49c1-bc58-a05c5dfa2761" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA1Member_c412ee8f-ce97-4af0-8a12-dcb1433b11e7" xlink:href="wdc-20210101.xsd#wdc_TermLoanA1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:to="loc_wdc_TermLoanA1Member_c412ee8f-ce97-4af0-8a12-dcb1433b11e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_70743330-666d-4b2a-bdb2-75bfc59748d6" xlink:href="wdc-20210101.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:to="loc_wdc_U.S.TermLoanB4Member_70743330-666d-4b2a-bdb2-75bfc59748d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_a0e17403-fa86-4f60-a8c0-8605ab749917" xlink:href="wdc-20210101.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_a0e17403-fa86-4f60-a8c0-8605ab749917" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_1e8247fc-9f0a-4156-93b5-f30af14afd85" xlink:href="wdc-20210101.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_4c19fba6-c499-4f1a-8308-0c62b48710d2" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_1e8247fc-9f0a-4156-93b5-f30af14afd85" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_37c07750-eac7-4afc-af52-fa7e983a7832" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f5904263-5c2b-4970-b4ba-8eade8a7ce79" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_37c07750-eac7-4afc-af52-fa7e983a7832" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_37c07750-eac7-4afc-af52-fa7e983a7832_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_37c07750-eac7-4afc-af52-fa7e983a7832" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_37c07750-eac7-4afc-af52-fa7e983a7832_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_fa048b7b-7a83-4a58-a1d0-e432fcb4b449" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_37c07750-eac7-4afc-af52-fa7e983a7832" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_fa048b7b-7a83-4a58-a1d0-e432fcb4b449" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_3af74276-4872-4bfb-8303-8076c652edd9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_fa048b7b-7a83-4a58-a1d0-e432fcb4b449" xlink:to="loc_us-gaap_ConvertibleDebtMember_3af74276-4872-4bfb-8303-8076c652edd9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="simple" xlink:href="wdc-20210101.xsd#DerivativesInstrumentsandHedgingActivities"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivities" xlink:type="extended" id="i066f64e4e8994aa2a3f609e102607f42_DerivativesInstrumentsandHedgingActivities"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DerivativesInstrumentsandHedgingActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DerivativesInstrumentsandHedgingActivitiesDetails" xlink:type="extended" id="i2afc3c9539934312b9f79b36de2f357a_DerivativesInstrumentsandHedgingActivitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_84a91736-3603-475c-8506-569213403226" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_3c06ecae-fc2c-4e3c-a308-62fa8673c4f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84a91736-3603-475c-8506-569213403226" xlink:to="loc_us-gaap_DerivativeTermOfContract_3c06ecae-fc2c-4e3c-a308-62fa8673c4f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months_a0e2fef9-8993-4b74-8de5-631ff04aa193" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84a91736-3603-475c-8506-569213403226" xlink:to="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months_a0e2fef9-8993-4b74-8de5-631ff04aa193" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_0f4b1b12-c62a-45c3-8d5b-9e2b3488cd7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_84a91736-3603-475c-8506-569213403226" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_0f4b1b12-c62a-45c3-8d5b-9e2b3488cd7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_3356705a-a703-4e2f-8c2b-9a05199c645b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_0f4b1b12-c62a-45c3-8d5b-9e2b3488cd7f" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_3356705a-a703-4e2f-8c2b-9a05199c645b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3356705a-a703-4e2f-8c2b-9a05199c645b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3356705a-a703-4e2f-8c2b-9a05199c645b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3356705a-a703-4e2f-8c2b-9a05199c645b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_97ee4649-0d41-4700-bb8b-438c463845d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3356705a-a703-4e2f-8c2b-9a05199c645b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_97ee4649-0d41-4700-bb8b-438c463845d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_46c46e75-a03f-4ca5-b1af-587b877c57b6" xlink:href="wdc-20210101.xsd#wdc_ForeignExchangeForwardContractsDesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_97ee4649-0d41-4700-bb8b-438c463845d6" xlink:to="loc_wdc_ForeignExchangeForwardContractsDesignatedMember_46c46e75-a03f-4ca5-b1af-587b877c57b6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/Debt" xlink:type="simple" xlink:href="wdc-20210101.xsd#Debt"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/Debt" xlink:type="extended" id="ia7fcca4a51a04e96942b3e95a4e7bc54_Debt"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtTables" xlink:type="extended" id="id8f0d7ee7e2a40f19d5e01a127f44c04_DebtTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtScheduleofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtScheduleofDebtDetails" xlink:type="extended" id="ifb100f6b32804a7b9b641845c244abab_DebtScheduleofDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6983f922-9660-4716-b26b-783374b5c872" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6983f922-9660-4716-b26b-783374b5c872" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_61b79170-21b0-420b-afc5-574ffacbc207" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_61b79170-21b0-420b-afc5-574ffacbc207" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_c01b9fa9-89b7-40d7-b087-f86d1ee1e1a4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_c01b9fa9-89b7-40d7-b087-f86d1ee1e1a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_c2e3cb3f-d82f-468f-89bf-32ef830ec234" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_LongTermDebt_c2e3cb3f-d82f-468f-89bf-32ef830ec234" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_c3780fd5-b817-495d-91cb-da50f17558b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_LongTermDebtCurrent_c3780fd5-b817-495d-91cb-da50f17558b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_2e3386e2-169a-4c7e-be56-7e470f49d16d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_2e3386e2-169a-4c7e-be56-7e470f49d16d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_1af0a9dd-18a0-4ada-9442-d09f9d08c928" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_eddc90f3-2e37-45d1-98cf-cb56bae8db6d" xlink:to="loc_us-gaap_DebtInstrumentTable_1af0a9dd-18a0-4ada-9442-d09f9d08c928" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_acc25b1e-734b-4555-b81c-7aa02f2aa5e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1af0a9dd-18a0-4ada-9442-d09f9d08c928" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_acc25b1e-734b-4555-b81c-7aa02f2aa5e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_acc25b1e-734b-4555-b81c-7aa02f2aa5e1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_acc25b1e-734b-4555-b81c-7aa02f2aa5e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_acc25b1e-734b-4555-b81c-7aa02f2aa5e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c123b65a-44e0-44d0-a5e5-fd3229e98bdb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_acc25b1e-734b-4555-b81c-7aa02f2aa5e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c123b65a-44e0-44d0-a5e5-fd3229e98bdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_6e659c48-4034-484d-95ca-b98822fa5bd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_c123b65a-44e0-44d0-a5e5-fd3229e98bdb" xlink:to="loc_us-gaap_ConvertibleDebtMember_6e659c48-4034-484d-95ca-b98822fa5bd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_c60be822-a91b-485f-a906-6291491f1f76" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_1af0a9dd-18a0-4ada-9442-d09f9d08c928" xlink:to="loc_us-gaap_DebtInstrumentAxis_c60be822-a91b-485f-a906-6291491f1f76" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c60be822-a91b-485f-a906-6291491f1f76_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_c60be822-a91b-485f-a906-6291491f1f76" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c60be822-a91b-485f-a906-6291491f1f76_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_c60be822-a91b-485f-a906-6291491f1f76" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_20f83c5a-f459-42de-9854-0859f9180dd3" xlink:href="wdc-20210101.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_20f83c5a-f459-42de-9854-0859f9180dd3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TermLoanA1Member_b38e8d95-07f4-4379-b7e8-7324b9476cde" xlink:href="wdc-20210101.xsd#wdc_TermLoanA1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:to="loc_wdc_TermLoanA1Member_b38e8d95-07f4-4379-b7e8-7324b9476cde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_9e6b4c96-260d-4916-a578-7384012a077e" xlink:href="wdc-20210101.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:to="loc_wdc_U.S.TermLoanB4Member_9e6b4c96-260d-4916-a578-7384012a077e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_d91aedf2-8f73-41cf-a89f-3242f44b4453" xlink:href="wdc-20210101.xsd#wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:to="loc_wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember_d91aedf2-8f73-41cf-a89f-3242f44b4453" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_839fa4cc-98c2-4ab9-a74d-b32500eca95c" xlink:href="wdc-20210101.xsd#wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_684f291a-5604-4f97-95f2-b066de77db2a" xlink:to="loc_wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember_839fa4cc-98c2-4ab9-a74d-b32500eca95c" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#DebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/DebtAdditionalInformationDetails" xlink:type="extended" id="i5ef2978dde024d9b900ec9dfa867f73f_DebtAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_f01926bc-dcd7-4d9d-b301-d499ee997a94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebt_fc88bc3f-9633-48c5-b090-de21f7137327" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f01926bc-dcd7-4d9d-b301-d499ee997a94" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebt_fc88bc3f-9633-48c5-b090-de21f7137327" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_cfc0f475-ccd1-4707-990d-2a0855e68f7d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f01926bc-dcd7-4d9d-b301-d499ee997a94" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_cfc0f475-ccd1-4707-990d-2a0855e68f7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_cdad269d-4910-46eb-a4db-c57eba241082" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_f01926bc-dcd7-4d9d-b301-d499ee997a94" xlink:to="loc_us-gaap_DebtInstrumentTable_cdad269d-4910-46eb-a4db-c57eba241082" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_adcd0906-6fed-48d8-b3ed-ba13545f62b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_cdad269d-4910-46eb-a4db-c57eba241082" xlink:to="loc_us-gaap_DebtInstrumentAxis_adcd0906-6fed-48d8-b3ed-ba13545f62b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_adcd0906-6fed-48d8-b3ed-ba13545f62b3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_adcd0906-6fed-48d8-b3ed-ba13545f62b3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_adcd0906-6fed-48d8-b3ed-ba13545f62b3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_2d3beed3-93c5-49d8-998d-3ed261fd1276" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_adcd0906-6fed-48d8-b3ed-ba13545f62b3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_2d3beed3-93c5-49d8-998d-3ed261fd1276" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_U.S.TermLoanB4Member_fbd71c07-b59b-409a-88d6-5a3b5c5d5d0f" xlink:href="wdc-20210101.xsd#wdc_U.S.TermLoanB4Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_2d3beed3-93c5-49d8-998d-3ed261fd1276" xlink:to="loc_wdc_U.S.TermLoanB4Member_fbd71c07-b59b-409a-88d6-5a3b5c5d5d0f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_5cce4408-098e-4cf7-abb6-1bbe0b457f1f" xlink:href="wdc-20210101.xsd#wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_2d3beed3-93c5-49d8-998d-3ed261fd1276" xlink:to="loc_wdc_ConvertibleSeniorNotesDueTwoThousandTwentyMemberMember_5cce4408-098e-4cf7-abb6-1bbe0b457f1f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlans" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlans"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlans" xlink:type="extended" id="i5f365d2a2ea4425c9ccfc7009460801f_PensionsandOtherPostRetirementBenefitPlans"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansTables" xlink:type="extended" id="ic069b35b34b9473190cbd34736a75298_PensionsandOtherPostRetirementBenefitPlansTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails" xlink:type="extended" id="iad8c69bd634646ada4d5441a9e9880c0_PensionsandOtherPostRetirementBenefitPlansAdditionalInformationDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" xlink:type="extended" id="if4ed8444effe477d97d0312220d1b490_PensionsandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" xlink:type="extended" id="ifaa7ac3f004f4e5bbed3c57c2ad84473_PensionsandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingencies"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies" xlink:type="extended" id="i8bdff23c8f5349698afd026964b7d60d_RelatedPartiesandRelatedCommitmentsandContingencies"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables" xlink:type="extended" id="i85a30f2ffbf14825bc69a6ca15380929_RelatedPartiesandRelatedCommitmentsandContingenciesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" xlink:type="extended" id="id3fd5360e48c491ead69986464ad4cc8_RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ea1733a5-8543-4b4a-be6b-98c085702c4c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesAndLoansReceivableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableRelatedParties_712ce5c9-1982-4c13-a1a9-d09b71b899b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ea1733a5-8543-4b4a-be6b-98c085702c4c" xlink:to="loc_us-gaap_NotesReceivableRelatedParties_712ce5c9-1982-4c13-a1a9-d09b71b899b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_3ec616ed-3c03-45e7-93e9-7f0e2e004cba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ea1733a5-8543-4b4a-be6b-98c085702c4c" xlink:to="loc_us-gaap_Investments_3ec616ed-3c03-45e7-93e9-7f0e2e004cba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_e16b8706-0023-43c5-9df0-a1f3bbb6a53a" xlink:href="wdc-20210101.xsd#wdc_NotesReceivableAndInvestmentsInRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ea1733a5-8543-4b4a-be6b-98c085702c4c" xlink:to="loc_wdc_NotesReceivableAndInvestmentsInRelatedParties_e16b8706-0023-43c5-9df0-a1f3bbb6a53a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_815a4833-299f-452d-aecd-6d3f6f4f4ba4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableLineItems_ea1733a5-8543-4b4a-be6b-98c085702c4c" xlink:to="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_815a4833-299f-452d-aecd-6d3f6f4f4ba4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_0cae8243-11cc-41ae-a1da-b8a80551636e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable_815a4833-299f-452d-aecd-6d3f6f4f4ba4" xlink:to="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_0cae8243-11cc-41ae-a1da-b8a80551636e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0cae8243-11cc-41ae-a1da-b8a80551636e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_0cae8243-11cc-41ae-a1da-b8a80551636e" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_0cae8243-11cc-41ae-a1da-b8a80551636e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis_0cae8243-11cc-41ae-a1da-b8a80551636e" xlink:to="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashPartnersLtdMember_51d63859-bcad-4c74-97fc-fca7daa4ea98" xlink:href="wdc-20210101.xsd#wdc_FlashPartnersLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:to="loc_wdc_FlashPartnersLtdMember_51d63859-bcad-4c74-97fc-fca7daa4ea98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashAllianceLtdMember_0aca0fbd-4a9f-48ec-b4e2-f0ef190ebaee" xlink:href="wdc-20210101.xsd#wdc_FlashAllianceLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:to="loc_wdc_FlashAllianceLtdMember_0aca0fbd-4a9f-48ec-b4e2-f0ef190ebaee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashForwardLtdMember_f89a99de-3600-455b-864c-870ee73c4bb2" xlink:href="wdc-20210101.xsd#wdc_FlashForwardLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:to="loc_wdc_FlashForwardLtdMember_f89a99de-3600-455b-864c-870ee73c4bb2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_1f150857-0c3a-4654-83d0-d70c9659812d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LegalEntityTypeOfCounterpartyDomain_7af8bdd1-6129-4014-8dec-60dd27e061df" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_1f150857-0c3a-4654-83d0-d70c9659812d" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" xlink:type="extended" id="ie450a17cbd464dd99773948b44eda554_RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_534d9e89-bbfe-418e-8cd9-206d5051bf9d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_534d9e89-bbfe-418e-8cd9-206d5051bf9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_33a1a540-f013-4ec7-8de9-b9eeac0abd2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableRelatedPartiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_AccountsPayableRelatedPartiesCurrent_33a1a540-f013-4ec7-8de9-b9eeac0abd2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_InvestmentFundingCommitments_73778aae-10b4-4120-b57c-54e512842abc" xlink:href="wdc-20210101.xsd#wdc_InvestmentFundingCommitments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_wdc_InvestmentFundingCommitments_73778aae-10b4-4120-b57c-54e512842abc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_LossOnBusinessInterruption_1a6b119d-3229-4993-9025-07b38f628072" xlink:href="wdc-20210101.xsd#wdc_LossOnBusinessInterruption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_wdc_LossOnBusinessInterruption_1a6b119d-3229-4993-9025-07b38f628072" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_6ccd805d-c12f-4577-9c9b-02ee14e4d25e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainOnBusinessInterruptionInsuranceRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_GainOnBusinessInterruptionInsuranceRecovery_6ccd805d-c12f-4577-9c9b-02ee14e4d25e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitment_df2fed2f-7c7d-430b-8efd-be226fbc724a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_OtherCommitment_df2fed2f-7c7d-430b-8efd-be226fbc724a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherCommitmentPeriod_409c73b0-d90d-4c99-89e7-7a933ffdca08" xlink:href="wdc-20210101.xsd#wdc_OtherCommitmentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_wdc_OtherCommitmentPeriod_409c73b0-d90d-4c99-89e7-7a933ffdca08" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_7010b1dd-4b8c-4c19-bfa6-5d75ff37cea7" xlink:href="wdc-20210101.xsd#wdc_OtherCommitmentRemainingCommittedPrepayments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_wdc_OtherCommitmentRemainingCommittedPrepayments_7010b1dd-4b8c-4c19-bfa6-5d75ff37cea7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_0fe815da-d55b-4ded-890d-7bbf329ae5a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_0fe815da-d55b-4ded-890d-7bbf329ae5a9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PartnersOwnershipInVentureBusiness_fdc077c7-1aba-4639-80c0-a8e4652a9b9b" xlink:href="wdc-20210101.xsd#wdc_PartnersOwnershipInVentureBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_wdc_PartnersOwnershipInVentureBusiness_fdc077c7-1aba-4639-80c0-a8e4652a9b9b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_c76dc44b-5f72-4c90-bbe8-97f479794ad0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_c76dc44b-5f72-4c90-bbe8-97f479794ad0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_8f915b2e-c82b-40ef-a366-3e4f67960889" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d6f253b4-e785-4b49-ad62-e721c9057a41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d6f253b4-e785-4b49-ad62-e721c9057a41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d6f253b4-e785-4b49-ad62-e721c9057a41_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d6f253b4-e785-4b49-ad62-e721c9057a41" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d6f253b4-e785-4b49-ad62-e721c9057a41_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4cbf959a-1527-4ab4-9e34-179506fd8f3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d6f253b4-e785-4b49-ad62-e721c9057a41" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4cbf959a-1527-4ab4-9e34-179506fd8f3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_3ebff68e-7d4c-4e62-a384-0354568c9275" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4cbf959a-1527-4ab4-9e34-179506fd8f3f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_3ebff68e-7d4c-4e62-a384-0354568c9275" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_a60f9544-7c39-4331-8a3c-d50e10e91f72" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_4cbf959a-1527-4ab4-9e34-179506fd8f3f" xlink:to="loc_us-gaap_AccountsReceivableMember_a60f9544-7c39-4331-8a3c-d50e10e91f72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsAxis_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_us-gaap_OtherCommitmentsAxis_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_OtherCommitmentsAxis_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a" xlink:to="loc_us-gaap_OtherCommitmentsDomain_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsDomain_7083cb1d-414e-4c74-afd9-782194385dbd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherCommitmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_OtherCommitmentsAxis_2450ebdd-c9c0-4811-b446-19f5a3fdbd8a" xlink:to="loc_us-gaap_OtherCommitmentsDomain_7083cb1d-414e-4c74-afd9-782194385dbd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PrepaymentsOfFutureDepreciationMember_fe4db934-7980-4d08-a1ce-64804cbccec6" xlink:href="wdc-20210101.xsd#wdc_PrepaymentsOfFutureDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsDomain_7083cb1d-414e-4c74-afd9-782194385dbd" xlink:to="loc_wdc_PrepaymentsOfFutureDepreciationMember_fe4db934-7980-4d08-a1ce-64804cbccec6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_5da205e6-3092-4594-bd00-ec0cf97a38f0" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_dei_LegalEntityAxis_5da205e6-3092-4594-bd00-ec0cf97a38f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5da205e6-3092-4594-bd00-ec0cf97a38f0_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_5da205e6-3092-4594-bd00-ec0cf97a38f0" xlink:to="loc_dei_EntityDomain_5da205e6-3092-4594-bd00-ec0cf97a38f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fd2dd3db-4e8e-4162-bd63-68ef0eb59b37" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_5da205e6-3092-4594-bd00-ec0cf97a38f0" xlink:to="loc_dei_EntityDomain_fd2dd3db-4e8e-4162-bd63-68ef0eb59b37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnissoftWuxiGroupCoLtd.Member_3b07ad43-7251-43e2-a279-b9201e937183" xlink:href="wdc-20210101.xsd#wdc_UnissoftWuxiGroupCoLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_fd2dd3db-4e8e-4162-bd63-68ef0eb59b37" xlink:to="loc_wdc_UnissoftWuxiGroupCoLtd.Member_3b07ad43-7251-43e2-a279-b9201e937183" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_0c3701f2-976e-4af0-b384-60f84faac504" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_0c3701f2-976e-4af0-b384-60f84faac504" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_0c3701f2-976e-4af0-b384-60f84faac504_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_0c3701f2-976e-4af0-b384-60f84faac504" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_0c3701f2-976e-4af0-b384-60f84faac504_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_f1873e4f-85bb-4651-afda-ce97fe02897b" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_0c3701f2-976e-4af0-b384-60f84faac504" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_f1873e4f-85bb-4651-afda-ce97fe02897b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_FlashVenturesMember_3236aa7d-dcd6-43ea-bdcd-6bb9808328e2" xlink:href="wdc-20210101.xsd#wdc_FlashVenturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_f1873e4f-85bb-4651-afda-ce97fe02897b" xlink:to="loc_wdc_FlashVenturesMember_3236aa7d-dcd6-43ea-bdcd-6bb9808328e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_9c5bf83e-dcd7-4938-8e7e-c00b98f3e3ab" xlink:href="wdc-20210101.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_f1873e4f-85bb-4651-afda-ce97fe02897b" xlink:to="loc_wdc_UnisVentureMember_9c5bf83e-dcd7-4938-8e7e-c00b98f3e3ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_2c5715a4-0655-4820-863a-b432b58c18f5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_2c5715a4-0655-4820-863a-b432b58c18f5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_2c5715a4-0655-4820-863a-b432b58c18f5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_2c5715a4-0655-4820-863a-b432b58c18f5" xlink:to="loc_us-gaap_RelatedPartyDomain_2c5715a4-0655-4820-863a-b432b58c18f5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_4e23e29f-4e78-4aac-babf-f59ecefae097" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_2c5715a4-0655-4820-863a-b432b58c18f5" xlink:to="loc_us-gaap_RelatedPartyDomain_4e23e29f-4e78-4aac-babf-f59ecefae097" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_bd912ed1-ba00-4859-a83c-7679dae60eed" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_4e23e29f-4e78-4aac-babf-f59ecefae097" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_bd912ed1-ba00-4859-a83c-7679dae60eed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameAxis_db654eff-c6b9-4664-bf37-4610e724f9bf" xlink:href="wdc-20210101.xsd#wdc_EquityMethodInvestorNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_wdc_EquityMethodInvestorNameAxis_db654eff-c6b9-4664-bf37-4610e724f9bf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_db654eff-c6b9-4664-bf37-4610e724f9bf_default" xlink:href="wdc-20210101.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_db654eff-c6b9-4664-bf37-4610e724f9bf" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_db654eff-c6b9-4664-bf37-4610e724f9bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EquityMethodInvestorNameDomain_03a167a7-3dd5-4ad7-9db0-51228308ff58" xlink:href="wdc-20210101.xsd#wdc_EquityMethodInvestorNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_wdc_EquityMethodInvestorNameAxis_db654eff-c6b9-4664-bf37-4610e724f9bf" xlink:to="loc_wdc_EquityMethodInvestorNameDomain_03a167a7-3dd5-4ad7-9db0-51228308ff58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_WesternDigitalCorpMember_6ab89332-5c86-475a-85a2-34b9c6962cf7" xlink:href="wdc-20210101.xsd#wdc_WesternDigitalCorpMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_wdc_EquityMethodInvestorNameDomain_03a167a7-3dd5-4ad7-9db0-51228308ff58" xlink:to="loc_wdc_WesternDigitalCorpMember_6ab89332-5c86-475a-85a2-34b9c6962cf7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_srt_RangeAxis_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c" xlink:to="loc_srt_RangeMember_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7ff5a809-d856-458c-8d64-0fa9240d5446" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_b7e0dca6-c248-4c83-bd4c-b657e03e6a8c" xlink:to="loc_srt_RangeMember_7ff5a809-d856-458c-8d64-0fa9240d5446" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_2fe05f89-1e11-40a2-b199-78eafcd4ba1a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7ff5a809-d856-458c-8d64-0fa9240d5446" xlink:to="loc_srt_MinimumMember_2fe05f89-1e11-40a2-b199-78eafcd4ba1a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_88378312-bc8d-4da2-8edc-f381f8725520" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7ff5a809-d856-458c-8d64-0fa9240d5446" xlink:to="loc_srt_MaximumMember_88378312-bc8d-4da2-8edc-f381f8725520" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_8ae40c94-fc62-40b0-a9f3-647f933e757a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_8ae40c94-fc62-40b0-a9f3-647f933e757a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_8ae40c94-fc62-40b0-a9f3-647f933e757a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8ae40c94-fc62-40b0-a9f3-647f933e757a" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_8ae40c94-fc62-40b0-a9f3-647f933e757a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_7ddb403e-cff0-4096-8040-e3bcc75b5304" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8ae40c94-fc62-40b0-a9f3-647f933e757a" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_7ddb403e-cff0-4096-8040-e3bcc75b5304" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_34805fa0-9b07-45f9-9f41-21fcce530bda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_7ddb403e-cff0-4096-8040-e3bcc75b5304" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_34805fa0-9b07-45f9-9f41-21fcce530bda" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_0e8cc8ac-ab12-4815-b8f0-14c2328983f2" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_12eb2999-434a-4635-9a69-f4067812d78d" xlink:to="loc_srt_MajorCustomersAxis_0e8cc8ac-ab12-4815-b8f0-14c2328983f2" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_0e8cc8ac-ab12-4815-b8f0-14c2328983f2_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_0e8cc8ac-ab12-4815-b8f0-14c2328983f2" xlink:to="loc_srt_NameOfMajorCustomerDomain_0e8cc8ac-ab12-4815-b8f0-14c2328983f2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_8c3335e4-8616-43c9-83f7-03b9f549a196" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_0e8cc8ac-ab12-4815-b8f0-14c2328983f2" xlink:to="loc_srt_NameOfMajorCustomerDomain_8c3335e4-8616-43c9-83f7-03b9f549a196" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnisVentureMember_79c8753c-e90f-49af-8968-9d25bce380ef" xlink:href="wdc-20210101.xsd#wdc_UnisVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_8c3335e4-8616-43c9-83f7-03b9f549a196" xlink:to="loc_wdc_UnisVentureMember_79c8753c-e90f-49af-8968-9d25bce380ef" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" xlink:type="extended" id="i932481968def4120a43ebc0c2f446a5b_RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_81ac4db2-552d-4bcc-a7f5-f5ecc7c48a1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_c220f084-f2d9-4462-bf59-53be1a15292b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_81ac4db2-552d-4bcc-a7f5-f5ecc7c48a1c" xlink:to="loc_us-gaap_VariableInterestEntityEntityMaximumLossExposureAmount_c220f084-f2d9-4462-bf59-53be1a15292b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_81e7fc05-3602-456d-9f2c-7c5498bc3ca3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_81ac4db2-552d-4bcc-a7f5-f5ecc7c48a1c" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_81e7fc05-3602-456d-9f2c-7c5498bc3ca3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryGross_b398486d-a919-4831-8181-e832df027d0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_81ac4db2-552d-4bcc-a7f5-f5ecc7c48a1c" xlink:to="loc_us-gaap_InventoryGross_b398486d-a919-4831-8181-e832df027d0c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_eaa9ee5a-6f7d-4afc-91e0-a825c295c8a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_81ac4db2-552d-4bcc-a7f5-f5ecc7c48a1c" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_eaa9ee5a-6f7d-4afc-91e0-a825c295c8a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_0e691acc-2b65-4065-a1f7-6168f025dbdb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_eaa9ee5a-6f7d-4afc-91e0-a825c295c8a8" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_0e691acc-2b65-4065-a1f7-6168f025dbdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_0e691acc-2b65-4065-a1f7-6168f025dbdb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_0e691acc-2b65-4065-a1f7-6168f025dbdb" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_0e691acc-2b65-4065-a1f7-6168f025dbdb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_0e691acc-2b65-4065-a1f7-6168f025dbdb" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableMember_1f4b60c9-340c-4434-b7f0-fb922014fcbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NotesReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:to="loc_us-gaap_NotesReceivableMember_1f4b60c9-340c-4434-b7f0-fb922014fcbe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentsMember_87ea20bd-b75f-44c2-b8b8-6f727e1e8416" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:to="loc_us-gaap_EquityMethodInvestmentsMember_87ea20bd-b75f-44c2-b8b8-6f727e1e8416" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_1e54872f-f0ad-4659-bb9f-34330b956703" xlink:href="wdc-20210101.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_1e54872f-f0ad-4659-bb9f-34330b956703" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_796336ef-9e20-4c6e-a8c8-d63571020961" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_c58d8419-ed44-478b-b80a-a1cbe4f48f2f" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_796336ef-9e20-4c6e-a8c8-d63571020961" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_eaa9ee5a-6f7d-4afc-91e0-a825c295c8a8" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_b9d05c3a-2219-4558-9917-95d51e1b6c97" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_7f51ebd1-3ec4-4b25-9dde-fa38e0176d4a" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_b9d05c3a-2219-4558-9917-95d51e1b6c97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_fe5756cf-9799-4812-8b5f-f71e0fe05662" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_b9d05c3a-2219-4558-9917-95d51e1b6c97" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_fe5756cf-9799-4812-8b5f-f71e0fe05662" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" xlink:type="extended" id="i4794f0e9535f40d9a8816571316aade8_RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_bd4804eb-6722-4f28-8a73-ea519f50935c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_db5ff608-d19c-4e57-94b4-460d6d9b934c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_bd4804eb-6722-4f28-8a73-ea519f50935c" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_db5ff608-d19c-4e57-94b4-460d6d9b934c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_c738364f-705c-4f00-9ef2-87c897f96d77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_bd4804eb-6722-4f28-8a73-ea519f50935c" xlink:to="loc_us-gaap_LossContingenciesTable_c738364f-705c-4f00-9ef2-87c897f96d77" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_03283245-e92e-4757-9ebc-e94a00af44c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_c738364f-705c-4f00-9ef2-87c897f96d77" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_03283245-e92e-4757-9ebc-e94a00af44c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_03283245-e92e-4757-9ebc-e94a00af44c1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_03283245-e92e-4757-9ebc-e94a00af44c1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_03283245-e92e-4757-9ebc-e94a00af44c1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_b4d1a47a-1a5b-4baa-8824-fd24d1d8d884" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_03283245-e92e-4757-9ebc-e94a00af44c1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_b4d1a47a-1a5b-4baa-8824-fd24d1d8d884" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_OffBalanceSheetGuaranteeMember_a4ba8d23-04e8-4c42-9650-cb754496a357" xlink:href="wdc-20210101.xsd#wdc_OffBalanceSheetGuaranteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_b4d1a47a-1a5b-4baa-8824-fd24d1d8d884" xlink:to="loc_wdc_OffBalanceSheetGuaranteeMember_a4ba8d23-04e8-4c42-9650-cb754496a357" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_37d335cb-4f7b-45ed-86c0-d2dac476e014" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_c738364f-705c-4f00-9ef2-87c897f96d77" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_37d335cb-4f7b-45ed-86c0-d2dac476e014" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_37d335cb-4f7b-45ed-86c0-d2dac476e014_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_37d335cb-4f7b-45ed-86c0-d2dac476e014" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_37d335cb-4f7b-45ed-86c0-d2dac476e014_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_301b8a5f-6a68-4fab-a932-86a3a11fefce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_37d335cb-4f7b-45ed-86c0-d2dac476e014" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_301b8a5f-6a68-4fab-a932-86a3a11fefce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_d008d417-b138-420c-959c-93ce5312155c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_301b8a5f-6a68-4fab-a932-86a3a11fefce" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_d008d417-b138-420c-959c-93ce5312155c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" xlink:type="extended" id="ib11eecd0e78940a78fa8d70cf9a01aaa_RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_6dfde314-997a-4b30-a9e5-c45a3fff8a57" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureRemainderOfFiscalYear_6dfde314-997a-4b30-a9e5-c45a3fff8a57" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_b18ac88b-e264-44a2-84e1-a1bab12efe40" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearOne_b18ac88b-e264-44a2-84e1-a1bab12efe40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_3279733e-2b3d-4c21-9734-aa0c77f07ad4" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearTwo_3279733e-2b3d-4c21-9734-aa0c77f07ad4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_7b21fdb7-69f7-4578-bd59-b4dda37baa19" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearThree_7b21fdb7-69f7-4578-bd59-b4dda37baa19" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63cbc6ff-064c-4b7b-8416-5ce59fcbf56a" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureYearFour_63cbc6ff-064c-4b7b-8416-5ce59fcbf56a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_d638eb67-72e9-45e0-a7c5-7c0660b34f97" xlink:href="wdc-20210101.xsd#wdc_GuaranteeObligationsMaximumExposureThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_wdc_GuaranteeObligationsMaximumExposureThereafter_d638eb67-72e9-45e0-a7c5-7c0660b34f97" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_ebf37142-a416-4fae-930f-99a31e7958f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_ebf37142-a416-4fae-930f-99a31e7958f0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_0a3ef6bb-db53-4219-89cd-ed04c9d1efd3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGuaranteeObligationsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GuaranteeObligationsLineItems_a032135d-f50a-47a0-aae3-67f2713e9a26" xlink:to="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_0a3ef6bb-db53-4219-89cd-ed04c9d1efd3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_4942610e-a7f0-433c-a2d7-a023cb72ed15" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_0a3ef6bb-db53-4219-89cd-ed04c9d1efd3" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_4942610e-a7f0-433c-a2d7-a023cb72ed15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_4942610e-a7f0-433c-a2d7-a023cb72ed15_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_4942610e-a7f0-433c-a2d7-a023cb72ed15" xlink:to="loc_us-gaap_RelatedPartyDomain_4942610e-a7f0-433c-a2d7-a023cb72ed15_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_aaca8d06-a21e-4dca-a64f-ab22c0f5c745" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_4942610e-a7f0-433c-a2d7-a023cb72ed15" xlink:to="loc_us-gaap_RelatedPartyDomain_aaca8d06-a21e-4dca-a64f-ab22c0f5c745" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_c4cf9f39-7802-4a5f-8c7a-dab6c9e2c1ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_aaca8d06-a21e-4dca-a64f-ab22c0f5c745" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_c4cf9f39-7802-4a5f-8c7a-dab6c9e2c1ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsByNatureAxis_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGuaranteeObligationsTable_0a3ef6bb-db53-4219-89cd-ed04c9d1efd3" xlink:to="loc_us-gaap_GuaranteeObligationsByNatureAxis_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsNatureDomain_af196dad-bb66-4b45-b046-d3337161c5df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GuaranteeObligationsNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GuaranteeObligationsByNatureAxis_3ec9f96d-b6a2-46cf-b6fa-f5b55af4374a" xlink:to="loc_us-gaap_GuaranteeObligationsNatureDomain_af196dad-bb66-4b45-b046-d3337161c5df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PaymentOfPrincipalAmortizationMember_2820902b-e300-4155-ae15-3a598779d0a7" xlink:href="wdc-20210101.xsd#wdc_PaymentOfPrincipalAmortizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_af196dad-bb66-4b45-b046-d3337161c5df" xlink:to="loc_wdc_PaymentOfPrincipalAmortizationMember_2820902b-e300-4155-ae15-3a598779d0a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_PurchaseOptionExercisePriceMember_ef255d9b-cd01-46cb-ae41-5560b3e6d0fb" xlink:href="wdc-20210101.xsd#wdc_PurchaseOptionExercisePriceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GuaranteeObligationsNatureDomain_af196dad-bb66-4b45-b046-d3337161c5df" xlink:to="loc_wdc_PurchaseOptionExercisePriceMember_ef255d9b-cd01-46cb-ae41-5560b3e6d0fb" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitments"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitments" xlink:type="extended" id="i1ab99b5441e2410d8681974b1ce4ca7c_LeasesandOtherCommitments"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsTables" xlink:type="extended" id="ic2de894f5e6341f5946a1e369040e65c_LeasesandOtherCommitmentsTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" xlink:type="extended" id="i6c09b43501d9451b8197dc233cf4c603_LeasesandOtherCommitmentsSupplementalBalanceSheetDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails" xlink:type="extended" id="i2e59a88ffb46411c9120f3fac33faa59_LeasesandOtherCommitmentsSupplementalCashFlowDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails" xlink:type="extended" id="ib4ac553c0b944d1096866826fee40193_LeasesandOtherCommitmentsLongTermCommitmentsDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquity"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquity" xlink:type="extended" id="i171f11389c9b41bb8231d7748d573759_ShareholdersEquity"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityTables" xlink:type="extended" id="i2d5d026c894348a7863946cd847f0167_ShareholdersEquityTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityStockBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockBasedCompensationExpenseDetails" xlink:type="extended" id="i4dbaef36102a4fd5a5aafc2b81cd5adb_ShareholdersEquityStockBasedCompensationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7d5d4cc9-aff7-4403-982c-6cb76e2a4d07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_5cb1b845-029f-4012-aac2-20b5bc585f0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7d5d4cc9-aff7-4403-982c-6cb76e2a4d07" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_5cb1b845-029f-4012-aac2-20b5bc585f0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_7d25dd29-d184-48fd-b87d-7afdf7a7b6b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7d5d4cc9-aff7-4403-982c-6cb76e2a4d07" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_7d25dd29-d184-48fd-b87d-7afdf7a7b6b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_4925e2a0-06c7-4460-b2c0-12eb8de0061f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7d5d4cc9-aff7-4403-982c-6cb76e2a4d07" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpenseNetOfTax_4925e2a0-06c7-4460-b2c0-12eb8de0061f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_35839070-e13c-4e40-a627-8eaf16854b4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7d5d4cc9-aff7-4403-982c-6cb76e2a4d07" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_35839070-e13c-4e40-a627-8eaf16854b4a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_839848cb-bdaf-41dc-9c67-40d202d96459" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_35839070-e13c-4e40-a627-8eaf16854b4a" xlink:to="loc_us-gaap_AwardTypeAxis_839848cb-bdaf-41dc-9c67-40d202d96459" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_839848cb-bdaf-41dc-9c67-40d202d96459_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_839848cb-bdaf-41dc-9c67-40d202d96459" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_839848cb-bdaf-41dc-9c67-40d202d96459_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a092bd79-2884-44e4-b623-c452bf9b396e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_839848cb-bdaf-41dc-9c67-40d202d96459" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a092bd79-2884-44e4-b623-c452bf9b396e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_aeba8083-88df-47c7-b349-49e16fdfdb2b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a092bd79-2884-44e4-b623-c452bf9b396e" xlink:to="loc_us-gaap_EmployeeStockOptionMember_aeba8083-88df-47c7-b349-49e16fdfdb2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_89fad266-a2d7-4f5d-b888-edbb68b38941" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a092bd79-2884-44e4-b623-c452bf9b396e" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_89fad266-a2d7-4f5d-b888-edbb68b38941" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_f568b83a-f5a0-4e43-9e16-e0e79fc3cda0" xlink:href="wdc-20210101.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a092bd79-2884-44e4-b623-c452bf9b396e" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_f568b83a-f5a0-4e43-9e16-e0e79fc3cda0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_7481c39f-885f-435c-b1a3-fe8461f427d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_35839070-e13c-4e40-a627-8eaf16854b4a" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_7481c39f-885f-435c-b1a3-fe8461f427d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_7481c39f-885f-435c-b1a3-fe8461f427d1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7481c39f-885f-435c-b1a3-fe8461f427d1" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7481c39f-885f-435c-b1a3-fe8461f427d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_14ccaf63-133b-470d-9482-cbfdd25d2ef4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_7481c39f-885f-435c-b1a3-fe8461f427d1" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_14ccaf63-133b-470d-9482-cbfdd25d2ef4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_cec0ad24-79a0-4f32-8b88-c7bc19bb3204" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_14ccaf63-133b-470d-9482-cbfdd25d2ef4" xlink:to="loc_us-gaap_CostOfSalesMember_cec0ad24-79a0-4f32-8b88-c7bc19bb3204" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_d76228ed-2564-4c3e-b46d-9cb1c8ea12d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_14ccaf63-133b-470d-9482-cbfdd25d2ef4" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_d76228ed-2564-4c3e-b46d-9cb1c8ea12d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_77c307b8-5087-4178-b467-c13a0c20cbcf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_14ccaf63-133b-470d-9482-cbfdd25d2ef4" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_77c307b8-5087-4178-b467-c13a0c20cbcf" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityUnrecognizedSharebasedCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityUnrecognizedSharebasedCompensationDetails" xlink:type="extended" id="i357bd80fdf7e4878a541756420690065_ShareholdersEquityUnrecognizedSharebasedCompensationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_567aea59-411b-44f3-8f6b-c6ebb384b36c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_af8b4224-0799-4d68-babb-d5e347126800" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_567aea59-411b-44f3-8f6b-c6ebb384b36c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_af8b4224-0799-4d68-babb-d5e347126800" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_07efe341-b7fb-4c24-b23e-9b9cc5a17821" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_567aea59-411b-44f3-8f6b-c6ebb384b36c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_07efe341-b7fb-4c24-b23e-9b9cc5a17821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_732a05e1-0848-4042-94d7-6f46d220edd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_567aea59-411b-44f3-8f6b-c6ebb384b36c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_732a05e1-0848-4042-94d7-6f46d220edd1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_cbe735a7-7e1e-46dd-a3b9-643366e69431" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_732a05e1-0848-4042-94d7-6f46d220edd1" xlink:to="loc_us-gaap_AwardTypeAxis_cbe735a7-7e1e-46dd-a3b9-643366e69431" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cbe735a7-7e1e-46dd-a3b9-643366e69431_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_cbe735a7-7e1e-46dd-a3b9-643366e69431" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cbe735a7-7e1e-46dd-a3b9-643366e69431_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9e2a64b3-1603-4dd5-a539-7a63aa7049b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_cbe735a7-7e1e-46dd-a3b9-643366e69431" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9e2a64b3-1603-4dd5-a539-7a63aa7049b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_866e1670-394b-43e5-a28c-5d7f95df1f08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9e2a64b3-1603-4dd5-a539-7a63aa7049b0" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_866e1670-394b-43e5-a28c-5d7f95df1f08" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EmployeeStockPurchasePlanMember_9dc23892-b514-45e5-b203-c0a58d40615d" xlink:href="wdc-20210101.xsd#wdc_EmployeeStockPurchasePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9e2a64b3-1603-4dd5-a539-7a63aa7049b0" xlink:to="loc_wdc_EmployeeStockPurchasePlanMember_9dc23892-b514-45e5-b203-c0a58d40615d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityStockOptionActivityDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityStockOptionActivityDetails" xlink:type="extended" id="i81919fc4581a4d1aa02969e446b82edd_ShareholdersEquityStockOptionActivityDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails" xlink:type="extended" id="ia929c256f6f847b2ad9f7c1aa4883861_ShareholdersEquityRestrictedStockUnitsAndPerformanceShareUnitsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1ff6a70e-991e-451b-ad18-e5b3b4e51552" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1ff6a70e-991e-451b-ad18-e5b3b4e51552" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_7c0e4f6a-724e-46e6-9b09-8d576a688582" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_7c0e4f6a-724e-46e6-9b09-8d576a688582" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_40ca3a66-fd3e-4359-9cc3-b129550726a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_40ca3a66-fd3e-4359-9cc3-b129550726a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_f43f9576-1fb3-48da-ad25-fdbb789b976a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_f43f9576-1fb3-48da-ad25-fdbb789b976a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_1741b9c9-a72b-4dd0-bd34-71563dc63dd0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_944a2baa-0010-4bff-af40-c66e6b2e017a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_1741b9c9-a72b-4dd0-bd34-71563dc63dd0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_df6dd757-1d0f-47d5-92d6-9a5ccef311a8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1ff6a70e-991e-451b-ad18-e5b3b4e51552" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_7e9097b5-ca60-4778-b871-8f83edd938cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_7e9097b5-ca60-4778-b871-8f83edd938cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_ea3387e3-affa-4826-8d64-ee868cae507e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_ea3387e3-affa-4826-8d64-ee868cae507e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_8f4a92e2-32d9-41d0-957a-1c5c4ee9a1b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_8f4a92e2-32d9-41d0-957a-1c5c4ee9a1b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_0467715c-0913-418f-a386-69d389a6f039" xlink:href="wdc-20210101.xsd#wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_7c7ed55e-addf-4c5b-9a41-1f8f6718503e" xlink:to="loc_wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue_0467715c-0913-418f-a386-69d389a6f039" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_23645f58-5a35-48f7-bd18-6c00de5f5cc1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_eee001c8-f212-4125-99a4-7c621270645b" xlink:href="wdc-20210101.xsd#wdc_AggregateValueOfRestrictedStockAwardsVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1ff6a70e-991e-451b-ad18-e5b3b4e51552" xlink:to="loc_wdc_AggregateValueOfRestrictedStockAwardsVested_eee001c8-f212-4125-99a4-7c621270645b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_66c7403c-936b-4ae3-89d5-9c682bc700a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1ff6a70e-991e-451b-ad18-e5b3b4e51552" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_66c7403c-936b-4ae3-89d5-9c682bc700a2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_1d388133-a00f-4dda-8e46-8e4332d20c8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_66c7403c-936b-4ae3-89d5-9c682bc700a2" xlink:to="loc_us-gaap_AwardTypeAxis_1d388133-a00f-4dda-8e46-8e4332d20c8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1d388133-a00f-4dda-8e46-8e4332d20c8f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_1d388133-a00f-4dda-8e46-8e4332d20c8f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_1d388133-a00f-4dda-8e46-8e4332d20c8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f3608abf-7fe8-40f4-a18d-d3a38036e8ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_1d388133-a00f-4dda-8e46-8e4332d20c8f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f3608abf-7fe8-40f4-a18d-d3a38036e8ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_7c5a5b07-9e34-407a-8f6e-e2467663eecf" xlink:href="wdc-20210101.xsd#wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f3608abf-7fe8-40f4-a18d-d3a38036e8ec" xlink:to="loc_wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember_7c5a5b07-9e34-407a-8f6e-e2467663eecf" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#ShareholdersEquityShareRepurchaseProgramDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/ShareholdersEquityShareRepurchaseProgramDetails" xlink:type="extended" id="ib1e8bd8ffb594f0f935e83af9352bc69_ShareholdersEquityShareRepurchaseProgramDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_4969ce3a-6dc6-438f-bb08-5aeb9cdfe07d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_4347887f-344f-4a1d-876d-6670608ee492" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_4969ce3a-6dc6-438f-bb08-5aeb9cdfe07d" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_4347887f-344f-4a1d-876d-6670608ee492" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_8fcd2c94-a54e-4c41-aad5-860c2f6c65c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_4969ce3a-6dc6-438f-bb08-5aeb9cdfe07d" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_8fcd2c94-a54e-4c41-aad5-860c2f6c65c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_035b3c5a-8bdb-463b-bcb4-3ba34e01b8dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_4969ce3a-6dc6-438f-bb08-5aeb9cdfe07d" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_035b3c5a-8bdb-463b-bcb4-3ba34e01b8dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_429e1e7c-9dd5-40f1-93b7-954b7904a983" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_035b3c5a-8bdb-463b-bcb4-3ba34e01b8dc" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_429e1e7c-9dd5-40f1-93b7-954b7904a983" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_429e1e7c-9dd5-40f1-93b7-954b7904a983_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_429e1e7c-9dd5-40f1-93b7-954b7904a983" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_429e1e7c-9dd5-40f1-93b7-954b7904a983_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_8515b36b-503c-4a3d-a712-2ef595094d03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_429e1e7c-9dd5-40f1-93b7-954b7904a983" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_8515b36b-503c-4a3d-a712-2ef595094d03" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_806781ab-4dd3-442f-aacb-726acc7fff2a" xlink:href="wdc-20210101.xsd#wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_8515b36b-503c-4a3d-a712-2ef595094d03" xlink:to="loc_wdc_StockRepurchaseProgramEffectiveUntilJuly252023Member_806781ab-4dd3-442f-aacb-726acc7fff2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ShareRepurchaseProgramMember_9c765c60-c02b-49dd-9d06-2a58dcb117c1" xlink:href="wdc-20210101.xsd#wdc_ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_8515b36b-503c-4a3d-a712-2ef595094d03" xlink:to="loc_wdc_ShareRepurchaseProgramMember_9c765c60-c02b-49dd-9d06-2a58dcb117c1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpense"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpense" xlink:type="extended" id="i5b421b8387b94cc2a3b7731bddae9ca4_IncomeTaxExpense"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTables" xlink:type="extended" id="ib08c2dba29ff46d9bda6c06614665bc0_IncomeTaxExpenseTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails" xlink:type="extended" id="i580137551a5949438bb3037bc18845de_IncomeTaxExpenseTaxExpenseandEffectiveTaxRateDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#IncomeTaxExpenseAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails" xlink:type="extended" id="ifc7a7e8b70704a84bb6b04500aff92ba_IncomeTaxExpenseAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExaminationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetOfAdjustments_5998c8e1-8c95-44e0-94ef-362ed8752168" xlink:href="wdc-20210101.xsd#wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetOfAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetOfAdjustments_5998c8e1-8c95-44e0-94ef-362ed8752168" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetTaxDeficiencies_eae6eeaf-b52c-478f-9c24-43692dd60653" xlink:href="wdc-20210101.xsd#wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetTaxDeficiencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_EffectiveIncomeTaxReconciliationDiscreteTaxEffectsNetTaxDeficiencies_eae6eeaf-b52c-478f-9c24-43692dd60653" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAdjustmentOfDeferredTaxAssetLiability_0e80799c-dec5-46f5-acb9-8aeaaef80535" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAdjustmentOfDeferredTaxAssetLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAdjustmentOfDeferredTaxAssetLiability_0e80799c-dec5-46f5-acb9-8aeaaef80535" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_2ff554ae-c908-44f8-a1d2-7977ff450f99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_us-gaap_IncomeTaxExaminationEstimateOfPossibleLoss_2ff554ae-c908-44f8-a1d2-7977ff450f99" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_010efc1c-384b-471e-85fb-29874ce9be7c" xlink:href="wdc-20210101.xsd#wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments_010efc1c-384b-471e-85fb-29874ce9be7c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationPenaltiesAsserted_a8b1f216-20d8-434b-89c5-29545c363c04" xlink:href="wdc-20210101.xsd#wdc_IncomeTaxExaminationPenaltiesAsserted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_IncomeTaxExaminationPenaltiesAsserted_a8b1f216-20d8-434b-89c5-29545c363c04" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_IncomeTaxExaminationAdditionalTax_788e8303-0607-4bc0-9961-42b653b2aa70" xlink:href="wdc-20210101.xsd#wdc_IncomeTaxExaminationAdditionalTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_IncomeTaxExaminationAdditionalTax_788e8303-0607-4bc0-9961-42b653b2aa70" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_0110b507-7f80-4f9d-9d82-b9d24f381d42" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_0110b507-7f80-4f9d-9d82-b9d24f381d42" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_cd90d4da-683f-45f4-be26-5e2d45ce71c5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_cd90d4da-683f-45f4-be26-5e2d45ce71c5" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_UnrecognizedTaxBenefitsPayable_98426043-c284-4d67-b1b5-bb1e67ea733a" xlink:href="wdc-20210101.xsd#wdc_UnrecognizedTaxBenefitsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_wdc_UnrecognizedTaxBenefitsPayable_98426043-c284-4d67-b1b5-bb1e67ea733a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_a23c3b24-3fc2-47b2-a339-88ba098907d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExaminationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_e18c59c7-f2ce-44ff-a9b1-3291edc82a93" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_a23c3b24-3fc2-47b2-a339-88ba098907d1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_43462082-7fd5-477b-8f6b-4c6076f8b3e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_a23c3b24-3fc2-47b2-a339-88ba098907d1" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_43462082-7fd5-477b-8f6b-4c6076f8b3e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_43462082-7fd5-477b-8f6b-4c6076f8b3e5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_43462082-7fd5-477b-8f6b-4c6076f8b3e5" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_43462082-7fd5-477b-8f6b-4c6076f8b3e5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_01048e10-e6cc-4a11-83e5-fa8dd3cd8df7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_43462082-7fd5-477b-8f6b-4c6076f8b3e5" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_01048e10-e6cc-4a11-83e5-fa8dd3cd8df7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InternalRevenueServiceIRSMember_bffec047-1b15-4341-84d1-54bc1bea1306" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_01048e10-e6cc-4a11-83e5-fa8dd3cd8df7" xlink:to="loc_us-gaap_InternalRevenueServiceIRSMember_bffec047-1b15-4341-84d1-54bc1bea1306" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodAxis_93a25c8b-602e-4163-a008-f6c567be9f6e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_a23c3b24-3fc2-47b2-a339-88ba098907d1" xlink:to="loc_us-gaap_TaxPeriodAxis_93a25c8b-602e-4163-a008-f6c567be9f6e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_93a25c8b-602e-4163-a008-f6c567be9f6e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxPeriodAxis_93a25c8b-602e-4163-a008-f6c567be9f6e" xlink:to="loc_us-gaap_TaxPeriodDomain_93a25c8b-602e-4163-a008-f6c567be9f6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxPeriodDomain_49fd4d79-56b1-4d90-9983-57096377aa91" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TaxPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxPeriodAxis_93a25c8b-602e-4163-a008-f6c567be9f6e" xlink:to="loc_us-gaap_TaxPeriodDomain_49fd4d79-56b1-4d90-9983-57096377aa91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYear2008Through2009Member_c544aa40-3af5-4c0c-907d-1db490484af5" xlink:href="wdc-20210101.xsd#wdc_TaxYear2008Through2009Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_49fd4d79-56b1-4d90-9983-57096377aa91" xlink:to="loc_wdc_TaxYear2008Through2009Member_c544aa40-3af5-4c0c-907d-1db490484af5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2010Through2012Member_1d4d2403-414e-4507-b0cf-afab2ce6c0f3" xlink:href="wdc-20210101.xsd#wdc_TaxYears2010Through2012Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_49fd4d79-56b1-4d90-9983-57096377aa91" xlink:to="loc_wdc_TaxYears2010Through2012Member_1d4d2403-414e-4507-b0cf-afab2ce6c0f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_TaxYears2013Through2015Member_695b9cc9-9657-4bc2-a9a0-a28defada1c9" xlink:href="wdc-20210101.xsd#wdc_TaxYears2013Through2015Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxPeriodDomain_49fd4d79-56b1-4d90-9983-57096377aa91" xlink:to="loc_wdc_TaxYears2013Through2015Member_695b9cc9-9657-4bc2-a9a0-a28defada1c9" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShare"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShare" xlink:type="extended" id="ide30ce85987f4707872e98be2f6de978_NetIncomeLossPerCommonShare"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShareTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables" xlink:type="extended" id="id190669336d74f51b455e8b7862b9dc2_NetIncomeLossPerCommonShareTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#NetIncomeLossPerCommonShareDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails" xlink:type="extended" id="i286eb25dc473452393680d9a5e3e5c66_NetIncomeLossPerCommonShareDetails"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherCharges"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges" xlink:type="extended" id="ic00395f0f3c64d6b92514bf5a93f308d_EmployeeTerminationAssetImpairmentandOtherCharges"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesTables"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables" xlink:type="extended" id="i1ce06bef294e4582bd4d6cf8bc327245_EmployeeTerminationAssetImpairmentandOtherChargesTables"/>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" xlink:type="extended" id="ia08e67d9bfe74baf8619216e5ef057c2_EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_39a95a36-07b9-437f-baf6-766a84092bda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_dbf234e9-6785-48be-b4ae-8873c8c3e1d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_39a95a36-07b9-437f-baf6-766a84092bda" xlink:to="loc_us-gaap_RestructuringCharges_dbf234e9-6785-48be-b4ae-8873c8c3e1d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_ba1fc1dc-9d08-4b77-b832-9c93b904c932" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_39a95a36-07b9-437f-baf6-766a84092bda" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_ba1fc1dc-9d08-4b77-b832-9c93b904c932" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_2240b32b-a02d-40fc-b725-6af188bd2e40" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_39a95a36-07b9-437f-baf6-766a84092bda" xlink:to="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_2240b32b-a02d-40fc-b725-6af188bd2e40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_ba9f68e8-7b3c-46b1-ad5e-d047028166b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_39a95a36-07b9-437f-baf6-766a84092bda" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_ba9f68e8-7b3c-46b1-ad5e-d047028166b7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_ba9f68e8-7b3c-46b1-ad5e-d047028166b7" xlink:to="loc_us-gaap_RestructuringPlanAxis_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9" xlink:to="loc_us-gaap_RestructuringPlanDomain_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_8b4de3ce-83eb-4457-b5d2-45eba4f612df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_a7fc4e0a-fbbc-4eca-a904-bb2b150199c9" xlink:to="loc_us-gaap_RestructuringPlanDomain_8b4de3ce-83eb-4457-b5d2-45eba4f612df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_c0e83fc9-a274-41b1-a68f-6056f074d3e2" xlink:href="wdc-20210101.xsd#wdc_ClosureofForeignManufacturingFacilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_8b4de3ce-83eb-4457-b5d2-45eba4f612df" xlink:to="loc_wdc_ClosureofForeignManufacturingFacilitiesMember_c0e83fc9-a274-41b1-a68f-6056f074d3e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_8507c9c2-cdb9-4a62-a847-e31844cbfcdd" xlink:href="wdc-20210101.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_8b4de3ce-83eb-4457-b5d2-45eba4f612df" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_8507c9c2-cdb9-4a62-a847-e31844cbfcdd" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="simple" xlink:href="wdc-20210101.xsd#EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" xlink:type="extended" id="ifce24d7e0512477db50532ea68f84097_EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_bc7e7341-037b-48bf-bf56-eb06d7e6f551" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserveRollForward_610dffce-30f6-40d3-8760-e5826ff33d81" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringReserveRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_bc7e7341-037b-48bf-bf56-eb06d7e6f551" xlink:to="loc_us-gaap_RestructuringReserveRollForward_610dffce-30f6-40d3-8760-e5826ff33d81" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_5d9d2d15-ff0d-4b40-be5e-e27ec378c077" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_610dffce-30f6-40d3-8760-e5826ff33d81" xlink:to="loc_us-gaap_RestructuringReserve_5d9d2d15-ff0d-4b40-be5e-e27ec378c077" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_a0cfde36-7614-43a8-a99a-70f7d1e1e648" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringAndRelatedCostIncurredCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_610dffce-30f6-40d3-8760-e5826ff33d81" xlink:to="loc_us-gaap_RestructuringAndRelatedCostIncurredCost_a0cfde36-7614-43a8-a99a-70f7d1e1e648" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRestructuring_d5b9048f-904a-43db-a30e-ca8fb269bdfd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsForRestructuring"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_610dffce-30f6-40d3-8760-e5826ff33d81" xlink:to="loc_us-gaap_PaymentsForRestructuring_d5b9048f-904a-43db-a30e-ca8fb269bdfd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringReserve_c738d7c4-4b9f-4d13-8871-b7b729e3e1a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringReserve"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_cea89004-b237-4799-a010-d5e65b521d9a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_bc7e7341-037b-48bf-bf56-eb06d7e6f551" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_cea89004-b237-4799-a010-d5e65b521d9a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_b61025dd-2d53-4a0e-b328-3440247120d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_cea89004-b237-4799-a010-d5e65b521d9a" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_b61025dd-2d53-4a0e-b328-3440247120d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_b61025dd-2d53-4a0e-b328-3440247120d7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_b61025dd-2d53-4a0e-b328-3440247120d7" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_b61025dd-2d53-4a0e-b328-3440247120d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_6ecdb7e6-cf67-41a5-835b-a9804b95aeba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_b61025dd-2d53-4a0e-b328-3440247120d7" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_6ecdb7e6-cf67-41a5-835b-a9804b95aeba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_d3e953ab-9a52-405e-98d9-a4bf3b69fa6f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_6ecdb7e6-cf67-41a5-835b-a9804b95aeba" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_d3e953ab-9a52-405e-98d9-a4bf3b69fa6f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractTerminationMember_f277d4f2-3302-46e4-b55d-0902e9174663" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractTerminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_6ecdb7e6-cf67-41a5-835b-a9804b95aeba" xlink:to="loc_us-gaap_ContractTerminationMember_f277d4f2-3302-46e4-b55d-0902e9174663" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_d814801b-4c37-49bf-8761-0fba5524c2bf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_cea89004-b237-4799-a010-d5e65b521d9a" xlink:to="loc_us-gaap_RestructuringPlanAxis_d814801b-4c37-49bf-8761-0fba5524c2bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_d814801b-4c37-49bf-8761-0fba5524c2bf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_d814801b-4c37-49bf-8761-0fba5524c2bf" xlink:to="loc_us-gaap_RestructuringPlanDomain_d814801b-4c37-49bf-8761-0fba5524c2bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_b1452b51-5934-42a6-a521-e0224172c5ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_d814801b-4c37-49bf-8761-0fba5524c2bf" xlink:to="loc_us-gaap_RestructuringPlanDomain_b1452b51-5934-42a6-a521-e0224172c5ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_wdc_BusinessRealignmentActivitiesMember_77e9f382-2ca4-4841-bf59-fd20dc083524" xlink:href="wdc-20210101.xsd#wdc_BusinessRealignmentActivitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_b1452b51-5934-42a6-a521-e0224172c5ad" xlink:to="loc_wdc_BusinessRealignmentActivitiesMember_77e9f382-2ca4-4841-bf59-fd20dc083524" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.wdc.com/role/LegalProceedings" xlink:type="simple" xlink:href="wdc-20210101.xsd#LegalProceedings"/>
  <link:definitionLink xlink:role="http://www.wdc.com/role/LegalProceedings" xlink:type="extended" id="ie331d386b3c74057ba18edf073ad11d7_LegalProceedings"/>
</link:linkbase>
