<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.keytronic.com/role/AssetsAndLiabilitiesLesseeDetail" xlink:href="ktcc-20190928.xsd#AssetsAndLiabilitiesLesseeDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/BasisOfPresentation" xlink:href="ktcc-20190928.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/CommitmentsAndContingencies" xlink:href="ktcc-20190928.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/CommitmentsAndContingenciesDetail" xlink:href="ktcc-20190928.xsd#CommitmentsAndContingenciesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedBalanceSheets" xlink:href="ktcc-20190928.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="ktcc-20190928.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="ktcc-20190928.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="ktcc-20190928.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:href="ktcc-20190928.xsd#ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedStatementsOfIncome" xlink:href="ktcc-20190928.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:href="ktcc-20190928.xsd#ConsolidatedStatementsOfShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DerivativeFinancialInstruments" xlink:href="ktcc-20190928.xsd#DerivativeFinancialInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DerivativeFinancialInstrumentsDetail" xlink:href="ktcc-20190928.xsd#DerivativeFinancialInstrumentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DerivativeFinancialInstrumentsGainLossOfDerivativeInstrumentsInStatementOfOperationsDetail" xlink:href="ktcc-20190928.xsd#DerivativeFinancialInstrumentsGainLossOfDerivativeInstrumentsInStatementOfOperationsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DerivativeFinancialInstrumentsSummarizedFairValueOfDerivativeInstrumentsInConsolidatedBalanceSheetsDetail" xlink:href="ktcc-20190928.xsd#DerivativeFinancialInstrumentsSummarizedFairValueOfDerivativeInstrumentsInConsolidatedBalanceSheetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DerivativeFinancialInstrumentsTables" xlink:href="ktcc-20190928.xsd#DerivativeFinancialInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/DocumentAndEntityInformation" xlink:href="ktcc-20190928.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/EarningsPerShare" xlink:href="ktcc-20190928.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/EarningsPerShareReconciliationOfDenominatorAndNumberOfAntidilutiveCommonShareAwardsNotIncludedInDilutedEarningsPerShareCalculationDetail" xlink:href="ktcc-20190928.xsd#EarningsPerShareReconciliationOfDenominatorAndNumberOfAntidilutiveCommonShareAwardsNotIncludedInDilutedEarningsPerShareCalculationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/EarningsPerShareTables" xlink:href="ktcc-20190928.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/FairValueMeasurements" xlink:href="ktcc-20190928.xsd#FairValueMeasurements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:href="ktcc-20190928.xsd#FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/FairValueMeasurementsTables" xlink:href="ktcc-20190928.xsd#FairValueMeasurementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssets" xlink:href="ktcc-20190928.xsd#GoodwillAndOtherIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:href="ktcc-20190928.xsd#GoodwillAndOtherIntangibleAssetsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:href="ktcc-20190928.xsd#GoodwillAndOtherIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/IncomeTaxes" xlink:href="ktcc-20190928.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/IncomeTaxesDetail" xlink:href="ktcc-20190928.xsd#IncomeTaxesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/Inventories" xlink:href="ktcc-20190928.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/InventoriesComponentsOfInventoriesDetail" xlink:href="ktcc-20190928.xsd#InventoriesComponentsOfInventoriesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/InventoriesTables" xlink:href="ktcc-20190928.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LeasesDetail" xlink:href="ktcc-20190928.xsd#LeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LeasesLeases" xlink:href="ktcc-20190928.xsd#LeasesLeases" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LeasesTables" xlink:href="ktcc-20190928.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LesseeOperatingLeaseLiabilityMaturityDetail" xlink:href="ktcc-20190928.xsd#LesseeOperatingLeaseLiabilityMaturityDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LongTermDebt" xlink:href="ktcc-20190928.xsd#LongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LongTermDebtDetail" xlink:href="ktcc-20190928.xsd#LongTermDebtDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/LongTermDebtTables" xlink:href="ktcc-20190928.xsd#LongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/Revenue" xlink:href="ktcc-20190928.xsd#Revenue" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/RevenueContractWithCustomerAssetAndLiabilityDetail" xlink:href="ktcc-20190928.xsd#RevenueContractWithCustomerAssetAndLiabilityDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/RevenueDisaggregationOfRevenueDetail" xlink:href="ktcc-20190928.xsd#RevenueDisaggregationOfRevenueDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/RevenueTables" xlink:href="ktcc-20190928.xsd#RevenueTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ScheduleOfDerivativeInstrumentsDetail" xlink:href="ktcc-20190928.xsd#ScheduleOfDerivativeInstrumentsDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesDetail" xlink:href="ktcc-20190928.xsd#ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ShareBasedCompensation" xlink:href="ktcc-20190928.xsd#ShareBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ShareBasedCompensationDetail" xlink:href="ktcc-20190928.xsd#ShareBasedCompensationDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/ShareBasedCompensationTables" xlink:href="ktcc-20190928.xsd#ShareBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/SignificantAccountingPolicies" xlink:href="ktcc-20190928.xsd#SignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/SignificantAccountingPoliciesDetail" xlink:href="ktcc-20190928.xsd#SignificantAccountingPoliciesDetail" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/SignificantAccountingPoliciesPolicies" xlink:href="ktcc-20190928.xsd#SignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/TradeAccountsReceivablePurchasePrograms" xlink:href="ktcc-20190928.xsd#TradeAccountsReceivablePurchasePrograms" xlink:type="simple" />
  <link:roleRef roleURI="http://www.keytronic.com/role/TradeAccountsReceivablePurchaseProgramsDetail" xlink:href="ktcc-20190928.xsd#TradeAccountsReceivablePurchaseProgramsDetail" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/AssetsAndLiabilitiesLesseeDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_BFA732F104742C3CB15342DEEB8C9624" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_BFA732F104742C3CB15342DEEB8C9624" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_37D39DABF0FF4362E0DB42DEEB8C0195" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_BFA732F104742C3CB15342DEEB8C9624" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_37D39DABF0FF4362E0DB42DEEB8C0195" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_37D39DABF0FF4362E0DB42DEEB8C0195" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_37D39DABF0FF4362E0DB42DEEB8C0195" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_C7D2447371D29DF293E642DEEB8D6919" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_C7D2447371D29DF293E642DEEB8D6919" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_OtherLongTermLiabilitiesMember" xlink:label="loc_ktcc_OtherLongTermLiabilitiesMember_5A18062FCADD3B5D302542DEEB8DAF5E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_939A991F822E7BEDB8DF42DEEB8CDD59" xlink:to="loc_ktcc_OtherLongTermLiabilitiesMember_5A18062FCADD3B5D302542DEEB8DAF5E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_1625E1DBAF42EBB0353942DEEB8D5232" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_1625E1DBAF42EBB0353942DEEB8D5232" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_0E8B71B88A360DF8A38042DEEB8D3DEA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_OperatingLeaseLiability_0E8B71B88A360DF8A38042DEEB8D3DEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_C72E13E7A831A01A66B742DEEB8EF918" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1_C72E13E7A831A01A66B742DEEB8EF918" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:label="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_EA43F4580744ECC7D1E742DEEB8E7EAD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent_EA43F4580744ECC7D1E742DEEB8E7EAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasePayments" xlink:label="loc_us-gaap_OperatingLeasePayments_E6DF72EDCBD6EDD92E8542DEEB8E1431" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_6E1A8615F73BD3A1DE5E42DEEB8D99FC" xlink:to="loc_us-gaap_OperatingLeasePayments_E6DF72EDCBD6EDD92E8542DEEB8E1431" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/BasisOfPresentation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/CommitmentsAndContingenciesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_03CFA5A91342CE8905A342DE3D7BB2F6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_7DB3E6FFE28F84CDEDF242DE3D79E4B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_03CFA5A91342CE8905A342DE3D7BB2F6" xlink:to="loc_us-gaap_StatementTable_7DB3E6FFE28F84CDEDF242DE3D79E4B1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_FF7899F2324D9224298242DE3D7A427B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_7DB3E6FFE28F84CDEDF242DE3D79E4B1" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_FF7899F2324D9224298242DE3D7A427B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FF7899F2324D9224298242DE3D7A427B" xlink:to="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_FF7899F2324D9224298242DE3D7A427B" xlink:to="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_FD2A228869227837EE3842DE3D7ADF1B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04" xlink:to="loc_us-gaap_CommonStockMember_FD2A228869227837EE3842DE3D7ADF1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_E342E338A2B03E3EF57842DE3D7ADD56" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04" xlink:to="loc_us-gaap_RetainedEarningsMember_E342E338A2B03E3EF57842DE3D7ADD56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_6C0C76EA04C2E943379742DE3D7BA379" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_1015DC17F234BE82E8D842DE3D7A1A04" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_6C0C76EA04C2E943379742DE3D7BA379" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_03CFA5A91342CE8905A342DE3D7BB2F6" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_68444F58ACE52B74DC5942DE3D7B3B81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_StockholdersEquity_68444F58ACE52B74DC5942DE3D7B3B81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharesOutstanding" xlink:label="loc_us-gaap_SharesOutstanding_229BE88F1B738D980B8742DE3D7CEA45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_SharesOutstanding_229BE88F1B738D980B8742DE3D7CEA45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_74E780E34F5A261A7FA442DE3D7C719C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_74E780E34F5A261A7FA442DE3D7C719C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_F489A0E61967E3CCC3D342DE3D7C65C7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_ShareBasedCompensation_F489A0E61967E3CCC3D342DE3D7C65C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_DE71E2D83640BF75F73742DE3D7C54B9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_NetIncomeLoss_DE71E2D83640BF75F73742DE3D7C54B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_231382BCB12E81C7252D42DE3D7D2D91" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_231382BCB12E81C7252D42DE3D7D2D91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_22F974D8F06FAC197F1342DE3D7DD862" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B0F427E97F66221AB6E942DE3D7B6DAC" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax_22F974D8F06FAC197F1342DE3D7DD862" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DerivativeFinancialInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DerivativeFinancialInstrumentsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_DD8064854F7586B203CD42DEEBE85A86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_us-gaap_DerivativeTable_DD8064854F7586B203CD42DEEBE85A86" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_07E988EAEB02967B220E42DEEBE844F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_DD8064854F7586B203CD42DEEBE85A86" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_07E988EAEB02967B220E42DEEBE844F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_C8C8EEFBDD949182205D42DEEBE944B8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_07E988EAEB02967B220E42DEEBE844F2" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_C8C8EEFBDD949182205D42DEEBE944B8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_C8C8EEFBDD949182205D42DEEBE944B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_07E988EAEB02967B220E42DEEBE844F2" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_C8C8EEFBDD949182205D42DEEBE944B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_AC31FCFB554A3F80974E42DEEBE931BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_C8C8EEFBDD949182205D42DEEBE944B8" xlink:to="loc_us-gaap_SubsequentEventMember_AC31FCFB554A3F80974E42DEEBE931BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_66A341A06D877565419E42DEEBE9C54A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_DD8064854F7586B203CD42DEEBE85A86" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_66A341A06D877565419E42DEEBE9C54A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_21B7DD1A77F559C8049442DEEBE9AC81_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_66A341A06D877565419E42DEEBE9C54A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_21B7DD1A77F559C8049442DEEBE9AC81_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_21B7DD1A77F559C8049442DEEBE9AC81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_66A341A06D877565419E42DEEBE9C54A" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_21B7DD1A77F559C8049442DEEBE9AC81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_AA426C80776FC196DB4642DEEBEA5389" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_21B7DD1A77F559C8049442DEEBE9AC81" xlink:to="loc_us-gaap_InterestRateSwapMember_AA426C80776FC196DB4642DEEBEA5389" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeNotionalAmount" xlink:label="loc_us-gaap_DerivativeNotionalAmount_D84C22365C72DDF1A81342ED2F84C20E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_us-gaap_DerivativeNotionalAmount_D84C22365C72DDF1A81342ED2F84C20E" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_NotionalAmountOfForeignCurrencyForwardContracts" xlink:label="loc_ktcc_NotionalAmountOfForeignCurrencyForwardContracts_289F52771DDACF15800242DEEBEAEB4D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_ktcc_NotionalAmountOfForeignCurrencyForwardContracts_289F52771DDACF15800242DEEBEAEB4D" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_SettlementsOfForeignCurrencyExchangeForwardContracts" xlink:label="loc_ktcc_SettlementsOfForeignCurrencyExchangeForwardContracts_CAB15B4976F431B5DBDC42DEEBEB7BDC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_ktcc_SettlementsOfForeignCurrencyExchangeForwardContracts_CAB15B4976F431B5DBDC42DEEBEB7BDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFixedInterestRate" xlink:label="loc_us-gaap_DerivativeFixedInterestRate_6EE6A69D9B2CB26B147F42DEEBEB57B9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_us-gaap_DerivativeFixedInterestRate_6EE6A69D9B2CB26B147F42DEEBEB57B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months" xlink:label="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months_A9E00DA5DFF1D797420A42DEEBEB5240" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_71B17E96633A9FE7E8C142DEEBEA6163" xlink:to="loc_us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months_A9E00DA5DFF1D797420A42DEEBEB5240" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DerivativeFinancialInstrumentsGainLossOfDerivativeInstrumentsInStatementOfOperationsDetail" xlink:type="extended">
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerivativeInstrumentsLineItems" xlink:label="loc_ktcc_DerivativeInstrumentsLineItems_375C4702FBD75D3B758FF6BCD30CC7CA" xlink:type="locator" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerivativeInstrumentsTable" xlink:label="loc_ktcc_DerivativeInstrumentsTable_5651F9125EDB0C99F039F6BCD309390F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ktcc_DerivativeInstrumentsLineItems_375C4702FBD75D3B758FF6BCD30CC7CA" xlink:to="loc_ktcc_DerivativeInstrumentsTable_5651F9125EDB0C99F039F6BCD309390F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_E4651DDD2F380DD91571F6BCD30AEBCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DerivativeInstrumentsTable_5651F9125EDB0C99F039F6BCD309390F" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_E4651DDD2F380DD91571F6BCD30AEBCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E4651DDD2F380DD91571F6BCD30AEBCF" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E4651DDD2F380DD91571F6BCD30AEBCF" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_8F39E51D40D5D58990A5F6BCD30A9D9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D" xlink:to="loc_us-gaap_ForwardContractsMember_8F39E51D40D5D58990A5F6BCD30A9D9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_DC5D5BD5EB5DEBFEEEA3F6BCD30B8AB2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3132D28AC2443C93EC65F6BCD30A619D" xlink:to="loc_us-gaap_InterestRateSwapMember_DC5D5BD5EB5DEBFEEEA3F6BCD30B8AB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_963FDA84EADF836265C0F6BCD30B77DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DerivativeInstrumentsTable_5651F9125EDB0C99F039F6BCD309390F" xlink:to="loc_us-gaap_HedgingDesignationAxis_963FDA84EADF836265C0F6BCD30B77DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_4689F943BE3A247A64FBF6BCD30B131F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_963FDA84EADF836265C0F6BCD30B77DB" xlink:to="loc_us-gaap_HedgingDesignationDomain_4689F943BE3A247A64FBF6BCD30B131F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_4689F943BE3A247A64FBF6BCD30B131F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_963FDA84EADF836265C0F6BCD30B77DB" xlink:to="loc_us-gaap_HedgingDesignationDomain_4689F943BE3A247A64FBF6BCD30B131F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_AC07139D882903E79B1BF6BCD30BA862" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4689F943BE3A247A64FBF6BCD30B131F" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_AC07139D882903E79B1BF6BCD30BA862" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward" xlink:label="loc_us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward_0E40F659391A04E0542AF6BCD30CC203" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DerivativeInstrumentsLineItems_375C4702FBD75D3B758FF6BCD30CC7CA" xlink:to="loc_us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward_0E40F659391A04E0542AF6BCD30CC203" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_976E47771D739F46B6A4F6BCD30CB8ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward_0E40F659391A04E0542AF6BCD30CC203" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossCumulativeChangesInNetGainLossFromCashFlowHedgesEffectNetOfTax_976E47771D739F46B6A4F6BCD30CB8ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_58AD700F3B6C63B48EE0F6BCD30C402D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward_0E40F659391A04E0542AF6BCD30CC203" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodBeforeTax_58AD700F3B6C63B48EE0F6BCD30C402D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_360C937A46300086BCB5F6BCD30D0317" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TranslationAdjustmentForNetInvestmentHedgeRollForward_0E40F659391A04E0542AF6BCD30CC203" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_360C937A46300086BCB5F6BCD30D0317" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DerivativeFinancialInstrumentsSummarizedFairValueOfDerivativeInstrumentsInConsolidatedBalanceSheetsDetail" xlink:type="extended">
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerivativeInstrumentsLineItems" xlink:label="loc_ktcc_DerivativeInstrumentsLineItems_BB10B7F29E36D41B91FCD48E50EC58A7" xlink:type="locator" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerivativeInstrumentsTable" xlink:label="loc_ktcc_DerivativeInstrumentsTable_A5B6DB3699BCC6D30F40D48E50E90522" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ktcc_DerivativeInstrumentsLineItems_BB10B7F29E36D41B91FCD48E50EC58A7" xlink:to="loc_ktcc_DerivativeInstrumentsTable_A5B6DB3699BCC6D30F40D48E50E90522" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_3C84D2BDDA0E6F2CAED8D48E50E963A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DerivativeInstrumentsTable_A5B6DB3699BCC6D30F40D48E50E90522" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_3C84D2BDDA0E6F2CAED8D48E50E963A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3C84D2BDDA0E6F2CAED8D48E50E963A2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3C84D2BDDA0E6F2CAED8D48E50E963A2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_ECE32F9000CE3A36CECED48E50EAC914" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7" xlink:to="loc_us-gaap_ForwardContractsMember_ECE32F9000CE3A36CECED48E50EAC914" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_A45782297F9C9D9BC70CD48E50EA2AA5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_72A416D5BF527F0AA76CD48E50E956C7" xlink:to="loc_us-gaap_InterestRateSwapMember_A45782297F9C9D9BC70CD48E50EA2AA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3C45567498EC096ED13CD48E50EA7D01" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DerivativeInstrumentsTable_A5B6DB3699BCC6D30F40D48E50E90522" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3C45567498EC096ED13CD48E50EA7D01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3C45567498EC096ED13CD48E50EA7D01" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3C45567498EC096ED13CD48E50EA7D01" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCurrentAssetsMember" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_21A3B4273D20B2C4681FD48E50EB1999" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_21A3B4273D20B2C4681FD48E50EB1999" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_OtherLongTermAssetsMember" xlink:label="loc_ktcc_OtherLongTermAssetsMember_D6C1211A80F3F62628EFD48E50EB61B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:to="loc_ktcc_OtherLongTermAssetsMember_D6C1211A80F3F62628EFD48E50EB61B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_8633C05B359066FE605ED48E50EB6DAB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_8633C05B359066FE605ED48E50EB6DAB" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_OtherLongTermLiabilitiesMember" xlink:label="loc_ktcc_OtherLongTermLiabilitiesMember_D1F6C6B9E2631F0B81CED48E50EB9BB3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_8E811E4AEF865D2D1D1CD48E50EBA4B5" xlink:to="loc_ktcc_OtherLongTermLiabilitiesMember_D1F6C6B9E2631F0B81CED48E50EB9BB3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_9DEE60CC0631FA2337F6D48E50ECB3FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DerivativeInstrumentsLineItems_BB10B7F29E36D41B91FCD48E50EC58A7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAssetAmountNotOffsetAgainstCollateral_9DEE60CC0631FA2337F6D48E50ECB3FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_DAB889E71BE32085674BD48E50EC6530" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DerivativeInstrumentsLineItems_BB10B7F29E36D41B91FCD48E50EC58A7" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiabilityAmountNotOffsetAgainstCollateral_DAB889E71BE32085674BD48E50EC6530" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DerivativeFinancialInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/EarningsPerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/EarningsPerShareReconciliationOfDenominatorAndNumberOfAntidilutiveCommonShareAwardsNotIncludedInDilutedEarningsPerShareCalculationDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/EarningsPerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/FairValueMeasurements" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueOptionQuantitativeDisclosuresLineItems" xlink:label="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_DC594897A915D917ADDF41C3E90EA1B8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueOptionQuantitativeDisclosuresTable" xlink:label="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_DC594897A915D917ADDF41C3E90EA1B8" xlink:to="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis" xlink:label="loc_srt_StatementScenarioAxis_0E8ED97A42791BC2CCFE42725E86D261" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_srt_StatementScenarioAxis_0E8ED97A42791BC2CCFE42725E86D261" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_7AA8CC45C8C4BA4011E442725E88E242_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_0E8ED97A42791BC2CCFE42725E86D261" xlink:to="loc_srt_ScenarioUnspecifiedDomain_7AA8CC45C8C4BA4011E442725E88E242_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_7AA8CC45C8C4BA4011E442725E88E242" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_0E8ED97A42791BC2CCFE42725E86D261" xlink:to="loc_srt_ScenarioUnspecifiedDomain_7AA8CC45C8C4BA4011E442725E88E242" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember" xlink:label="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember_E10892A5CA37C8667CA7427260031B5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_7AA8CC45C8C4BA4011E442725E88E242" xlink:to="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember_E10892A5CA37C8667CA7427260031B5B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_BEBE5A3F8319EF27A5F042725E2182BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_us-gaap_VariableRateAxis_BEBE5A3F8319EF27A5F042725E2182BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_023205BFC7B47A5821F242725E229687_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_BEBE5A3F8319EF27A5F042725E2182BB" xlink:to="loc_us-gaap_VariableRateDomain_023205BFC7B47A5821F242725E229687_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_023205BFC7B47A5821F242725E229687" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_BEBE5A3F8319EF27A5F042725E2182BB" xlink:to="loc_us-gaap_VariableRateDomain_023205BFC7B47A5821F242725E229687" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_FixedRateMember" xlink:label="loc_ktcc_FixedRateMember_0B55FB96A144AE23DD0F42725F6A2D56" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_023205BFC7B47A5821F242725E229687" xlink:to="loc_ktcc_FixedRateMember_0B55FB96A144AE23DD0F42725F6A2D56" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_8DA6F306522D25FCC44742725DBC6DD9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_8DA6F306522D25FCC44742725DBC6DD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6F3D18DC78600C501A1D42725DC34449_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8DA6F306522D25FCC44742725DBC6DD9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6F3D18DC78600C501A1D42725DC34449_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_6F3D18DC78600C501A1D42725DC34449" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8DA6F306522D25FCC44742725DBC6DD9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_6F3D18DC78600C501A1D42725DC34449" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_AD7C551C8563222E72CE42725EF66EB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_6F3D18DC78600C501A1D42725DC34449" xlink:to="loc_us-gaap_LineOfCreditMember_AD7C551C8563222E72CE42725EF66EB1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_09A9FAC29D29EAAECAFC41C3E904530C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_09A9FAC29D29EAAECAFC41C3E904530C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_09A9FAC29D29EAAECAFC41C3E904530C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_09A9FAC29D29EAAECAFC41C3E904530C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_C08768853BD3637F3FC241C3E9055F4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1" xlink:to="loc_us-gaap_ForwardContractsMember_C08768853BD3637F3FC241C3E9055F4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_6EE3A24A0D80D1423AC241C3E905E8FB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5797E18FDC05FC59A9A341C3E90482D1" xlink:to="loc_us-gaap_InterestRateSwapMember_6EE3A24A0D80D1423AC241C3E905E8FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B0AD2170C396870D709941C3E9055693" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B0AD2170C396870D709941C3E9055693" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B0AD2170C396870D709941C3E9055693" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_B0AD2170C396870D709941C3E9055693" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_EEEA13A22BAE1FB01E6541C3E9060A86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_EEEA13A22BAE1FB01E6541C3E9060A86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_F0867C105A2EBE0A76A441C3E90642CA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_F0867C105A2EBE0A76A441C3E90642CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_311097F97DCA5BF10BC041C3E906B2A0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_E4B8D151736CCC91A98241C3E9054B16" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_311097F97DCA5BF10BC041C3E906B2A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinancialInstrumentAxis" xlink:label="loc_us-gaap_FinancialInstrumentAxis_C35966BD4A163C66C16541C3E9061C27" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresTable_F9F4A9A5002F00A54BED41C3E9044B0D" xlink:to="loc_us-gaap_FinancialInstrumentAxis_C35966BD4A163C66C16541C3E9061C27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_C35966BD4A163C66C16541C3E9061C27" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_C35966BD4A163C66C16541C3E9061C27" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_194EFD8704903CEE6AC241C3E90CEA30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_194EFD8704903CEE6AC241C3E90CEA30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_FF17CAA7D7F9BBF0BEF941C3E90D22E5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_FF17CAA7D7F9BBF0BEF941C3E90D22E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_54F18ECD7C04D11279D941C3E90D5937" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_54F18ECD7C04D11279D941C3E90D5937" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeMember" xlink:label="loc_us-gaap_DerivativeMember_5C21FF24E9EF58EB5D3A41C3E90D934E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_87291287AAFECE4C7F7E41C3E907D539" xlink:to="loc_us-gaap_DerivativeMember_5C21FF24E9EF58EB5D3A41C3E90D934E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_E00010349DBC9A9A880341C3E90DC9FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeMember_5C21FF24E9EF58EB5D3A41C3E90D934E" xlink:to="loc_us-gaap_InterestRateSwapMember_E00010349DBC9A9A880341C3E90DC9FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForwardContractsMember" xlink:label="loc_us-gaap_ForwardContractsMember_798770410286F82F5F0241C3E90E5EF4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeMember_5C21FF24E9EF58EB5D3A41C3E90D934E" xlink:to="loc_us-gaap_ForwardContractsMember_798770410286F82F5F0241C3E90E5EF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_81C6ECCC2824577C001C41C3E90E9E94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_DC594897A915D917ADDF41C3E90EA1B8" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_81C6ECCC2824577C001C41C3E90E9E94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesFairValueDisclosure" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_C604E98161A5E2E2CB2141C3E90E3AE7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_DC594897A915D917ADDF41C3E90EA1B8" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_C604E98161A5E2E2CB2141C3E90E3AE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_387DC5C08D98B9A08AC742725CFF68BD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueOptionQuantitativeDisclosuresLineItems_DC594897A915D917ADDF41C3E90EA1B8" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_387DC5C08D98B9A08AC742725CFF68BD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/FairValueMeasurementsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssetsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7C483B813564B8C01C4241C3E8D7F739" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_599061C0C108D806A49141C3E8D09A3F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7C483B813564B8C01C4241C3E8D7F739" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_599061C0C108D806A49141C3E8D09A3F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_548835216FCA49FCE6CD41C3E8D07F3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_599061C0C108D806A49141C3E8D09A3F" xlink:to="loc_srt_RangeAxis_548835216FCA49FCE6CD41C3E8D07F3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_548835216FCA49FCE6CD41C3E8D07F3A" xlink:to="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_548835216FCA49FCE6CD41C3E8D07F3A" xlink:to="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_13BF7592300458B28FB841C3E8D0FF4D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625" xlink:to="loc_srt_MinimumMember_13BF7592300458B28FB841C3E8D0FF4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_535B6F36F728B189B56041C3E8D1B3EE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53E567B96BD06593871041C3E8D0B625" xlink:to="loc_srt_MaximumMember_535B6F36F728B189B56041C3E8D1B3EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_149A3DBB3FB10CDC997B41C3E8D14C9D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_599061C0C108D806A49141C3E8D09A3F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_149A3DBB3FB10CDC997B41C3E8D14C9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_149A3DBB3FB10CDC997B41C3E8D14C9D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_149A3DBB3FB10CDC997B41C3E8D14C9D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncompeteAgreementsMember" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_153CD67C3C936BFFA82941C3E8D1C0BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_153CD67C3C936BFFA82941C3E8D1C0BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_B3DF71B11D5E63A6479141C3E8D70C9E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B" xlink:to="loc_us-gaap_CustomerRelationshipsMember_B3DF71B11D5E63A6479141C3E8D70C9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OffMarketFavorableLeaseMember" xlink:label="loc_us-gaap_OffMarketFavorableLeaseMember_B8AED1174CCD28450EF941C3E8D75102" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A1A3283C17E9A8D2017B41C3E8D1014B" xlink:to="loc_us-gaap_OffMarketFavorableLeaseMember_B8AED1174CCD28450EF941C3E8D75102" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsRollForward" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7C483B813564B8C01C4241C3E8D7F739" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_061DDD43E1A8C7D7779741C3E8D805E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_061DDD43E1A8C7D7779741C3E8D805E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_8B8F8850E52B5FC0009C41C3E8D8FEE6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_8B8F8850E52B5FC0009C41C3E8D8FEE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_19E0321E2CCBCCA2FCD941C3E8D86210" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_19E0321E2CCBCCA2FCD941C3E8D86210" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsFinitelived" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_9F4A5A02EEA014C1363841C3E8D8454E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsFinitelived_9F4A5A02EEA014C1363841C3E8D8454E" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerecognitionFavorableLeaseperASC842" xlink:label="loc_ktcc_DerecognitionFavorableLeaseperASC842_8C90EA67778C47A8F36241C3E8D93FEF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_ktcc_DerecognitionFavorableLeaseperASC842_8C90EA67778C47A8F36241C3E8D93FEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_18770573F733BF3ABE9541C3E8D923B0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsRollForward_10710E75473B89A184AE41C3E8D7D89B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_18770573F733BF3ABE9541C3E8D923B0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/GoodwillAndOtherIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/IncomeTaxesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/Inventories" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/InventoriesComponentsOfInventoriesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/InventoriesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LeasesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_9FC63613660C4CFDCC7642DEEB95DEE4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_E9E2722EF6DC7FD1A89442DEEB93CB38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_9FC63613660C4CFDCC7642DEEB95DEE4" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_E9E2722EF6DC7FD1A89442DEEB93CB38" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_9C7D692CC4FEF3009AAA42DEEB93F237" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_E9E2722EF6DC7FD1A89442DEEB93CB38" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_9C7D692CC4FEF3009AAA42DEEB93F237" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9C7D692CC4FEF3009AAA42DEEB93F237" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_9C7D692CC4FEF3009AAA42DEEB93F237" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_3790C7E42D2BE2D3C2F842DEEB94FA8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38" xlink:to="loc_us-gaap_CostOfSalesMember_3790C7E42D2BE2D3C2F842DEEB94FA8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_65C788A1E1BAB502908542DEEB940F5C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_C0D954E53CF5E38A722842DEEB948C38" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_65C788A1E1BAB502908542DEEB940F5C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_2561328EA6A5A8B29DB642DEEB94C3FB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_E9E2722EF6DC7FD1A89442DEEB93CB38" xlink:to="loc_srt_RangeAxis_2561328EA6A5A8B29DB642DEEB94C3FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_2561328EA6A5A8B29DB642DEEB94C3FB" xlink:to="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_2561328EA6A5A8B29DB642DEEB94C3FB" xlink:to="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_706B2D56DDF685AACB7B42DEEB95B632" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460" xlink:to="loc_srt_MinimumMember_706B2D56DDF685AACB7B42DEEB95B632" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_459539B3B7FC4B22B59342DEEB959C57" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5B16F926CEA40BD7CE9742DEEB952460" xlink:to="loc_srt_MaximumMember_459539B3B7FC4B22B59342DEEB959C57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseTermOfContract" xlink:label="loc_us-gaap_LesseeOperatingLeaseTermOfContract_805EE818E1EFAFB9B6CE42DEEB961DB9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_9FC63613660C4CFDCC7642DEEB95DEE4" xlink:to="loc_us-gaap_LesseeOperatingLeaseTermOfContract_805EE818E1EFAFB9B6CE42DEEB961DB9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseCost" xlink:label="loc_us-gaap_OperatingLeaseCost_23F187B040370CD96EA442DEEB96D3B9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_9FC63613660C4CFDCC7642DEEB95DEE4" xlink:to="loc_us-gaap_OperatingLeaseCost_23F187B040370CD96EA442DEEB96D3B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LeaseCost" xlink:label="loc_us-gaap_LeaseCost_EE08C09B66A5E8B6433042DEEB96024A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_9FC63613660C4CFDCC7642DEEB95DEE4" xlink:to="loc_us-gaap_LeaseCost_EE08C09B66A5E8B6433042DEEB96024A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LeasesLeases" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LeasesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LesseeOperatingLeaseLiabilityMaturityDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LongTermDebt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LongTermDebtDetail" xlink:type="extended">
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtDisclosureLineItems" xlink:label="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:type="locator" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtDisclosureTable" xlink:label="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_5CAD6C7143A5A9D6976B42DEEC2BB853" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_5CAD6C7143A5A9D6976B42DEEC2BB853" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_0549B100265E9172489C42DEEC2BC0A5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_5CAD6C7143A5A9D6976B42DEEC2BB853" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_0549B100265E9172489C42DEEC2BC0A5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_0549B100265E9172489C42DEEC2BC0A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_5CAD6C7143A5A9D6976B42DEEC2BB853" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_0549B100265E9172489C42DEEC2BC0A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_2CB2AC335A9B8D6A749042E03F9C604D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_0549B100265E9172489C42DEEC2BC0A5" xlink:to="loc_us-gaap_SubsequentEventMember_2CB2AC335A9B8D6A749042E03F9C604D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_85B46F5DDCA0B6CEDB0F42DEEC2C10A8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_srt_RangeAxis_85B46F5DDCA0B6CEDB0F42DEEC2C10A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_85B46F5DDCA0B6CEDB0F42DEEC2C10A8" xlink:to="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_85B46F5DDCA0B6CEDB0F42DEEC2C10A8" xlink:to="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_08BE070AB90BCE29E0DA42DEEC2C54C0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368" xlink:to="loc_srt_MinimumMember_08BE070AB90BCE29E0DA42DEEC2C54C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_E3D7CA503E4DE0F9CD7E42DEEC2C57FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_5216E4716E5524F60D1C42DEEC2CC368" xlink:to="loc_srt_MaximumMember_E3D7CA503E4DE0F9CD7E42DEEC2C57FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis" xlink:label="loc_srt_StatementScenarioAxis_7AEAB5270E4046A49C0042DEEC2CB091" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_srt_StatementScenarioAxis_7AEAB5270E4046A49C0042DEEC2CB091" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_7AEAB5270E4046A49C0042DEEC2CB091" xlink:to="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain" xlink:label="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_7AEAB5270E4046A49C0042DEEC2CB091" xlink:to="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioOneMember" xlink:label="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioOneMember_B64632A34ECDD6F36FF042DEEC2D0AD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490" xlink:to="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioOneMember_B64632A34ECDD6F36FF042DEEC2D0AD0" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember" xlink:label="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember_15E39798FD101CBFDBF242DEEC2DE118" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490" xlink:to="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioTwoMember_15E39798FD101CBFDBF242DEEC2DE118" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioThreeMember" xlink:label="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioThreeMember_2048BEC253504F20253642DEEC2D948A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_F073617CFFF4E1194BAA42DEEC2DC490" xlink:to="loc_ktcc_DebtInstrumentBasisSpreadonVariableRateScenarioThreeMember_2048BEC253504F20253642DEEC2D948A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_6D746EA37F12171D7EDC42DEEC2E1209" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_us-gaap_CreditFacilityAxis_6D746EA37F12171D7EDC42DEEC2E1209" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_68664076A750AD3667BC42DEEC2ECE5D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_6D746EA37F12171D7EDC42DEEC2E1209" xlink:to="loc_us-gaap_CreditFacilityDomain_68664076A750AD3667BC42DEEC2ECE5D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_68664076A750AD3667BC42DEEC2ECE5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_6D746EA37F12171D7EDC42DEEC2E1209" xlink:to="loc_us-gaap_CreditFacilityDomain_68664076A750AD3667BC42DEEC2ECE5D" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_WellsFargoBankMember" xlink:label="loc_ktcc_WellsFargoBankMember_2D5511E57344E749BE7042DEEC2EAF0B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_68664076A750AD3667BC42DEEC2ECE5D" xlink:to="loc_ktcc_WellsFargoBankMember_2D5511E57344E749BE7042DEEC2EAF0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_29835BB17DF496FEBC2542DEEC2E2A0F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_29835BB17DF496FEBC2542DEEC2E2A0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_29835BB17DF496FEBC2542DEEC2E2A0F" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_29835BB17DF496FEBC2542DEEC2E2A0F" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_5E605E26CB4BAE9B892542DEEC2F02D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA" xlink:to="loc_us-gaap_LineOfCreditMember_5E605E26CB4BAE9B892542DEEC2F02D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMember" xlink:label="loc_us-gaap_LongTermDebtMember_9BE582B0EA36CC5D51E542DEEC2F1396" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA" xlink:to="loc_us-gaap_LongTermDebtMember_9BE582B0EA36CC5D51E542DEEC2F1396" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_EquipmentTermLoanDomain" xlink:label="loc_ktcc_EquipmentTermLoanDomain_E6950FE3C5D1BB26065D42DEEC2FD369" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DE96F601534F5C3596E142DEEC2FF7FA" xlink:to="loc_ktcc_EquipmentTermLoanDomain_E6950FE3C5D1BB26065D42DEEC2FD369" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_FC9C98B5BB008BCAD40042DEEC2F50DD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ktcc_DebtDisclosureTable_C202B68AE243AEDDD36042DEEC2BFB43" xlink:to="loc_us-gaap_VariableRateAxis_FC9C98B5BB008BCAD40042DEEC2F50DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_FC9C98B5BB008BCAD40042DEEC2F50DD" xlink:to="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_FC9C98B5BB008BCAD40042DEEC2F50DD" xlink:to="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_OneMonthLondonInterbankOfferedRateMember" xlink:label="loc_ktcc_OneMonthLondonInterbankOfferedRateMember_10FFE5DE7502561D48AA42DEEC308DEF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2" xlink:to="loc_ktcc_OneMonthLondonInterbankOfferedRateMember_10FFE5DE7502561D48AA42DEEC308DEF" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_FederalFundsRateMember" xlink:label="loc_ktcc_FederalFundsRateMember_BBC00A523657521C591D42DEEC30AA4C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2" xlink:to="loc_ktcc_FederalFundsRateMember_BBC00A523657521C591D42DEEC30AA4C" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_FixedRateMember" xlink:label="loc_ktcc_FixedRateMember_41F9F5125D337CACF9BF42DEEC315AA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_8727D5A8CAC74DCC71A642DEEC3019B2" xlink:to="loc_ktcc_FixedRateMember_41F9F5125D337CACF9BF42DEEC315AA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_85A3F8BB07F0391C106542DEEC31055A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_85A3F8BB07F0391C106542DEEC31055A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_E63666F6B988EE77C82742DEEC312C0A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_E63666F6B988EE77C82742DEEC312C0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentPeriodicPaymentPrincipal" xlink:label="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_229518F3A8AA89A45D2342DEEC31623C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_DebtInstrumentPeriodicPaymentPrincipal_229518F3A8AA89A45D2342DEEC31623C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_FDA6F06741A7D2D460AB42DEEC327E7D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LineOfCredit_FDA6F06741A7D2D460AB42DEEC327E7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LettersOfCreditOutstandingAmount" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_CDE9A8C7B17D7BDF6DD642DEEC325288" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_CDE9A8C7B17D7BDF6DD642DEEC325288" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019A6AAE3D53659FF37A42DEEC320F9E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_019A6AAE3D53659FF37A42DEEC320F9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtPercentageBearingVariableInterestRate" xlink:label="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_8E15B7F0A6246B45746542DEEC324A51" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtPercentageBearingVariableInterestRate_8E15B7F0A6246B45746542DEEC324A51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_CA7E59533C7C8BEC7AD842DEEC3283D7" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_CA7E59533C7C8BEC7AD842DEEC3283D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_9AD96C4DB0E2B69B566342DEEC32BD37" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_9AD96C4DB0E2B69B566342DEEC32BD37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_6802067C25282FA9A01B42DEEC33386D" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_6802067C25282FA9A01B42DEEC33386D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_E28FB19AF77F2254C91C42DEEC332608" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_E28FB19AF77F2254C91C42DEEC332608" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_76B275AB2333D5318DD142DEEC336B6D" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_76B275AB2333D5318DD142DEEC336B6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_81206704F2AD3E52ECF242DEEC33743D" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_81206704F2AD3E52ECF242DEEC33743D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnamortizedDebtIssuanceExpense" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_504699B5B90BAE54B6BC42DEEC330E97" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_504699B5B90BAE54B6BC42DEEC330E97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_946E446EACEDCCBF4FE942DEEC338DCB" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ktcc_DebtDisclosureLineItems_B6167115B5DC9F24C9EC42DEEC31A444" xlink:to="loc_us-gaap_LongTermDebt_946E446EACEDCCBF4FE942DEEC338DCB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/LongTermDebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/Revenue" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/RevenueContractWithCustomerAssetAndLiabilityDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/RevenueDisaggregationOfRevenueDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueLineItems" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_242349E789E336BAAF663CFF083FA3E1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisaggregationOfRevenueTable" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_F1AE05C91F6BEBEABFAB3CFF083E8C23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_242349E789E336BAAF663CFF083FA3E1" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_F1AE05C91F6BEBEABFAB3CFF083E8C23" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceAxis" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7090D886B72A4AF856CE3CFF083EB3F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_F1AE05C91F6BEBEABFAB3CFF083E8C23" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7090D886B72A4AF856CE3CFF083EB3F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7090D886B72A4AF856CE3CFF083EB3F5" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TimingOfTransferOfGoodOrServiceDomain" xlink:label="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceAxis_7090D886B72A4AF856CE3CFF083EB3F5" xlink:to="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransferredOverTimeMember" xlink:label="loc_us-gaap_TransferredOverTimeMember_F658395BD0435D1D5DCB3CFF083F45F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079" xlink:to="loc_us-gaap_TransferredOverTimeMember_F658395BD0435D1D5DCB3CFF083F45F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TransferredAtPointInTimeMember" xlink:label="loc_us-gaap_TransferredAtPointInTimeMember_A390D9E013BA2139FF433CFF083F9308" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TimingOfTransferOfGoodOrServiceDomain_D27EDAE8732F1AF4B34A3CFF083FD079" xlink:to="loc_us-gaap_TransferredAtPointInTimeMember_A390D9E013BA2139FF433CFF083F9308" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_2E9913F3FDD0F8AC552B3CFF08409A8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_242349E789E336BAAF663CFF083FA3E1" xlink:to="loc_us-gaap_Revenues_2E9913F3FDD0F8AC552B3CFF08409A8C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/RevenueTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ScheduleOfDerivativeInstrumentsDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_F26A2A2307AD45B6FE8142DD72C340A8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_021B9436FCEFF7FEC73C42DD72BD59C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_F26A2A2307AD45B6FE8142DD72C340A8" xlink:to="loc_us-gaap_DerivativeTable_021B9436FCEFF7FEC73C42DD72BD59C8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeAxis" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_1DBEE3C374C6C855D9B942DD72BD3372" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_021B9436FCEFF7FEC73C42DD72BD59C8" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_1DBEE3C374C6C855D9B942DD72BD3372" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_91C0C160174AD7181B6042DD72BEAD91_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_1DBEE3C374C6C855D9B942DD72BD3372" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_91C0C160174AD7181B6042DD72BEAD91_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventTypeDomain" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_91C0C160174AD7181B6042DD72BEAD91" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_1DBEE3C374C6C855D9B942DD72BD3372" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_91C0C160174AD7181B6042DD72BEAD91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsequentEventMember" xlink:label="loc_us-gaap_SubsequentEventMember_A1F4582941BF202FC94A42DD72BF1186" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_91C0C160174AD7181B6042DD72BEAD91" xlink:to="loc_us-gaap_SubsequentEventMember_A1F4582941BF202FC94A42DD72BF1186" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_AF96E457E3F66E25908442DD72BFA5BF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_021B9436FCEFF7FEC73C42DD72BD59C8" xlink:to="loc_srt_CurrencyAxis_AF96E457E3F66E25908442DD72BFA5BF" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/currency/2019/currency-2019-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_AF96E457E3F66E25908442DD72BFA5BF" xlink:to="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/currency/2019/currency-2019-01-31.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_AF96E457E3F66E25908442DD72BFA5BF" xlink:to="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/currency/2019/currency-2019-01-31.xsd#currency_MXN" xlink:label="loc_currency_MXN_717347C47EE061398FCD42DD72C0F0EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0" xlink:to="loc_currency_MXN_717347C47EE061398FCD42DD72C0F0EE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/currency/2019/currency-2019-01-31.xsd#currency_USD" xlink:label="loc_currency_USD_580152163E171CABB14342DD72C2BE7A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_32BEF177926783E5679C42DD72BF06F0" xlink:to="loc_currency_USD_580152163E171CABB14342DD72C2BE7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeNet" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_4EA2659AD4A6FAC01AF642DD72C562FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_F26A2A2307AD45B6FE8142DD72C340A8" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_4EA2659AD4A6FAC01AF642DD72C562FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeNotionalAmount" xlink:label="loc_us-gaap_DerivativeNotionalAmount_F7DD1A92BC2C19E0BA8242DD766E4E4C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_F26A2A2307AD45B6FE8142DD72C340A8" xlink:to="loc_us-gaap_DerivativeNotionalAmount_F7DD1A92BC2C19E0BA8242DD766E4E4C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesDetail" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ShareBasedCompensation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ShareBasedCompensationDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5B2DB299214C8EECCE66D48E515DA506" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5B2DB299214C8EECCE66D48E515DA506" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_F52FC585199DEBA0B101D48E515D3D76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_5B2DB299214C8EECCE66D48E515DA506" xlink:to="loc_us-gaap_AwardTypeAxis_F52FC585199DEBA0B101D48E515D3D76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3C176554D61BED221375D48E515E0A9C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_F52FC585199DEBA0B101D48E515D3D76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3C176554D61BED221375D48E515E0A9C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3C176554D61BED221375D48E515E0A9C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_F52FC585199DEBA0B101D48E515D3D76" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3C176554D61BED221375D48E515E0A9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockAppreciationRightsSARSMember" xlink:label="loc_us-gaap_StockAppreciationRightsSARSMember_B0ECD309D2EC082F6D7DD48E515EF862" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3C176554D61BED221375D48E515E0A9C" xlink:to="loc_us-gaap_StockAppreciationRightsSARSMember_B0ECD309D2EC082F6D7DD48E515EF862" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9E625FD599D30A38F893D48E515F7DFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9E625FD599D30A38F893D48E515F7DFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedIntrinsicValue_A86C7B92A4A919869645D48E515F0246" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedIntrinsicValue_A86C7B92A4A919869645D48E515F0246" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9AB5D4925012FFBF5B58D48E5160A051" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9AB5D4925012FFBF5B58D48E5160A051" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_FC6E2C277859CCEDC95DD48E516021C7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_FC6E2C277859CCEDC95DD48E516021C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_14F9DC923409D01C1ED3D48E5160903E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_14F9DC923409D01C1ED3D48E5160903E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_F75A7E34C1677C3B04E4D48E5160D48D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_EB474ED5F8CE2454C76BD48E515E9261" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_F75A7E34C1677C3B04E4D48E5160D48D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/ShareBasedCompensationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/SignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/SignificantAccountingPoliciesDetail" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_6F638DD19C7239EB623042DBD78E3881" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:to="loc_us-gaap_StatementTable_6F638DD19C7239EB623042DBD78E3881" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13159D420A2499BA9A5142DBD78E233F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6F638DD19C7239EB623042DBD78E3881" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13159D420A2499BA9A5142DBD78E233F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E20BBB7ED611101C936842DBD78E3102_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13159D420A2499BA9A5142DBD78E233F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E20BBB7ED611101C936842DBD78E3102_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E20BBB7ED611101C936842DBD78E3102" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_13159D420A2499BA9A5142DBD78E233F" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E20BBB7ED611101C936842DBD78E3102" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OffMarketFavorableLeaseMember" xlink:label="loc_us-gaap_OffMarketFavorableLeaseMember_987EC13C8EB61676D71742DBD78F5D31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_E20BBB7ED611101C936842DBD78E3102" xlink:to="loc_us-gaap_OffMarketFavorableLeaseMember_987EC13C8EB61676D71742DBD78F5D31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_EB3B1031ACBEBC78F00142DBD78F11DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_EB3B1031ACBEBC78F00142DBD78F11DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="loc_us-gaap_OperatingLeaseLiability_4C5AB2BE22413B0A5E5E42DBD78F5FD5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:to="loc_us-gaap_OperatingLeaseLiability_4C5AB2BE22413B0A5E5E42DBD78F5FD5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidRent" xlink:label="loc_us-gaap_PrepaidRent_E2531BF245B88C23A89042DBD790E867" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:to="loc_us-gaap_PrepaidRent_E2531BF245B88C23A89042DBD790E867" xlink:type="arc" />
    <link:loc xlink:href="ktcc-20190928.xsd#ktcc_DerecognitionFavorableLeaseperASC842" xlink:label="loc_ktcc_DerecognitionFavorableLeaseperASC842_3F37F20B38BBCB2D362342DBD790E8C1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C046A0B1557A5B999EE642DBD78F977C" xlink:to="loc_ktcc_DerecognitionFavorableLeaseperASC842_3F37F20B38BBCB2D362342DBD790E8C1" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.keytronic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/TradeAccountsReceivablePurchasePrograms" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.keytronic.com/role/TradeAccountsReceivablePurchaseProgramsDetail" xlink:type="extended" />
</link:linkbase>
