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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:01d80720-1334-4a70-b8a5-5a4304a91fc9,g:84ad83a7-0648-4bd6-bca0-342eb62df886-->
<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.kla-tencor.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedStatementsofOperationsUnaudited"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofOperationsUnaudited" xlink:type="extended" id="i8c0f1b58a72344faa08c571317aace72_CondensedConsolidatedStatementsofOperationsUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerAbstract_4cf80a96-cc19-4804-be5a-423cc8336c78" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerAbstract_4cf80a96-cc19-4804-be5a-423cc8336c78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f6179a54-6979-4fb5-907a-ebbb514acefd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerAbstract_4cf80a96-cc19-4804-be5a-423cc8336c78" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f6179a54-6979-4fb5-907a-ebbb514acefd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_975a9f15-3cda-44d9-beaf-7c56425bac7d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_CostOfRevenue_975a9f15-3cda-44d9-beaf-7c56425bac7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_8eded27b-f7fe-42fe-89c6-1e6d0d4d4063" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_8eded27b-f7fe-42fe-89c6-1e6d0d4d4063" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_53e0f071-25aa-431a-b01a-b3272c35104e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_53e0f071-25aa-431a-b01a-b3272c35104e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_b70285c3-7147-434f-ba15-f4eafcf50f18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_InterestExpense_b70285c3-7147-434f-ba15-f4eafcf50f18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ca15bdb4-49c3-4e67-a77e-2df2733546e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ca15bdb4-49c3-4e67-a77e-2df2733546e2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ea7ecb79-201e-4071-b8c2-6eb7279af50c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostsAndExpensesAbstract_5b4a75c4-2aad-48c7-9322-01908c17fecc" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ea7ecb79-201e-4071-b8c2-6eb7279af50c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fa866d01-fff4-4754-b014-7b3540882653" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_fa866d01-fff4-4754-b014-7b3540882653" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_188b74f5-36ec-4180-9784-cb727de6bdab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_188b74f5-36ec-4180-9784-cb727de6bdab" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_20db99ac-1d67-4d47-800a-db9a1eb20098" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_ProfitLoss_20db99ac-1d67-4d47-800a-db9a1eb20098" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ddf9edee-6e90-4578-89ec-ff0d4aa1a43d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ddf9edee-6e90-4578-89ec-ff0d4aa1a43d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_8aa1b1ac-68c0-477c-9259-5b1ea3408647" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_NetIncomeLoss_8aa1b1ac-68c0-477c-9259-5b1ea3408647" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_fce97d7f-5199-40e2-9f19-db005fc3ed54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_EarningsPerShareAbstract_fce97d7f-5199-40e2-9f19-db005fc3ed54" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_a0a5f0b2-d1ea-4d09-adcd-f385d97875f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_fce97d7f-5199-40e2-9f19-db005fc3ed54" xlink:to="loc_us-gaap_EarningsPerShareBasic_a0a5f0b2-d1ea-4d09-adcd-f385d97875f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_96eab73b-72f9-4e54-bf9f-0c9c74b0f958" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_fce97d7f-5199-40e2-9f19-db005fc3ed54" xlink:to="loc_us-gaap_EarningsPerShareDiluted_96eab73b-72f9-4e54-bf9f-0c9c74b0f958" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_fae173b6-3f11-4eab-b01c-4c73bbd37d3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_fae173b6-3f11-4eab-b01c-4c73bbd37d3c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2b6abb9a-8112-4e8e-86be-da57399a6e65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_fae173b6-3f11-4eab-b01c-4c73bbd37d3c" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_2b6abb9a-8112-4e8e-86be-da57399a6e65" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_2ea5bc26-54d9-43fb-abc8-03ad6004b32f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract_fae173b6-3f11-4eab-b01c-4c73bbd37d3c" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_2ea5bc26-54d9-43fb-abc8-03ad6004b32f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ff6744e6-a186-447a-888e-c26102c76e9a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_cb2836cf-4e88-4149-a2dd-2800d3fe7546" xlink:to="loc_us-gaap_StatementTable_ff6744e6-a186-447a-888e-c26102c76e9a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_7f275b0e-0508-4469-8e7a-662803d92272" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ff6744e6-a186-447a-888e-c26102c76e9a" xlink:to="loc_srt_ProductOrServiceAxis_7f275b0e-0508-4469-8e7a-662803d92272" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_7f275b0e-0508-4469-8e7a-662803d92272_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_7f275b0e-0508-4469-8e7a-662803d92272" xlink:to="loc_srt_ProductsAndServicesDomain_7f275b0e-0508-4469-8e7a-662803d92272_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_478a4a28-db43-4bfd-8ff3-c0cf479bc72f" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_7f275b0e-0508-4469-8e7a-662803d92272" xlink:to="loc_srt_ProductsAndServicesDomain_478a4a28-db43-4bfd-8ff3-c0cf479bc72f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductMember_2ce84e50-8dfd-442b-b5a7-2ee6881f601a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProductMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_478a4a28-db43-4bfd-8ff3-c0cf479bc72f" xlink:to="loc_us-gaap_ProductMember_2ce84e50-8dfd-442b-b5a7-2ee6881f601a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_aebe8dc2-1028-4f32-be67-9ecf15c89fbc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_478a4a28-db43-4bfd-8ff3-c0cf479bc72f" xlink:to="loc_us-gaap_ServiceMember_aebe8dc2-1028-4f32-be67-9ecf15c89fbc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited" xlink:type="simple" xlink:href="klac-20220930.xsd#CondensedConsolidatedStatementsofStockholdersEquityUnaudited"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/CondensedConsolidatedStatementsofStockholdersEquityUnaudited" xlink:type="extended" id="i1caa90fd39c14a19a3c7d79cc9e55af8_CondensedConsolidatedStatementsofStockholdersEquityUnaudited">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_7e390d97-f36f-406e-8fb1-fd24dce51f8a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7e390d97-f36f-406e-8fb1-fd24dce51f8a" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_e8237992-904c-4b23-8d4b-d8d904bae776" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_SharesOutstanding_e8237992-904c-4b23-8d4b-d8d904bae776" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_742ba840-571a-4a34-895f-7b00f72306fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_742ba840-571a-4a34-895f-7b00f72306fe" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_58e953a7-8945-4197-a28f-a5c7487b8f38" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_NetIncomeLoss_58e953a7-8945-4197-a28f-a5c7487b8f38" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_3e39146c-bbc1-400e-8170-573d4f54741d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_3e39146c-bbc1-400e-8170-573d4f54741d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3c5e5dc8-0410-4a76-b20f-14c25b2f2b10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3c5e5dc8-0410-4a76-b20f-14c25b2f2b10" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_9293b2f5-fe0b-4baf-addd-555eac5c81c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensation_9293b2f5-fe0b-4baf-addd-555eac5c81c2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_07d3ed98-1c5b-4fdc-a99e-736cefe4a208" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation_07d3ed98-1c5b-4fdc-a99e-736cefe4a208" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_df716d44-914a-4d88-b0f0-eeb84e7c3090" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_df716d44-914a-4d88-b0f0-eeb84e7c3090" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_fa601782-cfa6-44df-b53b-6ed29d87ce8c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_fa601782-cfa6-44df-b53b-6ed29d87ce8c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_3a2d0d82-b74e-4301-9d56-9375b5d9e532" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsCommonStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_DividendsCommonStockCash_3a2d0d82-b74e-4301-9d56-9375b5d9e532" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_8ffd3c46-8fec-45e6-943b-3a84d310df14" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_8ffd3c46-8fec-45e6-943b-3a84d310df14" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromRedemptions_01ba7fc8-f791-4fe2-919b-0e61d531c680" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterestDecreaseFromRedemptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromRedemptions_01ba7fc8-f791-4fe2-919b-0e61d531c680" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_NoncontrollingInterestDisposal_7b7d25a8-cfd2-42e2-83fe-3fbe52548464" xlink:href="klac-20220930.xsd#klac_NoncontrollingInterestDisposal"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_781ae63e-4b63-4bae-a525-23eef740917f" xlink:to="loc_klac_NoncontrollingInterestDisposal_7b7d25a8-cfd2-42e2-83fe-3fbe52548464" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharesOutstanding_10752e60-18a8-432c-b83f-cfce5f43377c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_a7a5662d-aace-4d31-9fd5-edb28cbbc938" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_a59942cd-c7e7-4316-858a-130a2bd2a662" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_7e390d97-f36f-406e-8fb1-fd24dce51f8a" xlink:to="loc_us-gaap_StatementTable_a59942cd-c7e7-4316-858a-130a2bd2a662" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_863dd9e6-d59e-4bbd-bb66-492c88651da9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_a59942cd-c7e7-4316-858a-130a2bd2a662" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_863dd9e6-d59e-4bbd-bb66-492c88651da9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_863dd9e6-d59e-4bbd-bb66-492c88651da9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_863dd9e6-d59e-4bbd-bb66-492c88651da9" xlink:to="loc_us-gaap_EquityComponentDomain_863dd9e6-d59e-4bbd-bb66-492c88651da9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b3a085cf-76d3-48a1-a919-044d4e53b7c4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_863dd9e6-d59e-4bbd-bb66-492c88651da9" xlink:to="loc_us-gaap_EquityComponentDomain_b3a085cf-76d3-48a1-a919-044d4e53b7c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b3a085cf-76d3-48a1-a919-044d4e53b7c4" xlink:to="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_9d57fa6c-ba78-4077-9c16-e864b6806ce9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:to="loc_us-gaap_CommonStockMember_9d57fa6c-ba78-4077-9c16-e864b6806ce9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_2476655e-083f-4497-8705-e9c3b52beb1d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_2476655e-083f-4497-8705-e9c3b52beb1d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_7d134626-f428-40ae-9f49-99e3d8d576f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:to="loc_us-gaap_RetainedEarningsMember_7d134626-f428-40ae-9f49-99e3d8d576f5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_66a26103-b286-44dc-88c4-2d0e50ea050c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ParentMember_321d77af-5604-4b35-96da-d4ad54e89923" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_66a26103-b286-44dc-88c4-2d0e50ea050c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_47c2e3e6-adc6-41ce-ac37-9d938cee234c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b3a085cf-76d3-48a1-a919-044d4e53b7c4" xlink:to="loc_us-gaap_NoncontrollingInterestMember_47c2e3e6-adc6-41ce-ac37-9d938cee234c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/REVENUEAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#REVENUEAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/REVENUEAdditionalInformationDetails" xlink:type="extended" id="id3ae3b9713fa476bb0e3fc53e98d0a6b_REVENUEAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RevenuePaymentTermsRequiredPaymentPercentageOfTotalContractConsiderationWithin30To60DaysOfShipment_7a4a9cbe-e3a0-4b0b-ae41-d55c2c1ebe70" xlink:href="klac-20220930.xsd#klac_RevenuePaymentTermsRequiredPaymentPercentageOfTotalContractConsiderationWithin30To60DaysOfShipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_klac_RevenuePaymentTermsRequiredPaymentPercentageOfTotalContractConsiderationWithin30To60DaysOfShipment_7a4a9cbe-e3a0-4b0b-ae41-d55c2c1ebe70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RevenueRemainderPayableAcceptancePeriod_95a947c0-8971-44a1-be8a-facb05333179" xlink:href="klac-20220930.xsd#klac_RevenueRemainderPayableAcceptancePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_klac_RevenueRemainderPayableAcceptancePeriod_95a947c0-8971-44a1-be8a-facb05333179" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToRevenueModificationOfContract_206151ab-b02d-4d2d-8937-c0d6df21c603" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToRevenueModificationOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_us-gaap_ContractWithCustomerAssetCumulativeCatchUpAdjustmentToRevenueModificationOfContract_206151ab-b02d-4d2d-8937-c0d6df21c603" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_a6d3dbf5-672c-498c-8b2f-0037bcd14400" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerAssetReclassifiedToReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_us-gaap_ContractWithCustomerAssetReclassifiedToReceivable_a6d3dbf5-672c-498c-8b2f-0037bcd14400" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_b1828a06-d01b-4511-b529-2f6b7c580992" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_b1828a06-d01b-4511-b529-2f6b7c580992" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d7c1fdea-3acc-4c1f-988e-5eedb798b60e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_7312fb18-2a02-4c26-b73f-482798e450d0" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d7c1fdea-3acc-4c1f-988e-5eedb798b60e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ad869b8a-bc0b-495d-99f7-50035b801490" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_d7c1fdea-3acc-4c1f-988e-5eedb798b60e" xlink:to="loc_srt_RangeAxis_ad869b8a-bc0b-495d-99f7-50035b801490" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ad869b8a-bc0b-495d-99f7-50035b801490_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ad869b8a-bc0b-495d-99f7-50035b801490" xlink:to="loc_srt_RangeMember_ad869b8a-bc0b-495d-99f7-50035b801490_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_76bd8788-4161-48c9-a692-b130bc97a35c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ad869b8a-bc0b-495d-99f7-50035b801490" xlink:to="loc_srt_RangeMember_76bd8788-4161-48c9-a692-b130bc97a35c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_66d6da7a-dda4-4463-b8a0-99a33e6acf21" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_76bd8788-4161-48c9-a692-b130bc97a35c" xlink:to="loc_srt_MinimumMember_66d6da7a-dda4-4463-b8a0-99a33e6acf21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_38287594-5adc-47fa-a095-795bb2b0b387" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_76bd8788-4161-48c9-a692-b130bc97a35c" xlink:to="loc_srt_MaximumMember_38287594-5adc-47fa-a095-795bb2b0b387" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/REVENUERemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#REVENUERemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/REVENUERemainingPerformanceObligationsDetails" xlink:type="extended" id="i3fbde23466a34b27aa91e1b3e3f3ac7c_REVENUERemainingPerformanceObligationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_c90b5643-0761-44ed-8077-06ebfe8b1f3a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_ContractWithCustomerLiability_c90b5643-0761-44ed-8077-06ebfe8b1f3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_9d4f6917-cee8-42be-88b2-fce45a536aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_9d4f6917-cee8-42be-88b2-fce45a536aa1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_ad51af1f-8d2e-4d48-81f4-2e48308f3f17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_ad51af1f-8d2e-4d48-81f4-2e48308f3f17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:to="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_32bc0ac2-ca73-450b-b994-552c73a6b6e6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:to="loc_srt_RangeMember_32bc0ac2-ca73-450b-b994-552c73a6b6e6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:to="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_773abecb-d548-4c23-b285-1af48008e3df" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:to="loc_srt_MinimumMember_773abecb-d548-4c23-b285-1af48008e3df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_34e8febc-0956-4c15-8107-dcab80ffd8ba" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:to="loc_srt_MaximumMember_34e8febc-0956-4c15-8107-dcab80ffd8ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_d8f44d51-4bda-488b-898e-468db4135d4e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_d8f44d51-4bda-488b-898e-468db4135d4e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/REVENUERemainingPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="klac-20220930.xsd#REVENUERemainingPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/REVENUERemainingPerformanceObligationsDetails_1" xlink:type="extended" id="ibeb7da3d9195419cacb450a17de9e6e5_REVENUERemainingPerformanceObligationsDetails_1">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_c90b5643-0761-44ed-8077-06ebfe8b1f3a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_ContractWithCustomerLiability_c90b5643-0761-44ed-8077-06ebfe8b1f3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_9d4f6917-cee8-42be-88b2-fce45a536aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_9d4f6917-cee8-42be-88b2-fce45a536aa1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_ad51af1f-8d2e-4d48-81f4-2e48308f3f17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_ad51af1f-8d2e-4d48-81f4-2e48308f3f17" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_6f7b7318-d7d0-45b6-ba88-8162a8491235" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_58104275-5074-4bdf-83ce-fc996ff51fb3" xlink:to="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_32bc0ac2-ca73-450b-b994-552c73a6b6e6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:to="loc_srt_RangeMember_32bc0ac2-ca73-450b-b994-552c73a6b6e6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_32bc0ac2-ca73-450b-b994-552c73a6b6e6" xlink:to="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_773abecb-d548-4c23-b285-1af48008e3df" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:to="loc_srt_MinimumMember_773abecb-d548-4c23-b285-1af48008e3df" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_34e8febc-0956-4c15-8107-dcab80ffd8ba" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b04137a2-ddb6-4185-90fc-a77d50fbbcee" xlink:to="loc_srt_MaximumMember_34e8febc-0956-4c15-8107-dcab80ffd8ba" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FAIRVALUEMEASUREMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="extended" id="i4bd09f2fa2af4dceabaa57a6aa97fd1f_FAIRVALUEMEASUREMENTSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAbstract_1bdbb427-8f14-4af4-9bfb-ca53dd444708" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_us-gaap_CashAndCashEquivalentsAbstract_1bdbb427-8f14-4af4-9bfb-ca53dd444708" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_22ca15aa-47e5-4fc0-ad91-382773b45347" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashAndCashEquivalentsAbstract_1bdbb427-8f14-4af4-9bfb-ca53dd444708" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_22ca15aa-47e5-4fc0-ad91-382773b45347" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesAbstract_fbd5b40f-22d9-4945-ab5c-8742360111bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MarketableSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_us-gaap_MarketableSecuritiesAbstract_fbd5b40f-22d9-4945-ab5c-8742360111bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_d6688202-0600-4aa7-99ae-2caa842f2319" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MarketableSecuritiesAbstract_fbd5b40f-22d9-4945-ab5c-8742360111bb" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_d6688202-0600-4aa7-99ae-2caa842f2319" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_40c92991-f488-4650-bb64-dbdede4fb527" xlink:href="klac-20220930.xsd#klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_klac_CashEquivalentsAndMarketableSecuritiesFairValueDisclosure_40c92991-f488-4650-bb64-dbdede4fb527" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherAssetsCurrentAbstract_5603f749-322f-487f-b9d7-6b92c2d0caaa" xlink:href="klac-20220930.xsd#klac_OtherAssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_klac_OtherAssetsCurrentAbstract_5603f749-322f-487f-b9d7-6b92c2d0caaa" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_980d3de3-7ebe-43c5-a597-6f1277c21ec6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_5603f749-322f-487f-b9d7-6b92c2d0caaa" xlink:to="loc_us-gaap_DerivativeAssets_980d3de3-7ebe-43c5-a597-6f1277c21ec6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrentAbstract_fb211f93-6290-4889-8fa5-d11417f98763" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_us-gaap_OtherAssetsNoncurrentAbstract_fb211f93-6290-4889-8fa5-d11417f98763" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ExecutiveDeferredSavingsPlan_ed939893-685f-4776-b1d5-192014548c31" xlink:href="klac-20220930.xsd#klac_ExecutiveDeferredSavingsPlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherAssetsNoncurrentAbstract_fb211f93-6290-4889-8fa5-d11417f98763" xlink:to="loc_klac_ExecutiveDeferredSavingsPlan_ed939893-685f-4776-b1d5-192014548c31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_5b393a14-9b29-41e1-bbfc-10e078ff044f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_5cbac9ba-8746-4636-8ee2-d0e236463985" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_5b393a14-9b29-41e1-bbfc-10e078ff044f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_9b0cb0cd-32fa-4bd8-971b-c84529bf1912" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:to="loc_us-gaap_DerivativeLiabilities_9b0cb0cd-32fa-4bd8-971b-c84529bf1912" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment_a7355860-aae9-42a3-8323-13c9693c6700" xlink:href="klac-20220930.xsd#klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:to="loc_klac_BusinessCombinationContingentConsiderationLiabilityDeferredPayment_a7355860-aae9-42a3-8323-13c9693c6700" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_0b52a593-1ef1-460f-a3fa-6d87035d53da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_0b52a593-1ef1-460f-a3fa-6d87035d53da" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_987b0821-c2e9-4e00-a2cd-f2d9157d149a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_65f758c8-e610-4528-922b-bb8b4b6cb5d6" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_987b0821-c2e9-4e00-a2cd-f2d9157d149a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Cash_ff46f1ce-8ff7-4f49-8b13-467cf35412c6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Cash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_us-gaap_Cash_ff46f1ce-8ff7-4f49-8b13-467cf35412c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TimeDepositFairValue_15fb370b-353f-4602-86aa-8a7a89959608" xlink:href="klac-20220930.xsd#klac_TimeDepositFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_klac_TimeDepositFairValue_15fb370b-353f-4602-86aa-8a7a89959608" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TimeDepositsCashEquivalentsFairValue_7713ad0a-35b5-4d04-bcde-b2b7dbac0ebc" xlink:href="klac-20220930.xsd#klac_TimeDepositsCashEquivalentsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_klac_TimeDepositsCashEquivalentsFairValue_7713ad0a-35b5-4d04-bcde-b2b7dbac0ebc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_ccd90b2c-d185-4b4c-8f03-4b19c57b7832" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0fca8c8f-7002-4a6b-91ac-01e1be56893d" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_ccd90b2c-d185-4b4c-8f03-4b19c57b7832" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_53062bd7-f47a-4d13-91a4-5c78a3f97574" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_ccd90b2c-d185-4b4c-8f03-4b19c57b7832" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_53062bd7-f47a-4d13-91a4-5c78a3f97574" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_53062bd7-f47a-4d13-91a4-5c78a3f97574_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_53062bd7-f47a-4d13-91a4-5c78a3f97574" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_53062bd7-f47a-4d13-91a4-5c78a3f97574_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_e7dd7efb-3231-47bf-9dea-9cf16ad43b37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_53062bd7-f47a-4d13-91a4-5c78a3f97574" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_e7dd7efb-3231-47bf-9dea-9cf16ad43b37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_052dd881-fa17-4a4c-9d28-281c63b8f3eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_e7dd7efb-3231-47bf-9dea-9cf16ad43b37" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_052dd881-fa17-4a4c-9d28-281c63b8f3eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1167a9ca-9095-423a-a555-369aac10f939" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_ccd90b2c-d185-4b4c-8f03-4b19c57b7832" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1167a9ca-9095-423a-a555-369aac10f939" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1167a9ca-9095-423a-a555-369aac10f939_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1167a9ca-9095-423a-a555-369aac10f939" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1167a9ca-9095-423a-a555-369aac10f939_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_31048858-8b20-4f5b-85cf-a857918713cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_1167a9ca-9095-423a-a555-369aac10f939" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_31048858-8b20-4f5b-85cf-a857918713cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_60e7f4ee-47c4-41c6-a452-d2bb6f353f70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_31048858-8b20-4f5b-85cf-a857918713cc" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_60e7f4ee-47c4-41c6-a452-d2bb6f353f70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_ee30cd61-bfd2-4fbb-8cbe-cde064c52a24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_31048858-8b20-4f5b-85cf-a857918713cc" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_ee30cd61-bfd2-4fbb-8cbe-cde064c52a24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_16be57df-a43f-4eac-bd91-4b7bc302c9f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_31048858-8b20-4f5b-85cf-a857918713cc" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_16be57df-a43f-4eac-bd91-4b7bc302c9f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_9ed73ef3-667b-43f8-a1dd-889996c5ad04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_ccd90b2c-d185-4b4c-8f03-4b19c57b7832" xlink:to="loc_us-gaap_FinancialInstrumentAxis_9ed73ef3-667b-43f8-a1dd-889996c5ad04" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9ed73ef3-667b-43f8-a1dd-889996c5ad04_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9ed73ef3-667b-43f8-a1dd-889996c5ad04" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_9ed73ef3-667b-43f8-a1dd-889996c5ad04_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_9ed73ef3-667b-43f8-a1dd-889996c5ad04" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_a5f9294c-7c83-43d2-ab31-e11812c68a58" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_a5f9294c-7c83-43d2-ab31-e11812c68a58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MoneyMarketBankDepositsAndOtherMember_cbca610b-701f-4688-8434-c5daf6599c7c" xlink:href="klac-20220930.xsd#klac_MoneyMarketBankDepositsAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_klac_MoneyMarketBankDepositsAndOtherMember_cbca610b-701f-4688-8434-c5daf6599c7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_af75d454-3cd0-4747-ac68-bb928499ff43" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_af75d454-3cd0-4747-ac68-bb928499ff43" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_d3580936-a4bc-4a9b-b768-efdca8235fa9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_MunicipalBondsMember_d3580936-a4bc-4a9b-b768-efdca8235fa9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_c7ed8d07-7bf3-4df9-aff4-cbcd85a6821d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_c7ed8d07-7bf3-4df9-aff4-cbcd85a6821d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_bc1f629c-456d-4036-b92f-3c99495192df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_bc1f629c-456d-4036-b92f-3c99495192df" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_15572f9d-1386-493f-8f92-1ff1f26ef166" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0d289898-a53c-473b-8263-10d031579333" xlink:to="loc_us-gaap_EquitySecuritiesMember_15572f9d-1386-493f-8f92-1ff1f26ef166" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails" xlink:type="extended" id="i93ed5372c73a48edb9dff6b8596baa9f_FINANCIALSTATEMENTCOMPONENTSBalanceSheetComponentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CondensedBalanceSheetStatementsCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetAbstract_3c917942-6084-4e3e-8ab9-301f16f443bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_AccountsReceivableNetAbstract_3c917942-6084-4e3e-8ab9-301f16f443bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_0c1ee4c0-acf6-4ce4-aeff-b78030d6c52e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsReceivableNetAbstract_3c917942-6084-4e3e-8ab9-301f16f443bb" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_0c1ee4c0-acf6-4ce4-aeff-b78030d6c52e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_8181f122-a6d4-4e88-a4c2-83f0f46e725f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsReceivableNetAbstract_3c917942-6084-4e3e-8ab9-301f16f443bb" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_8181f122-a6d4-4e88-a4c2-83f0f46e725f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_8b1c3094-21f2-4e25-b121-f413edd79f9f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccountsReceivableNetAbstract_3c917942-6084-4e3e-8ab9-301f16f443bb" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_8b1c3094-21f2-4e25-b121-f413edd79f9f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInventoriesSpareParts_49eedafc-14a0-481f-8e44-f800bcf1c5da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherInventoriesSpareParts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:to="loc_us-gaap_OtherInventoriesSpareParts_49eedafc-14a0-481f-8e44-f800bcf1c5da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_669f49d9-0a2d-4809-9a5c-6dac1fb71bc4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryRawMaterials"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:to="loc_us-gaap_InventoryRawMaterials_669f49d9-0a2d-4809-9a5c-6dac1fb71bc4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_e264f14b-2fe5-4cb9-833d-a3b45c48c689" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryWorkInProcess"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:to="loc_us-gaap_InventoryWorkInProcess_e264f14b-2fe5-4cb9-833d-a3b45c48c689" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_0b3d8dd2-c03e-42b4-9a28-63ad7cda510d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:to="loc_us-gaap_InventoryFinishedGoods_0b3d8dd2-c03e-42b4-9a28-63ad7cda510d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_e0f6d694-bc5e-4f55-a309-21213b9a0450" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryNetAbstract_60e0c0d6-ccee-4b23-ae8f-ffa485967706" xlink:to="loc_us-gaap_InventoryNet_e0f6d694-bc5e-4f55-a309-21213b9a0450" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:href="klac-20220930.xsd#klac_OtherAssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_d67b4ada-0aae-4026-abb8-143677dc17ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_d67b4ada-0aae-4026-abb8-143677dc17ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostNet_1cbd1564-d509-42a1-b179-54b1234a5381" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CapitalizedContractCostNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_CapitalizedContractCostNet_1cbd1564-d509-42a1-b179-54b1234a5381" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_7cc0db71-14b3-4605-82f6-ad14dbd45dc1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_7cc0db71-14b3-4605-82f6-ad14dbd45dc1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidTaxes_07100cc2-bbc7-4c19-ad66-4a3efcbd86e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_PrepaidTaxes_07100cc2-bbc7-4c19-ad66-4a3efcbd86e1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousCurrent_d1df3948-5d9c-4ff2-a888-7ddecfe0ba6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneousCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousCurrent_d1df3948-5d9c-4ff2-a888-7ddecfe0ba6a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_501814ef-834c-4653-94f9-c1f50cd4a506" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_OtherAssetsCurrentAbstract_4eb4d025-3abf-49b8-9b28-60cb59f0d3ae" xlink:to="loc_us-gaap_OtherAssetsCurrent_501814ef-834c-4653-94f9-c1f50cd4a506" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Land_f2aea896-d834-422d-961a-09d8ee5d70d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Land"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_Land_f2aea896-d834-422d-961a-09d8ee5d70d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BuildingsAndLeaseholdImprovementsGross_4a649579-5ef0-4d9c-a459-629186f690ae" xlink:href="klac-20220930.xsd#klac_BuildingsAndLeaseholdImprovementsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_klac_BuildingsAndLeaseholdImprovementsGross_4a649579-5ef0-4d9c-a459-629186f690ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MachineryAndEquipmentGross_7d074e62-c3d2-4e35-a585-574d339516a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MachineryAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_MachineryAndEquipmentGross_7d074e62-c3d2-4e35-a585-574d339516a0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesGross_4b9da9c7-4ea5-4a4e-be9b-66eaedff4c05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FurnitureAndFixturesGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_FurnitureAndFixturesGross_4b9da9c7-4ea5-4a4e-be9b-66eaedff4c05" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_cacf6f74-8e0f-4c7a-b8f1-f8daffc9ce86" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_ConstructionInProgressGross_cacf6f74-8e0f-4c7a-b8f1-f8daffc9ce86" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_23c9e939-3482-4717-bf5e-f1ad355674fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_23c9e939-3482-4717-bf5e-f1ad355674fe" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_af03803c-9773-4af1-b6f6-e50d5c91e246" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_af03803c-9773-4af1-b6f6-e50d5c91e246" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_286ed150-7030-4d67-a154-3b943cbf46f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_3c0e40a2-1f4b-4eb3-9c93-5e337196a8cb" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_286ed150-7030-4d67-a154-3b943cbf46f4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationPlanAssets_b760648a-4bd5-47f6-ba3a-d91bff11050b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:to="loc_us-gaap_DeferredCompensationPlanAssets_b760648a-4bd5-47f6-ba3a-d91bff11050b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_693aa3ff-d342-478d-b8a4-704a415d3b51" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_693aa3ff-d342-478d-b8a4-704a415d3b51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_a6ee3f1e-6591-4a9a-b1fb-4e042d2226da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_a6ee3f1e-6591-4a9a-b1fb-4e042d2226da" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_363b2cb1-0dcb-4630-8200-d6aab22f24e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherAssetsNoncurrentAbstract_d668cd8c-dfb1-429f-94e8-435ba8d270ee" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_363b2cb1-0dcb-4630-8200-d6aab22f24e5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedMarketingCostsCurrent_0d481bc3-4ca6-421a-ade8-b4a0e8472280" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedMarketingCostsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_AccruedMarketingCostsCurrent_0d481bc3-4ca6-421a-ade8-b4a0e8472280" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_a1959884-5d2d-47fd-8d60-73bf4783405c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_a1959884-5d2d-47fd-8d60-73bf4783405c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesPayableCurrent_e067e455-9d32-434a-85b0-1f3e1248d56b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TaxesPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_TaxesPayableCurrent_e067e455-9d32-434a-85b0-1f3e1248d56b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_7c3c3d37-41f4-40cc-a4b7-1507009cf953" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_7c3c3d37-41f4-40cc-a4b7-1507009cf953" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent_7e771536-bb1d-4b99-bdbd-ec08a620eb47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesCurrent_7e771536-bb1d-4b99-bdbd-ec08a620eb47" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendsPayableCurrent_b3b707ac-7374-4656-8f16-34ce18519d20" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestAndDividendsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_InterestAndDividendsPayableCurrent_b3b707ac-7374-4656-8f16-34ce18519d20" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_92483057-0355-4d2a-a42d-4e85577b3015" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_92483057-0355-4d2a-a42d-4e85577b3015" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList_e8868201-e554-485d-9b4f-4986beb5e5e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList_e8868201-e554-485d-9b4f-4986beb5e5e1" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_e071a7b5-4d06-4801-822b-53a145f93e49" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesCurrentAbstract_72d0add8-af04-410f-b342-dcd1b90d51ac" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_e071a7b5-4d06-4801-822b-53a145f93e49" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesNoncurrent_1a41d525-af8f-416b-beba-0d7deb3a0858" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedIncomeTaxesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_us-gaap_AccruedIncomeTaxesNoncurrent_1a41d525-af8f-416b-beba-0d7deb3a0858" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_bfcb3f01-37bb-47cd-ae08-57a0ccf7610b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_us-gaap_DefinedBenefitPensionPlanLiabilitiesNoncurrent_bfcb3f01-37bb-47cd-ae08-57a0ccf7610b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7c85e559-c24c-484e-a878-82162cff3495" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_7c85e559-c24c-484e-a878-82162cff3495" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CustomerCreditsAndAdvancesNoncurrent_02f38c30-07e0-494d-a2d1-0ff99568c6aa" xlink:href="klac-20220930.xsd#klac_CustomerCreditsAndAdvancesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_klac_CustomerCreditsAndAdvancesNoncurrent_02f38c30-07e0-494d-a2d1-0ff99568c6aa" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherLiabilitiesMiscellaneousNoncurrent_62330ee5-89aa-4d76-ab7c-1ce22d508a17" xlink:href="klac-20220930.xsd#klac_OtherLiabilitiesMiscellaneousNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_klac_OtherLiabilitiesMiscellaneousNoncurrent_62330ee5-89aa-4d76-ab7c-1ce22d508a17" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList_d7b6e645-436c-4ffe-b5a3-ebbb4c0f62ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList_d7b6e645-436c-4ffe-b5a3-ebbb4c0f62ae" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_41ce9ab4-9282-4739-b2c0-5cce67a6e512" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherLiabilitiesNoncurrentAbstract_1152200a-de6f-4324-8206-04a3f10337dd" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_41ce9ab4-9282-4739-b2c0-5cce67a6e512" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncreaseDecreaseInDeferredCompensationLiabilities_859b29d4-4eae-4273-928a-ca530fef7eb0" xlink:href="klac-20220930.xsd#klac_IncreaseDecreaseInDeferredCompensationLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_klac_IncreaseDecreaseInDeferredCompensationLiabilities_859b29d4-4eae-4273-928a-ca530fef7eb0" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_GainLossonDeferredCompensationPlanAssets_6e76d01a-1aa1-47ac-b3bc-3b43a0123903" xlink:href="klac-20220930.xsd#klac_GainLossonDeferredCompensationPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_klac_GainLossonDeferredCompensationPlanAssets_6e76d01a-1aa1-47ac-b3bc-3b43a0123903" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CondensedBalanceSheetStatementTable_63993a48-68dc-4fe1-8a72-954004168aae" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CondensedBalanceSheetStatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_srt_CondensedBalanceSheetStatementsCaptionsLineItems_740f5d3c-044e-460c-95c3-2e8e92f36401" xlink:to="loc_srt_CondensedBalanceSheetStatementTable_63993a48-68dc-4fe1-8a72-954004168aae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_9d90f82c-09ab-4525-b665-edb2518564e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_srt_CondensedBalanceSheetStatementTable_63993a48-68dc-4fe1-8a72-954004168aae" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_9d90f82c-09ab-4525-b665-edb2518564e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_9d90f82c-09ab-4525-b665-edb2518564e4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9d90f82c-09ab-4525-b665-edb2518564e4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_9d90f82c-09ab-4525-b665-edb2518564e4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_ddfb9c79-4fbc-42e1-85b0-2fcffeedd5dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9d90f82c-09ab-4525-b665-edb2518564e4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_ddfb9c79-4fbc-42e1-85b0-2fcffeedd5dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_4fa8b444-5133-4753-87e0-9ed7cade644b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_ddfb9c79-4fbc-42e1-85b0-2fcffeedd5dc" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_4fa8b444-5133-4753-87e0-9ed7cade644b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FINANCIALSTATEMENTCOMPONENTSAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended" id="i78a99abc33794de4b9feb9677297c573_FINANCIALSTATEMENTCOMPONENTSAccumulatedOtherComprehensiveIncomeDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f326c36f-8363-47cc-8a2b-387b8df807cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_4bb1b4c8-5238-4533-a8e1-eb5eb6c5cda0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AOCIAttributableToParentNetOfTaxRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f326c36f-8363-47cc-8a2b-387b8df807cb" xlink:to="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_4bb1b4c8-5238-4533-a8e1-eb5eb6c5cda0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b8e40373-5670-4b71-8b0e-1649de1fe935" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AOCIAttributableToParentNetOfTaxRollForward_4bb1b4c8-5238-4533-a8e1-eb5eb6c5cda0" xlink:to="loc_us-gaap_StockholdersEquity_b8e40373-5670-4b71-8b0e-1649de1fe935" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_fe618eae-7deb-48b5-9f4c-c5c717273250" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_239aef84-b277-4eb1-84b0-61295fa21f5f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_f326c36f-8363-47cc-8a2b-387b8df807cb" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_239aef84-b277-4eb1-84b0-61295fa21f5f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_02544778-9331-479a-b15f-b66c24102920" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_239aef84-b277-4eb1-84b0-61295fa21f5f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_02544778-9331-479a-b15f-b66c24102920" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_02544778-9331-479a-b15f-b66c24102920_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_02544778-9331-479a-b15f-b66c24102920" xlink:to="loc_us-gaap_EquityComponentDomain_02544778-9331-479a-b15f-b66c24102920_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_02544778-9331-479a-b15f-b66c24102920" xlink:to="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_e776ea7e-594c-42a2-9d65-a29316668345" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_e776ea7e-594c-42a2-9d65-a29316668345" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_9f82a3e5-ec65-48f6-9566-25cc62f0b77e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:to="loc_us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember_9f82a3e5-ec65-48f6-9566-25cc62f0b77e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_f8470930-3ec4-4f7e-96ef-c1c912ff89f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_f8470930-3ec4-4f7e-96ef-c1c912ff89f2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_46c30b0f-998a-4872-afe1-b30d8c60cfb8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_46c30b0f-998a-4872-afe1-b30d8c60cfb8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_7fd44325-3542-46b0-a520-dd7097b10e68" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_63eb2812-9d95-4c59-aa45-57d0e5e41464" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_7fd44325-3542-46b0-a520-dd7097b10e68" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSEffectsonNetIncomeLossofAmountsReclassifiedfromAOCIDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#FINANCIALSTATEMENTCOMPONENTSEffectsonNetIncomeLossofAmountsReclassifiedfromAOCIDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/FINANCIALSTATEMENTCOMPONENTSEffectsonNetIncomeLossofAmountsReclassifiedfromAOCIDetails" xlink:type="extended" id="i7d117be2f6584a7787ee5c3e71b16dfb_FINANCIALSTATEMENTCOMPONENTSEffectsonNetIncomeLossofAmountsReclassifiedfromAOCIDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f36c0880-3d3a-4bde-9344-2f4e3b44a00a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f36c0880-3d3a-4bde-9344-2f4e3b44a00a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CostOfRevenueAndOperatingExpense_9f391e38-adb7-4f53-b7c9-17bcc0817ceb" xlink:href="klac-20220930.xsd#klac_CostOfRevenueAndOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_klac_CostOfRevenueAndOperatingExpense_9f391e38-adb7-4f53-b7c9-17bcc0817ceb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_18ad81a4-bc02-4fcf-9468-b42fbe08e859" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_InterestExpense_18ad81a4-bc02-4fcf-9468-b42fbe08e859" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6780c6fe-eb05-48b2-988d-5eb025f548c5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_NetIncomeLoss_6780c6fe-eb05-48b2-988d-5eb025f548c5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_75d5ce29-f18a-417c-bf33-fe16f575e5cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_75d5ce29-f18a-417c-bf33-fe16f575e5cc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_ccf77e10-5326-448a-8210-6a68ac35ab80" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_ccf77e10-5326-448a-8210-6a68ac35ab80" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_e83c8f83-6ee5-493a-9b75-084226ef22e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_06f17cda-28a7-49db-b51b-5f15c55d4e67" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_e83c8f83-6ee5-493a-9b75-084226ef22e8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_9d77c664-8d08-445d-8038-1cc3a47e768a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_e83c8f83-6ee5-493a-9b75-084226ef22e8" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_9d77c664-8d08-445d-8038-1cc3a47e768a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_9d77c664-8d08-445d-8038-1cc3a47e768a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_9d77c664-8d08-445d-8038-1cc3a47e768a" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_9d77c664-8d08-445d-8038-1cc3a47e768a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_15d8e8b9-624c-4047-95eb-853ba004b042" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_9d77c664-8d08-445d-8038-1cc3a47e768a" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_15d8e8b9-624c-4047-95eb-853ba004b042" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_e9097d7d-af4b-4ffd-bba5-83fbbef0ef4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_15d8e8b9-624c-4047-95eb-853ba004b042" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_e9097d7d-af4b-4ffd-bba5-83fbbef0ef4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_fd0e7b27-85f6-4b22-8d75-5218400f72c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_e83c8f83-6ee5-493a-9b75-084226ef22e8" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_fd0e7b27-85f6-4b22-8d75-5218400f72c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_fd0e7b27-85f6-4b22-8d75-5218400f72c9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_fd0e7b27-85f6-4b22-8d75-5218400f72c9" xlink:to="loc_us-gaap_EquityComponentDomain_fd0e7b27-85f6-4b22-8d75-5218400f72c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_efec4210-395b-4974-8d45-7f48fb3b543f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_fd0e7b27-85f6-4b22-8d75-5218400f72c9" xlink:to="loc_us-gaap_EquityComponentDomain_efec4210-395b-4974-8d45-7f48fb3b543f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_0a85de3b-f994-4d15-85c5-0cb2ebbe3a73" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_efec4210-395b-4974-8d45-7f48fb3b543f" xlink:to="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_0a85de3b-f994-4d15-85c5-0cb2ebbe3a73" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_9219146b-6846-42d6-bda8-a571d563b4d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_efec4210-395b-4974-8d45-7f48fb3b543f" xlink:to="loc_us-gaap_AccumulatedNetInvestmentGainLossIncludingPortionAttributableToNoncontrollingInterestMember_9219146b-6846-42d6-bda8-a571d563b4d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_d5e63f3c-085b-4437-a43c-50b164e08e9c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_efec4210-395b-4974-8d45-7f48fb3b543f" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_d5e63f3c-085b-4437-a43c-50b164e08e9c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/MARKETABLESECURITIESAmortizedCostandFairValueDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#MARKETABLESECURITIESAmortizedCostandFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/MARKETABLESECURITIESAmortizedCostandFairValueDetails" xlink:type="extended" id="i7fade9f3f29f455cba6ee5484462e5ac_MARKETABLESECURITIESAmortizedCostandFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_e88a902b-2281-40fa-8ca6-1a944db72189" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_e88a902b-2281-40fa-8ca6-1a944db72189" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a2ae00ec-cd4e-4d05-a2cc-e144e0f762d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_a2ae00ec-cd4e-4d05-a2cc-e144e0f762d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a1e25067-f605-4787-96f7-e15c317ae3ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_a1e25067-f605-4787-96f7-e15c317ae3ec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5c13ca79-f15f-4666-b8ff-4dcb4567c79d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5c13ca79-f15f-4666-b8ff-4dcb4567c79d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MoneyMarketFundsAndOther_679bc9fd-cd50-4713-8782-b2037fabb07e" xlink:href="klac-20220930.xsd#klac_MoneyMarketFundsAndOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_MoneyMarketFundsAndOther_679bc9fd-cd50-4713-8782-b2037fabb07e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCost_ef0b26f9-5bcc-4813-bdf1-19705f22496e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesFvNiCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCost_ef0b26f9-5bcc-4813-bdf1-19705f22496e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain_95298870-2af7-4e6c-b92a-bf7aa916bcbe" xlink:href="klac-20220930.xsd#klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedGain_95298870-2af7-4e6c-b92a-bf7aa916bcbe" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss_30ff4c34-e143-4e44-8957-1c72f3e350dd" xlink:href="klac-20220930.xsd#klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_EquitySecuritiesFVNIAccumulatedGrossUnrealizedLoss_30ff4c34-e143-4e44-8957-1c72f3e350dd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_14ff9534-2cc9-43a2-9ca5-7f630ac56026" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent_14ff9534-2cc9-43a2-9ca5-7f630ac56026" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_c587b8eb-70b8-4c23-8ac7-d693f629f6da" xlink:href="klac-20220930.xsd#klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_MarketableSecuritiesExcludingTimeDepositsAmortizedCost_c587b8eb-70b8-4c23-8ac7-d693f629f6da" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MarketableSecuritiesExcludingTimeDepositGrossUnrealizedGains_060bcf62-5304-4741-8c86-1c7048b3c265" xlink:href="klac-20220930.xsd#klac_MarketableSecuritiesExcludingTimeDepositGrossUnrealizedGains"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_MarketableSecuritiesExcludingTimeDepositGrossUnrealizedGains_060bcf62-5304-4741-8c86-1c7048b3c265" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MarketableSecuritiesExcludingTimeDepositsGrossUnrealizedLosses_357dc5fc-280d-4f31-b9df-26b1ae2e6282" xlink:href="klac-20220930.xsd#klac_MarketableSecuritiesExcludingTimeDepositsGrossUnrealizedLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_MarketableSecuritiesExcludingTimeDepositsGrossUnrealizedLosses_357dc5fc-280d-4f31-b9df-26b1ae2e6282" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_MarketableSecuritiesExcludingTimeDepositsFairValue_813b3920-a76d-45ca-8f23-9ae7128215d0" xlink:href="klac-20220930.xsd#klac_MarketableSecuritiesExcludingTimeDepositsFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_MarketableSecuritiesExcludingTimeDepositsFairValue_813b3920-a76d-45ca-8f23-9ae7128215d0" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestBearingDepositsInBanks_a9503a4d-c2ee-4fa5-8f4a-3a89da24f34a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestBearingDepositsInBanks"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_InterestBearingDepositsInBanks_a9503a4d-c2ee-4fa5-8f4a-3a89da24f34a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashEquivalentsAtCarryingValue_1d6d3b1c-fa35-471f-8d8c-f5381f214609" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_CashEquivalentsAtCarryingValue_1d6d3b1c-fa35-471f-8d8c-f5381f214609" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsGrossUnrealizedGains_08fe4d0c-def2-4eaa-88cf-bba7d601de04" xlink:href="klac-20220930.xsd#klac_CashEquivalentsGrossUnrealizedGains"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_CashEquivalentsGrossUnrealizedGains_08fe4d0c-def2-4eaa-88cf-bba7d601de04" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsGrossUnrealizedLosses_0e00a4ed-b4d7-4073-af44-f8ddea236029" xlink:href="klac-20220930.xsd#klac_CashEquivalentsGrossUnrealizedLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_CashEquivalentsGrossUnrealizedLosses_0e00a4ed-b4d7-4073-af44-f8ddea236029" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashEquivalentsFairValueDisclosure_67caa08f-8c60-4dae-85c6-eab139a5b8bf" xlink:href="klac-20220930.xsd#klac_CashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_CashEquivalentsFairValueDisclosure_67caa08f-8c60-4dae-85c6-eab139a5b8bf" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAmortizedCost_658b96aa-704b-4a86-9313-6e7276f49db1" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAmortizedCost_658b96aa-704b-4a86-9313-6e7276f49db1" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedGain_f3c34b14-85d2-4d20-b23d-dd57944e8fb3" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedGain_f3c34b14-85d2-4d20-b23d-dd57944e8fb3" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedLoss_08e6eee2-54a9-4ffb-b1cc-1ea98b7fe5aa" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesAccumulatedGrossUnrealizedLoss_08e6eee2-54a9-4ffb-b1cc-1ea98b7fe5aa" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue_f02b3620-c69d-4e22-a86d-554f6ca8a17b" xlink:href="klac-20220930.xsd#klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_klac_DebtSecuritiesAvailableForSaleAndEquitySecuritiesFairValue_f02b3620-c69d-4e22-a86d-554f6ca8a17b" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTerm_df85d44b-4472-4514-b285-b89a9a88e3af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTerm_df85d44b-4472-4514-b285-b89a9a88e3af" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_d79e6f2d-a154-4b85-acdc-f92177a917a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionNumberOfPositions_d79e6f2d-a154-4b85-acdc-f92177a917a8" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f3be0301-3b1e-4a20-bedc-4a8eca6d1525" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_e1ef0d16-b0da-41a5-9412-6894ba7e6065" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f3be0301-3b1e-4a20-bedc-4a8eca6d1525" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_4614dc57-e5ec-45be-887b-683491d6129a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_f3be0301-3b1e-4a20-bedc-4a8eca6d1525" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4614dc57-e5ec-45be-887b-683491d6129a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4614dc57-e5ec-45be-887b-683491d6129a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4614dc57-e5ec-45be-887b-683491d6129a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4614dc57-e5ec-45be-887b-683491d6129a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4614dc57-e5ec-45be-887b-683491d6129a" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_73e254ba-c5f9-4cdf-8517-dbe692a18b37" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_73e254ba-c5f9-4cdf-8517-dbe692a18b37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_d011d321-e5da-4572-8152-d2be3a59201b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_us-gaap_MunicipalBondsMember_d011d321-e5da-4572-8152-d2be3a59201b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_6f62c320-c29c-40f5-98de-3ed58e7b8cf1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_6f62c320-c29c-40f5-98de-3ed58e7b8cf1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_f8146f0a-103b-4fef-ba42-bb50c67530b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_f8146f0a-103b-4fef-ba42-bb50c67530b2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_d1fb8ea2-ef6d-4ae1-b250-91c29e505915" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_d1fb8ea2-ef6d-4ae1-b250-91c29e505915" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CorporateAndGovernmentSecuritiesMember_d850db2c-d05a-4d15-bcc9-2a42a705f3ac" xlink:href="klac-20220930.xsd#klac_CorporateAndGovernmentSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_65d9758e-5540-4762-ae0a-67240209f3b5" xlink:to="loc_klac_CorporateAndGovernmentSecuritiesMember_d850db2c-d05a-4d15-bcc9-2a42a705f3ac" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails" xlink:type="extended" id="i4a210e05ca0c4208a00addf93e6d2093_MARKETABLESECURITIESContinuousUnrealizedLossPositionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_4c387983-daa7-438e-a114-a8cfa7960139" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_4c387983-daa7-438e-a114-a8cfa7960139" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_b45b62b2-51f6-40c0-a83e-db7d196bbd90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_b45b62b2-51f6-40c0-a83e-db7d196bbd90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_810f0c55-c4ff-431a-8c3c-04ea4409494d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_810f0c55-c4ff-431a-8c3c-04ea4409494d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_71afb982-0cc1-4546-a787-75f446d22e62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_71afb982-0cc1-4546-a787-75f446d22e62" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_17afa4b8-9e29-45f1-99f1-dc0cab05baa4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_17afa4b8-9e29-45f1-99f1-dc0cab05baa4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_ee607170-b085-49fe-b008-b5ea9954c51e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_ee607170-b085-49fe-b008-b5ea9954c51e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_ea68f936-ac69-4b4a-a07d-524a4d5f80c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_29ce56f1-17b0-4d0f-8b75-667a72110b51" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_ea68f936-ac69-4b4a-a07d-524a4d5f80c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_c507b78b-dc6f-402b-9a1d-c8833e314161" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_ea68f936-ac69-4b4a-a07d-524a4d5f80c1" xlink:to="loc_us-gaap_FinancialInstrumentAxis_c507b78b-dc6f-402b-9a1d-c8833e314161" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c507b78b-dc6f-402b-9a1d-c8833e314161_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c507b78b-dc6f-402b-9a1d-c8833e314161" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_c507b78b-dc6f-402b-9a1d-c8833e314161_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_c507b78b-dc6f-402b-9a1d-c8833e314161" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_3240b3a8-6b3e-4268-ab98-ffd308b13e47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_3240b3a8-6b3e-4268-ab98-ffd308b13e47" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_17bf345f-44e0-48fb-9c99-cc5a579962c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:to="loc_us-gaap_MunicipalBondsMember_17bf345f-44e0-48fb-9c99-cc5a579962c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SovereignDebtSecuritiesMember_04655585-6853-4194-aace-636f7b906fed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SovereignDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:to="loc_us-gaap_SovereignDebtSecuritiesMember_04655585-6853-4194-aace-636f7b906fed" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_9648008f-b4e7-41d9-b85a-2bc698848a97" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:to="loc_us-gaap_USGovernmentAgenciesDebtSecuritiesMember_9648008f-b4e7-41d9-b85a-2bc698848a97" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_afc11c03-3e4a-4f21-b5fb-a33da8314d18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_23600f9e-2a83-4bb4-a116-932ed717781c" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_afc11c03-3e4a-4f21-b5fb-a33da8314d18" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSBusinessCombinationsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#BUSINESSCOMBINATIONSBusinessCombinationsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSBusinessCombinationsDetails" xlink:type="extended" id="ibe68f9f439d946d5a7fd79b715213bca_BUSINESSCOMBINATIONSBusinessCombinationsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_38d68ef1-d89d-4e40-b2cd-ab3d9bc82c89" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_38d68ef1-d89d-4e40-b2cd-ab3d9bc82c89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_16f9c89b-64b5-4823-baba-9f3e63a7c207" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibleAssetsOtherThanGoodwill_16f9c89b-64b5-4823-baba-9f3e63a7c207" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleAssets_96eafcfa-3c40-4905-9e2a-f8e5bf1aa144" xlink:href="klac-20220930.xsd#klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleAssets_96eafcfa-3c40-4905-9e2a-f8e5bf1aa144" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_af6c345c-9c54-43df-babe-960acb115a87" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_af6c345c-9c54-43df-babe-960acb115a87" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_2edb0547-e9e3-47ea-bac7-75bce83e5dc8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_Goodwill_2edb0547-e9e3-47ea-bac7-75bce83e5dc8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_9d488b2b-beaf-44f0-92e4-f1f453e6e0e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_9d488b2b-beaf-44f0-92e4-f1f453e6e0e5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleLiabilities_deb56d49-6119-4e6f-b7f8-1f573e2bde04" xlink:href="klac-20220930.xsd#klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_klac_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedTangibleLiabilities_deb56d49-6119-4e6f-b7f8-1f573e2bde04" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_03489f9b-6aa2-4f17-847c-2cb7285335a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityCurrent_03489f9b-6aa2-4f17-847c-2cb7285335a8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_b95d4c2a-5bcf-4908-b85d-14ed03f3dc2d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_b95d4c2a-5bcf-4908-b85d-14ed03f3dc2d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_24ef924a-4582-43d0-8829-67d9479d09ee" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiabilityNoncurrent_24ef924a-4582-43d0-8829-67d9479d09ee" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8659ca84-d048-4fce-87d8-89b584ccd4a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_599c176b-745d-49af-b757-17213db7eb5c" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8659ca84-d048-4fce-87d8-89b584ccd4a7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_52e4bab5-3cc1-4102-846a-b67fa532bb8a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_8659ca84-d048-4fce-87d8-89b584ccd4a7" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_52e4bab5-3cc1-4102-846a-b67fa532bb8a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_52e4bab5-3cc1-4102-846a-b67fa532bb8a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_52e4bab5-3cc1-4102-846a-b67fa532bb8a" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_52e4bab5-3cc1-4102-846a-b67fa532bb8a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e0a4952-9f7a-4f35-92a7-ba8e0cfc0fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_52e4bab5-3cc1-4102-846a-b67fa532bb8a" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e0a4952-9f7a-4f35-92a7-ba8e0cfc0fd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_August92022AcquisitionMember_bc0dc8ff-4f77-4d9b-b8a5-a1b7833fc185" xlink:href="klac-20220930.xsd#klac_August92022AcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e0a4952-9f7a-4f35-92a7-ba8e0cfc0fd7" xlink:to="loc_klac_August92022AcquisitionMember_bc0dc8ff-4f77-4d9b-b8a5-a1b7833fc185" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_May12022AcquisitionMember_87b04405-3afb-4003-923c-8ec142cd636b" xlink:href="klac-20220930.xsd#klac_May12022AcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e0a4952-9f7a-4f35-92a7-ba8e0cfc0fd7" xlink:to="loc_klac_May12022AcquisitionMember_87b04405-3afb-4003-923c-8ec142cd636b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ECITechnologyIncMember_6f45f1dc-7c27-4c8d-a8c7-6011a3431e77" xlink:href="klac-20220930.xsd#klac_ECITechnologyIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e0a4952-9f7a-4f35-92a7-ba8e0cfc0fd7" xlink:to="loc_klac_ECITechnologyIncMember_6f45f1dc-7c27-4c8d-a8c7-6011a3431e77" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSBusinessDispositionsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#BUSINESSCOMBINATIONSBusinessDispositionsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/BUSINESSCOMBINATIONSBusinessDispositionsDetails" xlink:type="extended" id="i64cb7e1cd714412180b652fb65bf74ef_BUSINESSCOMBINATIONSBusinessDispositionsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_715368a3-0070-408c-bd90-648de7819b70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_715368a3-0070-408c-bd90-648de7819b70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_d087ea0e-f7b5-475a-9859-a578d46f3116" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationConsideration_d087ea0e-f7b5-475a-9859-a578d46f3116" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_0e061118-65e4-429f-9f77-273100dddf78" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinessesNetOfCashDivested_0e061118-65e4-429f-9f77-273100dddf78" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfBusiness_bdd0ba8f-ca54-4033-befc-593642c6cac4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnSaleOfBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_GainLossOnSaleOfBusiness_bdd0ba8f-ca54-4033-befc-593642c6cac4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DisposalGroupIncludingDiscontinuedOperationTangibleAssets_d80392da-6cae-4ade-a630-877c60f4d043" xlink:href="klac-20220930.xsd#klac_DisposalGroupIncludingDiscontinuedOperationTangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_klac_DisposalGroupIncludingDiscontinuedOperationTangibleAssets_d80392da-6cae-4ade-a630-877c60f4d043" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_b7e83f94-53a7-4d5a-b841-73044f23cdd4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_b7e83f94-53a7-4d5a-b841-73044f23cdd4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DisposalGroupIncludingDiscontinuedOperationGoodwillAndIntangibleAssets_f6bdb441-5fcb-43b5-a714-afc7b6aac5b6" xlink:href="klac-20220930.xsd#klac_DisposalGroupIncludingDiscontinuedOperationGoodwillAndIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_klac_DisposalGroupIncludingDiscontinuedOperationGoodwillAndIntangibleAssets_f6bdb441-5fcb-43b5-a714-afc7b6aac5b6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_ba695a54-66ad-4d3c-9484-5f80f182ba42" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_1f527a04-2e36-4427-87a5-b71ea7d197f8" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_ba695a54-66ad-4d3c-9484-5f80f182ba42" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_7ed26e01-2846-4095-9330-41a09514bdd2" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_ba695a54-66ad-4d3c-9484-5f80f182ba42" xlink:to="loc_srt_OwnershipAxis_7ed26e01-2846-4095-9330-41a09514bdd2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_7ed26e01-2846-4095-9330-41a09514bdd2_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_7ed26e01-2846-4095-9330-41a09514bdd2" xlink:to="loc_srt_OwnershipDomain_7ed26e01-2846-4095-9330-41a09514bdd2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_b23ad199-50eb-41d8-8136-6bfbd7ed0919" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_7ed26e01-2846-4095-9330-41a09514bdd2" xlink:to="loc_srt_OwnershipDomain_b23ad199-50eb-41d8-8136-6bfbd7ed0919" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OrbographLtd.Member_d463688f-c60c-43b2-8980-f1d1588ac2d9" xlink:href="klac-20220930.xsd#klac_OrbographLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_b23ad199-50eb-41d8-8136-6bfbd7ed0919" xlink:to="loc_klac_OrbographLtd.Member_d463688f-c60c-43b2-8980-f1d1588ac2d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_af25e0ec-1643-4c2b-9b8e-44cec600e260" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_ba695a54-66ad-4d3c-9484-5f80f182ba42" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_af25e0ec-1643-4c2b-9b8e-44cec600e260" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_af25e0ec-1643-4c2b-9b8e-44cec600e260_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_af25e0ec-1643-4c2b-9b8e-44cec600e260" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_af25e0ec-1643-4c2b-9b8e-44cec600e260_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_3e29d73a-0741-4605-8102-9cd603efd5b4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_af25e0ec-1643-4c2b-9b8e-44cec600e260" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_3e29d73a-0741-4605-8102-9cd603efd5b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_4915d882-82f7-40fe-ab15-662964bbe066" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_3e29d73a-0741-4605-8102-9cd603efd5b4" xlink:to="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_4915d882-82f7-40fe-ab15-662964bbe066" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_db130007-7a91-4943-9fb9-3708344e2b10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_ba695a54-66ad-4d3c-9484-5f80f182ba42" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_db130007-7a91-4943-9fb9-3708344e2b10" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_db130007-7a91-4943-9fb9-3708344e2b10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_db130007-7a91-4943-9fb9-3708344e2b10" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_db130007-7a91-4943-9fb9-3708344e2b10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_dcf2e8bf-b230-4847-916c-66b8db584d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_db130007-7a91-4943-9fb9-3708344e2b10" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_dcf2e8bf-b230-4847-916c-66b8db584d3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OrbographLtd.Member_174d266d-f383-4d4f-ab4d-1267f4e66dac" xlink:href="klac-20220930.xsd#klac_OrbographLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_dcf2e8bf-b230-4847-916c-66b8db584d3a" xlink:to="loc_klac_OrbographLtd.Member_174d266d-f383-4d4f-ab4d-1267f4e66dac" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAdditionalInformationDetails" xlink:type="extended" id="i4ba3018aaf1a42acbc2b109138e287ff_GOODWILLANDPURCHASEDINTANGIBLEASSETSAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_fa1354ad-9dd7-4bf6-b43d-fab66d58a9f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_us-gaap_NumberOfReportableSegments_fa1354ad-9dd7-4bf6-b43d-fab66d58a9f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_5a1cb871-23f5-41ed-9ef6-9abe19bf48ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_us-gaap_NumberOfOperatingSegments_5a1cb871-23f5-41ed-9ef6-9abe19bf48ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_d44a6fd3-f3b3-4ad7-8de6-8e13b15c933f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_d44a6fd3-f3b3-4ad7-8de6-8e13b15c933f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_8177b233-1577-4499-b90b-1fc78771062f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_us-gaap_ImpairmentOfLongLivedAssetsToBeDisposedOf_8177b233-1577-4499-b90b-1fc78771062f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ImpairmentOfIntangibleAssetsPurchased_ba15b93c-d4e7-4d72-bfb5-726858bd5844" xlink:href="klac-20220930.xsd#klac_ImpairmentOfIntangibleAssetsPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_klac_ImpairmentOfIntangibleAssetsPurchased_ba15b93c-d4e7-4d72-bfb5-726858bd5844" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_c1d60e9a-b24c-4d8f-8464-a534a1084810" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_ff260323-5f88-4b2c-b504-a238ac70c169" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_c1d60e9a-b24c-4d8f-8464-a534a1084810" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_c1d60e9a-b24c-4d8f-8464-a534a1084810" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_03e20204-b978-43f5-96b9-f0efa3044700" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_a483e6f6-0bf3-404d-8e11-8fae85e1a3d6" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_03e20204-b978-43f5-96b9-f0efa3044700" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_2454a5e9-8d30-418c-95a0-0be1d94acaf3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_03e20204-b978-43f5-96b9-f0efa3044700" xlink:to="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_2454a5e9-8d30-418c-95a0-0be1d94acaf3" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSScheduleofGoodwillDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSScheduleofGoodwillDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSScheduleofGoodwillDetails" xlink:type="extended" id="i077a0a99274c421181bf2f8f86c95c6f_GOODWILLANDPURCHASEDINTANGIBLEASSETSScheduleofGoodwillDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_a15d736f-e19b-4518-9183-1db84723b758" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_a15d736f-e19b-4518-9183-1db84723b758" xlink:to="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_cb2aa2d2-7925-4d0c-8a30-4dc968234d8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:to="loc_us-gaap_Goodwill_cb2aa2d2-7925-4d0c-8a30-4dc968234d8d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_6531bfb2-e9a5-472d-8ac7-5c5ace88a01c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_6531bfb2-e9a5-472d-8ac7-5c5ace88a01c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_513bcee3-e947-4260-ba13-387e6a0e170c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:to="loc_us-gaap_GoodwillWrittenOffRelatedToSaleOfBusinessUnit_513bcee3-e947-4260-ba13-387e6a0e170c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_369fd3b3-e3da-498f-bade-e5ab6536e89b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_369fd3b3-e3da-498f-bade-e5ab6536e89b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_d2765d17-6bcd-4546-8bdf-5b142aa6f2db" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5afbace0-91f8-4244-a525-632010566956" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_d2765d17-6bcd-4546-8bdf-5b142aa6f2db" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_261858ff-abd5-4030-b594-d4fb18206849" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_8e9a21a8-0fbd-4b39-a77e-e256121d1529" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_a15d736f-e19b-4518-9183-1db84723b758" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_8e9a21a8-0fbd-4b39-a77e-e256121d1529" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitAxis_604289e1-dd6f-4376-8b43-43f4393019d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReportingUnitAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_8e9a21a8-0fbd-4b39-a77e-e256121d1529" xlink:to="loc_us-gaap_ReportingUnitAxis_604289e1-dd6f-4376-8b43-43f4393019d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_604289e1-dd6f-4376-8b43-43f4393019d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReportingUnitAxis_604289e1-dd6f-4376-8b43-43f4393019d0" xlink:to="loc_us-gaap_ReportingUnitDomain_604289e1-dd6f-4376-8b43-43f4393019d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReportingUnitDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReportingUnitAxis_604289e1-dd6f-4376-8b43-43f4393019d0" xlink:to="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_WaferInspectionAndPatterningMember_13cb2d04-85d6-4a67-8d3b-9d15bf18bd2a" xlink:href="klac-20220930.xsd#klac_WaferInspectionAndPatterningMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:to="loc_klac_WaferInspectionAndPatterningMember_13cb2d04-85d6-4a67-8d3b-9d15bf18bd2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_GlobalServiceAndSupportMember_021904bc-3288-4e8d-b42e-0a21a3965507" xlink:href="klac-20220930.xsd#klac_GlobalServiceAndSupportMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:to="loc_klac_GlobalServiceAndSupportMember_021904bc-3288-4e8d-b42e-0a21a3965507" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SpecialtySemiconductorProcessMember_f01ec4bd-ca43-4b75-a71b-d7aad98c7f52" xlink:href="klac-20220930.xsd#klac_SpecialtySemiconductorProcessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:to="loc_klac_SpecialtySemiconductorProcessMember_f01ec4bd-ca43-4b75-a71b-d7aad98c7f52" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_PCBAndDisplayMember_8a604d29-75cb-4cb7-9c3b-7457a280cb5f" xlink:href="klac-20220930.xsd#klac_PCBAndDisplayMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:to="loc_klac_PCBAndDisplayMember_8a604d29-75cb-4cb7-9c3b-7457a280cb5f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ComponentInspectionMember_ca08093d-7851-47d0-a48d-26e3855591b3" xlink:href="klac-20220930.xsd#klac_ComponentInspectionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReportingUnitDomain_8a96af83-4297-4348-9154-ebcca9bafc56" xlink:to="loc_klac_ComponentInspectionMember_ca08093d-7851-47d0-a48d-26e3855591b3" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails" xlink:type="extended" id="i4d64c408735144f791409075d5d3dc87_GOODWILLANDPURCHASEDINTANGIBLEASSETSPurchasedIntangibleAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_3e9773f0-a4d4-439c-880e-56f00a00a811" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_3e9773f0-a4d4-439c-880e-56f00a00a811" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_89f3f5d7-65e1-4721-bc83-63c6c63eec72" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_89f3f5d7-65e1-4721-bc83-63c6c63eec72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_709daaae-a052-4ab0-ad3f-4a850da9b525" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_709daaae-a052-4ab0-ad3f-4a850da9b525" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_269440df-fe7b-48ed-868f-9321eae713f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsGrossExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_IntangibleAssetsGrossExcludingGoodwill_269440df-fe7b-48ed-868f-9321eae713f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_69d4a06b-cbd0-4344-a435-9135fbc07503" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_69d4a06b-cbd0-4344-a435-9135fbc07503" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_99eb755d-0ef7-48b1-af3c-7daf63ffb0f6" xlink:href="klac-20220930.xsd#klac_IntangibleAssetsOtherAccumulatedAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_klac_IntangibleAssetsOtherAccumulatedAdjustments_99eb755d-0ef7-48b1-af3c-7daf63ffb0f6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_36aff4d6-8179-4b89-ae78-f3b4971b1e7d" xlink:href="klac-20220930.xsd#klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_klac_FiniteLivedIntangibleAssetsAccumulatedAmortizationAndOtherAccumulatedAdjustment_36aff4d6-8179-4b89-ae78-f3b4971b1e7d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5f633551-4710-4770-ab6b-d6f07b09b22a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_5f633551-4710-4770-ab6b-d6f07b09b22a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_e84dcff3-db80-47e6-9bf2-e13412803590" xlink:href="klac-20220930.xsd#klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_klac_IndefiniteLivedIntangibleAssetsExcludingGoodwillNetOfOtherAccumulatedAdjustment_e84dcff3-db80-47e6-9bf2-e13412803590" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_779c3202-2af0-400e-af1f-bc4f40cf777e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_779c3202-2af0-400e-af1f-bc4f40cf777e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_0a38424c-b288-4e40-9e86-08623c13528f" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_81d22913-bcbd-4286-97b1-e295e942e1f0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:to="loc_srt_RangeAxis_81d22913-bcbd-4286-97b1-e295e942e1f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_81d22913-bcbd-4286-97b1-e295e942e1f0_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_81d22913-bcbd-4286-97b1-e295e942e1f0" xlink:to="loc_srt_RangeMember_81d22913-bcbd-4286-97b1-e295e942e1f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d448911d-2dc3-4b1a-bf8d-f311e1e96439" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_81d22913-bcbd-4286-97b1-e295e942e1f0" xlink:to="loc_srt_RangeMember_d448911d-2dc3-4b1a-bf8d-f311e1e96439" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_74fca8f9-74a2-495a-9e32-a6a2c58f717c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d448911d-2dc3-4b1a-bf8d-f311e1e96439" xlink:to="loc_srt_MinimumMember_74fca8f9-74a2-495a-9e32-a6a2c58f717c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_02dab7b6-aebc-47f9-bdd3-b1f22fce9d16" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_d448911d-2dc3-4b1a-bf8d-f311e1e96439" xlink:to="loc_srt_MaximumMember_02dab7b6-aebc-47f9-bdd3-b1f22fce9d16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f59f166f-7bbd-4305-85a0-5fba7e2219a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f59f166f-7bbd-4305-85a0-5fba7e2219a2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f59f166f-7bbd-4305-85a0-5fba7e2219a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f59f166f-7bbd-4305-85a0-5fba7e2219a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f59f166f-7bbd-4305-85a0-5fba7e2219a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f59f166f-7bbd-4305-85a0-5fba7e2219a2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ExistingTechnologyMember_5728bbe9-e66f-49c7-b6e5-ddee646df578" xlink:href="klac-20220930.xsd#klac_ExistingTechnologyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:to="loc_klac_ExistingTechnologyMember_5728bbe9-e66f-49c7-b6e5-ddee646df578" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_5cdd22c7-2c44-4653-b00e-835ca8993344" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:to="loc_us-gaap_CustomerRelationshipsMember_5cdd22c7-2c44-4653-b00e-835ca8993344" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TradeNameTrademarkMember_37bb7589-a9f8-4529-be84-c4c8a82fffb5" xlink:href="klac-20220930.xsd#klac_TradeNameTrademarkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:to="loc_klac_TradeNameTrademarkMember_37bb7589-a9f8-4529-be84-c4c8a82fffb5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_69f686f7-97dd-4a63-bf0a-2519b6eb0839" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_ff8f3ac7-d912-4256-be12-65eed915ad93" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_69f686f7-97dd-4a63-bf0a-2519b6eb0839" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2e89d3ca-e66a-4966-ade7-50e249e0f02e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2e89d3ca-e66a-4966-ade7-50e249e0f02e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2e89d3ca-e66a-4966-ade7-50e249e0f02e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2e89d3ca-e66a-4966-ade7-50e249e0f02e" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_2e89d3ca-e66a-4966-ade7-50e249e0f02e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e12e2bdb-132c-489e-a897-8b3bce89e6f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_2e89d3ca-e66a-4966-ade7-50e249e0f02e" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e12e2bdb-132c-489e-a897-8b3bce89e6f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InProcessResearchAndDevelopmentMember_7b445eb9-6a77-4226-bb48-92a88b414c58" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InProcessResearchAndDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_e12e2bdb-132c-489e-a897-8b3bce89e6f7" xlink:to="loc_us-gaap_InProcessResearchAndDevelopmentMember_7b445eb9-6a77-4226-bb48-92a88b414c58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_9ae68082-e420-43d7-8894-c64820fe5dd4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_b10f1ab7-2855-4020-ba2a-dfe8f74ab9c1" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_9ae68082-e420-43d7-8894-c64820fe5dd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OrbographLtd.Member_2b3d39fb-a382-4f61-a79d-ce4eefbf9d05" xlink:href="klac-20220930.xsd#klac_OrbographLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_9ae68082-e420-43d7-8894-c64820fe5dd4" xlink:to="loc_klac_OrbographLtd.Member_2b3d39fb-a382-4f61-a79d-ce4eefbf9d05" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_67f7d036-638b-4f40-8e6f-042eb8fbe258" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_b1c7d1bd-8f3a-459a-8cc0-a4649acfa020" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupClassificationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_fa36c8ea-fb94-4f1f-b06e-1a70107cfd33" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_b1c7d1bd-8f3a-459a-8cc0-a4649acfa020" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_ef803c13-a943-4231-b163-570db11f2772" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_b1c7d1bd-8f3a-459a-8cc0-a4649acfa020" xlink:to="loc_us-gaap_DisposalGroupDisposedOfBySaleNotDiscontinuedOperationsMember_ef803c13-a943-4231-b163-570db11f2772" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAmortizationExpenseforPurchasedIntangibleAssetsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#GOODWILLANDPURCHASEDINTANGIBLEASSETSAmortizationExpenseforPurchasedIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/GOODWILLANDPURCHASEDINTANGIBLEASSETSAmortizationExpenseforPurchasedIntangibleAssetsDetails" xlink:type="extended" id="i094217bdb7344ef5b277d4b06a35a24a_GOODWILLANDPURCHASEDINTANGIBLEASSETSAmortizationExpenseforPurchasedIntangibleAssetsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8bba608c-3031-4194-9495-373fce2d2378" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_bcb18736-714c-4c86-80fc-d3d5248914d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8bba608c-3031-4194-9495-373fce2d2378" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_bcb18736-714c-4c86-80fc-d3d5248914d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_36624b14-76dc-485d-ab5d-01ba5dd458dd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_8bba608c-3031-4194-9495-373fce2d2378" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_36624b14-76dc-485d-ab5d-01ba5dd458dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_324aa2d9-b31d-4f39-a459-3777b51ce451" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_36624b14-76dc-485d-ab5d-01ba5dd458dd" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_324aa2d9-b31d-4f39-a459-3777b51ce451" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_324aa2d9-b31d-4f39-a459-3777b51ce451_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_324aa2d9-b31d-4f39-a459-3777b51ce451" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_324aa2d9-b31d-4f39-a459-3777b51ce451_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_1e765a79-72b2-4662-9d30-e3bd69d5d8b7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_324aa2d9-b31d-4f39-a459-3777b51ce451" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_1e765a79-72b2-4662-9d30-e3bd69d5d8b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_0c5332fc-19d6-44ec-ace4-1d1223ba3fbb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1e765a79-72b2-4662-9d30-e3bd69d5d8b7" xlink:to="loc_us-gaap_CostOfSalesMember_0c5332fc-19d6-44ec-ace4-1d1223ba3fbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_d403f34c-0ee4-41f5-b012-ac8268fe4ef3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1e765a79-72b2-4662-9d30-e3bd69d5d8b7" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_d403f34c-0ee4-41f5-b012-ac8268fe4ef3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_12e760a8-8c54-4a7e-9417-118e4677c444" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_1e765a79-72b2-4662-9d30-e3bd69d5d8b7" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_12e760a8-8c54-4a7e-9417-118e4677c444" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DEBTScheduleofDebtDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DEBTScheduleofDebtDetails" xlink:type="extended" id="i7f9f5983540141b888def3cd53341240_DEBTScheduleofDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_dc0b3258-f6d8-47a4-a8a7-0e4658c93ab6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_dc0b3258-f6d8-47a4-a8a7-0e4658c93ab6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_65906596-b6ac-4843-bd95-e9f2c9eacfc3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_65906596-b6ac-4843-bd95-e9f2c9eacfc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_6197c57e-6744-4081-bca0-251e95178fd1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_6197c57e-6744-4081-bca0-251e95178fd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_df463067-513b-4cea-bcfa-a1f52e01f910" xlink:href="klac-20220930.xsd#klac_DebtLongTermAndShortTermCombinedAmountGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_klac_DebtLongTermAndShortTermCombinedAmountGross_df463067-513b-4cea-bcfa-a1f52e01f910" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_a1ad9746-82c0-477b-b6ea-4de387e5ece7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_a1ad9746-82c0-477b-b6ea-4de387e5ece7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_2214895e-cbd4-4665-909a-03bd14a27337" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_2214895e-cbd4-4665-909a-03bd14a27337" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_06d03305-cbd9-494e-ad9e-2fa0a14946ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtLongtermAndShorttermCombinedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtLongtermAndShorttermCombinedAmount_06d03305-cbd9-494e-ad9e-2fa0a14946ba" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_74f254f1-5b4d-4a2b-bda7-a856b9c42612" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_LongTermDebt_74f254f1-5b4d-4a2b-bda7-a856b9c42612" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_77130828-78af-4a22-b39a-8e386573938a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6cecfe54-c4a9-4260-b8c6-53659dbe0871" xlink:to="loc_us-gaap_DebtInstrumentTable_77130828-78af-4a22-b39a-8e386573938a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_e107ccef-e7bb-4173-8bb5-01068f2ede36" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_77130828-78af-4a22-b39a-8e386573938a" xlink:to="loc_us-gaap_DebtInstrumentAxis_e107ccef-e7bb-4173-8bb5-01068f2ede36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_e107ccef-e7bb-4173-8bb5-01068f2ede36_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_e107ccef-e7bb-4173-8bb5-01068f2ede36" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_e107ccef-e7bb-4173-8bb5-01068f2ede36_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_e107ccef-e7bb-4173-8bb5-01068f2ede36" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueNovember12024Member_887d1db7-ba74-4948-a62a-95939e79f0aa" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueNovember12024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueNovember12024Member_887d1db7-ba74-4948-a62a-95939e79f0aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueNovember12034Member_d5253bb3-7a0f-4f44-b396-9fed40f126c2" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueNovember12034Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueNovember12034Member_d5253bb3-7a0f-4f44-b396-9fed40f126c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueMarch152029Member_56448cc7-e340-4921-a8a9-1dbba5b50c12" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueMarch152029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueMarch152029Member_56448cc7-e340-4921-a8a9-1dbba5b50c12" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueMarch152049Member_e3a8f8d4-65d0-4c91-959a-bfd09a0df5e4" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueMarch152049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueMarch152049Member_e3a8f8d4-65d0-4c91-959a-bfd09a0df5e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueMarch12050Member_d2daed85-4ac8-4a96-a93b-210d03e09c6b" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueMarch12050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueMarch12050Member_d2daed85-4ac8-4a96-a93b-210d03e09c6b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152032Member_004b5fba-e4e0-4b45-b458-df288043a16f" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152032Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueJuly152032Member_004b5fba-e4e0-4b45-b458-df288043a16f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152052Member_2bdfc0dd-d567-4bbe-b08c-0a2c40458b97" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152052Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueJuly152052Member_2bdfc0dd-d567-4bbe-b08c-0a2c40458b97" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152062Member_ba86c181-b6cc-47ea-bc1b-7760eb333b88" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152062Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff0a6b6e-4330-4904-ba0a-8ed3a3d61b86" xlink:to="loc_klac_SeniorNotesDueJuly152062Member_ba86c181-b6cc-47ea-bc1b-7760eb333b88" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_77130828-78af-4a22-b39a-8e386573938a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_295aaf54-b705-452a-b9ee-568a21ea22cb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2e1ef8a4-0220-4bc6-b59c-7e79e0d655e1" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_295aaf54-b705-452a-b9ee-568a21ea22cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_f566c54b-8c18-47d7-bfc4-35519ec1d29f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_295aaf54-b705-452a-b9ee-568a21ea22cb" xlink:to="loc_us-gaap_SeniorNotesMember_f566c54b-8c18-47d7-bfc4-35519ec1d29f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_acf04765-f35f-40ca-b288-a97986ebf8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_295aaf54-b705-452a-b9ee-568a21ea22cb" xlink:to="loc_us-gaap_LineOfCreditMember_acf04765-f35f-40ca-b288-a97986ebf8d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_73303724-3765-4b76-a10b-2c0ce8c02685" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_77130828-78af-4a22-b39a-8e386573938a" xlink:to="loc_us-gaap_CreditFacilityAxis_73303724-3765-4b76-a10b-2c0ce8c02685" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_73303724-3765-4b76-a10b-2c0ce8c02685_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_73303724-3765-4b76-a10b-2c0ce8c02685" xlink:to="loc_us-gaap_CreditFacilityDomain_73303724-3765-4b76-a10b-2c0ce8c02685_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_d46e99c9-c874-4f11-bfff-51ed7814cfac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_73303724-3765-4b76-a10b-2c0ce8c02685" xlink:to="loc_us-gaap_CreditFacilityDomain_d46e99c9-c874-4f11-bfff-51ed7814cfac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_c437dc4b-ad16-4424-8a02-45701cba9dcc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_d46e99c9-c874-4f11-bfff-51ed7814cfac" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_c437dc4b-ad16-4424-8a02-45701cba9dcc" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DEBTSeniorNotesandDebtRedemptionDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DEBTSeniorNotesandDebtRedemptionDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DEBTSeniorNotesandDebtRedemptionDetails" xlink:type="extended" id="ibd3e88fb7bba4b07bfe08b16d44d0258_DEBTSeniorNotesandDebtRedemptionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_2a8d024e-f63d-49cd-8a6e-e46b2c1bdeb1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_2a8d024e-f63d-49cd-8a6e-e46b2c1bdeb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_a59c64d7-6673-4b85-a3f9-3e871d4d0100" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_a59c64d7-6673-4b85-a3f9-3e871d4d0100" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_e979bd23-d318-4434-8f5a-4bce0130da1b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_e979bd23-d318-4434-8f5a-4bce0130da1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_799d7f8b-168c-4a99-a700-d5118736e953" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_799d7f8b-168c-4a99-a700-d5118736e953" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f003924a-5f38-4a81-b464-6b415fa4cd30" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f003924a-5f38-4a81-b464-6b415fa4cd30" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_b2d0402d-f6b3-4ceb-b0ec-430c2f989bb8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_b2d0402d-f6b3-4ceb-b0ec-430c2f989bb8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_7363c82c-868c-4131-9242-1a8eb84ef07f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentFairValue_7363c82c-868c-4131-9242-1a8eb84ef07f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_64517cc4-19a8-4b2b-b75b-c3400916f32c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_878083f5-d3a6-4f1e-bf44-9f1e4e2ade64" xlink:to="loc_us-gaap_DebtInstrumentTable_64517cc4-19a8-4b2b-b75b-c3400916f32c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_5885d78b-bf94-4738-85c3-beda2cfe4132" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_64517cc4-19a8-4b2b-b75b-c3400916f32c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_5885d78b-bf94-4738-85c3-beda2cfe4132" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5885d78b-bf94-4738-85c3-beda2cfe4132_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5885d78b-bf94-4738-85c3-beda2cfe4132" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5885d78b-bf94-4738-85c3-beda2cfe4132_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_32f4d929-2218-4773-adc4-a594ebb031b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5885d78b-bf94-4738-85c3-beda2cfe4132" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_32f4d929-2218-4773-adc4-a594ebb031b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotesMember_adb8cee8-805f-4151-9519-3e93eeff218c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_32f4d929-2218-4773-adc4-a594ebb031b1" xlink:to="loc_us-gaap_SeniorNotesMember_adb8cee8-805f-4151-9519-3e93eeff218c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_bf01d821-abc4-4803-a60b-3c4170525bec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_64517cc4-19a8-4b2b-b75b-c3400916f32c" xlink:to="loc_us-gaap_DebtInstrumentAxis_bf01d821-abc4-4803-a60b-3c4170525bec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bf01d821-abc4-4803-a60b-3c4170525bec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_bf01d821-abc4-4803-a60b-3c4170525bec" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bf01d821-abc4-4803-a60b-3c4170525bec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_bf01d821-abc4-4803-a60b-3c4170525bec" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_A2022SeniorNotesMember_e2b14161-fb5a-44d8-9402-9e7883c7c964" xlink:href="klac-20220930.xsd#klac_A2022SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_A2022SeniorNotesMember_e2b14161-fb5a-44d8-9402-9e7883c7c964" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152032Member_99f89b54-5d00-401d-8e9a-2e47f159370a" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152032Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_SeniorNotesDueJuly152032Member_99f89b54-5d00-401d-8e9a-2e47f159370a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152052Member_c719a776-7337-4d19-bbe2-0060ade71342" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152052Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_SeniorNotesDueJuly152052Member_c719a776-7337-4d19-bbe2-0060ade71342" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueJuly152062Member_d2081b6d-31ec-4d88-b35e-69d660d6161c" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueJuly152062Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_SeniorNotesDueJuly152062Member_d2081b6d-31ec-4d88-b35e-69d660d6161c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_A2020SeniorNotesMember_eba82644-c04e-4215-b408-5cb95929fe96" xlink:href="klac-20220930.xsd#klac_A2020SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_A2020SeniorNotesMember_eba82644-c04e-4215-b408-5cb95929fe96" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_A2019SeniorNotesMember_66cb0163-e5db-4feb-8fd3-acb9957c1788" xlink:href="klac-20220930.xsd#klac_A2019SeniorNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_A2019SeniorNotesMember_66cb0163-e5db-4feb-8fd3-acb9957c1788" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorNotesDueNovember12024Member_ff1cc6fc-8611-449d-b009-63b723524904" xlink:href="klac-20220930.xsd#klac_SeniorNotesDueNovember12024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_88568791-c187-4a93-9f59-20a681bbc6f6" xlink:to="loc_klac_SeniorNotesDueNovember12024Member_ff1cc6fc-8611-449d-b009-63b723524904" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_3ba6e95d-345d-4c4d-8610-6d52ba0643da" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_64517cc4-19a8-4b2b-b75b-c3400916f32c" xlink:to="loc_us-gaap_CreditFacilityAxis_3ba6e95d-345d-4c4d-8610-6d52ba0643da" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_3ba6e95d-345d-4c4d-8610-6d52ba0643da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_3ba6e95d-345d-4c4d-8610-6d52ba0643da" xlink:to="loc_us-gaap_CreditFacilityDomain_3ba6e95d-345d-4c4d-8610-6d52ba0643da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_748bfb1a-5104-4979-b23b-5ba843129cdd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_3ba6e95d-345d-4c4d-8610-6d52ba0643da" xlink:to="loc_us-gaap_CreditFacilityDomain_748bfb1a-5104-4979-b23b-5ba843129cdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_fb16dd54-621d-4200-bc71-c7672314c42f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_748bfb1a-5104-4979-b23b-5ba843129cdd" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_fb16dd54-621d-4200-bc71-c7672314c42f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DEBTRevolvingCreditFacilityDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DEBTRevolvingCreditFacilityDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DEBTRevolvingCreditFacilityDetails" xlink:type="extended" id="i91d92920962e42adaf72206e598c526e_DEBTRevolvingCreditFacilityDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_13890807-8575-4afa-9de4-1d31d08b9774" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_13890807-8575-4afa-9de4-1d31d08b9774" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_e40b6417-3662-4284-8d71-3c4051748a0e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_DebtInstrumentTerm_e40b6417-3662-4284-8d71-3c4051748a0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LineOfCreditFacilityAccordionFeatureIncreaseLimit_dbcd87c8-a8e3-43e0-b53f-9a3dfe1414ff" xlink:href="klac-20220930.xsd#klac_LineOfCreditFacilityAccordionFeatureIncreaseLimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_LineOfCreditFacilityAccordionFeatureIncreaseLimit_dbcd87c8-a8e3-43e0-b53f-9a3dfe1414ff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_09a7a991-3c19-4987-8a7b-22c7fe07acbf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromLongTermLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_ProceedsFromLongTermLinesOfCredit_09a7a991-3c19-4987-8a7b-22c7fe07acbf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_c5d3a786-7df9-4c89-a9bd-16fdad28e2ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_c5d3a786-7df9-4c89-a9bd-16fdad28e2ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_1f6a9b60-2172-4e78-b6bc-e3363e47a979" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_1f6a9b60-2172-4e78-b6bc-e3363e47a979" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtInstrumentNumberOfExtensionOptions_2aad86d3-bee1-4b24-a19b-2ddb3794f397" xlink:href="klac-20220930.xsd#klac_DebtInstrumentNumberOfExtensionOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_DebtInstrumentNumberOfExtensionOptions_2aad86d3-bee1-4b24-a19b-2ddb3794f397" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtInstrumentExtensionPeriod_c7d518a9-a1a7-45f1-af77-2a2e894f1c66" xlink:href="klac-20220930.xsd#klac_DebtInstrumentExtensionPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_DebtInstrumentExtensionPeriod_c7d518a9-a1a7-45f1-af77-2a2e894f1c66" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_68601978-6756-45b7-b213-0a8217543012" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_68601978-6756-45b7-b213-0a8217543012" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_0e674810-d02c-4c0d-864c-7a7af0bbaad4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_0e674810-d02c-4c0d-864c-7a7af0bbaad4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtInstrumentCovenantComplianceNumberofConsecutiveQuarters_42073079-f999-4e8d-aa3d-95f4c7c5ff69" xlink:href="klac-20220930.xsd#klac_DebtInstrumentCovenantComplianceNumberofConsecutiveQuarters"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_DebtInstrumentCovenantComplianceNumberofConsecutiveQuarters_42073079-f999-4e8d-aa3d-95f4c7c5ff69" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtInstrumentCovenantComplianceMaximumLeverageRatio_05bbf42e-24ea-4569-bd6e-41f3d6609781" xlink:href="klac-20220930.xsd#klac_DebtInstrumentCovenantComplianceMaximumLeverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_DebtInstrumentCovenantComplianceMaximumLeverageRatio_05bbf42e-24ea-4569-bd6e-41f3d6609781" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DebtInstrumentCovenantComplianceMaximumLeverageRatioUnderAMaterialAcquisitionOrSeriesOfMaterialAcquisitions_635ee406-865f-48bb-9805-339c1faa4f7d" xlink:href="klac-20220930.xsd#klac_DebtInstrumentCovenantComplianceMaximumLeverageRatioUnderAMaterialAcquisitionOrSeriesOfMaterialAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_klac_DebtInstrumentCovenantComplianceMaximumLeverageRatioUnderAMaterialAcquisitionOrSeriesOfMaterialAcquisitions_635ee406-865f-48bb-9805-339c1faa4f7d" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e42a09ab-1347-4350-87c8-e2a62586656a" xlink:to="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_730db983-93a9-46b1-b1de-8b728cb32e21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_730db983-93a9-46b1-b1de-8b728cb32e21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_730db983-93a9-46b1-b1de-8b728cb32e21_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_730db983-93a9-46b1-b1de-8b728cb32e21" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_730db983-93a9-46b1-b1de-8b728cb32e21_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_53b231e3-2b21-469e-8e40-553e1e7dfa5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_730db983-93a9-46b1-b1de-8b728cb32e21" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_53b231e3-2b21-469e-8e40-553e1e7dfa5e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_4e3bbc47-6f20-465c-8b80-e740009331ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_53b231e3-2b21-469e-8e40-553e1e7dfa5e" xlink:to="loc_us-gaap_LineOfCreditMember_4e3bbc47-6f20-465c-8b80-e740009331ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_4189fe83-06c1-4dae-b192-7a5e80017c7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:to="loc_us-gaap_CreditFacilityAxis_4189fe83-06c1-4dae-b192-7a5e80017c7b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_4189fe83-06c1-4dae-b192-7a5e80017c7b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_4189fe83-06c1-4dae-b192-7a5e80017c7b" xlink:to="loc_us-gaap_CreditFacilityDomain_4189fe83-06c1-4dae-b192-7a5e80017c7b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_fed55532-e78f-40e5-8aa0-08a3ccad92ed" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_4189fe83-06c1-4dae-b192-7a5e80017c7b" xlink:to="loc_us-gaap_CreditFacilityDomain_fed55532-e78f-40e5-8aa0-08a3ccad92ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_8fac94a5-6f13-4ed6-a37a-edba35647b6f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_fed55532-e78f-40e5-8aa0-08a3ccad92ed" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_8fac94a5-6f13-4ed6-a37a-edba35647b6f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_76af7588-b9c2-485c-8e13-953940d22d28" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:to="loc_us-gaap_VariableRateAxis_76af7588-b9c2-485c-8e13-953940d22d28" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_76af7588-b9c2-485c-8e13-953940d22d28_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_76af7588-b9c2-485c-8e13-953940d22d28" xlink:to="loc_us-gaap_VariableRateDomain_76af7588-b9c2-485c-8e13-953940d22d28_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_ab2eebaf-5841-4bf1-a5db-788dc0fcfc01" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_76af7588-b9c2-485c-8e13-953940d22d28" xlink:to="loc_us-gaap_VariableRateDomain_ab2eebaf-5841-4bf1-a5db-788dc0fcfc01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_abf8ec29-054a-4cad-b3cd-163c34c2d88e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ab2eebaf-5841-4bf1-a5db-788dc0fcfc01" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_abf8ec29-054a-4cad-b3cd-163c34c2d88e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_AlternativeBaseRateMember_936b6a8f-88de-4ab1-8475-274bc25fa5d3" xlink:href="klac-20220930.xsd#klac_AlternativeBaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ab2eebaf-5841-4bf1-a5db-788dc0fcfc01" xlink:to="loc_klac_AlternativeBaseRateMember_936b6a8f-88de-4ab1-8475-274bc25fa5d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53eb2d4b-4410-4450-bc18-17172488881d" xlink:to="loc_srt_RangeAxis_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c" xlink:to="loc_srt_RangeMember_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6de2a826-adc9-4421-8522-22f65e5d61cd" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_32f3d2bc-db0d-4a12-93be-7aa85bc5dd7c" xlink:to="loc_srt_RangeMember_6de2a826-adc9-4421-8522-22f65e5d61cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_9d94e4bf-e8ab-4ab6-9099-52814b0ff85c" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6de2a826-adc9-4421-8522-22f65e5d61cd" xlink:to="loc_srt_MinimumMember_9d94e4bf-e8ab-4ab6-9099-52814b0ff85c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_5a43533e-9dca-4688-82d9-a65226b36078" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6de2a826-adc9-4421-8522-22f65e5d61cd" xlink:to="loc_srt_MaximumMember_5a43533e-9dca-4688-82d9-a65226b36078" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/LEASESAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#LEASESAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/LEASESAdditionalInformationDetails" xlink:type="extended" id="ibe589ab786fa45b79397e1d0e48a9530_LEASESAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LesseeOperatingLeaseRemainingTermOfContract_07730841-ff9b-46e1-8993-a12176958237" xlink:href="klac-20220930.xsd#klac_LesseeOperatingLeaseRemainingTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:to="loc_klac_LesseeOperatingLeaseRemainingTermOfContract_07730841-ff9b-46e1-8993-a12176958237" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseExpense_421f8a8f-d5b2-4932-964f-2af69e95da24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:to="loc_us-gaap_OperatingLeaseExpense_421f8a8f-d5b2-4932-964f-2af69e95da24" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_fcc7c60f-fc9f-439c-b51b-1aad0c16af19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_fcc7c60f-fc9f-439c-b51b-1aad0c16af19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_41d98493-999f-4134-b927-bbaea8f89a72" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_41d98493-999f-4134-b927-bbaea8f89a72" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_c84a5ffd-5764-4685-bb7b-2c412922cf62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_0cf5741f-46ae-4763-b9dc-9e3318218a1e" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_c84a5ffd-5764-4685-bb7b-2c412922cf62" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_40f8614a-3501-4a03-95aa-c0a056ba01cf" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_c84a5ffd-5764-4685-bb7b-2c412922cf62" xlink:to="loc_srt_RangeAxis_40f8614a-3501-4a03-95aa-c0a056ba01cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_40f8614a-3501-4a03-95aa-c0a056ba01cf_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_40f8614a-3501-4a03-95aa-c0a056ba01cf" xlink:to="loc_srt_RangeMember_40f8614a-3501-4a03-95aa-c0a056ba01cf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_22ceee81-6932-4376-a0b6-5f68fe691819" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_40f8614a-3501-4a03-95aa-c0a056ba01cf" xlink:to="loc_srt_RangeMember_22ceee81-6932-4376-a0b6-5f68fe691819" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_135c7879-48ea-48a5-9478-4f5d5066db90" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_22ceee81-6932-4376-a0b6-5f68fe691819" xlink:to="loc_srt_MinimumMember_135c7879-48ea-48a5-9478-4f5d5066db90" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d96c4ccd-3133-4bd5-9995-373d7e3357ca" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_22ceee81-6932-4376-a0b6-5f68fe691819" xlink:to="loc_srt_MaximumMember_d96c4ccd-3133-4bd5-9995-373d7e3357ca" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentiveProgramandAssumedEquityPlansDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentiveProgramandAssumedEquityPlansDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentiveProgramandAssumedEquityPlansDetails" xlink:type="extended" id="id3014b8b627c4d949e18eb018c847bc9_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentiveProgramandAssumedEquityPlansDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7dff9d5e-56b5-43a0-b87e-54c0e42e1718" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_9e4b0a61-8be9-4cb4-acd2-619b1dc8752a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7dff9d5e-56b5-43a0-b87e-54c0e42e1718" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_9e4b0a61-8be9-4cb4-acd2-619b1dc8752a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9fbaa940-2f1e-4cd2-a972-979341d86e96" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7dff9d5e-56b5-43a0-b87e-54c0e42e1718" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9fbaa940-2f1e-4cd2-a972-979341d86e96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_0e81d551-c540-40b0-9637-ef1833576ede" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_9fbaa940-2f1e-4cd2-a972-979341d86e96" xlink:to="loc_us-gaap_PlanNameAxis_0e81d551-c540-40b0-9637-ef1833576ede" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_0e81d551-c540-40b0-9637-ef1833576ede_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_0e81d551-c540-40b0-9637-ef1833576ede" xlink:to="loc_us-gaap_PlanNameDomain_0e81d551-c540-40b0-9637-ef1833576ede_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_0b0bf4af-ac24-4be4-b956-bf161e33bb19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_0e81d551-c540-40b0-9637-ef1833576ede" xlink:to="loc_us-gaap_PlanNameDomain_0b0bf4af-ac24-4be4-b956-bf161e33bb19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TwoThousandFourPlanMember_283470ea-15e1-4b4c-be2e-a94752df174d" xlink:href="klac-20220930.xsd#klac_TwoThousandFourPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_0b0bf4af-ac24-4be4-b956-bf161e33bb19" xlink:to="loc_klac_TwoThousandFourPlanMember_283470ea-15e1-4b4c-be2e-a94752df174d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_AssumedEquityPlansMember_3a357e3d-eb53-4d4c-94c9-54cd24cb029f" xlink:href="klac-20220930.xsd#klac_AssumedEquityPlansMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_0b0bf4af-ac24-4be4-b956-bf161e33bb19" xlink:to="loc_klac_AssumedEquityPlansMember_3a357e3d-eb53-4d4c-94c9-54cd24cb029f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentivePlansGeneralInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentivePlansGeneralInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentivePlansGeneralInformationDetails" xlink:type="extended" id="i8b3dc2dc3a2c46059ad6ad2f5889e4fc_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEquityIncentivePlansGeneralInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3eb6bee5-1d6a-4916-a628-62d9b3dde694" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward_de3e80a3-b1c1-42b9-abda-b6ac302dcc4b" xlink:href="klac-20220930.xsd#klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3eb6bee5-1d6a-4916-a628-62d9b3dde694" xlink:to="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward_de3e80a3-b1c1-42b9-abda-b6ac302dcc4b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_9185fd6e-9276-4b34-82cb-704037d1541e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward_de3e80a3-b1c1-42b9-abda-b6ac302dcc4b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_9185fd6e-9276-4b34-82cb-704037d1541e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8130edc0-e092-4aeb-9bc4-8d1f20638125" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward_de3e80a3-b1c1-42b9-abda-b6ac302dcc4b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8130edc0-e092-4aeb-9bc4-8d1f20638125" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_aff5e670-f7ca-43ca-8837-1dd09f91587f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAvailableForGrantRollForward_de3e80a3-b1c1-42b9-abda-b6ac302dcc4b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_aff5e670-f7ca-43ca-8837-1dd09f91587f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_d31ad607-dce9-4f80-8721-e677d3c9f3d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ImpactOnShareReserveMultiplier_13d2eea9-8715-40e7-a571-65ff84d16c0e" xlink:href="klac-20220930.xsd#klac_ImpactOnShareReserveMultiplier"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3eb6bee5-1d6a-4916-a628-62d9b3dde694" xlink:to="loc_klac_ImpactOnShareReserveMultiplier_13d2eea9-8715-40e7-a571-65ff84d16c0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_ec4238b0-4068-4242-80ed-5c2dcb6b4943" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_508c6968-6b80-4411-92d1-f33d0a72c2e0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3eb6bee5-1d6a-4916-a628-62d9b3dde694" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_508c6968-6b80-4411-92d1-f33d0a72c2e0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_a20f91cb-72e7-4201-98e7-164c72bafe10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_508c6968-6b80-4411-92d1-f33d0a72c2e0" xlink:to="loc_us-gaap_PlanNameAxis_a20f91cb-72e7-4201-98e7-164c72bafe10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_a20f91cb-72e7-4201-98e7-164c72bafe10_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_a20f91cb-72e7-4201-98e7-164c72bafe10" xlink:to="loc_us-gaap_PlanNameDomain_a20f91cb-72e7-4201-98e7-164c72bafe10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_2ec21e0a-6728-4327-b0ee-242de0dd1eaf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_a20f91cb-72e7-4201-98e7-164c72bafe10" xlink:to="loc_us-gaap_PlanNameDomain_2ec21e0a-6728-4327-b0ee-242de0dd1eaf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TwoThousandFourPlanMember_fe8ec47b-c415-45f2-9e0d-1525b89fcca3" xlink:href="klac-20220930.xsd#klac_TwoThousandFourPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_2ec21e0a-6728-4327-b0ee-242de0dd1eaf" xlink:to="loc_klac_TwoThousandFourPlanMember_fe8ec47b-c415-45f2-9e0d-1525b89fcca3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_e569de58-3837-445a-b968-5025135a8ede" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_508c6968-6b80-4411-92d1-f33d0a72c2e0" xlink:to="loc_us-gaap_AwardTypeAxis_e569de58-3837-445a-b968-5025135a8ede" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e569de58-3837-445a-b968-5025135a8ede_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_e569de58-3837-445a-b968-5025135a8ede" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e569de58-3837-445a-b968-5025135a8ede_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_aa94d359-c331-4e7d-821d-60fa254392b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_e569de58-3837-445a-b968-5025135a8ede" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_aa94d359-c331-4e7d-821d-60fa254392b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_ef852aab-7165-454d-9550-bd0fd991b901" xlink:href="klac-20220930.xsd#klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_aa94d359-c331-4e7d-821d-60fa254392b5" xlink:to="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_ef852aab-7165-454d-9550-bd0fd991b901" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_508c6968-6b80-4411-92d1-f33d0a72c2e0" xlink:to="loc_srt_TitleOfIndividualAxis_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_39075472-1f3f-41b0-8516-17d1c220ea75" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_dbe24f81-f4fe-4cd5-8521-b9a1f487c6b0" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_39075472-1f3f-41b0-8516-17d1c220ea75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SeniorManagementMember_030202a5-d718-4ef8-a191-c5864af4e28a" xlink:href="klac-20220930.xsd#klac_SeniorManagementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_39075472-1f3f-41b0-8516-17d1c220ea75" xlink:to="loc_klac_SeniorManagementMember_030202a5-d718-4ef8-a191-c5864af4e28a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTSharebasedCompensationExpenseDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTSharebasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTSharebasedCompensationExpenseDetails" xlink:type="extended" id="i107bc4f572dd4da9a0c35f250b2c7201_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTSharebasedCompensationExpenseDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_13617089-bfb7-4c1b-b26d-f2fef1f0c5a2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_54475a32-c102-4eb6-9da1-614f642333a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_13617089-bfb7-4c1b-b26d-f2fef1f0c5a2" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_54475a32-c102-4eb6-9da1-614f642333a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_StockBasedCompensationCapitalizedAsInventory_f77e7211-220d-43ef-90d4-081bc0537839" xlink:href="klac-20220930.xsd#klac_StockBasedCompensationCapitalizedAsInventory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_13617089-bfb7-4c1b-b26d-f2fef1f0c5a2" xlink:to="loc_klac_StockBasedCompensationCapitalizedAsInventory_f77e7211-220d-43ef-90d4-081bc0537839" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_d3a7c00b-4e17-4e69-baae-558c21cb719d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_13617089-bfb7-4c1b-b26d-f2fef1f0c5a2" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_d3a7c00b-4e17-4e69-baae-558c21cb719d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_b3240775-7324-4767-af08-fb9dc639b7f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_d3a7c00b-4e17-4e69-baae-558c21cb719d" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_b3240775-7324-4767-af08-fb9dc639b7f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b3240775-7324-4767-af08-fb9dc639b7f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b3240775-7324-4767-af08-fb9dc639b7f9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b3240775-7324-4767-af08-fb9dc639b7f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_65831219-37e1-4d24-99eb-b5ae994511ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b3240775-7324-4767-af08-fb9dc639b7f9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_65831219-37e1-4d24-99eb-b5ae994511ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_87da5fd9-f8d1-4e8c-8141-e21cb7d80df9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_65831219-37e1-4d24-99eb-b5ae994511ba" xlink:to="loc_us-gaap_CostOfSalesMember_87da5fd9-f8d1-4e8c-8141-e21cb7d80df9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_a857bb6f-c834-4dff-84fc-5064952fd788" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_65831219-37e1-4d24-99eb-b5ae994511ba" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_a857bb6f-c834-4dff-84fc-5064952fd788" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_98d175d4-a02f-4158-82d3-184c5638d7f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_65831219-37e1-4d24-99eb-b5ae994511ba" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_98d175d4-a02f-4158-82d3-184c5638d7f0" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTRestrictedStockUnitActivitiesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTRestrictedStockUnitActivitiesDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTRestrictedStockUnitActivitiesDetails" xlink:type="extended" id="ie8871cb1a0ad4d8b8de742a137dac724_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTRestrictedStockUnitActivitiesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_809cd3cc-1598-4cfd-88f7-7f91e70de7f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_809cd3cc-1598-4cfd-88f7-7f91e70de7f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_74d7fd20-83f1-436d-9f0b-69d109624151" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_74d7fd20-83f1-436d-9f0b-69d109624151" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_d79777bf-7be2-4f9b-b462-356ff15faea8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_d79777bf-7be2-4f9b-b462-356ff15faea8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWithheldForTaxes_ccc06593-95f8-4adb-8457-548c79cb721f" xlink:href="klac-20220930.xsd#klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWithheldForTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:to="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsWithheldForTaxes_ccc06593-95f8-4adb-8457-548c79cb721f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_b2fb104c-7154-433b-8523-acde8d776986" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_2c62bbba-b7b6-46a8-998c-6875a5838afd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_b2fb104c-7154-433b-8523-acde8d776986" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_e91a245c-4324-4f9d-918f-7d20580c4512" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_71af5c9d-1f4f-46d1-a9e9-5f83d12e8955" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_71af5c9d-1f4f-46d1-a9e9-5f83d12e8955" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_84c75096-d93d-499f-a496-1ab01d352e3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_84c75096-d93d-499f-a496-1ab01d352e3c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_3b52b91b-6bad-4623-b236-be5dfbd56cb6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_3b52b91b-6bad-4623-b236-be5dfbd56cb6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsTradedForTaxesPeriodWeightedAverageGrantDateFairValue_57075c31-5608-4aa7-af19-965ad20ae15c" xlink:href="klac-20220930.xsd#klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsTradedForTaxesPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:to="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentOtherThanOptionsTradedForTaxesPeriodWeightedAverageGrantDateFairValue_57075c31-5608-4aa7-af19-965ad20ae15c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_4ea76f5a-78cd-485b-85f2-9838d5c14818" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_9aea4a49-47d1-4291-bc23-cb41fc396bcf" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_4ea76f5a-78cd-485b-85f2-9838d5c14818" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_a44f4709-0881-499e-bdda-85b92f29aea7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_69686bcc-1496-4600-981d-eec2db92c771" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_69686bcc-1496-4600-981d-eec2db92c771" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_858dfd9b-5708-4558-a369-a79d15a31ec2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_858dfd9b-5708-4558-a369-a79d15a31ec2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfEqualVestingInstallments_14d15d1d-48f5-4d19-b204-36acfea3f8b9" xlink:href="klac-20220930.xsd#klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfEqualVestingInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_klac_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfEqualVestingInstallments_14d15d1d-48f5-4d19-b204-36acfea3f8b9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_80fff344-fa3e-41e6-9689-e5ab577af065" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_80fff344-fa3e-41e6-9689-e5ab577af065" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_d1642dde-d31e-4118-846b-ab07a11f1a84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_d1642dde-d31e-4118-846b-ab07a11f1a84" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding_5226aece-bedb-44b9-ad6e-6a8ed8511722" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggregateIntrinsicValueOutstanding_5226aece-bedb-44b9-ad6e-6a8ed8511722" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_425b6fb8-5fd1-4369-83e5-30c8b0a7e2f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2b9053e-6286-431f-9679-794b518d15ca" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_425b6fb8-5fd1-4369-83e5-30c8b0a7e2f7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_ed96ebee-11ee-4762-ba6a-38c9e5ec147b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_425b6fb8-5fd1-4369-83e5-30c8b0a7e2f7" xlink:to="loc_us-gaap_PlanNameAxis_ed96ebee-11ee-4762-ba6a-38c9e5ec147b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_ed96ebee-11ee-4762-ba6a-38c9e5ec147b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_ed96ebee-11ee-4762-ba6a-38c9e5ec147b" xlink:to="loc_us-gaap_PlanNameDomain_ed96ebee-11ee-4762-ba6a-38c9e5ec147b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_7408f69a-2ff9-4487-9ca2-b334b04e36dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_ed96ebee-11ee-4762-ba6a-38c9e5ec147b" xlink:to="loc_us-gaap_PlanNameDomain_7408f69a-2ff9-4487-9ca2-b334b04e36dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TwoThousandFourPlanMember_85c3fb3f-de4d-43f4-93ce-240aa158fbf1" xlink:href="klac-20220930.xsd#klac_TwoThousandFourPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_7408f69a-2ff9-4487-9ca2-b334b04e36dc" xlink:to="loc_klac_TwoThousandFourPlanMember_85c3fb3f-de4d-43f4-93ce-240aa158fbf1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_75ca59f5-625b-4f77-8a22-7409317fa61e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_425b6fb8-5fd1-4369-83e5-30c8b0a7e2f7" xlink:to="loc_us-gaap_AwardTypeAxis_75ca59f5-625b-4f77-8a22-7409317fa61e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_75ca59f5-625b-4f77-8a22-7409317fa61e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_75ca59f5-625b-4f77-8a22-7409317fa61e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_75ca59f5-625b-4f77-8a22-7409317fa61e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_75ca59f5-625b-4f77-8a22-7409317fa61e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_f13597ed-e350-49b2-8782-4c5802b872aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_f13597ed-e350-49b2-8782-4c5802b872aa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_f99d6eff-a542-496d-97b7-58d94c6894bc" xlink:href="klac-20220930.xsd#klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:to="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_f99d6eff-a542-496d-97b7-58d94c6894bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestrictedStockUnitServiceBasedMember_83dd281f-fa6a-4d3d-92e4-bee350ce18d9" xlink:href="klac-20220930.xsd#klac_RestrictedStockUnitServiceBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:to="loc_klac_RestrictedStockUnitServiceBasedMember_83dd281f-fa6a-4d3d-92e4-bee350ce18d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestrictedStockUnitMarketBasedAndServiceBasedMember_ead316f7-4b1d-486a-902a-a6ca1673de69" xlink:href="klac-20220930.xsd#klac_RestrictedStockUnitMarketBasedAndServiceBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ace20528-53dd-4d9f-bd7c-1fc2f8340f15" xlink:to="loc_klac_RestrictedStockUnitMarketBasedAndServiceBasedMember_ead316f7-4b1d-486a-902a-a6ca1673de69" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e4a55620-80ed-4755-8754-3fee94dbc1b1" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_425b6fb8-5fd1-4369-83e5-30c8b0a7e2f7" xlink:to="loc_srt_RangeAxis_e4a55620-80ed-4755-8754-3fee94dbc1b1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e4a55620-80ed-4755-8754-3fee94dbc1b1_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e4a55620-80ed-4755-8754-3fee94dbc1b1" xlink:to="loc_srt_RangeMember_e4a55620-80ed-4755-8754-3fee94dbc1b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_5b2cf963-568c-4f58-ab3c-ca57e18e50e0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e4a55620-80ed-4755-8754-3fee94dbc1b1" xlink:to="loc_srt_RangeMember_5b2cf963-568c-4f58-ab3c-ca57e18e50e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_4a27fa78-0e8e-4cfc-b9b4-e69436c3dcf2" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5b2cf963-568c-4f58-ab3c-ca57e18e50e0" xlink:to="loc_srt_MinimumMember_4a27fa78-0e8e-4cfc-b9b4-e69436c3dcf2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_e57473d8-9139-4198-957a-a5971248d1d8" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5b2cf963-568c-4f58-ab3c-ca57e18e50e0" xlink:to="loc_srt_MaximumMember_e57473d8-9139-4198-957a-a5971248d1d8" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTWeightedAverageGrantDateFairValueDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTWeightedAverageGrantDateFairValueDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTWeightedAverageGrantDateFairValueDetails" xlink:type="extended" id="i06ecfccc0b614bd7890fe0003c4d26e9_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTWeightedAverageGrantDateFairValueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2713c5a-6ca6-44ee-9664-7b29598f31f4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_255670cd-3476-4a0c-a249-2c302d99fce5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2713c5a-6ca6-44ee-9664-7b29598f31f4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_255670cd-3476-4a0c-a249-2c302d99fce5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_01d95fc2-88ab-44e7-ad6f-f7c7a7a72402" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2713c5a-6ca6-44ee-9664-7b29598f31f4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue_01d95fc2-88ab-44e7-ad6f-f7c7a7a72402" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_cecbdc9e-bfcb-462e-a598-4dca8d6185d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2713c5a-6ca6-44ee-9664-7b29598f31f4" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_cecbdc9e-bfcb-462e-a598-4dca8d6185d5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_946a3e14-51f3-4a3b-846f-411b715dbb65" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f2713c5a-6ca6-44ee-9664-7b29598f31f4" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_946a3e14-51f3-4a3b-846f-411b715dbb65" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_8a680856-bb1d-4405-a1b9-c4a7d13927b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_946a3e14-51f3-4a3b-846f-411b715dbb65" xlink:to="loc_us-gaap_AwardTypeAxis_8a680856-bb1d-4405-a1b9-c4a7d13927b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8a680856-bb1d-4405-a1b9-c4a7d13927b1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8a680856-bb1d-4405-a1b9-c4a7d13927b1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8a680856-bb1d-4405-a1b9-c4a7d13927b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ff80fd51-1937-434e-8adf-0d516b321c47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8a680856-bb1d-4405-a1b9-c4a7d13927b1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ff80fd51-1937-434e-8adf-0d516b321c47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_3999e2dd-dba2-401e-a2a0-487d26bd7481" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_ff80fd51-1937-434e-8adf-0d516b321c47" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_3999e2dd-dba2-401e-a2a0-487d26bd7481" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTCashBasedLongTermIncentiveCompensationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTCashBasedLongTermIncentiveCompensationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTCashBasedLongTermIncentiveCompensationDetails" xlink:type="extended" id="ic5c7b49968204d6b9cca5598f6b67968_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTCashBasedLongTermIncentiveCompensationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LongTermIncentivePlanGrantedAmount_f67bece0-77fb-418a-97fb-cfba1b4e7aea" xlink:href="klac-20220930.xsd#klac_LongTermIncentivePlanGrantedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_klac_LongTermIncentivePlanGrantedAmount_f67bece0-77fb-418a-97fb-cfba1b4e7aea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashLongTermIncentivePlanEqualVestingInstallments_9407ef11-e3b2-4b2f-8618-e245628e3590" xlink:href="klac-20220930.xsd#klac_CashLongTermIncentivePlanEqualVestingInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_klac_CashLongTermIncentivePlanEqualVestingInstallments_9407ef11-e3b2-4b2f-8618-e245628e3590" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments_d7b081fb-782e-4456-b75b-162187cda89d" xlink:href="klac-20220930.xsd#klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments_d7b081fb-782e-4456-b75b-162187cda89d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DeferredCompensationArrangementWithIndividualVestingPeriod_01db44a7-d6da-4d4e-94f0-dfe9eed22bdb" xlink:href="klac-20220930.xsd#klac_DeferredCompensationArrangementWithIndividualVestingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_klac_DeferredCompensationArrangementWithIndividualVestingPeriod_01db44a7-d6da-4d4e-94f0-dfe9eed22bdb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_ec76e026-bbfa-4d1b-811c-120d69b3e2a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualCompensationExpense_ec76e026-bbfa-4d1b-811c-120d69b3e2a4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DeferredCompensationArrangementWithIndividualUnrecognizedCompensationLiability_d936ab35-9d5f-46fc-9236-a880b1a7ceb7" xlink:href="klac-20220930.xsd#klac_DeferredCompensationArrangementWithIndividualUnrecognizedCompensationLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_klac_DeferredCompensationArrangementWithIndividualUnrecognizedCompensationLiability_d936ab35-9d5f-46fc-9236-a880b1a7ceb7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_28ffb146-dfba-4b7e-ae1c-4a6455a4f3bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_aa44fbad-e9b7-4a90-b244-9db9a09dba23" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_28ffb146-dfba-4b7e-ae1c-4a6455a4f3bb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_aeaec496-d145-4072-a8d1-9aa5a46e3c83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_28ffb146-dfba-4b7e-ae1c-4a6455a4f3bb" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_aeaec496-d145-4072-a8d1-9aa5a46e3c83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_aeaec496-d145-4072-a8d1-9aa5a46e3c83_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_aeaec496-d145-4072-a8d1-9aa5a46e3c83" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_aeaec496-d145-4072-a8d1-9aa5a46e3c83_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_b43c8d3e-39a7-4977-b76a-91db9601c3f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_aeaec496-d145-4072-a8d1-9aa5a46e3c83" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_b43c8d3e-39a7-4977-b76a-91db9601c3f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashLongTermIncentivePlanMember_6d5f6ca4-b01f-4430-a132-c8b7cea675dd" xlink:href="klac-20220930.xsd#klac_CashLongTermIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_b43c8d3e-39a7-4977-b76a-91db9601c3f3" xlink:to="loc_klac_CashLongTermIncentivePlanMember_6d5f6ca4-b01f-4430-a132-c8b7cea675dd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_da37349e-82c7-487f-a51f-79a569d5ace4" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_28ffb146-dfba-4b7e-ae1c-4a6455a4f3bb" xlink:to="loc_srt_RangeAxis_da37349e-82c7-487f-a51f-79a569d5ace4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_da37349e-82c7-487f-a51f-79a569d5ace4_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_da37349e-82c7-487f-a51f-79a569d5ace4" xlink:to="loc_srt_RangeMember_da37349e-82c7-487f-a51f-79a569d5ace4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_877b89fb-8b82-4c47-956c-c23dc5f017ee" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_da37349e-82c7-487f-a51f-79a569d5ace4" xlink:to="loc_srt_RangeMember_877b89fb-8b82-4c47-956c-c23dc5f017ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d170542f-986d-49a7-9293-e4ab65a33a5d" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_877b89fb-8b82-4c47-956c-c23dc5f017ee" xlink:to="loc_srt_MinimumMember_d170542f-986d-49a7-9293-e4ab65a33a5d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_03f90989-a3df-43e6-8283-63c51ebb7634" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_877b89fb-8b82-4c47-956c-c23dc5f017ee" xlink:to="loc_srt_MaximumMember_03f90989-a3df-43e6-8283-63c51ebb7634" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEmployeeStockPurchasePlanDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEmployeeStockPurchasePlanDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEmployeeStockPurchasePlanDetails" xlink:type="extended" id="ia278b16627704d358d3c60ef0632b67d_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTEmployeeStockPurchasePlanDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_6e0c617a-097b-4cae-b62e-78ee1a28578e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_6e0c617a-097b-4cae-b62e-78ee1a28578e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EmployeeStockPurchasePlanOfferingPeriod_381d5c11-5c99-4844-9720-7d403d4e649f" xlink:href="klac-20220930.xsd#klac_EmployeeStockPurchasePlanOfferingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_klac_EmployeeStockPurchasePlanOfferingPeriod_381d5c11-5c99-4844-9720-7d403d4e649f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate_e7249bae-c7a2-4da5-b115-8ed3a8fe611b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate_e7249bae-c7a2-4da5-b115-8ed3a8fe611b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_f9f81f14-0ba9-455d-be8f-42df036ff335" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_f9f81f14-0ba9-455d-be8f-42df036ff335" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_04451d7e-c352-46b4-8bed-d62336b302c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_04451d7e-c352-46b4-8bed-d62336b302c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8ca11902-e430-40b9-b7e5-2e1e6dd50792" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8ca11902-e430-40b9-b7e5-2e1e6dd50792" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_81ecddd3-f3dd-417e-a75d-e4d3164045eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_80146a29-0262-475b-8f70-7f1049a9e90d" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_81ecddd3-f3dd-417e-a75d-e4d3164045eb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EmployeeStockPurchasePlanAdditionalInformationAbstract_12a37d71-079c-41f4-9bbc-dc7f5f79ecdc" xlink:href="klac-20220930.xsd#klac_EmployeeStockPurchasePlanAdditionalInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_klac_EmployeeStockPurchasePlanAdditionalInformationAbstract_12a37d71-079c-41f4-9bbc-dc7f5f79ecdc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward_d2a200b2-4976-4962-b291-bcd2285b9ad0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_EmployeeStockPurchasePlanAdditionalInformationAbstract_12a37d71-079c-41f4-9bbc-dc7f5f79ecdc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesPurchasedForAward_d2a200b2-4976-4962-b291-bcd2285b9ad0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_TaxBenefitsFromESPP_ad981b12-6c17-47aa-b8ee-59f725b37992" xlink:href="klac-20220930.xsd#klac_TaxBenefitsFromESPP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_EmployeeStockPurchasePlanAdditionalInformationAbstract_12a37d71-079c-41f4-9bbc-dc7f5f79ecdc" xlink:to="loc_klac_TaxBenefitsFromESPP_ad981b12-6c17-47aa-b8ee-59f725b37992" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_WeightedAverageFairValuePerShare_c381e3f9-cf26-45b7-9703-32bb286ea6bb" xlink:href="klac-20220930.xsd#klac_WeightedAverageFairValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klac_EmployeeStockPurchasePlanAdditionalInformationAbstract_12a37d71-079c-41f4-9bbc-dc7f5f79ecdc" xlink:to="loc_klac_WeightedAverageFairValuePerShare_c381e3f9-cf26-45b7-9703-32bb286ea6bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_ESPPMaximumAnnualShareReplenishment_6f81d233-6bdc-42a3-a393-9fe27e259168" xlink:href="klac-20220930.xsd#klac_ESPPMaximumAnnualShareReplenishment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_klac_ESPPMaximumAnnualShareReplenishment_6f81d233-6bdc-42a3-a393-9fe27e259168" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_8c2c6720-a134-40b6-a1fc-4e532aeb8c29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_8c2c6720-a134-40b6-a1fc-4e532aeb8c29" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7ed85b2e-9a76-48cb-a3fc-595226fef408" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3418211a-a1ed-4eb1-9e19-821c6180219b" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7ed85b2e-9a76-48cb-a3fc-595226fef408" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_79ea487d-43ac-49bd-a538-dbf212f318ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_7ed85b2e-9a76-48cb-a3fc-595226fef408" xlink:to="loc_us-gaap_AwardTypeAxis_79ea487d-43ac-49bd-a538-dbf212f318ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_79ea487d-43ac-49bd-a538-dbf212f318ba_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_79ea487d-43ac-49bd-a538-dbf212f318ba" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_79ea487d-43ac-49bd-a538-dbf212f318ba_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_29b3c2fb-6a89-4066-891c-b96e21259a79" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_79ea487d-43ac-49bd-a538-dbf212f318ba" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_29b3c2fb-6a89-4066-891c-b96e21259a79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_8d4a1e1d-0cd1-473c-b54c-2e8b5749d2cc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_29b3c2fb-6a89-4066-891c-b96e21259a79" xlink:to="loc_us-gaap_EmployeeStockMember_8d4a1e1d-0cd1-473c-b54c-2e8b5749d2cc" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTQuarterlyCashDividendsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTQuarterlyCashDividendsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTQuarterlyCashDividendsDetails" xlink:type="extended" id="ie53ca31ee6ac465ebfeb2b96da12b47d_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTQuarterlyCashDividendsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableLineItems_2d2db8d1-5f5c-4b90-b759-7d1f9b7f26b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPayableLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_6efe13d0-3eca-4ec6-8ef2-b351f6f384fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsPayableLineItems_2d2db8d1-5f5c-4b90-b759-7d1f9b7f26b5" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_6efe13d0-3eca-4ec6-8ef2-b351f6f384fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_454354b1-3cbe-4e08-aa2c-7d3d4da3958e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfDividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsPayableLineItems_2d2db8d1-5f5c-4b90-b759-7d1f9b7f26b5" xlink:to="loc_us-gaap_PaymentsOfDividends_454354b1-3cbe-4e08-aa2c-7d3d4da3958e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_e2cba281-341a-4fd0-b6c7-5ab483c25bd5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsPayableLineItems_2d2db8d1-5f5c-4b90-b759-7d1f9b7f26b5" xlink:to="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_e2cba281-341a-4fd0-b6c7-5ab483c25bd5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableTable_871c6d05-9f83-4397-90e0-1e62e0818bc1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DividendsPayableTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DividendsPayableLineItems_2d2db8d1-5f5c-4b90-b759-7d1f9b7f26b5" xlink:to="loc_us-gaap_DividendsPayableTable_871c6d05-9f83-4397-90e0-1e62e0818bc1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_075050fb-067d-4406-9bfd-844acd15077b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DividendsPayableTable_871c6d05-9f83-4397-90e0-1e62e0818bc1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_075050fb-067d-4406-9bfd-844acd15077b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_075050fb-067d-4406-9bfd-844acd15077b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_075050fb-067d-4406-9bfd-844acd15077b" xlink:to="loc_us-gaap_EquityComponentDomain_075050fb-067d-4406-9bfd-844acd15077b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b52c39d7-6753-4f21-9425-4d470fcee110" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_075050fb-067d-4406-9bfd-844acd15077b" xlink:to="loc_us-gaap_EquityComponentDomain_b52c39d7-6753-4f21-9425-4d470fcee110" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_e27df204-9b14-4b83-9785-f068a27f93ff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b52c39d7-6753-4f21-9425-4d470fcee110" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_e27df204-9b14-4b83-9785-f068a27f93ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_322faeb2-58db-4d06-b929-d0e104419992" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DividendsPayableTable_871c6d05-9f83-4397-90e0-1e62e0818bc1" xlink:to="loc_us-gaap_AwardTypeAxis_322faeb2-58db-4d06-b929-d0e104419992" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_322faeb2-58db-4d06-b929-d0e104419992_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_322faeb2-58db-4d06-b929-d0e104419992" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_322faeb2-58db-4d06-b929-d0e104419992_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_252a4527-eb2e-4b76-95c8-be1a946b3f48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_322faeb2-58db-4d06-b929-d0e104419992" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_252a4527-eb2e-4b76-95c8-be1a946b3f48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_f138e609-1096-4e7b-ba3a-358b721bd692" xlink:href="klac-20220930.xsd#klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_252a4527-eb2e-4b76-95c8-be1a946b3f48" xlink:to="loc_klac_RestrictedStockUnitPerformanceBasedAndServiceBasedMember_f138e609-1096-4e7b-ba3a-358b721bd692" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTNonControllingInterestDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTNonControllingInterestDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTNonControllingInterestDetails" xlink:type="extended" id="icadd204c2f494d0b8b1d27e96bc33a80_EQUITYLONGTERMINCENTIVECOMPENSATIONPLANSANDNONCONTROLLINGINTERESTNonControllingInterestDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestLineItems_8e08ef40-24a0-4cdd-992c-14c3b7c082d1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterestLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_a7d35335-65d8-43d7-a6b5-59e94b25ee56" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_8e08ef40-24a0-4cdd-992c-14c3b7c082d1" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_a7d35335-65d8-43d7-a6b5-59e94b25ee56" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestTable_72dcda94-75df-4085-9a1c-3fcfa8b00955" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_MinorityInterestTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_8e08ef40-24a0-4cdd-992c-14c3b7c082d1" xlink:to="loc_us-gaap_MinorityInterestTable_72dcda94-75df-4085-9a1c-3fcfa8b00955" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_cde89db2-1d28-44cf-b5d7-78a163f41dd6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_72dcda94-75df-4085-9a1c-3fcfa8b00955" xlink:to="loc_srt_OwnershipAxis_cde89db2-1d28-44cf-b5d7-78a163f41dd6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_cde89db2-1d28-44cf-b5d7-78a163f41dd6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_cde89db2-1d28-44cf-b5d7-78a163f41dd6" xlink:to="loc_srt_OwnershipDomain_cde89db2-1d28-44cf-b5d7-78a163f41dd6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_0fd07dd6-ad6e-4327-899f-a2606eb76d27" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_cde89db2-1d28-44cf-b5d7-78a163f41dd6" xlink:to="loc_srt_OwnershipDomain_0fd07dd6-ad6e-4327-899f-a2606eb76d27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OrbographLtd.Member_29652093-f6e4-43b0-8a7d-c1461ac3048f" xlink:href="klac-20220930.xsd#klac_OrbographLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_0fd07dd6-ad6e-4327-899f-a2606eb76d27" xlink:to="loc_klac_OrbographLtd.Member_29652093-f6e4-43b0-8a7d-c1461ac3048f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAMSummaryofShareRepurchaseTransactionsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#STOCKREPURCHASEPROGRAMSummaryofShareRepurchaseTransactionsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/STOCKREPURCHASEPROGRAMSummaryofShareRepurchaseTransactionsDetails" xlink:type="extended" id="ic2966dcf37b84201b7785a67ab94b602_STOCKREPURCHASEPROGRAMSummaryofShareRepurchaseTransactionsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_5ea061e3-dd22-45eb-936f-e6f29bcd84b6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_e7d7567b-fe45-4fc6-b44b-8e90eb57ecd1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_5ea061e3-dd22-45eb-936f-e6f29bcd84b6" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_e7d7567b-fe45-4fc6-b44b-8e90eb57ecd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_0cfc7833-8455-42bb-bba5-6c69fb155592" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_5ea061e3-dd22-45eb-936f-e6f29bcd84b6" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_0cfc7833-8455-42bb-bba5-6c69fb155592" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_bb50d2c0-1f35-45dc-8039-63fb7e4555a3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_5ea061e3-dd22-45eb-936f-e6f29bcd84b6" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_bb50d2c0-1f35-45dc-8039-63fb7e4555a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_fa0ae788-adf9-4c2c-a5f8-f81557f73e60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_bb50d2c0-1f35-45dc-8039-63fb7e4555a3" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_fa0ae788-adf9-4c2c-a5f8-f81557f73e60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_fa0ae788-adf9-4c2c-a5f8-f81557f73e60_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_fa0ae788-adf9-4c2c-a5f8-f81557f73e60" xlink:to="loc_us-gaap_EquityComponentDomain_fa0ae788-adf9-4c2c-a5f8-f81557f73e60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_efc20cbf-6e13-49c5-b512-35b917836d61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_fa0ae788-adf9-4c2c-a5f8-f81557f73e60" xlink:to="loc_us-gaap_EquityComponentDomain_efc20cbf-6e13-49c5-b512-35b917836d61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_a4a07d19-5fc6-46cd-8264-92c4c898ef70" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_efc20cbf-6e13-49c5-b512-35b917836d61" xlink:to="loc_us-gaap_CommonStockMember_a4a07d19-5fc6-46cd-8264-92c4c898ef70" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/INCOMETAXESAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#INCOMETAXESAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/INCOMETAXESAdditionalInformationDetails" xlink:type="extended" id="idf46d2b464e14dfd8e0489c7a7285dea_INCOMETAXESAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationLineItems_fee94d5d-3d86-4cee-8f95-3fe0f0e3fd32" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExaminationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncomeTaxExaminationSettlementPaymentAmountIncludingInterest_053c8073-ac17-4525-babc-d9f44f69f4c3" xlink:href="klac-20220930.xsd#klac_IncomeTaxExaminationSettlementPaymentAmountIncludingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_fee94d5d-3d86-4cee-8f95-3fe0f0e3fd32" xlink:to="loc_klac_IncomeTaxExaminationSettlementPaymentAmountIncludingInterest_053c8073-ac17-4525-babc-d9f44f69f4c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_64f21940-3f88-40e8-b4b4-ece6f2a44aef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_fee94d5d-3d86-4cee-8f95-3fe0f0e3fd32" xlink:to="loc_us-gaap_IncomeTaxExaminationLiabilityRefundAdjustmentFromSettlementWithTaxingAuthority_64f21940-3f88-40e8-b4b4-ece6f2a44aef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_IncomeTaxExaminationCurrentYearElectionPaymentAmount_56475fb1-e826-4668-a910-2fd297342b8a" xlink:href="klac-20220930.xsd#klac_IncomeTaxExaminationCurrentYearElectionPaymentAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_fee94d5d-3d86-4cee-8f95-3fe0f0e3fd32" xlink:to="loc_klac_IncomeTaxExaminationCurrentYearElectionPaymentAmount_56475fb1-e826-4668-a910-2fd297342b8a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExaminationTable_75ab71ed-a5ec-468b-9240-ce0bc5094b23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxExaminationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxExaminationLineItems_fee94d5d-3d86-4cee-8f95-3fe0f0e3fd32" xlink:to="loc_us-gaap_IncomeTaxExaminationTable_75ab71ed-a5ec-468b-9240-ce0bc5094b23" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_520298fb-1b9c-42b4-b32f-83d2744a3112" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_75ab71ed-a5ec-468b-9240-ce0bc5094b23" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_520298fb-1b9c-42b4-b32f-83d2744a3112" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_520298fb-1b9c-42b4-b32f-83d2744a3112_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_520298fb-1b9c-42b4-b32f-83d2744a3112" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_520298fb-1b9c-42b4-b32f-83d2744a3112_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_f792233f-a9b3-4e32-b6a8-e501bc2d45d4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_520298fb-1b9c-42b4-b32f-83d2744a3112" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_f792233f-a9b3-4e32-b6a8-e501bc2d45d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCountryMember_c906a5df-83e3-456b-87af-6f1810ac5a03" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_f792233f-a9b3-4e32-b6a8-e501bc2d45d4" xlink:to="loc_us-gaap_ForeignCountryMember_c906a5df-83e3-456b-87af-6f1810ac5a03" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_89213694-1744-450a-aa62-57edae39e38e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_75ab71ed-a5ec-468b-9240-ce0bc5094b23" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_89213694-1744-450a-aa62-57edae39e38e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_89213694-1744-450a-aa62-57edae39e38e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_89213694-1744-450a-aa62-57edae39e38e" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_89213694-1744-450a-aa62-57edae39e38e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_3b2f452a-6caa-44bc-bac3-678dd7adaa77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeTaxAuthorityNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_89213694-1744-450a-aa62-57edae39e38e" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_3b2f452a-6caa-44bc-bac3-678dd7adaa77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IsraelTaxAuthorityMember_835563dd-7932-4a0d-a5f8-a0a60d08314a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IsraelTaxAuthorityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_3b2f452a-6caa-44bc-bac3-678dd7adaa77" xlink:to="loc_us-gaap_IsraelTaxAuthorityMember_835563dd-7932-4a0d-a5f8-a0a60d08314a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_258c02a2-8bf0-43c7-9fbc-4ca4d467632e" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxExaminationTable_75ab71ed-a5ec-468b-9240-ce0bc5094b23" xlink:to="loc_dei_LegalEntityAxis_258c02a2-8bf0-43c7-9fbc-4ca4d467632e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_258c02a2-8bf0-43c7-9fbc-4ca4d467632e_default" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_258c02a2-8bf0-43c7-9fbc-4ca4d467632e" xlink:to="loc_dei_EntityDomain_258c02a2-8bf0-43c7-9fbc-4ca4d467632e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_08f84d96-1352-4ff0-bda0-503a43ecbf87" xlink:href="https://xbrl.sec.gov/dei/2022/dei-2022.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_258c02a2-8bf0-43c7-9fbc-4ca4d467632e" xlink:to="loc_dei_EntityDomain_08f84d96-1352-4ff0-bda0-503a43ecbf87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OrbotechMember_b3b9e237-a349-44e4-a98b-528eaa6c7076" xlink:href="klac-20220930.xsd#klac_OrbotechMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_08f84d96-1352-4ff0-bda0-503a43ecbf87" xlink:to="loc_klac_OrbotechMember_b3b9e237-a349-44e4-a98b-528eaa6c7076" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIESDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#COMMITMENTSANDCONTINGENCIESDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/COMMITMENTSANDCONTINGENCIESDetails" xlink:type="extended" id="i6717b9a38db0440eacf1750fb792f261_COMMITMENTSANDCONTINGENCIESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseCommitmentRemainingMinimumAmountCommitted_13127bd2-01fd-4d22-956d-5f04733d7de4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PurchaseCommitmentRemainingMinimumAmountCommitted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_us-gaap_PurchaseCommitmentRemainingMinimumAmountCommitted_13127bd2-01fd-4d22-956d-5f04733d7de4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermPurchaseCommitmentPeriod_2de5a71f-9cff-449b-b48e-056e332f5200" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongtermPurchaseCommitmentPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_us-gaap_LongtermPurchaseCommitmentPeriod_2de5a71f-9cff-449b-b48e-056e332f5200" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LongTermIncentivePlanCommittedAmount_b4f27097-c767-4dc2-b81d-cda348791748" xlink:href="klac-20220930.xsd#klac_LongTermIncentivePlanCommittedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_LongTermIncentivePlanCommittedAmount_b4f27097-c767-4dc2-b81d-cda348791748" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashLongTermIncentivePlanEqualVestingInstallments_0eba0ab6-8d92-4c81-8841-0df7704dac70" xlink:href="klac-20220930.xsd#klac_CashLongTermIncentivePlanEqualVestingInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_CashLongTermIncentivePlanEqualVestingInstallments_0eba0ab6-8d92-4c81-8841-0df7704dac70" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments_3ca9f4cc-db09-4d8f-95d6-28d4e968412e" xlink:href="klac-20220930.xsd#klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_DeferredCompensationArrangementWithIndividualPercentageOfEqualVestingInstallments_3ca9f4cc-db09-4d8f-95d6-28d4e968412e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_DeferredCompensationArrangementWithIndividualVestingPeriod_42b93e23-8f04-4e7a-94d2-3592ee2e4b66" xlink:href="klac-20220930.xsd#klac_DeferredCompensationArrangementWithIndividualVestingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_DeferredCompensationArrangementWithIndividualVestingPeriod_42b93e23-8f04-4e7a-94d2-3592ee2e4b66" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmount_7442da1b-1307-4a5d-b8d5-128c9df50efc" xlink:href="klac-20220930.xsd#klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmount_7442da1b-1307-4a5d-b8d5-128c9df50efc" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmountIssued_c3276954-543e-44e4-92d4-665b8b87c269" xlink:href="klac-20220930.xsd#klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmountIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_klac_GuaranteeArrangementsToFundGuaranteesToCustomsAuthoritiesAmountIssued_c3276954-543e-44e4-92d4-665b8b87c269" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_a5a1e1ac-8e23-4ab9-8af6-f22f1ce26b7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsLineItems_4a8bb5de-6325-49ce-8c00-699ab9994f78" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_a5a1e1ac-8e23-4ab9-8af6-f22f1ce26b7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_8c57f8d9-21dd-493c-914b-1c067cee6919" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_a5a1e1ac-8e23-4ab9-8af6-f22f1ce26b7f" xlink:to="loc_srt_RangeAxis_8c57f8d9-21dd-493c-914b-1c067cee6919" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8c57f8d9-21dd-493c-914b-1c067cee6919_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_8c57f8d9-21dd-493c-914b-1c067cee6919" xlink:to="loc_srt_RangeMember_8c57f8d9-21dd-493c-914b-1c067cee6919_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7421ae46-c33d-45fa-bcd6-0cbcaec2b8ab" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_8c57f8d9-21dd-493c-914b-1c067cee6919" xlink:to="loc_srt_RangeMember_7421ae46-c33d-45fa-bcd6-0cbcaec2b8ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d967247f-94f1-44e0-91b5-cba775806abf" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7421ae46-c33d-45fa-bcd6-0cbcaec2b8ab" xlink:to="loc_srt_MinimumMember_d967247f-94f1-44e0-91b5-cba775806abf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_da450833-08ff-4fc7-9a26-48ccf5970e76" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7421ae46-c33d-45fa-bcd6-0cbcaec2b8ab" xlink:to="loc_srt_MaximumMember_da450833-08ff-4fc7-9a26-48ccf5970e76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_4b5277c5-3d37-4eb1-8726-010a1b15d680" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTitleOfIndividualAndByTypeOfDeferredCompensationTable_a5a1e1ac-8e23-4ab9-8af6-f22f1ce26b7f" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_4b5277c5-3d37-4eb1-8726-010a1b15d680" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_4b5277c5-3d37-4eb1-8726-010a1b15d680_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_4b5277c5-3d37-4eb1-8726-010a1b15d680" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_4b5277c5-3d37-4eb1-8726-010a1b15d680_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_ba0c6098-8d39-4bb3-ba3d-905b776c2b98" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualExcludingShareBasedPaymentsAndPostretirementBenefitsByTypeOfDeferredCompensationAxis_4b5277c5-3d37-4eb1-8726-010a1b15d680" xlink:to="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_ba0c6098-8d39-4bb3-ba3d-905b776c2b98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CashLongTermIncentivePlanMember_05f89282-6cce-4c3c-b828-6d570aaa849d" xlink:href="klac-20220930.xsd#klac_CashLongTermIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredBonusAndProfitSharingArrangementIndividualContractTypeOfDeferredCompensationDomain_ba0c6098-8d39-4bb3-ba3d-905b776c2b98" xlink:to="loc_klac_CashLongTermIncentivePlanMember_05f89282-6cce-4c3c-b828-6d570aaa849d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESAdditionalInformationDetails" xlink:type="extended" id="i86ffae49e8e94c6fa8511cab196dee41_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_ce9e2c7f-325b-45b1-ab2c-242e15f2a79b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:to="loc_us-gaap_DerivativeTermOfContract_ce9e2c7f-325b-45b1-ab2c-242e15f2a79b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_53e93a6c-45b6-402e-a6ce-2aa7976df74a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNumberOfInstrumentsHeld"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:to="loc_us-gaap_DerivativeNumberOfInstrumentsHeld_53e93a6c-45b6-402e-a6ce-2aa7976df74a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_1975aefb-1974-470c-854b-ab5a4cced824" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_1975aefb-1974-470c-854b-ab5a4cced824" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateCashFlowHedgeAssetAtFairValue_5842c4bc-754d-40c2-8894-cb0cc9e214a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateCashFlowHedgeAssetAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:to="loc_us-gaap_InterestRateCashFlowHedgeAssetAtFairValue_5842c4bc-754d-40c2-8894-cb0cc9e214a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_3149cfa2-6c7c-4c34-9757-fa50a133a158" xlink:to="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_88935b00-9278-4132-935e-68ec5ec2e18d" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:to="loc_srt_RangeAxis_88935b00-9278-4132-935e-68ec5ec2e18d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_88935b00-9278-4132-935e-68ec5ec2e18d_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_88935b00-9278-4132-935e-68ec5ec2e18d" xlink:to="loc_srt_RangeMember_88935b00-9278-4132-935e-68ec5ec2e18d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_b279b41d-71c8-4d07-95c7-b9672b187b97" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_88935b00-9278-4132-935e-68ec5ec2e18d" xlink:to="loc_srt_RangeMember_b279b41d-71c8-4d07-95c7-b9672b187b97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_1d2d41e5-5732-496c-93f5-8e9dab0910fa" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_b279b41d-71c8-4d07-95c7-b9672b187b97" xlink:to="loc_srt_MaximumMember_1d2d41e5-5732-496c-93f5-8e9dab0910fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_c11f8586-cf58-43a8-82f5-55a2ce7b371f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:to="loc_us-gaap_HedgingDesignationAxis_c11f8586-cf58-43a8-82f5-55a2ce7b371f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c11f8586-cf58-43a8-82f5-55a2ce7b371f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_c11f8586-cf58-43a8-82f5-55a2ce7b371f" xlink:to="loc_us-gaap_HedgingDesignationDomain_c11f8586-cf58-43a8-82f5-55a2ce7b371f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_9f5ae251-db9d-40ff-ba83-98586ca2928b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_c11f8586-cf58-43a8-82f5-55a2ce7b371f" xlink:to="loc_us-gaap_HedgingDesignationDomain_9f5ae251-db9d-40ff-ba83-98586ca2928b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_e1dfe317-6019-41e6-9fb0-3add23ab40f7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9f5ae251-db9d-40ff-ba83-98586ca2928b" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_e1dfe317-6019-41e6-9fb0-3add23ab40f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_5d497075-a9b3-43e1-b8d1-d0ea80ef2938" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_5d497075-a9b3-43e1-b8d1-d0ea80ef2938" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_5d497075-a9b3-43e1-b8d1-d0ea80ef2938_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_5d497075-a9b3-43e1-b8d1-d0ea80ef2938" xlink:to="loc_us-gaap_HedgingRelationshipDomain_5d497075-a9b3-43e1-b8d1-d0ea80ef2938_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_39436ecf-ed80-4ff8-bde6-9f83e66c87bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_5d497075-a9b3-43e1-b8d1-d0ea80ef2938" xlink:to="loc_us-gaap_HedgingRelationshipDomain_39436ecf-ed80-4ff8-bde6-9f83e66c87bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_fa3679a5-ffd8-47ac-b4a5-1221f01be931" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_39436ecf-ed80-4ff8-bde6-9f83e66c87bb" xlink:to="loc_us-gaap_CashFlowHedgingMember_fa3679a5-ffd8-47ac-b4a5-1221f01be931" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_7e53e5a6-b38c-4f76-b008-413e01884ce5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_87631b2a-8a6b-4018-8cc6-fc8a62890228" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_7e53e5a6-b38c-4f76-b008-413e01884ce5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7e53e5a6-b38c-4f76-b008-413e01884ce5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_7e53e5a6-b38c-4f76-b008-413e01884ce5" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7e53e5a6-b38c-4f76-b008-413e01884ce5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7e5367d7-a4a4-4d36-a4a4-816ead5dd788" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_7e53e5a6-b38c-4f76-b008-413e01884ce5" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7e5367d7-a4a4-4d36-a4a4-816ead5dd788" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryLockMember_924b522e-caed-427e-abdf-777fa4e3b6e3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryLockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7e5367d7-a4a4-4d36-a4a4-816ead5dd788" xlink:to="loc_us-gaap_TreasuryLockMember_924b522e-caed-427e-abdf-777fa4e3b6e3" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESGainsLossesonDerivativesinCashFlowHedgingRelationshipsRecognizedinOCIDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESGainsLossesonDerivativesinCashFlowHedgingRelationshipsRecognizedinOCIDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESGainsLossesonDerivativesinCashFlowHedgingRelationshipsRecognizedinOCIDetails" xlink:type="extended" id="i09dc27c8ed63430e9aa8916e22fa7f91_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESGainsLossesonDerivativesinCashFlowHedgingRelationshipsRecognizedinOCIDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_e1e23c6c-f08e-4743-85a7-1dc8a31c8ef0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_ddfe83cb-8494-451f-8890-e70e34079e6a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e1e23c6c-f08e-4743-85a7-1dc8a31c8ef0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_ddfe83cb-8494-451f-8890-e70e34079e6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseBeforeAdjustmentsAndTax_13d3f9dc-3892-4bbc-a72f-728b7ac45f61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseBeforeAdjustmentsAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e1e23c6c-f08e-4743-85a7-1dc8a31c8ef0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseBeforeAdjustmentsAndTax_13d3f9dc-3892-4bbc-a72f-728b7ac45f61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossBeforeReclassificationAndTax_e4ea8542-e562-4d5f-b529-56e43561317e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e1e23c6c-f08e-4743-85a7-1dc8a31c8ef0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetInvestmentHedgeGainLossBeforeReclassificationAndTax_e4ea8542-e562-4d5f-b529-56e43561317e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_a76c4aaf-0908-44f4-96e9-0b6dad7393f1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_e1e23c6c-f08e-4743-85a7-1dc8a31c8ef0" xlink:to="loc_us-gaap_DerivativeTable_a76c4aaf-0908-44f4-96e9-0b6dad7393f1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_e7f5776f-1485-47ea-ac87-78a70c7fbc6e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_a76c4aaf-0908-44f4-96e9-0b6dad7393f1" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_e7f5776f-1485-47ea-ac87-78a70c7fbc6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e7f5776f-1485-47ea-ac87-78a70c7fbc6e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e7f5776f-1485-47ea-ac87-78a70c7fbc6e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e7f5776f-1485-47ea-ac87-78a70c7fbc6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b358e71d-66d7-4971-b3b5-b59b54e372c2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e7f5776f-1485-47ea-ac87-78a70c7fbc6e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b358e71d-66d7-4971-b3b5-b59b54e372c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_31dd1fb8-3ccb-4c84-9824-9db5df4fa371" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b358e71d-66d7-4971-b3b5-b59b54e372c2" xlink:to="loc_us-gaap_InterestRateContractMember_31dd1fb8-3ccb-4c84-9824-9db5df4fa371" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_d4072ee2-758a-49d2-b21f-cde94e703300" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_b358e71d-66d7-4971-b3b5-b59b54e372c2" xlink:to="loc_us-gaap_ForeignExchangeContractMember_d4072ee2-758a-49d2-b21f-cde94e703300" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_a4f3cef8-51b2-4937-941e-272a9f788220" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_a76c4aaf-0908-44f4-96e9-0b6dad7393f1" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_a4f3cef8-51b2-4937-941e-272a9f788220" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_a4f3cef8-51b2-4937-941e-272a9f788220_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_a4f3cef8-51b2-4937-941e-272a9f788220" xlink:to="loc_us-gaap_HedgingRelationshipDomain_a4f3cef8-51b2-4937-941e-272a9f788220_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_65eb1f07-355e-47d3-afb6-31f2d48a20e7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_a4f3cef8-51b2-4937-941e-272a9f788220" xlink:to="loc_us-gaap_HedgingRelationshipDomain_65eb1f07-355e-47d3-afb6-31f2d48a20e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_dec1d3e4-232f-4ee5-a317-064237afe6e8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_65eb1f07-355e-47d3-afb6-31f2d48a20e7" xlink:to="loc_us-gaap_CashFlowHedgingMember_dec1d3e4-232f-4ee5-a317-064237afe6e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentHedgingMember_3657e321-6873-407a-ac0f-b6b3a4783500" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetInvestmentHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_65eb1f07-355e-47d3-afb6-31f2d48a20e7" xlink:to="loc_us-gaap_NetInvestmentHedgingMember_3657e321-6873-407a-ac0f-b6b3a4783500" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESLocationsandAmountsofDesignatedandNonDesignatedDerivativesGainsandLossesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESLocationsandAmountsofDesignatedandNonDesignatedDerivativesGainsandLossesDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESLocationsandAmountsofDesignatedandNonDesignatedDerivativesGainsandLossesDetails" xlink:type="extended" id="i0d8be043ee1742799f8e2fde1cd1b9a4_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESLocationsandAmountsofDesignatedandNonDesignatedDerivativesGainsandLossesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_140d8d46-8cc8-4a01-b158-675ebf8f2b25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_140d8d46-8cc8-4a01-b158-675ebf8f2b25" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CostOfRevenueAndOperatingExpense_3220ea86-e00d-40ad-a8eb-076ea619682c" xlink:href="klac-20220930.xsd#klac_CostOfRevenueAndOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_klac_CostOfRevenueAndOperatingExpense_3220ea86-e00d-40ad-a8eb-076ea619682c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_5080af19-6952-436f-a7ff-8bc75681e9eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_InterestExpense_5080af19-6952-436f-a7ff-8bc75681e9eb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_c30b353f-8ef2-429a-bd15-c0400f065d11" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_c30b353f-8ef2-429a-bd15-c0400f065d11" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_9cd1b17e-f44d-44f3-b1f8-1af98e1d652e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationBeforeTax_9cd1b17e-f44d-44f3-b1f8-1af98e1d652e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseAdjustmentsBeforeTax_3f704140-d3ca-460d-88e7-73210ecddd1a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseAdjustmentsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossDerivativeExcludedComponentIncreaseDecreaseAdjustmentsBeforeTax_3f704140-d3ca-460d-88e7-73210ecddd1a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_0a8c91f2-3b67-4418-baca-d489cc0ae0f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_0a8c91f2-3b67-4418-baca-d489cc0ae0f0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_7a9018bf-c1ac-4dd7-9144-14e2cb5f3556" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_c24a83e6-3ec9-4171-b508-0ad09d997faa" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_7a9018bf-c1ac-4dd7-9144-14e2cb5f3556" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_7a9018bf-c1ac-4dd7-9144-14e2cb5f3556" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_34be0020-863d-4697-8ed9-4d57ddd7b36f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e366d2ec-fb39-4b4a-ab71-add93aa8a1a7" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_34be0020-863d-4697-8ed9-4d57ddd7b36f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_8a0049ea-281f-4928-9623-a9894acb9c67" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_34be0020-863d-4697-8ed9-4d57ddd7b36f" xlink:to="loc_us-gaap_InterestRateContractMember_8a0049ea-281f-4928-9623-a9894acb9c67" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_286c5ecd-9329-4848-8898-c3e83ec22c04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_34be0020-863d-4697-8ed9-4d57ddd7b36f" xlink:to="loc_us-gaap_ForeignExchangeContractMember_286c5ecd-9329-4848-8898-c3e83ec22c04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_98f6eb56-c7c6-48da-a589-2feb428db3ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_7a9018bf-c1ac-4dd7-9144-14e2cb5f3556" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_98f6eb56-c7c6-48da-a589-2feb428db3ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_98f6eb56-c7c6-48da-a589-2feb428db3ce_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_98f6eb56-c7c6-48da-a589-2feb428db3ce" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_98f6eb56-c7c6-48da-a589-2feb428db3ce_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_98f6eb56-c7c6-48da-a589-2feb428db3ce" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesMember_85f06880-522a-4563-a9b8-6380d8254e1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:to="loc_us-gaap_SalesMember_85f06880-522a-4563-a9b8-6380d8254e1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CostOfSalesAndOperatingExpenseMember_2206c878-0f5d-421c-8d3e-347abc71dab7" xlink:href="klac-20220930.xsd#klac_CostOfSalesAndOperatingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:to="loc_klac_CostOfSalesAndOperatingExpenseMember_2206c878-0f5d-421c-8d3e-347abc71dab7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_6f424230-d5cd-45f4-b9bc-45e1548e39ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:to="loc_us-gaap_InterestExpenseMember_6f424230-d5cd-45f4-b9bc-45e1548e39ec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_InterestIncomeAndOtherNetMember_b93fec5d-d5a5-4ddc-9136-cfff14119a9e" xlink:href="klac-20220930.xsd#klac_InterestIncomeAndOtherNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f01ee2be-7334-4981-bc43-f0b2e2a0b5d9" xlink:to="loc_klac_InterestIncomeAndOtherNetMember_b93fec5d-d5a5-4ddc-9136-cfff14119a9e" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofNotionalAmountDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofNotionalAmountDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofNotionalAmountDetails" xlink:type="extended" id="i75ef64c413ef4849aa00abfb9ca9c78a_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofNotionalAmountDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_986186e3-73b8-47f1-a0fe-666ebcb2535e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeRemainingMaturity1_28f8f687-153c-49b3-bf84-081de841bdd4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeRemainingMaturity1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_986186e3-73b8-47f1-a0fe-666ebcb2535e" xlink:to="loc_us-gaap_DerivativeRemainingMaturity1_28f8f687-153c-49b3-bf84-081de841bdd4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_4fcdd451-bcd7-470a-aa74-389f4bffa026" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_986186e3-73b8-47f1-a0fe-666ebcb2535e" xlink:to="loc_us-gaap_DerivativeNotionalAmount_4fcdd451-bcd7-470a-aa74-389f4bffa026" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_986186e3-73b8-47f1-a0fe-666ebcb2535e" xlink:to="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_7b657ea9-732e-4c1e-8e2e-f5554630d9ea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:to="loc_us-gaap_HedgingDesignationAxis_7b657ea9-732e-4c1e-8e2e-f5554630d9ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_7b657ea9-732e-4c1e-8e2e-f5554630d9ea_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_7b657ea9-732e-4c1e-8e2e-f5554630d9ea" xlink:to="loc_us-gaap_HedgingDesignationDomain_7b657ea9-732e-4c1e-8e2e-f5554630d9ea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_7b9d8f9b-e4f9-4cae-a67d-dd3f7beb8363" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_7b657ea9-732e-4c1e-8e2e-f5554630d9ea" xlink:to="loc_us-gaap_HedgingDesignationDomain_7b9d8f9b-e4f9-4cae-a67d-dd3f7beb8363" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_00780b8f-488a-4d7d-ad53-2a87857f53fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_7b9d8f9b-e4f9-4cae-a67d-dd3f7beb8363" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_00780b8f-488a-4d7d-ad53-2a87857f53fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionAxis_2c12aac9-6b11-4f30-a014-13ae767608fb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PositionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:to="loc_us-gaap_PositionAxis_2c12aac9-6b11-4f30-a014-13ae767608fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionDomain_2c12aac9-6b11-4f30-a014-13ae767608fb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PositionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PositionAxis_2c12aac9-6b11-4f30-a014-13ae767608fb" xlink:to="loc_us-gaap_PositionDomain_2c12aac9-6b11-4f30-a014-13ae767608fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositionDomain_5086c319-924a-4cfa-94e4-6520492412f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PositionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PositionAxis_2c12aac9-6b11-4f30-a014-13ae767608fb" xlink:to="loc_us-gaap_PositionDomain_5086c319-924a-4cfa-94e4-6520492412f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongMember_251fe08e-0574-4b4d-b598-a420efc4dde8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PositionDomain_5086c319-924a-4cfa-94e4-6520492412f9" xlink:to="loc_us-gaap_LongMember_251fe08e-0574-4b4d-b598-a420efc4dde8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortMember_2e87dc6f-6b9b-462b-a0a9-75b09e82db79" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShortMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PositionDomain_5086c319-924a-4cfa-94e4-6520492412f9" xlink:to="loc_us-gaap_ShortMember_2e87dc6f-6b9b-462b-a0a9-75b09e82db79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_7ee1fd7a-46c1-418a-83b4-4de6c52372d9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_7ee1fd7a-46c1-418a-83b4-4de6c52372d9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_7ee1fd7a-46c1-418a-83b4-4de6c52372d9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_7ee1fd7a-46c1-418a-83b4-4de6c52372d9" xlink:to="loc_us-gaap_HedgingRelationshipDomain_7ee1fd7a-46c1-418a-83b4-4de6c52372d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_a0fec34f-6ee2-4a62-b676-551d3cdb7dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_7ee1fd7a-46c1-418a-83b4-4de6c52372d9" xlink:to="loc_us-gaap_HedgingRelationshipDomain_a0fec34f-6ee2-4a62-b676-551d3cdb7dc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_c6b30fd5-3430-4e42-9d68-337a7ea2e1d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_a0fec34f-6ee2-4a62-b676-551d3cdb7dc4" xlink:to="loc_us-gaap_CashFlowHedgingMember_c6b30fd5-3430-4e42-9d68-337a7ea2e1d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentHedgingMember_f9fdcb20-7205-474e-9b4a-5a6d75ed13a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetInvestmentHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_a0fec34f-6ee2-4a62-b676-551d3cdb7dc4" xlink:to="loc_us-gaap_NetInvestmentHedgingMember_f9fdcb20-7205-474e-9b4a-5a6d75ed13a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_85327146-43f6-4720-af75-79c02399c30f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_262ae030-ff79-48f7-a1ec-5631d7efd13e" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_85327146-43f6-4720-af75-79c02399c30f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_85327146-43f6-4720-af75-79c02399c30f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_85327146-43f6-4720-af75-79c02399c30f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_85327146-43f6-4720-af75-79c02399c30f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_086e40d0-8f47-4bc6-83cc-588db6d0b001" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_85327146-43f6-4720-af75-79c02399c30f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_086e40d0-8f47-4bc6-83cc-588db6d0b001" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_c302a062-6e04-4a47-895c-a3573c889d42" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_086e40d0-8f47-4bc6-83cc-588db6d0b001" xlink:to="loc_us-gaap_ForeignExchangeContractMember_c302a062-6e04-4a47-895c-a3573c889d42" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherForeignCurrencyHedgeContractsMember_a737450d-cea1-4d1e-9279-14be5a39e712" xlink:href="klac-20220930.xsd#klac_OtherForeignCurrencyHedgeContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_086e40d0-8f47-4bc6-83cc-588db6d0b001" xlink:to="loc_klac_OtherForeignCurrencyHedgeContractsMember_a737450d-cea1-4d1e-9279-14be5a39e712" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofDerivativeInstrumentsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofDerivativeInstrumentsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofDerivativeInstrumentsDetails" xlink:type="extended" id="i11b2d1197b0442cfa05d824207021ffe_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESScheduleofDerivativeInstrumentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4396ec4d-35e2-423c-92fe-c38d49be2c33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNetByBalanceSheetClassificationAbstract_65fd07f5-ef45-4f49-a37b-86d25f9fbb47" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNetByBalanceSheetClassificationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4396ec4d-35e2-423c-92fe-c38d49be2c33" xlink:to="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNetByBalanceSheetClassificationAbstract_65fd07f5-ef45-4f49-a37b-86d25f9fbb47" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_ff3ed82f-075e-48e8-9d1d-3e102a9be9dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNetByBalanceSheetClassificationAbstract_65fd07f5-ef45-4f49-a37b-86d25f9fbb47" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_ff3ed82f-075e-48e8-9d1d-3e102a9be9dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_7737363c-747b-41ad-978f-c7e88f667082" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNetByBalanceSheetClassificationAbstract_65fd07f5-ef45-4f49-a37b-86d25f9fbb47" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_7737363c-747b-41ad-978f-c7e88f667082" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_6ddffcd8-a810-4965-b8b9-5e1f647ab074" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossLineItems_4396ec4d-35e2-423c-92fe-c38d49be2c33" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_6ddffcd8-a810-4965-b8b9-5e1f647ab074" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_46bc72a1-0cce-4b50-8e60-dd73229b2599" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_6ddffcd8-a810-4965-b8b9-5e1f647ab074" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_46bc72a1-0cce-4b50-8e60-dd73229b2599" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_46bc72a1-0cce-4b50-8e60-dd73229b2599_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_46bc72a1-0cce-4b50-8e60-dd73229b2599" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_46bc72a1-0cce-4b50-8e60-dd73229b2599_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_947bfd8f-bca8-4430-8071-86ae00429584" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_46bc72a1-0cce-4b50-8e60-dd73229b2599" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_947bfd8f-bca8-4430-8071-86ae00429584" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_0abd1dbb-66f7-45f2-bed8-23da8ced627a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_947bfd8f-bca8-4430-8071-86ae00429584" xlink:to="loc_us-gaap_ForeignExchangeContractMember_0abd1dbb-66f7-45f2-bed8-23da8ced627a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_1d8f3f91-55e1-4476-a061-62a0489595a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_6ddffcd8-a810-4965-b8b9-5e1f647ab074" xlink:to="loc_us-gaap_HedgingDesignationAxis_1d8f3f91-55e1-4476-a061-62a0489595a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_1d8f3f91-55e1-4476-a061-62a0489595a6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_1d8f3f91-55e1-4476-a061-62a0489595a6" xlink:to="loc_us-gaap_HedgingDesignationDomain_1d8f3f91-55e1-4476-a061-62a0489595a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_06da70a2-62f7-49a1-a8dc-a9c8d44c4d39" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_1d8f3f91-55e1-4476-a061-62a0489595a6" xlink:to="loc_us-gaap_HedgingDesignationDomain_06da70a2-62f7-49a1-a8dc-a9c8d44c4d39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_962a5d4c-b7cb-499f-a630-46d7db958d10" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_06da70a2-62f7-49a1-a8dc-a9c8d44c4d39" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_962a5d4c-b7cb-499f-a630-46d7db958d10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_b836dd87-dc27-40a4-9995-7d1ba0f2071f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_06da70a2-62f7-49a1-a8dc-a9c8d44c4d39" xlink:to="loc_us-gaap_NondesignatedMember_b836dd87-dc27-40a4-9995-7d1ba0f2071f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_c48877f2-75cd-4ccd-a130-5f43a5c16ea3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable_6ddffcd8-a810-4965-b8b9-5e1f647ab074" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_c48877f2-75cd-4ccd-a130-5f43a5c16ea3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_c48877f2-75cd-4ccd-a130-5f43a5c16ea3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_c48877f2-75cd-4ccd-a130-5f43a5c16ea3" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_c48877f2-75cd-4ccd-a130-5f43a5c16ea3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_4d4f210c-ba17-48fb-815f-91f27208bbca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_c48877f2-75cd-4ccd-a130-5f43a5c16ea3" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_4d4f210c-ba17-48fb-815f-91f27208bbca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_e1e84402-907a-4dbb-9f91-0b7c3e2f115f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4d4f210c-ba17-48fb-815f-91f27208bbca" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_e1e84402-907a-4dbb-9f91-0b7c3e2f115f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_a5ec047c-760f-4571-ab36-38aebdc1b523" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_4d4f210c-ba17-48fb-815f-91f27208bbca" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_a5ec047c-760f-4571-ab36-38aebdc1b523" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESChangesofOCIBeforeTaxesRelatedtoDerivativesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESChangesofOCIBeforeTaxesRelatedtoDerivativesDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESChangesofOCIBeforeTaxesRelatedtoDerivativesDetails" xlink:type="extended" id="i713bf451e35e42dcbeb48b64094cda31_DERIVATIVEINSTRUMENTSANDHEDGINGACTIVITIESChangesofOCIBeforeTaxesRelatedtoDerivativesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_d942e875-11b0-414c-a481-126f2bad5cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_41d19ead-e3ad-4a30-9f6d-bbb3cac1eaa0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_d942e875-11b0-414c-a481-126f2bad5cdf" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_41d19ead-e3ad-4a30-9f6d-bbb3cac1eaa0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_27b5bf50-0c7c-492c-bc33-d31d834f135e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_41d19ead-e3ad-4a30-9f6d-bbb3cac1eaa0" xlink:to="loc_us-gaap_StockholdersEquity_27b5bf50-0c7c-492c-bc33-d31d834f135e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_adb9b9d0-f109-4d4e-b8af-8020becc744e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_41d19ead-e3ad-4a30-9f6d-bbb3cac1eaa0" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_adb9b9d0-f109-4d4e-b8af-8020becc744e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_6206be80-9a2b-4b23-89d4-238e21cb25ec" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_41d19ead-e3ad-4a30-9f6d-bbb3cac1eaa0" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_6206be80-9a2b-4b23-89d4-238e21cb25ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_521bb229-bbba-41ed-9701-e1706e60e5a5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4c3a70f3-cacd-4bfc-9506-f3c9acf8124d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeOnDerivativesLineItems_d942e875-11b0-414c-a481-126f2bad5cdf" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4c3a70f3-cacd-4bfc-9506-f3c9acf8124d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_c4b89414-86da-45a1-b183-cabd3e81b9d0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_4c3a70f3-cacd-4bfc-9506-f3c9acf8124d" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_c4b89414-86da-45a1-b183-cabd3e81b9d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_c4b89414-86da-45a1-b183-cabd3e81b9d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c4b89414-86da-45a1-b183-cabd3e81b9d0" xlink:to="loc_us-gaap_EquityComponentDomain_c4b89414-86da-45a1-b183-cabd3e81b9d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_70851971-d232-4822-a854-90979b6dcc39" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_c4b89414-86da-45a1-b183-cabd3e81b9d0" xlink:to="loc_us-gaap_EquityComponentDomain_70851971-d232-4822-a854-90979b6dcc39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_AOCIDerivativeParentMember_1806f394-f864-4736-9a40-eb653758f760" xlink:href="klac-20220930.xsd#klac_AOCIDerivativeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_70851971-d232-4822-a854-90979b6dcc39" xlink:to="loc_klac_AOCIDerivativeParentMember_1806f394-f864-4736-9a40-eb653758f760" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONAdditionalInformationDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONAdditionalInformationDetails" xlink:type="extended" id="id563285332ab4a0581066250511f15df_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_a5d095fa-c5e7-4903-a2f2-a7803d8cc753" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_952926f4-6a11-412d-9f20-de65da8a2bc1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a5d095fa-c5e7-4903-a2f2-a7803d8cc753" xlink:to="loc_us-gaap_NumberOfReportableSegments_952926f4-6a11-412d-9f20-de65da8a2bc1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_39f6cb87-7281-444a-8c79-526d02f4a2f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a5d095fa-c5e7-4903-a2f2-a7803d8cc753" xlink:to="loc_us-gaap_NumberOfOperatingSegments_39f6cb87-7281-444a-8c79-526d02f4a2f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_bfbd8596-cd83-4d4b-966b-ce41b34986f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a5d095fa-c5e7-4903-a2f2-a7803d8cc753" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_bfbd8596-cd83-4d4b-966b-ce41b34986f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a5d095fa-c5e7-4903-a2f2-a7803d8cc753" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7f74bec8-81ca-4f47-93a0-2b229ca1415d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7f74bec8-81ca-4f47-93a0-2b229ca1415d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7f74bec8-81ca-4f47-93a0-2b229ca1415d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7f74bec8-81ca-4f47-93a0-2b229ca1415d" xlink:to="loc_us-gaap_SegmentDomain_7f74bec8-81ca-4f47-93a0-2b229ca1415d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e87a7fc8-1078-4b41-88a7-b192fc598827" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7f74bec8-81ca-4f47-93a0-2b229ca1415d" xlink:to="loc_us-gaap_SegmentDomain_e87a7fc8-1078-4b41-88a7-b192fc598827" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SemiconductorProcessControlMember_453c1e8c-bd2e-45df-99fb-ecd26749546d" xlink:href="klac-20220930.xsd#klac_SemiconductorProcessControlMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e87a7fc8-1078-4b41-88a7-b192fc598827" xlink:to="loc_klac_SemiconductorProcessControlMember_453c1e8c-bd2e-45df-99fb-ecd26749546d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SpecialtySemiconductorProcessMember_6b16865c-ac9b-4741-84e6-9a2cff6a6227" xlink:href="klac-20220930.xsd#klac_SpecialtySemiconductorProcessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e87a7fc8-1078-4b41-88a7-b192fc598827" xlink:to="loc_klac_SpecialtySemiconductorProcessMember_6b16865c-ac9b-4741-84e6-9a2cff6a6227" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_PCBDisplayAndComponentInspectionMember_f542dc79-2cf6-45ed-975e-6a0afda7238e" xlink:href="klac-20220930.xsd#klac_PCBDisplayAndComponentInspectionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e87a7fc8-1078-4b41-88a7-b192fc598827" xlink:to="loc_klac_PCBDisplayAndComponentInspectionMember_f542dc79-2cf6-45ed-975e-6a0afda7238e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_70959e6a-e084-49b6-b061-cfa3d421bb20" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_70959e6a-e084-49b6-b061-cfa3d421bb20" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_70959e6a-e084-49b6-b061-cfa3d421bb20_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_70959e6a-e084-49b6-b061-cfa3d421bb20" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_70959e6a-e084-49b6-b061-cfa3d421bb20_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1dee4ed4-bdfd-4b20-a678-dd74a967c51f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_70959e6a-e084-49b6-b061-cfa3d421bb20" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1dee4ed4-bdfd-4b20-a678-dd74a967c51f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_6a89c748-ecf9-413f-b439-48168bedc7e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_1dee4ed4-bdfd-4b20-a678-dd74a967c51f" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_6a89c748-ecf9-413f-b439-48168bedc7e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c5904b2-d914-4a78-8a79-b8703ed15713" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c5904b2-d914-4a78-8a79-b8703ed15713" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9c5904b2-d914-4a78-8a79-b8703ed15713_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c5904b2-d914-4a78-8a79-b8703ed15713" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9c5904b2-d914-4a78-8a79-b8703ed15713_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ae706a32-45ce-434b-85f9-a42ae26ef4b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c5904b2-d914-4a78-8a79-b8703ed15713" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ae706a32-45ce-434b-85f9-a42ae26ef4b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_9c23976b-953f-4121-b986-6d2da67910fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_ae706a32-45ce-434b-85f9-a42ae26ef4b5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_9c23976b-953f-4121-b986-6d2da67910fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_8ecae746-67c3-43a9-953e-f08706513552" xlink:to="loc_srt_MajorCustomersAxis_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6" xlink:to="loc_srt_NameOfMajorCustomerDomain_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_65c3fbbc-9405-4292-85b4-edc1f4ed916e" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_6cdbedf9-787d-41b5-8e86-d62bdd6d1af6" xlink:to="loc_srt_NameOfMajorCustomerDomain_65c3fbbc-9405-4292-85b4-edc1f4ed916e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_LargestCustomerMember_d5043204-bcea-40ed-bdf4-c951cba5885f" xlink:href="klac-20220930.xsd#klac_LargestCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_65c3fbbc-9405-4292-85b4-edc1f4ed916e" xlink:to="loc_klac_LargestCustomerMember_d5043204-bcea-40ed-bdf4-c951cba5885f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SecondLargestCustomerMember_bc5dd4da-a8b5-400b-a092-2e187905fd97" xlink:href="klac-20220930.xsd#klac_SecondLargestCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_65c3fbbc-9405-4292-85b4-edc1f4ed916e" xlink:to="loc_klac_SecondLargestCustomerMember_bc5dd4da-a8b5-400b-a092-2e187905fd97" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONSummaryofResultsforReportableSegmentsDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONSummaryofResultsforReportableSegmentsDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONSummaryofResultsforReportableSegmentsDetails" xlink:type="extended" id="if0edf7a6eec44c5a83fb6f76855ad867_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONSummaryofResultsforReportableSegmentsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_ff624499-5d3c-4c4a-8cdd-3a7a5906b91f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_a61388ba-a65d-4e9c-a08d-80a91f33d92e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff624499-5d3c-4c4a-8cdd-3a7a5906b91f" xlink:to="loc_us-gaap_NumberOfReportableSegments_a61388ba-a65d-4e9c-a08d-80a91f33d92e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_50cfda83-be39-424f-a142-e010e1f88d4b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff624499-5d3c-4c4a-8cdd-3a7a5906b91f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_50cfda83-be39-424f-a142-e010e1f88d4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_502e8d5f-f691-4792-86f8-5fc85402a6d3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff624499-5d3c-4c4a-8cdd-3a7a5906b91f" xlink:to="loc_us-gaap_GrossProfit_502e8d5f-f691-4792-86f8-5fc85402a6d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee2e6b36-0011-47f2-ba93-c0cea054d9bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_ff624499-5d3c-4c4a-8cdd-3a7a5906b91f" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee2e6b36-0011-47f2-ba93-c0cea054d9bc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e82f1bcc-178d-4124-a0dc-96d7c23e9048" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee2e6b36-0011-47f2-ba93-c0cea054d9bc" xlink:to="loc_srt_ConsolidationItemsAxis_e82f1bcc-178d-4124-a0dc-96d7c23e9048" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e82f1bcc-178d-4124-a0dc-96d7c23e9048_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e82f1bcc-178d-4124-a0dc-96d7c23e9048" xlink:to="loc_srt_ConsolidationItemsDomain_e82f1bcc-178d-4124-a0dc-96d7c23e9048_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_500b9d36-eab9-43af-ac2a-1b17d9afa44a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e82f1bcc-178d-4124-a0dc-96d7c23e9048" xlink:to="loc_srt_ConsolidationItemsDomain_500b9d36-eab9-43af-ac2a-1b17d9afa44a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_6ab86c02-cdc5-49c3-b630-273ea8866185" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_500b9d36-eab9-43af-ac2a-1b17d9afa44a" xlink:to="loc_us-gaap_OperatingSegmentsMember_6ab86c02-cdc5-49c3-b630-273ea8866185" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_93e18da9-b510-42cf-8a50-ffa7946c03f6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_ee2e6b36-0011-47f2-ba93-c0cea054d9bc" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_93e18da9-b510-42cf-8a50-ffa7946c03f6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_93e18da9-b510-42cf-8a50-ffa7946c03f6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_93e18da9-b510-42cf-8a50-ffa7946c03f6" xlink:to="loc_us-gaap_SegmentDomain_93e18da9-b510-42cf-8a50-ffa7946c03f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ed9eda72-5132-42c3-bc02-68f1e6ab167c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_93e18da9-b510-42cf-8a50-ffa7946c03f6" xlink:to="loc_us-gaap_SegmentDomain_ed9eda72-5132-42c3-bc02-68f1e6ab167c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SemiconductorProcessControlMember_353eddd9-4068-440a-a659-e53f5182d61f" xlink:href="klac-20220930.xsd#klac_SemiconductorProcessControlMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ed9eda72-5132-42c3-bc02-68f1e6ab167c" xlink:to="loc_klac_SemiconductorProcessControlMember_353eddd9-4068-440a-a659-e53f5182d61f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SpecialtySemiconductorProcessMember_4275ed0e-c804-4789-87ea-8883aa9702c9" xlink:href="klac-20220930.xsd#klac_SpecialtySemiconductorProcessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ed9eda72-5132-42c3-bc02-68f1e6ab167c" xlink:to="loc_klac_SpecialtySemiconductorProcessMember_4275ed0e-c804-4789-87ea-8883aa9702c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_PCBDisplayAndComponentInspectionMember_d37ec1de-a596-4770-b752-4136ab4cc410" xlink:href="klac-20220930.xsd#klac_PCBDisplayAndComponentInspectionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ed9eda72-5132-42c3-bc02-68f1e6ab167c" xlink:to="loc_klac_PCBDisplayAndComponentInspectionMember_d37ec1de-a596-4770-b752-4136ab4cc410" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalReportableSegmentsRevenuetoTotalRevenueDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalReportableSegmentsRevenuetoTotalRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalReportableSegmentsRevenuetoTotalRevenueDetails" xlink:type="extended" id="ic6092bfc53b24fc890cb90942a28c5bf_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalReportableSegmentsRevenuetoTotalRevenueDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_c02b7ab6-e52f-43af-90d1-a28132782d07" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingRevenueReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a087e0ed-b7d5-4ab9-afb8-87a208d45fe8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_c02b7ab6-e52f-43af-90d1-a28132782d07" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a087e0ed-b7d5-4ab9-afb8-87a208d45fe8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_1f8da356-422e-45c6-bb7b-3f2cdff22fad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_c02b7ab6-e52f-43af-90d1-a28132782d07" xlink:to="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_1f8da356-422e-45c6-bb7b-3f2cdff22fad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_5f971420-7744-47b0-bf98-5c1d41ccc1f0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_1f8da356-422e-45c6-bb7b-3f2cdff22fad" xlink:to="loc_srt_ConsolidationItemsAxis_5f971420-7744-47b0-bf98-5c1d41ccc1f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_5f971420-7744-47b0-bf98-5c1d41ccc1f0_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_5f971420-7744-47b0-bf98-5c1d41ccc1f0" xlink:to="loc_srt_ConsolidationItemsDomain_5f971420-7744-47b0-bf98-5c1d41ccc1f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b42d6301-70e2-44bb-865a-4dfc072064d4" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_5f971420-7744-47b0-bf98-5c1d41ccc1f0" xlink:to="loc_srt_ConsolidationItemsDomain_b42d6301-70e2-44bb-865a-4dfc072064d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_1109a632-0b72-42ab-bcb4-e2e8454c5d7e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b42d6301-70e2-44bb-865a-4dfc072064d4" xlink:to="loc_us-gaap_OperatingSegmentsMember_1109a632-0b72-42ab-bcb4-e2e8454c5d7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_CorporateAndReconcilingItemsMember_18b1f66e-700a-463e-9061-1472d5f46d1c" xlink:href="klac-20220930.xsd#klac_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b42d6301-70e2-44bb-865a-4dfc072064d4" xlink:to="loc_klac_CorporateAndReconcilingItemsMember_18b1f66e-700a-463e-9061-1472d5f46d1c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalSegmentGrossMargintoTotalIncomeBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalSegmentGrossMargintoTotalIncomeBeforeIncomeTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalSegmentGrossMargintoTotalIncomeBeforeIncomeTaxesDetails" xlink:type="extended" id="icf29192e89a14d5cb1e0d75fc7461714_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONReconciliationofTotalSegmentGrossMargintoTotalIncomeBeforeIncomeTaxesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_d096f3d9-09d2-465f-bd0e-99cf040fb255" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_GrossProfit_d096f3d9-09d2-465f-bd0e-99cf040fb255" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_AcquisitionRelatedChargesCorporateAllocationsAndEffectsOfForeignExchangeRates_933ecb73-f134-4928-b033-8dfe51309f94" xlink:href="klac-20220930.xsd#klac_AcquisitionRelatedChargesCorporateAllocationsAndEffectsOfForeignExchangeRates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_klac_AcquisitionRelatedChargesCorporateAllocationsAndEffectsOfForeignExchangeRates_933ecb73-f134-4928-b033-8dfe51309f94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_52f83158-0f2e-4c37-a46e-cc2ae49501b2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_52f83158-0f2e-4c37-a46e-cc2ae49501b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_12a36b8d-ea27-47aa-ac92-710df6faa5e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_12a36b8d-ea27-47aa-ac92-710df6faa5e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_5af8472c-1d1d-4dfa-915f-df725c42972e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_InterestExpense_5af8472c-1d1d-4dfa-915f-df725c42972e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6f24701c-cb3b-40f5-b386-dace5fc0631f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_6f24701c-cb3b-40f5-b386-dace5fc0631f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_82cecde0-2d78-44d4-9e77-79424462b90a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_82cecde0-2d78-44d4-9e77-79424462b90a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c60d62c5-4ae4-41d5-a5f9-61fc5e785ba0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c60d62c5-4ae4-41d5-a5f9-61fc5e785ba0" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTable_a43393f9-af00-44cf-8ecb-8953b7e723e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems_617157cc-2b9c-4eba-ba6a-06b9422212f0" xlink:to="loc_us-gaap_ReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTable_a43393f9-af00-44cf-8ecb-8953b7e723e4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_9e1a36f6-b4e3-4795-82df-4c9d692af0c5" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTable_a43393f9-af00-44cf-8ecb-8953b7e723e4" xlink:to="loc_srt_ConsolidationItemsAxis_9e1a36f6-b4e3-4795-82df-4c9d692af0c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_9e1a36f6-b4e3-4795-82df-4c9d692af0c5_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_9e1a36f6-b4e3-4795-82df-4c9d692af0c5" xlink:to="loc_srt_ConsolidationItemsDomain_9e1a36f6-b4e3-4795-82df-4c9d692af0c5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_827105b1-febc-4e16-ae99-55bdc80be896" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_9e1a36f6-b4e3-4795-82df-4c9d692af0c5" xlink:to="loc_srt_ConsolidationItemsDomain_827105b1-febc-4e16-ae99-55bdc80be896" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_27d7972c-7694-41b5-8c7b-7dfacd460d9b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_827105b1-febc-4e16-ae99-55bdc80be896" xlink:to="loc_us-gaap_OperatingSegmentsMember_27d7972c-7694-41b5-8c7b-7dfacd460d9b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONScheduleofRevenuefromExternalCustomersDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONScheduleofRevenuefromExternalCustomersDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONScheduleofRevenuefromExternalCustomersDetails" xlink:type="extended" id="i786a2f37d83146a589f338e544ae9b2e_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONScheduleofRevenuefromExternalCustomersDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_b4c615de-f2d9-460e-8e7e-fed0475df4e3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_3b9e7140-e895-467b-9d8f-fe236025e1e3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b4c615de-f2d9-460e-8e7e-fed0475df4e3" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_3b9e7140-e895-467b-9d8f-fe236025e1e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_454bd81f-fa69-4292-8507-22fd4a7625c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b4c615de-f2d9-460e-8e7e-fed0475df4e3" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_454bd81f-fa69-4292-8507-22fd4a7625c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e8d0eb6c-7015-46c9-8752-528f4ea9cfb7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_b4c615de-f2d9-460e-8e7e-fed0475df4e3" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e8d0eb6c-7015-46c9-8752-528f4ea9cfb7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_1e78ca77-10c4-4268-a66f-2b0c3d217cb5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e8d0eb6c-7015-46c9-8752-528f4ea9cfb7" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_1e78ca77-10c4-4268-a66f-2b0c3d217cb5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1e78ca77-10c4-4268-a66f-2b0c3d217cb5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1e78ca77-10c4-4268-a66f-2b0c3d217cb5" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1e78ca77-10c4-4268-a66f-2b0c3d217cb5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_44af0cc8-12e8-42b7-8fae-35329043d950" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1e78ca77-10c4-4268-a66f-2b0c3d217cb5" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_44af0cc8-12e8-42b7-8fae-35329043d950" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_9aa9d392-b911-4c79-bd3f-7f01d8dafca1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_44af0cc8-12e8-42b7-8fae-35329043d950" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_9aa9d392-b911-4c79-bd3f-7f01d8dafca1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_848180c0-8899-4646-ac3b-0900977c03a6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e8d0eb6c-7015-46c9-8752-528f4ea9cfb7" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_848180c0-8899-4646-ac3b-0900977c03a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_848180c0-8899-4646-ac3b-0900977c03a6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_848180c0-8899-4646-ac3b-0900977c03a6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_848180c0-8899-4646-ac3b-0900977c03a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_5dee312e-3f85-41b5-90fe-4a9a6386e1aa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_848180c0-8899-4646-ac3b-0900977c03a6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_5dee312e-3f85-41b5-90fe-4a9a6386e1aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_8421cfde-7525-43a3-858c-443b84d3dd29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_5dee312e-3f85-41b5-90fe-4a9a6386e1aa" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_8421cfde-7525-43a3-858c-443b84d3dd29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_0dac7505-5ff6-47c9-9037-14f19fd6403b" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e8d0eb6c-7015-46c9-8752-528f4ea9cfb7" xlink:to="loc_srt_StatementGeographicalAxis_0dac7505-5ff6-47c9-9037-14f19fd6403b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_0dac7505-5ff6-47c9-9037-14f19fd6403b_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_0dac7505-5ff6-47c9-9037-14f19fd6403b" xlink:to="loc_srt_SegmentGeographicalDomain_0dac7505-5ff6-47c9-9037-14f19fd6403b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_0dac7505-5ff6-47c9-9037-14f19fd6403b" xlink:to="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_CN_435bf491-e211-4d4e-a873-a69d48afd435" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_CN"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_country_CN_435bf491-e211-4d4e-a873-a69d48afd435" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_TW_ae2fc69b-e7f8-4793-a60d-17de7787316a" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_TW"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_country_TW_ae2fc69b-e7f8-4793-a60d-17de7787316a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_KR_d7a65f9a-b340-4e59-9dd0-d88698943c20" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_KR"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_country_KR_d7a65f9a-b340-4e59-9dd0-d88698943c20" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NorthAmericaMember_17cff43b-0dc0-40f4-a5b6-6f15491f4551" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_NorthAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_srt_NorthAmericaMember_17cff43b-0dc0-40f4-a5b6-6f15491f4551" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_EuropeAndIsraelMember_2dc68360-fb35-49d2-a36a-d54078561bc5" xlink:href="klac-20220930.xsd#klac_EuropeAndIsraelMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_klac_EuropeAndIsraelMember_2dc68360-fb35-49d2-a36a-d54078561bc5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_JP_ebbe5ebf-daec-410b-8fca-b24ac4d21378" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_JP"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_country_JP_ebbe5ebf-daec-410b-8fca-b24ac4d21378" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestOfAsiaMember_a4e8a520-aa79-4dd5-89a3-83db156ca8b5" xlink:href="klac-20220930.xsd#klac_RestOfAsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ac130286-5676-45fb-9f33-65b2c154ebcf" xlink:to="loc_klac_RestOfAsiaMember_a4e8a520-aa79-4dd5-89a3-83db156ca8b5" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONRevenuefromExternalCustomersbyProductsandServicesDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONRevenuefromExternalCustomersbyProductsandServicesDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONRevenuefromExternalCustomersbyProductsandServicesDetails" xlink:type="extended" id="iaaa7140ec0e74847bdb2bbaeb9c342f3_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONRevenuefromExternalCustomersbyProductsandServicesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_389c14c6-c976-477b-9fb4-671f74f68fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4d30919c-bef0-485f-9caa-1f91b661f509" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_389c14c6-c976-477b-9fb4-671f74f68fd7" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4d30919c-bef0-485f-9caa-1f91b661f509" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_41c4e72f-f7ec-4629-a1ce-87575c633d25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_389c14c6-c976-477b-9fb4-671f74f68fd7" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_41c4e72f-f7ec-4629-a1ce-87575c633d25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_fff6e796-e536-465e-b9bc-18a97f937ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems_389c14c6-c976-477b-9fb4-671f74f68fd7" xlink:to="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_fff6e796-e536-465e-b9bc-18a97f937ee2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_fff6e796-e536-465e-b9bc-18a97f937ee2" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_5559c600-42bc-40ba-8ca6-50930193fc5d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_8c19b94a-5d46-4ce1-a39a-08bd5b0a419e" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_5559c600-42bc-40ba-8ca6-50930193fc5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProductConcentrationRiskMember_b6455c8e-0983-4f25-8004-3a148db500af" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProductConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_5559c600-42bc-40ba-8ca6-50930193fc5d" xlink:to="loc_us-gaap_ProductConcentrationRiskMember_b6455c8e-0983-4f25-8004-3a148db500af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_41d23631-7f43-4be4-9b86-dac28e6c5434" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_fff6e796-e536-465e-b9bc-18a97f937ee2" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_41d23631-7f43-4be4-9b86-dac28e6c5434" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_41d23631-7f43-4be4-9b86-dac28e6c5434_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_41d23631-7f43-4be4-9b86-dac28e6c5434" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_41d23631-7f43-4be4-9b86-dac28e6c5434_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_b033d0ab-100d-4be2-8a88-75e25404f816" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_41d23631-7f43-4be4-9b86-dac28e6c5434" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_b033d0ab-100d-4be2-8a88-75e25404f816" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_9b8851b5-1b16-47d4-af56-40cde0502ed5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_b033d0ab-100d-4be2-8a88-75e25404f816" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_9b8851b5-1b16-47d4-af56-40cde0502ed5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_ef857ebb-6992-4599-bb80-12cbdc102bd6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable_fff6e796-e536-465e-b9bc-18a97f937ee2" xlink:to="loc_srt_ProductOrServiceAxis_ef857ebb-6992-4599-bb80-12cbdc102bd6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_ef857ebb-6992-4599-bb80-12cbdc102bd6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_ef857ebb-6992-4599-bb80-12cbdc102bd6" xlink:to="loc_srt_ProductsAndServicesDomain_ef857ebb-6992-4599-bb80-12cbdc102bd6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_ef857ebb-6992-4599-bb80-12cbdc102bd6" xlink:to="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_WaferInspectionMember_e3169dd6-a84d-4389-8f25-d8dd6980238a" xlink:href="klac-20220930.xsd#klac_WaferInspectionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_klac_WaferInspectionMember_e3169dd6-a84d-4389-8f25-d8dd6980238a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_PatterningMember_520d8388-b41e-4ad1-97a5-5359b5f4af2a" xlink:href="klac-20220930.xsd#klac_PatterningMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_klac_PatterningMember_520d8388-b41e-4ad1-97a5-5359b5f4af2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_SpecialtySemiconductorProcessMember_0875c55e-9a64-4f07-8725-172a6f7d57cc" xlink:href="klac-20220930.xsd#klac_SpecialtySemiconductorProcessMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_klac_SpecialtySemiconductorProcessMember_0875c55e-9a64-4f07-8725-172a6f7d57cc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_PCBDisplayAndComponentInspectionMember_e2bf8690-ad6f-4b58-8261-37af859cfdbc" xlink:href="klac-20220930.xsd#klac_PCBDisplayAndComponentInspectionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_klac_PCBDisplayAndComponentInspectionMember_e2bf8690-ad6f-4b58-8261-37af859cfdbc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceMember_6265b03e-5210-46d5-bde6-d8d73197b648" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ServiceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_us-gaap_ServiceMember_6265b03e-5210-46d5-bde6-d8d73197b648" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_OtherRevenueMember_3c4cc625-8737-4a15-9223-dddbfcfa7e29" xlink:href="klac-20220930.xsd#klac_OtherRevenueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eced0561-10c6-49a5-a42b-a8eca30faaf4" xlink:to="loc_klac_OtherRevenueMember_3c4cc625-8737-4a15-9223-dddbfcfa7e29" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONLandPropertyandEquipmentNetbyGeographicRegionDetails" xlink:type="simple" xlink:href="klac-20220930.xsd#SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONLandPropertyandEquipmentNetbyGeographicRegionDetails"/>
  <link:definitionLink xlink:role="http://www.kla-tencor.com/role/SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONLandPropertyandEquipmentNetbyGeographicRegionDetails" xlink:type="extended" id="i910083e9a2874871a47dc48938c9d831_SEGMENTREPORTINGANDGEOGRAPHICINFORMATIONLandPropertyandEquipmentNetbyGeographicRegionDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_ed98efa9-af7c-47e2-92fc-752704344475" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncurrentAssets_35e121ab-26fc-4503-aa8d-93429b0b7f23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_ed98efa9-af7c-47e2-92fc-752704344475" xlink:to="loc_us-gaap_NoncurrentAssets_35e121ab-26fc-4503-aa8d-93429b0b7f23" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_bd8dfe2d-4521-4f17-a597-b6d66f5dac21" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_ed98efa9-af7c-47e2-92fc-752704344475" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_bd8dfe2d-4521-4f17-a597-b6d66f5dac21" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_a92d3569-869e-419f-9b39-1fb311d957d6" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_bd8dfe2d-4521-4f17-a597-b6d66f5dac21" xlink:to="loc_srt_StatementGeographicalAxis_a92d3569-869e-419f-9b39-1fb311d957d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a92d3569-869e-419f-9b39-1fb311d957d6_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_a92d3569-869e-419f-9b39-1fb311d957d6" xlink:to="loc_srt_SegmentGeographicalDomain_a92d3569-869e-419f-9b39-1fb311d957d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_a92d3569-869e-419f-9b39-1fb311d957d6" xlink:to="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_b9d8777a-8280-4c3f-9deb-7b970aafda9e" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:to="loc_country_US_b9d8777a-8280-4c3f-9deb-7b970aafda9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_SG_254f50b7-7b3f-4d3e-b045-1e2f51bcbc36" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_SG"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:to="loc_country_SG_254f50b7-7b3f-4d3e-b045-1e2f51bcbc36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_IL_faeed325-4491-40cc-96ec-90e33d1c41fc" xlink:href="https://xbrl.sec.gov/country/2022/country-2022.xsd#country_IL"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:to="loc_country_IL_faeed325-4491-40cc-96ec-90e33d1c41fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EuropeMember_ca140cef-7b6c-4c17-927d-39dfd10dfaff" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_EuropeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:to="loc_srt_EuropeMember_ca140cef-7b6c-4c17-927d-39dfd10dfaff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klac_RestOfAsiaMember_6e52e696-f1b7-4394-883a-3ee76a52ba53" xlink:href="klac-20220930.xsd#klac_RestOfAsiaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_38c3a71b-5b10-4fe3-8567-d8bf7da14d95" xlink:to="loc_klac_RestOfAsiaMember_6e52e696-f1b7-4394-883a-3ee76a52ba53" xlink:type="arc" order="4"/>
  </link:definitionLink>
</link:linkbase>
