

<!--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.hersheys.com/role/AssetsAndLiabilitiesHeldForSale" xlink:href="hsy-20190929.xsd#AssetsAndLiabilitiesHeldForSale" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/AssetsAndLiabilitiesHeldForSaleDetails" xlink:href="hsy-20190929.xsd#AssetsAndLiabilitiesHeldForSaleDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/AssetsAndLiabilitiesHeldForSaleTables" xlink:href="hsy-20190929.xsd#AssetsAndLiabilitiesHeldForSaleTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitions" xlink:href="hsy-20190929.xsd#BusinessAcquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAmplifySnackBrandsIncAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsAmplifySnackBrandsIncAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAmplifySnackBrandsIncNarrativeDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsAmplifySnackBrandsIncNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsOneBrandsLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsOneBrandsLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsOneBrandsLlcNarrativeDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsOneBrandsLlcNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsPirateBrandsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsPirateBrandsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsPirateBrandsNarrativeDetails" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsPirateBrandsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsTables" xlink:href="hsy-20190929.xsd#BusinessAcquisitionsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivities" xlink:href="hsy-20190929.xsd#BusinessRealignmentActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesNarrativeDetails" xlink:href="hsy-20190929.xsd#BusinessRealignmentActivitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:href="hsy-20190929.xsd#BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:href="hsy-20190929.xsd#BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesTables" xlink:href="hsy-20190929.xsd#BusinessRealignmentActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheets" xlink:href="hsy-20190929.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="hsy-20190929.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="hsy-20190929.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="hsy-20190929.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" xlink:href="hsy-20190929.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="hsy-20190929.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:href="hsy-20190929.xsd#ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/Contingencies" xlink:href="hsy-20190929.xsd#Contingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ContingenciesContingenciesNarrativeDetails" xlink:href="hsy-20190929.xsd#ContingenciesContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ContingenciesTables" xlink:href="hsy-20190929.xsd#ContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstruments" xlink:href="hsy-20190929.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsNarrativeDetails" xlink:href="hsy-20190929.xsd#DerivativeInstrumentsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:href="hsy-20190929.xsd#DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfCumulativeBasisAdjustmentsForInterestRateSwapDerivativesDetails" xlink:href="hsy-20190929.xsd#DerivativeInstrumentsScheduleOfCumulativeBasisAdjustmentsForInterestRateSwapDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:href="hsy-20190929.xsd#DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsTables" xlink:href="hsy-20190929.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DocumentAndEntityInformationDocument" xlink:href="hsy-20190929.xsd#DocumentAndEntityInformationDocument" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShare" xlink:href="hsy-20190929.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareNarrativeDetails" xlink:href="hsy-20190929.xsd#EarningsPerShareNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:href="hsy-20190929.xsd#EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareTables" xlink:href="hsy-20190929.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurements" xlink:href="hsy-20190929.xsd#FairValueMeasurementsFairValueMeasurements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsTables" xlink:href="hsy-20190929.xsd#FairValueMeasurementsFairValueMeasurementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsNarrativeDetails" xlink:href="hsy-20190929.xsd#FairValueMeasurementsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:href="hsy-20190929.xsd#FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:href="hsy-20190929.xsd#FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssets" xlink:href="hsy-20190929.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsNarrativeDetails" xlink:href="hsy-20190929.xsd#GoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:href="hsy-20190929.xsd#GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" xlink:href="hsy-20190929.xsd#GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="hsy-20190929.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxes" xlink:href="hsy-20190929.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesNarrativeDetails" xlink:href="hsy-20190929.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesTables" xlink:href="hsy-20190929.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/Leases" xlink:href="hsy-20190929.xsd#Leases" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesScheduleOfComponentsOfLeaseExpenseDetails" xlink:href="hsy-20190929.xsd#LeasesScheduleOfComponentsOfLeaseExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesScheduleOfInformationRegardingOurLeaseTermsAndDiscountRatesDetails" xlink:href="hsy-20190929.xsd#LeasesScheduleOfInformationRegardingOurLeaseTermsAndDiscountRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesScheduleOfMaturitiesOfLeaseLiabilitiesDetails" xlink:href="hsy-20190929.xsd#LeasesScheduleOfMaturitiesOfLeaseLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetails" xlink:href="hsy-20190929.xsd#LeasesScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" xlink:href="hsy-20190929.xsd#LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/LeasesTables" xlink:href="hsy-20190929.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/NoncontrollingInterest" xlink:href="hsy-20190929.xsd#NoncontrollingInterest" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/NoncontrollingInterestNarrativeDetails" xlink:href="hsy-20190929.xsd#NoncontrollingInterestNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/NoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:href="hsy-20190929.xsd#NoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/NoncontrollingInterestTables" xlink:href="hsy-20190929.xsd#NoncontrollingInterestTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNet" xlink:href="hsy-20190929.xsd#OtherIncomeExpenseNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:href="hsy-20190929.xsd#OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetTables" xlink:href="hsy-20190929.xsd#OtherIncomeExpenseNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlans" xlink:href="hsy-20190929.xsd#PensionAndOtherPostRetirementBenefitPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:href="hsy-20190929.xsd#PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:href="hsy-20190929.xsd#PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansTables" xlink:href="hsy-20190929.xsd#PensionAndOtherPostRetirementBenefitPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformation" xlink:href="hsy-20190929.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:href="hsy-20190929.xsd#SegmentInformationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:href="hsy-20190929.xsd#SegmentInformationScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:href="hsy-20190929.xsd#SegmentInformationScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:href="hsy-20190929.xsd#SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationTables" xlink:href="hsy-20190929.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebt" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtNarrativeDetails" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebtNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtTables" xlink:href="hsy-20190929.xsd#ShortAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlans" xlink:href="hsy-20190929.xsd#StockCompensationPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansNarrativeDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:href="hsy-20190929.xsd#StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansTables" xlink:href="hsy-20190929.xsd#StockCompensationPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="hsy-20190929.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:href="hsy-20190929.xsd#SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="hsy-20190929.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:href="hsy-20190929.xsd#SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="hsy-20190929.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformation" xlink:href="hsy-20190929.xsd#SupplementalBalanceSheetInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformationScheduleOfSupplementalBalanceSheetInformationDetails" xlink:href="hsy-20190929.xsd#SupplementalBalanceSheetInformationScheduleOfSupplementalBalanceSheetInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:href="hsy-20190929.xsd#SupplementalBalanceSheetInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/TreasuryStockActivity" xlink:href="hsy-20190929.xsd#TreasuryStockActivity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/TreasuryStockActivityNarrativeDetails" xlink:href="hsy-20190929.xsd#TreasuryStockActivityNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/TreasuryStockActivityScheduleOfTreasuryStockActivityDetails" xlink:href="hsy-20190929.xsd#TreasuryStockActivityScheduleOfTreasuryStockActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/TreasuryStockActivityTables" xlink:href="hsy-20190929.xsd#TreasuryStockActivityTables" 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.hersheys.com/role/AssetsAndLiabilitiesHeldForSale" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/AssetsAndLiabilitiesHeldForSaleDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" 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_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_35450A3B9AE5DECE947BD9E8C4B3A853" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_35450A3B9AE5DECE947BD9E8C4B3A853" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B544EA7F9F93C0D0B924D9E8C4B3DC49_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_35450A3B9AE5DECE947BD9E8C4B3A853" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B544EA7F9F93C0D0B924D9E8C4B3DC49_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B544EA7F9F93C0D0B924D9E8C4B3DC49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_35450A3B9AE5DECE947BD9E8C4B3A853" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B544EA7F9F93C0D0B924D9E8C4B3DC49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_D4192D2193D0C45A571AD9E8C4B3A4C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_D4192D2193D0C45A571AD9E8C4B3A4C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9997F1023C10FAFC7D14D9E8C4B41E99_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D4192D2193D0C45A571AD9E8C4B3A4C2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9997F1023C10FAFC7D14D9E8C4B41E99_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9997F1023C10FAFC7D14D9E8C4B41E99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D4192D2193D0C45A571AD9E8C4B3A4C2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9997F1023C10FAFC7D14D9E8C4B41E99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_21FFD51D7F3E734FE89CD9E8C4B44BFB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_21FFD51D7F3E734FE89CD9E8C4B44BFB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_9B2BFF59CA6329EF4F97D9E8C4B42B43_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_21FFD51D7F3E734FE89CD9E8C4B44BFB" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_9B2BFF59CA6329EF4F97D9E8C4B42B43_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_9B2BFF59CA6329EF4F97D9E8C4B42B43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_21FFD51D7F3E734FE89CD9E8C4B44BFB" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_9B2BFF59CA6329EF4F97D9E8C4B42B43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FacilityClosingMember" xlink:label="loc_us-gaap_FacilityClosingMember_FE246AE402758549FA23D9E8C4B40E84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_9B2BFF59CA6329EF4F97D9E8C4B42B43" xlink:to="loc_us-gaap_FacilityClosingMember_FE246AE402758549FA23D9E8C4B40E84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_FC7F04F22C994D284835D9E8C4B429DB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_26D566E43A261916A29BD9E8C4B247AC" xlink:to="loc_us-gaap_RestructuringPlanAxis_FC7F04F22C994D284835D9E8C4B429DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_97037DA0B583132290FCD9E8C4B53B78_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_FC7F04F22C994D284835D9E8C4B429DB" xlink:to="loc_us-gaap_RestructuringPlanDomain_97037DA0B583132290FCD9E8C4B53B78_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_97037DA0B583132290FCD9E8C4B53B78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_FC7F04F22C994D284835D9E8C4B429DB" xlink:to="loc_us-gaap_RestructuringPlanDomain_97037DA0B583132290FCD9E8C4B53B78" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_OperationalOptimizationProgramMember" xlink:label="loc_hsy_OperationalOptimizationProgramMember_51BA1B6263555954253FD9E8C4B5F916" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_97037DA0B583132290FCD9E8C4B53B78" xlink:to="loc_hsy_OperationalOptimizationProgramMember_51BA1B6263555954253FD9E8C4B5F916" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment_CD3EF3DD2F93142BA1E0D9E8C4B54E6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationPropertyPlantAndEquipment_CD3EF3DD2F93142BA1E0D9E8C4B54E6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets_3FAA154EE497F9D93853D9E8C4B6F5A6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationOtherAssets_3FAA154EE497F9D93853D9E8C4B6F5A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation" xlink:label="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_890EC915739A22583144D9E8C4B6242B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperation_890EC915739A22583144D9E8C4B6242B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableAndAccruedLiabilities" xlink:label="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableAndAccruedLiabilities_CDB233E2D6FFCA169FB3D9E8C4B6481D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_DisposalGroupIncludingDiscontinuedOperationAccountsPayableAndAccruedLiabilities_CDB233E2D6FFCA169FB3D9E8C4B6481D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation" xlink:label="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_1ACCA5235F808B185C76D9E8C4B6D5CB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_LiabilitiesOfDisposalGroupIncludingDiscontinuedOperation_1ACCA5235F808B185C76D9E8C4B6D5CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfIntangibleAssets" xlink:label="loc_us-gaap_ProceedsFromSaleOfIntangibleAssets_BBCF34FC894820EFF485D9E8C4B6905A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_ProceedsFromSaleOfIntangibleAssets_BBCF34FC894820EFF485D9E8C4B6905A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnDispositionOfIntangibleAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_F1B29781C5C3DCDB74B2D9E8C4B692B1" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_F1B29781C5C3DCDB74B2D9E8C4B692B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_5D3673E8239248A2C9EFD9E8C4B7F884" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_5D3673E8239248A2C9EFD9E8C4B7F884" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_7EAD8AD60EDD44616232D9E8C4B753DC" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_RestructuringCharges_7EAD8AD60EDD44616232D9E8C4B753DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_41DE757E28C0663F18CCD9E8C4B7B3B6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_41DE757E28C0663F18CCD9E8C4B7B3B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_98F3238E491E7B1D4DE2D9E8C4B78EB2" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_8A1522DFA1BC384F82CAD9E8C4B5F302" xlink:to="loc_us-gaap_AssetImpairmentCharges_98F3238E491E7B1D4DE2D9E8C4B78EB2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/AssetsAndLiabilitiesHeldForSaleTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_2FBEB1AEF2045188B5F179E42F27E6AD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_33BAA2D55EB35704B5D418E1408CE235" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_2FBEB1AEF2045188B5F179E42F27E6AD" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_33BAA2D55EB35704B5D418E1408CE235" 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_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9CB6A8138A2F5CAFBABD6E869D21C166" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_33BAA2D55EB35704B5D418E1408CE235" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9CB6A8138A2F5CAFBABD6E869D21C166" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_40E1F2D181A94A7E23BC0587DCBA894D_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9CB6A8138A2F5CAFBABD6E869D21C166" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_40E1F2D181A94A7E23BC0587DCBA894D_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_456AC105D614583C9BBED1B1FE6EDB3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_9CB6A8138A2F5CAFBABD6E869D21C166" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_456AC105D614583C9BBED1B1FE6EDB3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_21DB4E2464945F358607B37DD9962233" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_33BAA2D55EB35704B5D418E1408CE235" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_21DB4E2464945F358607B37DD9962233" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_53A02AC87155E44634470587DCBA24C0_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_21DB4E2464945F358607B37DD9962233" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_53A02AC87155E44634470587DCBA24C0_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_5BACC4624F1C5748A2281AF3E08DC435" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_21DB4E2464945F358607B37DD9962233" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_5BACC4624F1C5748A2281AF3E08DC435" xlink:type="arc" />
    <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_B4987DC873E3529AB0009F65C1AE3958" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_33BAA2D55EB35704B5D418E1408CE235" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B4987DC873E3529AB0009F65C1AE3958" 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_76C2E0CBDA3EA76FB9290587DCBA70B8_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B4987DC873E3529AB0009F65C1AE3958" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_76C2E0CBDA3EA76FB9290587DCBA70B8_E864B487E758552986E6C884DD4570CD" 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_199144E3D5785F55BB0DC07310C9A80F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B4987DC873E3529AB0009F65C1AE3958" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_199144E3D5785F55BB0DC07310C9A80F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock" xlink:label="loc_us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock_0697B82AF000568DA12CBFFB3ABFC7EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_2FBEB1AEF2045188B5F179E42F27E6AD" xlink:to="loc_us-gaap_ScheduleOfDisposalGroupsIncludingDiscontinuedOperationsIncomeStatementBalanceSheetAndAdditionalDisclosuresTextBlock_0697B82AF000568DA12CBFFB3ABFC7EC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitions" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAmplifySnackBrandsIncAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_7117B3E54DBC4C143D68D587CD774D79" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_7117B3E54DBC4C143D68D587CD774D79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_41D0A4A2C5DC246C4091D587CD77B32C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7117B3E54DBC4C143D68D587CD774D79" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_41D0A4A2C5DC246C4091D587CD77B32C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_41D0A4A2C5DC246C4091D587CD77B32C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_7117B3E54DBC4C143D68D587CD774D79" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_41D0A4A2C5DC246C4091D587CD77B32C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_AmplifySnackBrandsInc.Member" xlink:label="loc_hsy_AmplifySnackBrandsInc.Member_6930F5E14C7CABD2A8C4D587CD78E523" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_41D0A4A2C5DC246C4091D587CD77B32C" xlink:to="loc_hsy_AmplifySnackBrandsInc.Member_6930F5E14C7CABD2A8C4D587CD78E523" xlink:type="arc" />
    <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_FD3AF4283AE87D355428D587CD7884D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_FD3AF4283AE87D355428D587CD7884D9" 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_4311CA279D353CF703C3D587CD78AE22_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_FD3AF4283AE87D355428D587CD7884D9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_4311CA279D353CF703C3D587CD78AE22_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_4311CA279D353CF703C3D587CD78AE22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_FD3AF4283AE87D355428D587CD7884D9" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_4311CA279D353CF703C3D587CD78AE22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_5A80DE30E58D465E32FAD587CD79687F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" xlink:to="loc_srt_OwnershipAxis_5A80DE30E58D465E32FAD587CD79687F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_F7B2AD6A61C9AEC8F1A9D587CD79DDE4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_5A80DE30E58D465E32FAD587CD79687F" xlink:to="loc_srt_OwnershipDomain_F7B2AD6A61C9AEC8F1A9D587CD79DDE4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_F7B2AD6A61C9AEC8F1A9D587CD79DDE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_5A80DE30E58D465E32FAD587CD79687F" xlink:to="loc_srt_OwnershipDomain_F7B2AD6A61C9AEC8F1A9D587CD79DDE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_E11326D655FEC746ECD4D587CD79DEDC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_F71B58EE788DA2468119D587CD77E420" xlink:to="loc_us-gaap_StatementClassOfStockAxis_E11326D655FEC746ECD4D587CD79DEDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_5E55C13537E32C317B0AD587CD79DC69_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E11326D655FEC746ECD4D587CD79DEDC" xlink:to="loc_us-gaap_ClassOfStockDomain_5E55C13537E32C317B0AD587CD79DC69_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_5E55C13537E32C317B0AD587CD79DC69" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_E11326D655FEC746ECD4D587CD79DEDC" xlink:to="loc_us-gaap_ClassOfStockDomain_5E55C13537E32C317B0AD587CD79DC69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20982D1324DB0727E706D587CD7A47D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20982D1324DB0727E706D587CD7A47D8" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivable" xlink:label="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivable_AA476284BC3B51172AFED5924786EDED" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccountsReceivable_AA476284BC3B51172AFED5924786EDED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_09A0F774563397CB2E0ED587CD7A7DC2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_09A0F774563397CB2E0ED587CD7A7DC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_A71C50C7872057BC4241D587CD7AF4C4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_A71C50C7872057BC4241D587CD7AF4C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_4292A2A6501FF9A07615D587CD7B11B3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_Goodwill_4292A2A6501FF9A07615D587CD7B11B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_554D160B96730B04A126D587CD7BF851" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_554D160B96730B04A126D587CD7BF851" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets_C552693D89822A569F35D587CD7B48CD" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets_C552693D89822A569F35D587CD7B48CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_438D7080B1FAE597C107D587CD7BB4A2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_438D7080B1FAE597C107D587CD7BB4A2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities" xlink:label="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities_DCBA7F2E4D87041C4B05D587CD7B77CD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities_DCBA7F2E4D87041C4B05D587CD7B77CD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesDebt" xlink:label="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesDebt_C1F02F02DBA34F9FCE47D587CD7B46C8" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesDebt_C1F02F02DBA34F9FCE47D587CD7B46C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_42F8D8293CF1472E8306D587CD7C27B8" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_42F8D8293CF1472E8306D587CD7C27B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_08E2D19940F2F9DB71EBD587CD7CB207" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilities_08E2D19940F2F9DB71EBD587CD7CB207" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilities_F1965CD4AC321A292A33D587CD7CBAF4" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilities_F1965CD4AC321A292A33D587CD7CBAF4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5C86E67D7341D1D93AB5D587CD7C3BD4" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_42FECD643317EE098024D587CD7AC8FF" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5C86E67D7341D1D93AB5D587CD7C3BD4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAmplifySnackBrandsIncNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" 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_3EA9C0CDB9165588898E3075994D9C03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_srt_RangeAxis_3EA9C0CDB9165588898E3075994D9C03" 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_25A6E074479BCC5553D21EC0B06D5C98_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3EA9C0CDB9165588898E3075994D9C03" xlink:to="loc_srt_RangeMember_25A6E074479BCC5553D21EC0B06D5C98_E864B487E758552986E6C884DD4570CD" 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_FBC359E69C0F5EFFBFFD6D5FA005CAD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3EA9C0CDB9165588898E3075994D9C03" xlink:to="loc_srt_RangeMember_FBC359E69C0F5EFFBFFD6D5FA005CAD2" 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_1DAF15E76F6E551BB579CD90939305FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_FBC359E69C0F5EFFBFFD6D5FA005CAD2" xlink:to="loc_srt_MinimumMember_1DAF15E76F6E551BB579CD90939305FC" 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_65B3C67DB33651D6840A2BAA7438616E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_FBC359E69C0F5EFFBFFD6D5FA005CAD2" xlink:to="loc_srt_MaximumMember_65B3C67DB33651D6840A2BAA7438616E" 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_33463A4BAAB0516EA13BD76EDAD90DE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_33463A4BAAB0516EA13BD76EDAD90DE1" 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_0F9C0DC919B6091906F11EC0B06E3848_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_33463A4BAAB0516EA13BD76EDAD90DE1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0F9C0DC919B6091906F11EC0B06E3848_E864B487E758552986E6C884DD4570CD" 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_25DA7543D110534DBB9D1755E2808214" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_33463A4BAAB0516EA13BD76EDAD90DE1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25DA7543D110534DBB9D1755E2808214" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_64B7858A620D553EA0922EE6E279C21F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25DA7543D110534DBB9D1755E2808214" xlink:to="loc_us-gaap_TrademarksMember_64B7858A620D553EA0922EE6E279C21F" 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_9DAE270AFBAF5F1EB75FA389D498E088" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_25DA7543D110534DBB9D1755E2808214" xlink:to="loc_us-gaap_CustomerRelationshipsMember_9DAE270AFBAF5F1EB75FA389D498E088" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_99AE3AA7D44850C181921676BD21BA99" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_99AE3AA7D44850C181921676BD21BA99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FB2F4E3CE0A2A4C39B221EC0B06F2B85_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99AE3AA7D44850C181921676BD21BA99" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FB2F4E3CE0A2A4C39B221EC0B06F2B85_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7F2F30D0073153CD811A0C9C5DCF9BEB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99AE3AA7D44850C181921676BD21BA99" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7F2F30D0073153CD811A0C9C5DCF9BEB" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_AmplifySnackBrandsInc.Member" xlink:label="loc_hsy_AmplifySnackBrandsInc.Member_545390CACF295491A5E3BB2A83F7C527" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7F2F30D0073153CD811A0C9C5DCF9BEB" xlink:to="loc_hsy_AmplifySnackBrandsInc.Member_545390CACF295491A5E3BB2A83F7C527" xlink:type="arc" />
    <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_8A921F033BE25E2888F681936C57869C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_8A921F033BE25E2888F681936C57869C" 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_FDD2877D617168FB85121EC0B070F107_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_8A921F033BE25E2888F681936C57869C" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_FDD2877D617168FB85121EC0B070F107_E864B487E758552986E6C884DD4570CD" 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_4662DCC0302A5D55BBB1CF03D66FA536" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_8A921F033BE25E2888F681936C57869C" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_4662DCC0302A5D55BBB1CF03D66FA536" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_B6380F9046C9588198EC3B6EA52694B6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_srt_OwnershipAxis_B6380F9046C9588198EC3B6EA52694B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_ED9AE33AE9649E1E2AD31EC0B0701E3F_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_B6380F9046C9588198EC3B6EA52694B6" xlink:to="loc_srt_OwnershipDomain_ED9AE33AE9649E1E2AD31EC0B0701E3F_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_E52F5C952E075614980DC92EDFB43CCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_B6380F9046C9588198EC3B6EA52694B6" xlink:to="loc_srt_OwnershipDomain_E52F5C952E075614980DC92EDFB43CCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_F5DFDB0308FB5BDEB5C5C1AF98EA84CB" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_13B3E4129E7D59699770F75792408690" xlink:to="loc_us-gaap_StatementClassOfStockAxis_F5DFDB0308FB5BDEB5C5C1AF98EA84CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C14C536A0EACC9E011521EC0B0716210_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F5DFDB0308FB5BDEB5C5C1AF98EA84CB" xlink:to="loc_us-gaap_ClassOfStockDomain_C14C536A0EACC9E011521EC0B0716210_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_2E39DDE1BB7E576A9C025419CAB9B7A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_F5DFDB0308FB5BDEB5C5C1AF98EA84CB" xlink:to="loc_us-gaap_ClassOfStockDomain_2E39DDE1BB7E576A9C025419CAB9B7A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_5A8130B89BB45E00BAB79B81F0E8744C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_5A8130B89BB45E00BAB79B81F0E8744C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionSharePrice" xlink:label="loc_us-gaap_BusinessAcquisitionSharePrice_81C471C4D5DB52B0ADA7014725208125" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_BusinessAcquisitionSharePrice_81C471C4D5DB52B0ADA7014725208125" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_BusinessAcquisitionEquityInterestsReceivedCommonStockValue" xlink:label="loc_hsy_BusinessAcquisitionEquityInterestsReceivedCommonStockValue_2311FA5130795FE2A75F28F594FB030D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_hsy_BusinessAcquisitionEquityInterestsReceivedCommonStockValue_2311FA5130795FE2A75F28F594FB030D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedTrademarksGross" xlink:label="loc_us-gaap_FiniteLivedTrademarksGross_D6F889DDE4B15B33B1ECD0BD1D800CE7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_FiniteLivedTrademarksGross_D6F889DDE4B15B33B1ECD0BD1D800CE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedCustomerRelationshipsGross" xlink:label="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_2E56556CC6625F6A9622129BBD5BD0F1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_2E56556CC6625F6A9622129BBD5BD0F1" 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_DC0F1A04E85053599617BAB869493038" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_DC0F1A04E85053599617BAB869493038" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_AA244D4125B55A8584F7F479443F1B0E" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0FBD84C5F85E5AF8BF95D0439768EA8A" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_AA244D4125B55A8584F7F479443F1B0E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsOneBrandsLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_E6684D76E403444322B6D5B47EE92593" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_E6684D76E403444322B6D5B47EE92593" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_240979FBED35F98F5D08D5B47EEA5F43_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E6684D76E403444322B6D5B47EE92593" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_240979FBED35F98F5D08D5B47EEA5F43_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_240979FBED35F98F5D08D5B47EEA5F43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_E6684D76E403444322B6D5B47EE92593" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_240979FBED35F98F5D08D5B47EEA5F43" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ONEBrandsLLCMember" xlink:label="loc_hsy_ONEBrandsLLCMember_36FA39554759F02947D0D5B47EEACC3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_240979FBED35F98F5D08D5B47EEA5F43" xlink:to="loc_hsy_ONEBrandsLLCMember_36FA39554759F02947D0D5B47EEACC3C" xlink:type="arc" />
    <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_92089ACABF14410E0A68D5B47EEA7585" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_92089ACABF14410E0A68D5B47EEA7585" 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_5BAC2854E3920D6BEBD1D5B47EEAE4FB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_92089ACABF14410E0A68D5B47EEA7585" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5BAC2854E3920D6BEBD1D5B47EEAE4FB_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_5BAC2854E3920D6BEBD1D5B47EEAE4FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_92089ACABF14410E0A68D5B47EEA7585" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_5BAC2854E3920D6BEBD1D5B47EEAE4FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_CEA12BEFD0E6E61E992FD5B47EEBD842" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" xlink:to="loc_srt_OwnershipAxis_CEA12BEFD0E6E61E992FD5B47EEBD842" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_99F5DE0A7FD6CE650FD1D5B47EEB5FDA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_CEA12BEFD0E6E61E992FD5B47EEBD842" xlink:to="loc_srt_OwnershipDomain_99F5DE0A7FD6CE650FD1D5B47EEB5FDA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_99F5DE0A7FD6CE650FD1D5B47EEB5FDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_CEA12BEFD0E6E61E992FD5B47EEBD842" xlink:to="loc_srt_OwnershipDomain_99F5DE0A7FD6CE650FD1D5B47EEB5FDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_40C53D44D2CDA126AC09D5B47EEB1DCA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09FB2EFDAFA1B7BB5F49D5B47EE9D059" xlink:to="loc_us-gaap_StatementClassOfStockAxis_40C53D44D2CDA126AC09D5B47EEB1DCA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_FF7C6A51A1995B41748DD5B47EEBFF87_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_40C53D44D2CDA126AC09D5B47EEB1DCA" xlink:to="loc_us-gaap_ClassOfStockDomain_FF7C6A51A1995B41748DD5B47EEBFF87_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_FF7C6A51A1995B41748DD5B47EEBFF87" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_40C53D44D2CDA126AC09D5B47EEB1DCA" xlink:to="loc_us-gaap_ClassOfStockDomain_FF7C6A51A1995B41748DD5B47EEBFF87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_D0598F26C9E20816360CD5B47EEC2353" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_Goodwill_D0598F26C9E20816360CD5B47EEC2353" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_9875A99B3AC9FADB410DD5B47EEC65F1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_9875A99B3AC9FADB410DD5B47EEC65F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_DF1BF5A1DD641F0C8F2FD5B47EECB516" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_DF1BF5A1DD641F0C8F2FD5B47EECB516" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_A586A1A86B3395495AB3D5B47EECC001" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_A586A1A86B3395495AB3D5B47EECC001" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_F658DA9F924156B2FED9D5B47EED0D58" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CB0FCE9AC58606DD456DD5B47EECBD24" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_F658DA9F924156B2FED9D5B47EED0D58" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsOneBrandsLlcNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" 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_E8A277186E3CB0E0FF49D9E8C7048EA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" xlink:to="loc_srt_StatementScenarioAxis_E8A277186E3CB0E0FF49D9E8C7048EA3" 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_9C610D96AE4CAEB0720BD9E8C7047BB4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_E8A277186E3CB0E0FF49D9E8C7048EA3" xlink:to="loc_srt_ScenarioUnspecifiedDomain_9C610D96AE4CAEB0720BD9E8C7047BB4_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_9C610D96AE4CAEB0720BD9E8C7047BB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_E8A277186E3CB0E0FF49D9E8C7048EA3" xlink:to="loc_srt_ScenarioUnspecifiedDomain_9C610D96AE4CAEB0720BD9E8C7047BB4" 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_4EEAB2223AE13419B4D3D9E8C7059CDF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" xlink:to="loc_srt_RangeAxis_4EEAB2223AE13419B4D3D9E8C7059CDF" 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_D919E6FA7C48ACE220BDD9E8C705DC76_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_4EEAB2223AE13419B4D3D9E8C7059CDF" xlink:to="loc_srt_RangeMember_D919E6FA7C48ACE220BDD9E8C705DC76_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_D919E6FA7C48ACE220BDD9E8C705DC76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_4EEAB2223AE13419B4D3D9E8C7059CDF" xlink:to="loc_srt_RangeMember_D919E6FA7C48ACE220BDD9E8C705DC76" 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_CD2D361A452C321A213AD9E8C70520A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D919E6FA7C48ACE220BDD9E8C705DC76" xlink:to="loc_srt_MinimumMember_CD2D361A452C321A213AD9E8C70520A3" 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_BD9D81418BF77A2AADF6D9E8C706343A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_D919E6FA7C48ACE220BDD9E8C705DC76" xlink:to="loc_srt_MaximumMember_BD9D81418BF77A2AADF6D9E8C706343A" 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_2E28489F18DCC4A750FBD9E8C706608B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_2E28489F18DCC4A750FBD9E8C706608B" 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_22C8E86C207617D27686D9E8C706B313_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_2E28489F18DCC4A750FBD9E8C706608B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_22C8E86C207617D27686D9E8C706B313_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_22C8E86C207617D27686D9E8C706B313" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_2E28489F18DCC4A750FBD9E8C706608B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_22C8E86C207617D27686D9E8C706B313" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_6640361DF8301D4860BDD9E8C70692FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_22C8E86C207617D27686D9E8C706B313" xlink:to="loc_us-gaap_TrademarksMember_6640361DF8301D4860BDD9E8C70692FF" 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_0BB48C9E58721E298EE3D9E8C7068882" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_22C8E86C207617D27686D9E8C706B313" xlink:to="loc_us-gaap_CustomerRelationshipsMember_0BB48C9E58721E298EE3D9E8C7068882" 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_0BCADCFD8C3A502ED716D9E8C7074AF3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_22C8E86C207617D27686D9E8C706B313" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_0BCADCFD8C3A502ED716D9E8C7074AF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_C07A80A33951FC70BCBFD9E8C707BBD8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_BEDBE9994DA7C4E6EE1CD9E8C70416BE" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_C07A80A33951FC70BCBFD9E8C707BBD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_455E8CB019F24F151FAFD9E8C7074DD4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C07A80A33951FC70BCBFD9E8C707BBD8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_455E8CB019F24F151FAFD9E8C7074DD4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_455E8CB019F24F151FAFD9E8C7074DD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_C07A80A33951FC70BCBFD9E8C707BBD8" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_455E8CB019F24F151FAFD9E8C7074DD4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ONEBrandsLLCMember" xlink:label="loc_hsy_ONEBrandsLLCMember_3263D3D53BDF3C14AA53D9E8C707D9B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_455E8CB019F24F151FAFD9E8C7074DD4" xlink:to="loc_hsy_ONEBrandsLLCMember_3263D3D53BDF3C14AA53D9E8C707D9B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_255EC8C052F5C86321F3D9E8C7087117" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_255EC8C052F5C86321F3D9E8C7087117" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedTrademarksGross" xlink:label="loc_us-gaap_FiniteLivedTrademarksGross_D1E34DDC6AED22ED79F2D9E8C70862F0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_FiniteLivedTrademarksGross_D1E34DDC6AED22ED79F2D9E8C70862F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedCustomerRelationshipsGross" xlink:label="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_727CCA74E871D13FD4B7D9E8C7083BA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_727CCA74E871D13FD4B7D9E8C7083BA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedNoncompeteAgreementsGross" xlink:label="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_47BFDCD84CB8A5224703D9E8C708DF7A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_47BFDCD84CB8A5224703D9E8C708DF7A" 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_3185D62EC6EE20111674D9E8C709F9EE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_D5C19CB17BB810783F91D9E8C707A741" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_3185D62EC6EE20111674D9E8C709F9EE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsPirateBrandsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8F34B928EE58F6D9BF54D5B38218D366" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8F34B928EE58F6D9BF54D5B38218D366" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E05F25BAA5EEF07093CFD5B3821873FC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8F34B928EE58F6D9BF54D5B38218D366" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E05F25BAA5EEF07093CFD5B3821873FC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E05F25BAA5EEF07093CFD5B3821873FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8F34B928EE58F6D9BF54D5B38218D366" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E05F25BAA5EEF07093CFD5B3821873FC" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PirateBrandsMember" xlink:label="loc_hsy_PirateBrandsMember_745A43CBC22ED1CC13FAD5B382187CF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_E05F25BAA5EEF07093CFD5B3821873FC" xlink:to="loc_hsy_PirateBrandsMember_745A43CBC22ED1CC13FAD5B382187CF8" xlink:type="arc" />
    <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_C26A0ED92AE769F26ADED5B382197ABF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_C26A0ED92AE769F26ADED5B382197ABF" 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_0F5C6D0A4B4E954C7396D5B382192666_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_C26A0ED92AE769F26ADED5B382197ABF" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0F5C6D0A4B4E954C7396D5B382192666_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_0F5C6D0A4B4E954C7396D5B382192666" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_C26A0ED92AE769F26ADED5B382197ABF" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0F5C6D0A4B4E954C7396D5B382192666" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_E9D28168F30F79D363ABD5B382191756" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" xlink:to="loc_srt_OwnershipAxis_E9D28168F30F79D363ABD5B382191756" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_5BB04104FF2DE7CA99F7D5B38219F3ED_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_E9D28168F30F79D363ABD5B382191756" xlink:to="loc_srt_OwnershipDomain_5BB04104FF2DE7CA99F7D5B38219F3ED_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_5BB04104FF2DE7CA99F7D5B38219F3ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_E9D28168F30F79D363ABD5B382191756" xlink:to="loc_srt_OwnershipDomain_5BB04104FF2DE7CA99F7D5B38219F3ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_36C7C13F92B80060B9F5D5B3821AFE60" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_0047C7F87A8E59CD6300D5B3821810D2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_36C7C13F92B80060B9F5D5B3821AFE60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D261B03AFFD31604EBD5D5B3821AD2EC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_36C7C13F92B80060B9F5D5B3821AFE60" xlink:to="loc_us-gaap_ClassOfStockDomain_D261B03AFFD31604EBD5D5B3821AD2EC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D261B03AFFD31604EBD5D5B3821AD2EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_36C7C13F92B80060B9F5D5B3821AFE60" xlink:to="loc_us-gaap_ClassOfStockDomain_D261B03AFFD31604EBD5D5B3821AD2EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_49686130CD902975789CD5B3821A7026" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_49686130CD902975789CD5B3821A7026" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_007BDD145E6B1F4A2251D5B3821B3202" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedEquipment_007BDD145E6B1F4A2251D5B3821B3202" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_5D5CC384FCF137018B17D5B3821B31DC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_Goodwill_5D5CC384FCF137018B17D5B3821B31DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_41777716D81976BEBAB1D5B3821BEC24" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_41777716D81976BEBAB1D5B3821BEC24" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities" xlink:label="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities_630C5A08B38B6D058479D5B3821B4204" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_hsy_BusinessCombinationRecognizedIdentifiableAssetsAcquiredandLiabilitiesAssumedCurrentLiabilitiesAccruedLiabilities_630C5A08B38B6D058479D5B3821B4204" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_F4761FD5082D24F1AADBD5B3821BA99A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_0D1151A256834DC49910D5B3821A4BDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_F4761FD5082D24F1AADBD5B3821BA99A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsPirateBrandsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" 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_3450ACEBA989568CA7E06877651467C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_srt_RangeAxis_3450ACEBA989568CA7E06877651467C4" 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_D07B9247C58AB5C979910587DD7D1EFF_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3450ACEBA989568CA7E06877651467C4" xlink:to="loc_srt_RangeMember_D07B9247C58AB5C979910587DD7D1EFF_E864B487E758552986E6C884DD4570CD" 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_C5CA679E2B4D5F5C9FA3E59DE27400BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3450ACEBA989568CA7E06877651467C4" xlink:to="loc_srt_RangeMember_C5CA679E2B4D5F5C9FA3E59DE27400BC" 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_CD0FD477FE73535989033222ED0B8012" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C5CA679E2B4D5F5C9FA3E59DE27400BC" xlink:to="loc_srt_MinimumMember_CD0FD477FE73535989033222ED0B8012" 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_CB9D4C92C7195F0DBAA9377973942CF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_C5CA679E2B4D5F5C9FA3E59DE27400BC" xlink:to="loc_srt_MaximumMember_CB9D4C92C7195F0DBAA9377973942CF1" 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_DADFE76926275551A8973C2AAE47B18B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DADFE76926275551A8973C2AAE47B18B" 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_A5DFDD46AD47BE27F0ED0587DD7D6240_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DADFE76926275551A8973C2AAE47B18B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_A5DFDD46AD47BE27F0ED0587DD7D6240_E864B487E758552986E6C884DD4570CD" 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_5CFF2A75A0255C4594B72EF1E91A7C77" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_DADFE76926275551A8973C2AAE47B18B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5CFF2A75A0255C4594B72EF1E91A7C77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_6CC1D1F8A77F562FA4B7BD66D4EDDC92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5CFF2A75A0255C4594B72EF1E91A7C77" xlink:to="loc_us-gaap_TrademarksMember_6CC1D1F8A77F562FA4B7BD66D4EDDC92" 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_B3C99A3663695405835CEBF8CA16B0C7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5CFF2A75A0255C4594B72EF1E91A7C77" xlink:to="loc_us-gaap_CustomerRelationshipsMember_B3C99A3663695405835CEBF8CA16B0C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_D88D55B8DE4852BCAD1AA310307E4669" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_D88D55B8DE4852BCAD1AA310307E4669" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4A8520DE93B10BB5F5610587DD7EA61F_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D88D55B8DE4852BCAD1AA310307E4669" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4A8520DE93B10BB5F5610587DD7EA61F_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_03F7F6C2C36559ECBB547B1432285D4C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_D88D55B8DE4852BCAD1AA310307E4669" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_03F7F6C2C36559ECBB547B1432285D4C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PirateBrandsMember" xlink:label="loc_hsy_PirateBrandsMember_E47600501D675F7BA9F327BA4F0A4439" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_03F7F6C2C36559ECBB547B1432285D4C" xlink:to="loc_hsy_PirateBrandsMember_E47600501D675F7BA9F327BA4F0A4439" xlink:type="arc" />
    <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_B61C6BEF24E95F7BA7108B00B3370EDD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B61C6BEF24E95F7BA7108B00B3370EDD" 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_2CA815EE72F1DF9AE2410587DD7FDB4A_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B61C6BEF24E95F7BA7108B00B3370EDD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_2CA815EE72F1DF9AE2410587DD7FDB4A_E864B487E758552986E6C884DD4570CD" 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_DE935DDE18745D0A8BC221658C52639E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B61C6BEF24E95F7BA7108B00B3370EDD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_DE935DDE18745D0A8BC221658C52639E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_60F4CD0B00415CB0A5ECC1E24792E358" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_srt_OwnershipAxis_60F4CD0B00415CB0A5ECC1E24792E358" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_538FD7267C39EC5042E50587DD7F33A7_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_60F4CD0B00415CB0A5ECC1E24792E358" xlink:to="loc_srt_OwnershipDomain_538FD7267C39EC5042E50587DD7F33A7_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_06716D7E286E5048BCF6276CB348ECC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_60F4CD0B00415CB0A5ECC1E24792E358" xlink:to="loc_srt_OwnershipDomain_06716D7E286E5048BCF6276CB348ECC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_A6B55D5F0A055DB5B87D71CBA2E83746" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_09710D0339095FF5A80A4C1248A3F8A3" xlink:to="loc_us-gaap_StatementClassOfStockAxis_A6B55D5F0A055DB5B87D71CBA2E83746" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_462855132949E6BF9C800587DD8033AF_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_A6B55D5F0A055DB5B87D71CBA2E83746" xlink:to="loc_us-gaap_ClassOfStockDomain_462855132949E6BF9C800587DD8033AF_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_DD8EEACC43725D668F843C99EF56546A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_A6B55D5F0A055DB5B87D71CBA2E83746" xlink:to="loc_us-gaap_ClassOfStockDomain_DD8EEACC43725D668F843C99EF56546A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_A309D0703E8D5A4CB2111B3C24EC3278" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_A309D0703E8D5A4CB2111B3C24EC3278" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedTrademarksGross" xlink:label="loc_us-gaap_FiniteLivedTrademarksGross_9F0E9B663FA055F48545224CFA1D24F0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:to="loc_us-gaap_FiniteLivedTrademarksGross_9F0E9B663FA055F48545224CFA1D24F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedCustomerRelationshipsGross" xlink:label="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_FB28951CC4ED5DD7824C84CA92E03F54" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:to="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_FB28951CC4ED5DD7824C84CA92E03F54" 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_0CFF731E80F15024854324A1F9412AF0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_07FF39BA08C75AC09A81B69CFA89911D" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_0CFF731E80F15024854324A1F9412AF0" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_CAABB8D95C091D9C7D79D5B444F5F7CC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1B74109634E04B8D76EED5B444F34488" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CAABB8D95C091D9C7D79D5B444F5F7CC" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1B74109634E04B8D76EED5B444F34488" 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_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8F389FCB6B756AD3572DD5B444F329C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1B74109634E04B8D76EED5B444F34488" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8F389FCB6B756AD3572DD5B444F329C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8F389FCB6B756AD3572DD5B444F329C7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8F389FCB6B756AD3572DD5B444F329C7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ONEBrandsLLCMember" xlink:label="loc_hsy_ONEBrandsLLCMember_AD3B863584761DB6FFA3D5B444F4224C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848" xlink:to="loc_hsy_ONEBrandsLLCMember_AD3B863584761DB6FFA3D5B444F4224C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PirateBrandsMember" xlink:label="loc_hsy_PirateBrandsMember_118B744C8641BAD9BB57D5B444F4613C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848" xlink:to="loc_hsy_PirateBrandsMember_118B744C8641BAD9BB57D5B444F4613C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_AmplifySnackBrandsInc.Member" xlink:label="loc_hsy_AmplifySnackBrandsInc.Member_A4335F05B6820B6FEEAAD5B444F45E95" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_849FE7D60DD9522CA257D5B444F3B848" xlink:to="loc_hsy_AmplifySnackBrandsInc.Member_A4335F05B6820B6FEEAAD5B444F45E95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_DF06AE98832B9D97E913D5B444F5AA50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_CAABB8D95C091D9C7D79D5B444F5F7CC" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_DF06AE98832B9D97E913D5B444F5AA50" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivities" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" 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_43DE7970C252B9238114D0AD96282245" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_srt_RangeAxis_43DE7970C252B9238114D0AD96282245" 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_0695D4A772D1C8EDA270D0AD9628827C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_43DE7970C252B9238114D0AD96282245" xlink:to="loc_srt_RangeMember_0695D4A772D1C8EDA270D0AD9628827C_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_0695D4A772D1C8EDA270D0AD9628827C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_43DE7970C252B9238114D0AD96282245" xlink:to="loc_srt_RangeMember_0695D4A772D1C8EDA270D0AD9628827C" 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_6D73A9A88104BECCD8B9D0AD9628F4C3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0695D4A772D1C8EDA270D0AD9628827C" xlink:to="loc_srt_MinimumMember_6D73A9A88104BECCD8B9D0AD9628F4C3" 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_0087277C982AFD81C72AD0AD962940D8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_0695D4A772D1C8EDA270D0AD9628827C" xlink:to="loc_srt_MaximumMember_0087277C982AFD81C72AD0AD962940D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A55055AD4D806C9919CED0AD9629C503" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A55055AD4D806C9919CED0AD9629C503" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_8933E3DACEC7601ACEAAD0AD96297622_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A55055AD4D806C9919CED0AD9629C503" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_8933E3DACEC7601ACEAAD0AD96297622_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_8933E3DACEC7601ACEAAD0AD96297622" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A55055AD4D806C9919CED0AD9629C503" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_8933E3DACEC7601ACEAAD0AD96297622" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringChargesMember" xlink:label="loc_us-gaap_RestructuringChargesMember_6E4E0FDC56F6B69D80A2D0AD9629E564" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_8933E3DACEC7601ACEAAD0AD96297622" xlink:to="loc_us-gaap_RestructuringChargesMember_6E4E0FDC56F6B69D80A2D0AD9629E564" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_19EBCC225EACDC72EC88D0AD9629C2AC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_19EBCC225EACDC72EC88D0AD9629C2AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_D52A392E6FFB29206931D0AD962A7C59_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_19EBCC225EACDC72EC88D0AD9629C2AC" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_D52A392E6FFB29206931D0AD962A7C59_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_D52A392E6FFB29206931D0AD962A7C59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_19EBCC225EACDC72EC88D0AD9629C2AC" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_D52A392E6FFB29206931D0AD962A7C59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_25E32481B4AA33F9E451D0AD962A70A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_D52A392E6FFB29206931D0AD962A7C59" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_25E32481B4AA33F9E451D0AD962A70A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_37FC555636DCE9A0BCF3D0AD962FDCCD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_37FC555636DCE9A0BCF3D0AD962FDCCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_37FC555636DCE9A0BCF3D0AD962FDCCD" xlink:to="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_37FC555636DCE9A0BCF3D0AD962FDCCD" xlink:to="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NorthAmericaMember" xlink:label="loc_srt_NorthAmericaMember_1DDA1AE465069D528F29D0AD963080A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580" xlink:to="loc_srt_NorthAmericaMember_1DDA1AE465069D528F29D0AD963080A1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_03652FCED1AAA19883F2D0AD96306EF0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_883FAEBAE1BD49FC608CD0AD962F7580" xlink:to="loc_hsy_InternationalandOtherSegmentMember_03652FCED1AAA19883F2D0AD96306EF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_5E37D25C781C25FF96CCD0AD96303E25" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_us-gaap_RestructuringPlanAxis_5E37D25C781C25FF96CCD0AD96303E25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_5E37D25C781C25FF96CCD0AD96303E25" xlink:to="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_5E37D25C781C25FF96CCD0AD96303E25" xlink:to="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_MarginforGrowthProgramMember" xlink:label="loc_hsy_MarginforGrowthProgramMember_B1A2C1C0E5784E672B15D0AD9631C803" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3" xlink:to="loc_hsy_MarginforGrowthProgramMember_B1A2C1C0E5784E672B15D0AD9631C803" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_OperationalOptimizationProgramMember" xlink:label="loc_hsy_OperationalOptimizationProgramMember_5C6B482162DB71122013D0AD96316C40" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_3DE393B7FFF3030A2204D0AD9630D1D3" xlink:to="loc_hsy_OperationalOptimizationProgramMember_5C6B482162DB71122013D0AD96316C40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_312A9D31FAF794FF7E81D0AD9631263A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_4ABBF7BAF138FC747087D0AD96278BFC" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_312A9D31FAF794FF7E81D0AD9631263A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_312A9D31FAF794FF7E81D0AD9631263A" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_312A9D31FAF794FF7E81D0AD9631263A" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeSeveranceMember" xlink:label="loc_us-gaap_EmployeeSeveranceMember_32924D6C00BB5D711CBBD0AD9632A19B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66" xlink:to="loc_us-gaap_EmployeeSeveranceMember_32924D6C00BB5D711CBBD0AD9632A19B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherRestructuringMember" xlink:label="loc_us-gaap_OtherRestructuringMember_205FBDE94B8090FF0A19D0AD9632D1F3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66" xlink:to="loc_us-gaap_OtherRestructuringMember_205FBDE94B8090FF0A19D0AD9632D1F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FacilityClosingMember" xlink:label="loc_us-gaap_FacilityClosingMember_D34D0EC20943D7D520A7D0AD96320D17" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_8251426A194B6C16644DD0AD9631FC66" xlink:to="loc_us-gaap_FacilityClosingMember_D34D0EC20943D7D520A7D0AD96320D17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_93A40E8D00DD5F1235B1D0AD96320776" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_93A40E8D00DD5F1235B1D0AD96320776" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostCostIncurredToDate1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_7797EB261EFE43E4805ED0AD9633ADFD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_7797EB261EFE43E4805ED0AD9633ADFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_8EA26F187E89AB88941AD0AD96337D55" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_AssetImpairmentCharges_8EA26F187E89AB88941AD0AD96337D55" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_RestructuringandRelatedCostExpectedCostCashPortion" xlink:label="loc_hsy_RestructuringandRelatedCostExpectedCostCashPortion_F3B019B6DAB96C113066D0AD96330307" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_hsy_RestructuringandRelatedCostExpectedCostCashPortion_F3B019B6DAB96C113066D0AD96330307" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent" xlink:label="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent_EDAFBCF64B87825598A1D0AD96331756" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_RestructuringAndRelatedCostNumberOfPositionsEliminatedInceptionToDatePercent_EDAFBCF64B87825598A1D0AD96331756" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_D15D077F2D8BCCB27373D0AD963396B4" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_RestructuringCharges_D15D077F2D8BCCB27373D0AD963396B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_6FA1E4C0DA67CB0FAF8AD0AD9634E732" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_3CC133B2E9B8011A3DFDD0AD9632E476" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_6FA1E4C0DA67CB0FAF8AD0AD9634E732" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfBusinessRealignmentActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_CBEABBD88A74B8E2E3B2D0AD96641122" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_CBEABBD88A74B8E2E3B2D0AD96641122" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" 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_5DF719889BF8B505A919D0AD965B4BCB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_5DF719889BF8B505A919D0AD965B4BCB" 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_7E74529652FA34F94106D0AD965BCDD0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5DF719889BF8B505A919D0AD965B4BCB" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7E74529652FA34F94106D0AD965BCDD0_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_7E74529652FA34F94106D0AD965BCDD0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_5DF719889BF8B505A919D0AD965B4BCB" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_7E74529652FA34F94106D0AD965BCDD0" 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_200AC09BCFBDBEABC7BED0AD965B57FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_7E74529652FA34F94106D0AD965BCDD0" xlink:to="loc_us-gaap_CostOfSalesMember_200AC09BCFBDBEABC7BED0AD965B57FA" 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_39D1A556F9DD73234BACD0AD965CE898" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_7E74529652FA34F94106D0AD965BCDD0" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_39D1A556F9DD73234BACD0AD965CE898" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringChargesMember" xlink:label="loc_us-gaap_RestructuringChargesMember_CEC9EBBB58200007E017D0AD965C191D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_7E74529652FA34F94106D0AD965BCDD0" xlink:to="loc_us-gaap_RestructuringChargesMember_CEC9EBBB58200007E017D0AD965C191D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_27E4A70ED9571529E814D0AD965CB9E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_27E4A70ED9571529E814D0AD965CB9E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_27E4A70ED9571529E814D0AD965CB9E1" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_27E4A70ED9571529E814D0AD965CB9E1" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeSeveranceMember" xlink:label="loc_us-gaap_EmployeeSeveranceMember_BD55121BE958C0765881D0AD965C3EA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:to="loc_us-gaap_EmployeeSeveranceMember_BD55121BE958C0765881D0AD965C3EA5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_AcceleratedDepreciationandAmortizationMember" xlink:label="loc_hsy_AcceleratedDepreciationandAmortizationMember_B7E1F7D292C4870396CAD0AD965D90A8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:to="loc_hsy_AcceleratedDepreciationandAmortizationMember_B7E1F7D292C4870396CAD0AD965D90A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherRestructuringMember" xlink:label="loc_us-gaap_OtherRestructuringMember_F79DF871D43EEFB6D4E1D0AD96621DED" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:to="loc_us-gaap_OtherRestructuringMember_F79DF871D43EEFB6D4E1D0AD96621DED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FacilityClosingMember" xlink:label="loc_us-gaap_FacilityClosingMember_CCAC10C3A512D18FE3B8D0AD96627B06" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_C6121CB62715377554B9D0AD965C7203" xlink:to="loc_us-gaap_FacilityClosingMember_CCAC10C3A512D18FE3B8D0AD96627B06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_219B45516B20766E93ABD0AD96624BFF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_219B45516B20766E93ABD0AD96624BFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_49303A3B5B3D9D9D2E53D0AD9663F7F0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_219B45516B20766E93ABD0AD96624BFF" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_49303A3B5B3D9D9D2E53D0AD9663F7F0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_49303A3B5B3D9D9D2E53D0AD9663F7F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_219B45516B20766E93ABD0AD96624BFF" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_49303A3B5B3D9D9D2E53D0AD9663F7F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_76F1140FEE771E427C5AD0AD96633155" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_AF0095C3264588B33CB6D0AD965AD866" xlink:to="loc_us-gaap_RestructuringPlanAxis_76F1140FEE771E427C5AD0AD96633155" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_76F1140FEE771E427C5AD0AD96633155" xlink:to="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_76F1140FEE771E427C5AD0AD96633155" xlink:to="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_MarginforGrowthProgramMember" xlink:label="loc_hsy_MarginforGrowthProgramMember_75AACDA1C5BAD56F0C3FD0AD96631D28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21" xlink:to="loc_hsy_MarginforGrowthProgramMember_75AACDA1C5BAD56F0C3FD0AD96631D28" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_OperationalOptimizationProgramMember" xlink:label="loc_hsy_OperationalOptimizationProgramMember_C6A3F6094C9FC67BD575D0AD9664C92E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_DFD60DB21F6FCF060E70D0AD9663CB21" xlink:to="loc_hsy_OperationalOptimizationProgramMember_C6A3F6094C9FC67BD575D0AD9664C92E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_4B2C6506114DBCCD14E4D0AD9664CC2E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_CBEABBD88A74B8E2E3B2D0AD96641122" xlink:to="loc_us-gaap_RestructuringCharges_4B2C6506114DBCCD14E4D0AD9664CC2E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesScheduleOfLiabilityActivityForCostsQualifyingAsExitAndDisposalCostsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_F083B920449DBECAD55CE0870549D66E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B7E7D0AF4AD9595B7C17E087054816F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_F083B920449DBECAD55CE0870549D66E" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B7E7D0AF4AD9595B7C17E087054816F2" 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_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_711F02BFB051894DBE35E087054958D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B7E7D0AF4AD9595B7C17E087054816F2" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_711F02BFB051894DBE35E087054958D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_65B8DD2C1659D5EF6281E0870549B9D2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_711F02BFB051894DBE35E087054958D2" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_65B8DD2C1659D5EF6281E0870549B9D2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_65B8DD2C1659D5EF6281E0870549B9D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_711F02BFB051894DBE35E087054958D2" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_65B8DD2C1659D5EF6281E0870549B9D2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserveRollForward" xlink:label="loc_us-gaap_RestructuringReserveRollForward_38F48EA283C6B1C911AAE08705497E05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_F083B920449DBECAD55CE0870549D66E" xlink:to="loc_us-gaap_RestructuringReserveRollForward_38F48EA283C6B1C911AAE08705497E05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="loc_us-gaap_RestructuringReserve_B12A09B177B628BFCC3BE087054A256D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_38F48EA283C6B1C911AAE08705497E05" xlink:to="loc_us-gaap_RestructuringReserve_B12A09B177B628BFCC3BE087054A256D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_RestructuringChargesBusinessRealignmentReserve" xlink:label="loc_hsy_RestructuringChargesBusinessRealignmentReserve_FC78F2E085FE438ACACBE087054A0898" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_38F48EA283C6B1C911AAE08705497E05" xlink:to="loc_hsy_RestructuringChargesBusinessRealignmentReserve_FC78F2E085FE438ACACBE087054A0898" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRestructuring" xlink:label="loc_us-gaap_PaymentsForRestructuring_84DA3CD15A62FE80772AE087054A21F2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_38F48EA283C6B1C911AAE08705497E05" xlink:to="loc_us-gaap_PaymentsForRestructuring_84DA3CD15A62FE80772AE087054A21F2" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedBalanceSheets" 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_990DE6297D12F2930B43F87E92D71101" 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_607A5C16A6460E28FD66F87E92D7DAD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_990DE6297D12F2930B43F87E92D71101" xlink:to="loc_us-gaap_StatementTable_607A5C16A6460E28FD66F87E92D7DAD7" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_502054A6E508F44B2C68F87E92D73398" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_607A5C16A6460E28FD66F87E92D7DAD7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_502054A6E508F44B2C68F87E92D73398" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_502054A6E508F44B2C68F87E92D73398" xlink:to="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_502054A6E508F44B2C68F87E92D73398" xlink:to="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44" 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_128FF8474F5682C8661FF87E92D73E07" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44" xlink:to="loc_us-gaap_CommonStockMember_128FF8474F5682C8661FF87E92D73E07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_77ED2CEBE8D29C307268F87E92D78C99" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C2B1A1E54397AE0B8462F87E92D7CD44" xlink:to="loc_us-gaap_CommonClassBMember_77ED2CEBE8D29C307268F87E92D78C99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_990DE6297D12F2930B43F87E92D71101" xlink:to="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_DF2BD6198A6C94DF5C34F87E92D752C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_DF2BD6198A6C94DF5C34F87E92D752C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_7BD3C28F3E592150360BF87E92D7097B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_7BD3C28F3E592150360BF87E92D7097B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_642DCCA1664D508CCA6BF87E92D7C7D7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:to="loc_us-gaap_InventoryNet_642DCCA1664D508CCA6BF87E92D7C7D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_68DB895D985BB07E6B91F87E92D724A1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_68DB895D985BB07E6B91F87E92D724A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_FE60B0757FEF670B1D16F87E92D75C83" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_B087B3017FDCE48762E7F87E92D7C4A7" xlink:to="loc_us-gaap_AssetsCurrent_FE60B0757FEF670B1D16F87E92D75C83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_B9C20ECCC6209EE61BC3F87E92D7B590" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_B9C20ECCC6209EE61BC3F87E92D7B590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_743C4A5452186314FC57F87E92E71B8E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_Goodwill_743C4A5452186314FC57F87E92E71B8E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0CA1213A18FC6FBBAC95F87E92E7BE32" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0CA1213A18FC6FBBAC95F87E92E7BE32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_A42D3B77A9619453A645F87E92E7670C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_A42D3B77A9619453A645F87E92E7670C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_E7515362BED107BDF216F87E92E7A93F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_E7515362BED107BDF216F87E92E7A93F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_9DCB16287FF2A0BBC70AF87E92E7B3F9" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_35E1F052436C7EFB5DA6F87E92D775CE" xlink:to="loc_us-gaap_Assets_9DCB16287FF2A0BBC70AF87E92E7B3F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_990DE6297D12F2930B43F87E92D71101" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_E1415F5048E7C56EEA9EF87E92E7D723" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_AccountsPayableCurrent_E1415F5048E7C56EEA9EF87E92E7D723" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_1646D9CD60F3CFD7731EF87E92E7029D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_1646D9CD60F3CFD7731EF87E92E7029D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_D97889C573CE1B527E3AF87E92E7B8E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_D97889C573CE1B527E3AF87E92E7B8E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_04DE2EE39B99409DDC7EF87E92E74A2C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_ShortTermBorrowings_04DE2EE39B99409DDC7EF87E92E74A2C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_ACD032FB8B4EEF562CC3F87E92E7C230" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_ACD032FB8B4EEF562CC3F87E92E7C230" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_97F65C57D8ABCD28B857F87E92E7D71D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_66E9433BCAEBE20C5CDBF87E92E7D068" xlink:to="loc_us-gaap_LiabilitiesCurrent_97F65C57D8ABCD28B857F87E92E7D71D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_CC21F415170EF27E8C1BF87E92E77E88" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_CC21F415170EF27E8C1BF87E92E77E88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_55BB31BE3595A31FF5A8F87E92E78DA6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_55BB31BE3595A31FF5A8F87E92E78DA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9B8E0CA01E24D3391FA7F87E92E7EB92" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9B8E0CA01E24D3391FA7F87E92E7EB92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_53A04853C33683D93321F87E92E750E6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_Liabilities_53A04853C33683D93321F87E92E750E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_26BA6CDB40913B2CA334F87E92E70654" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_PreferredStockValue_26BA6CDB40913B2CA334F87E92E70654" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_7416913C9B3F1927DBC3F87E92E73415" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_CommonStockValue_7416913C9B3F1927DBC3F87E92E73415" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_FFE6F81A6DE69D87C131F87E92E7543E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_AdditionalPaidInCapital_FFE6F81A6DE69D87C131F87E92E7543E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_BFE56F2731845AFAC370F87E92E78F3C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_BFE56F2731845AFAC370F87E92E78F3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_E01136E5C35AA95F3C42F87E92E72D4A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_TreasuryStockValue_E01136E5C35AA95F3C42F87E92E72D4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_C7D17B1D1D76B07C4218F87E92E7ACB8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_C7D17B1D1D76B07C4218F87E92E7ACB8" 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_DF1C0B02CB0316FB5E63F87E92E7B966" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_StockholdersEquity_DF1C0B02CB0316FB5E63F87E92E7B966" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_576713F42B6BFD29CE40F87E92E76A54" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_MinorityInterest_576713F42B6BFD29CE40F87E92E76A54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_E19AFBAA419AC71C66F7F87E92E7E651" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_308EFC2A5443101C1F17F87E92E7D6C2" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_E19AFBAA419AC71C66F7F87E92E7E651" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_DD0C2F10DA8B1DA519ACF87E92E77967" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_177E7839C960B4E80423F87E92E78ED4" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_DD0C2F10DA8B1DA519ACF87E92E77967" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedBalanceSheetsParenthetical" 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_A28C85CAF0795269886A787A4A380FC0" 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_033A4121FD4D5B8496FFEC85083EC5A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_A28C85CAF0795269886A787A4A380FC0" xlink:to="loc_us-gaap_StatementTable_033A4121FD4D5B8496FFEC85083EC5A7" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_816A842380CB5A1EB412F6040157C009" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_033A4121FD4D5B8496FFEC85083EC5A7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_816A842380CB5A1EB412F6040157C009" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_3CCFCDF301F15F31394A0587DDB46DAC_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_816A842380CB5A1EB412F6040157C009" xlink:to="loc_us-gaap_ClassOfStockDomain_3CCFCDF301F15F31394A0587DDB46DAC_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_3544E5860775561AAB6035C874249E3A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_816A842380CB5A1EB412F6040157C009" xlink:to="loc_us-gaap_ClassOfStockDomain_3544E5860775561AAB6035C874249E3A" 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_BCAA4E6C48F759E794C4BB77D4D8ECB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3544E5860775561AAB6035C874249E3A" xlink:to="loc_us-gaap_CommonStockMember_BCAA4E6C48F759E794C4BB77D4D8ECB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_D99F4052899759D48E2CD45DA066CBA1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3544E5860775561AAB6035C874249E3A" xlink:to="loc_us-gaap_CommonClassBMember_D99F4052899759D48E2CD45DA066CBA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_C247D9477A3E54ECA6F5E66D841545AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A28C85CAF0795269886A787A4A380FC0" xlink:to="loc_us-gaap_PreferredStockSharesIssued_C247D9477A3E54ECA6F5E66D841545AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_94CBA10D7AAB535796EF7C01EFB452EC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A28C85CAF0795269886A787A4A380FC0" xlink:to="loc_us-gaap_CommonStockSharesIssued_94CBA10D7AAB535796EF7C01EFB452EC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_909D21AC996551EFAE1E6AAFA393600B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_A28C85CAF0795269886A787A4A380FC0" xlink:to="loc_us-gaap_TreasuryStockShares_909D21AC996551EFAE1E6AAFA393600B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncome" 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_45FD58B0E531AB0F8C6ADFD984088F70" 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_B7ACDA45DF703D3D6DEADFD984081FAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_45FD58B0E531AB0F8C6ADFD984088F70" xlink:to="loc_us-gaap_StatementTable_B7ACDA45DF703D3D6DEADFD984081FAE" 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_RestatementAxis" xlink:label="loc_srt_RestatementAxis_D0A5779B8103AF8A8C20DFD98408D2FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B7ACDA45DF703D3D6DEADFD984081FAE" xlink:to="loc_srt_RestatementAxis_D0A5779B8103AF8A8C20DFD98408D2FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_BC98228D312D58402C04DFD98408767E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_D0A5779B8103AF8A8C20DFD98408D2FA" xlink:to="loc_srt_RestatementDomain_BC98228D312D58402C04DFD98408767E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_BC98228D312D58402C04DFD98408767E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_D0A5779B8103AF8A8C20DFD98408D2FA" xlink:to="loc_srt_RestatementDomain_BC98228D312D58402C04DFD98408767E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" 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_937FA966BA57541DF218D0F8F4EBAEB6" 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_8AC3D416ADFBFBD9E68ED0F8F4EBC59E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_StatementTable_8AC3D416ADFBFBD9E68ED0F8F4EBC59E" 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_D8B4124E3BD242B7FA4DD1261040065B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_8AC3D416ADFBFBD9E68ED0F8F4EBC59E" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_D8B4124E3BD242B7FA4DD1261040065B" 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_82F26D60A59192225D66D12610427133_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_D8B4124E3BD242B7FA4DD1261040065B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_82F26D60A59192225D66D12610427133_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_82F26D60A59192225D66D12610427133" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_D8B4124E3BD242B7FA4DD1261040065B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_82F26D60A59192225D66D12610427133" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_C10D314306E4E4B2DA3ED0F8F4EB266F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_8AC3D416ADFBFBD9E68ED0F8F4EBC59E" xlink:to="loc_us-gaap_StatementClassOfStockAxis_C10D314306E4E4B2DA3ED0F8F4EB266F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C10D314306E4E4B2DA3ED0F8F4EB266F" xlink:to="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C10D314306E4E4B2DA3ED0F8F4EB266F" xlink:to="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A" 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_D88D0AD77400653DBD00D0F8F4EB0AC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A" xlink:to="loc_us-gaap_CommonStockMember_D88D0AD77400653DBD00D0F8F4EB0AC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_C55140EABD0F32F61858D0F8F4EB445C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_72C73C0FFCAA8AB05D17D0F8F4EB930A" xlink:to="loc_us-gaap_CommonClassBMember_C55140EABD0F32F61858D0F8F4EB445C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8E78CF38E97444B4D794D0F8F4EB96E6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8E78CF38E97444B4D794D0F8F4EB96E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_2E8C9449607BC3BEFC16D0F8F4EB564B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_2E8C9449607BC3BEFC16D0F8F4EB564B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_6D72E76536136FDD4177D0F8F4EB3F8C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_GrossProfit_6D72E76536136FDD4177D0F8F4EB3F8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_6DEE25D602FFFB860DC7D0F8F4EBF95B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_6DEE25D602FFFB860DC7D0F8F4EBF95B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_B0D49BCC1D42FC6E46FCD0F8F4EB498D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_AssetImpairmentCharges_B0D49BCC1D42FC6E46FCD0F8F4EB498D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_RestructuringChargesBusinessRealignment" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_0DC831912F121A113256D1275BFA2790" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_0DC831912F121A113256D1275BFA2790" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_0729004C7761A1DE19E9D0F8F4EB6B8D" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_OperatingIncomeLoss_0729004C7761A1DE19E9D0F8F4EB6B8D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6EF60316A69118141B88D0F8F4EB1170" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6EF60316A69118141B88D0F8F4EB1170" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_39B1C7E524EA14A15400D0F8F4EBF061" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_39B1C7E524EA14A15400D0F8F4EBF061" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_D8ECA4FD9EF67A334BCBD0F8F4EBAAF7" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_D8ECA4FD9EF67A334BCBD0F8F4EBAAF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_0515DA0D993B0DCAC140D0F8F4EBF994" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_0515DA0D993B0DCAC140D0F8F4EBF994" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_9ABB3B20864250A06373D0F8F4EB64DD" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_ProfitLoss_9ABB3B20864250A06373D0F8F4EB64DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_80388886C73BD2595B07D0F8F4EB6B2C" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_80388886C73BD2595B07D0F8F4EB6B2C" 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_4D2E8BD1E7C8B8349B76D0F8F4EB76A3" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_NetIncomeLoss_4D2E8BD1E7C8B8349B76D0F8F4EB76A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_142F04084673BF3AF94CD0F8F4EBB625" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_142F04084673BF3AF94CD0F8F4EBB625" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_C8EEFB6ACE234C666431D0F8F4EBBD9E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_142F04084673BF3AF94CD0F8F4EBB625" xlink:to="loc_us-gaap_EarningsPerShareBasic_C8EEFB6ACE234C666431D0F8F4EBBD9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_DBF4B7F8971DA96E278AD0F8F4EBD998" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_DBF4B7F8971DA96E278AD0F8F4EBD998" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_98B725A4C5B6E6EA5ADCD0F8F4EB889A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_DBF4B7F8971DA96E278AD0F8F4EBD998" xlink:to="loc_us-gaap_EarningsPerShareDiluted_98B725A4C5B6E6EA5ADCD0F8F4EB889A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockAbstract" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_6851037FF2455CDC66D4D0F8F4EB7965" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_937FA966BA57541DF218D0F8F4EBAEB6" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_6851037FF2455CDC66D4D0F8F4EB7965" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_06D4D446A9334586AA3DD0F8F4EB4E0C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_6851037FF2455CDC66D4D0F8F4EB7965" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_06D4D446A9334586AA3DD0F8F4EB4E0C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquity" 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_E1BB811003425ED1A11D77A2D93CDE66" 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_A4C7B9679F53589F9CE810FF6163DD99" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_E1BB811003425ED1A11D77A2D93CDE66" xlink:to="loc_us-gaap_StatementTable_A4C7B9679F53589F9CE810FF6163DD99" 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_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C0A6E82B32915A9893B518DE811A76F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_A4C7B9679F53589F9CE810FF6163DD99" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C0A6E82B32915A9893B518DE811A76F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_9698AFE35528BD4F39B41EC12C66293F_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C0A6E82B32915A9893B518DE811A76F9" xlink:to="loc_us-gaap_TypeOfAdoptionMember_9698AFE35528BD4F39B41EC12C66293F_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_18727CF2D16C52B9946F26731CF5929E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_C0A6E82B32915A9893B518DE811A76F9" xlink:to="loc_us-gaap_TypeOfAdoptionMember_18727CF2D16C52B9946F26731CF5929E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_C27A77A4D1C8589F98431A7E9FBCA68B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_18727CF2D16C52B9946F26731CF5929E" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_C27A77A4D1C8589F98431A7E9FBCA68B" xlink:type="arc" />
    <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_D4F4B54951735229B21DE98ECEC24E19" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_A4C7B9679F53589F9CE810FF6163DD99" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_D4F4B54951735229B21DE98ECEC24E19" 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_11C0894E4153AD8608341EC12C678D09_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D4F4B54951735229B21DE98ECEC24E19" xlink:to="loc_us-gaap_EquityComponentDomain_11C0894E4153AD8608341EC12C678D09_E864B487E758552986E6C884DD4570CD" 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_5EDB411DED4C524194A198E433B19383" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_D4F4B54951735229B21DE98ECEC24E19" xlink:to="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaap_PreferredStockMember_7E1EEB8E977756B58C543CADD354E2E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_PreferredStockMember_7E1EEB8E977756B58C543CADD354E2E9" 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_5DC1496C20DF5A919EE604B7568D40BE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_CommonStockMember_5DC1496C20DF5A919EE604B7568D40BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_5711DF038514585BA9480BFD44A679CF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_5711DF038514585BA9480BFD44A679CF" 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_8B5CA51BC65352289553EEFFB1C9F098" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_RetainedEarningsMember_8B5CA51BC65352289553EEFFB1C9F098" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_24B4901CA9B5529D97CB14ACAC04E91F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_TreasuryStockMember_24B4901CA9B5529D97CB14ACAC04E91F" 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_B5D411208058549B8555AE7E4107F676" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_B5D411208058549B8555AE7E4107F676" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_4FBD8F4B41265258AEE1D0B444D16ED5" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5EDB411DED4C524194A198E433B19383" xlink:to="loc_us-gaap_NoncontrollingInterestMember_4FBD8F4B41265258AEE1D0B444D16ED5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_FC9F831F6C6F540292FD756E2F3B4CCE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_A4C7B9679F53589F9CE810FF6163DD99" xlink:to="loc_us-gaap_StatementClassOfStockAxis_FC9F831F6C6F540292FD756E2F3B4CCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_496CE2967ACAB6EB452E1EC12C68C7B2_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_FC9F831F6C6F540292FD756E2F3B4CCE" xlink:to="loc_us-gaap_ClassOfStockDomain_496CE2967ACAB6EB452E1EC12C68C7B2_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_3ADBDDADCD01560ABABB9ED2A61D6754" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_FC9F831F6C6F540292FD756E2F3B4CCE" xlink:to="loc_us-gaap_ClassOfStockDomain_3ADBDDADCD01560ABABB9ED2A61D6754" 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_E5A5C18253305049A342891AFC32AD14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3ADBDDADCD01560ABABB9ED2A61D6754" xlink:to="loc_us-gaap_CommonStockMember_E5A5C18253305049A342891AFC32AD14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_6F5BB9CADEC651499A8F7CC1BE266DE8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3ADBDDADCD01560ABABB9ED2A61D6754" xlink:to="loc_us-gaap_CommonClassBMember_6F5BB9CADEC651499A8F7CC1BE266DE8" 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_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_E1BB811003425ED1A11D77A2D93CDE66" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5CA647100105530ABEC90CABDAE30254" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_5CA647100105530ABEC90CABDAE30254" 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_FD980C076FAF5AC1859EAC48591F1799" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_NetIncomeLoss_FD980C076FAF5AC1859EAC48591F1799" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_7D7370A4125A511BA91A73463F9A0A4D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_7D7370A4125A511BA91A73463F9A0A4D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_19210D9F160D5EC98A3FE560163DB544" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_ProfitLoss_19210D9F160D5EC98A3FE560163DB544" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_82FBA78BE1945A6FA829B6745EC124CA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_82FBA78BE1945A6FA829B6745EC124CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockAbstract" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_2468AABA61A15EFEBBDCB82D079B1302" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_2468AABA61A15EFEBBDCB82D079B1302" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_6FF8438306F358F3B19EF3F1832E340D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_2468AABA61A15EFEBBDCB82D079B1302" xlink:to="loc_us-gaap_DividendsCommonStockCash_6FF8438306F358F3B19EF3F1832E340D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_8C7124252EC4552196CBBF0BB984B7CC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_8C7124252EC4552196CBBF0BB984B7CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_E38EE8B4294A5DDC8FFDD1DB290BA287" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_E38EE8B4294A5DDC8FFDD1DB290BA287" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_E948763F4DD75210B79BC8843EE507D0" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_E948763F4DD75210B79BC8843EE507D0" 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_E7D616C2277357FE8B024B84CDCBFD00" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_E7D616C2277357FE8B024B84CDCBFD00" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_TaxCutsandJobsActReclassificationFromAOCIToRetainedEarningsTaxEffect" xlink:label="loc_hsy_TaxCutsandJobsActReclassificationFromAOCIToRetainedEarningsTaxEffect_E8F9A7068E61537FA6E28FDC5154EC23" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_B9BBDED1D2445915BA2CFC6AAE0B8D95" xlink:to="loc_hsy_TaxCutsandJobsActReclassificationFromAOCIToRetainedEarningsTaxEffect_E8F9A7068E61537FA6E28FDC5154EC23" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical" 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_B0F5F8DB965A53DB8F8A8088D75B2D07" 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_A6CECAA00EBA5E0698EFC4D754AE580F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_B0F5F8DB965A53DB8F8A8088D75B2D07" xlink:to="loc_us-gaap_StatementTable_A6CECAA00EBA5E0698EFC4D754AE580F" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_CDC46E9C2D64559399C9F805B5FF326C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_A6CECAA00EBA5E0698EFC4D754AE580F" xlink:to="loc_us-gaap_StatementClassOfStockAxis_CDC46E9C2D64559399C9F805B5FF326C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9927C45BD6D1053C5E200580209181E7_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_CDC46E9C2D64559399C9F805B5FF326C" xlink:to="loc_us-gaap_ClassOfStockDomain_9927C45BD6D1053C5E200580209181E7_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_475A4B027D5051BEA30C8EA81956ECCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_CDC46E9C2D64559399C9F805B5FF326C" xlink:to="loc_us-gaap_ClassOfStockDomain_475A4B027D5051BEA30C8EA81956ECCE" 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_5D0456F803835E8FA53A2324EFEDB216" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_475A4B027D5051BEA30C8EA81956ECCE" xlink:to="loc_us-gaap_CommonStockMember_5D0456F803835E8FA53A2324EFEDB216" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_B08D3D3E6DCE59CB88FBC1E095A986AA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_475A4B027D5051BEA30C8EA81956ECCE" xlink:to="loc_us-gaap_CommonClassBMember_B08D3D3E6DCE59CB88FBC1E095A986AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_71040342B4DA5148B3CA61A7EF12518D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_B0F5F8DB965A53DB8F8A8088D75B2D07" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_71040342B4DA5148B3CA61A7EF12518D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/Contingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ContingenciesContingenciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskLineItems" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_D94C2BB26C1258E9A3649EF4A2BF0901" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTable" xlink:label="loc_us-gaap_ConcentrationRiskTable_AAB2F034760F52BA9629B2B72E4B6CE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_D94C2BB26C1258E9A3649EF4A2BF0901" xlink:to="loc_us-gaap_ConcentrationRiskTable_AAB2F034760F52BA9629B2B72E4B6CE1" 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_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_8BE377331F0E5E5AA2C7FF14794EC211" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_AAB2F034760F52BA9629B2B72E4B6CE1" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_8BE377331F0E5E5AA2C7FF14794EC211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_63F3FEF381966D911A170587DBE526CF_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_8BE377331F0E5E5AA2C7FF14794EC211" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_63F3FEF381966D911A170587DBE526CF_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B36062249ED5531B56DA8B759A109CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_8BE377331F0E5E5AA2C7FF14794EC211" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7B36062249ED5531B56DA8B759A109CB" 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_E926BBA28453583E82AF957A96AA9C9E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_AAB2F034760F52BA9629B2B72E4B6CE1" xlink:to="loc_srt_StatementScenarioAxis_E926BBA28453583E82AF957A96AA9C9E" 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_3ADE1F1B30EE8A4C94C10587DBE502FE_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_E926BBA28453583E82AF957A96AA9C9E" xlink:to="loc_srt_ScenarioUnspecifiedDomain_3ADE1F1B30EE8A4C94C10587DBE502FE_E864B487E758552986E6C884DD4570CD" 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_3901FE5AAEAD58159C990DA001C87945" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_E926BBA28453583E82AF957A96AA9C9E" xlink:to="loc_srt_ScenarioUnspecifiedDomain_3901FE5AAEAD58159C990DA001C87945" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ContingenciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsNarrativeDetails" 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_0B7FD41DAA3CDAD20134DF3C13E1BA51" 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_240E802FC44F4D824348DF3C13D6E176" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" 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_F3433B61C37074516610DF3C13D625E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_F3433B61C37074516610DF3C13D625E5" 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_578433680309BB073063DF3C13D7B373_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F3433B61C37074516610DF3C13D625E5" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373_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_578433680309BB073063DF3C13D7B373" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F3433B61C37074516610DF3C13D625E5" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_965822CD4938A57794A1DF3C13D7CCAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:to="loc_us-gaap_CommodityContractMember_965822CD4938A57794A1DF3C13D7CCAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_36FEBE1B31E06145B653DF3C13D781BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:to="loc_us-gaap_ForeignExchangeContractMember_36FEBE1B31E06145B653DF3C13D781BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_4110A71591672F21E715DF3C13D84254" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:to="loc_us-gaap_InterestRateContractMember_4110A71591672F21E715DF3C13D84254" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_A19B083A453EDDEA9BF8DF3C13D8FC0E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:to="loc_us-gaap_EquitySwapMember_A19B083A453EDDEA9BF8DF3C13D8FC0E" 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_885531FAFB83C01946FADF3C13D86459" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_578433680309BB073063DF3C13D7B373" xlink:to="loc_us-gaap_InterestRateSwapMember_885531FAFB83C01946FADF3C13D86459" 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_40C179D6CFA4BAFA87F1DF3C13D81CE1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" xlink:to="loc_us-gaap_HedgingDesignationAxis_40C179D6CFA4BAFA87F1DF3C13D81CE1" 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_ED223CA4A1B1F7B1F237DF3C13D8A9FC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_40C179D6CFA4BAFA87F1DF3C13D81CE1" xlink:to="loc_us-gaap_HedgingDesignationDomain_ED223CA4A1B1F7B1F237DF3C13D8A9FC_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_ED223CA4A1B1F7B1F237DF3C13D8A9FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_40C179D6CFA4BAFA87F1DF3C13D81CE1" xlink:to="loc_us-gaap_HedgingDesignationDomain_ED223CA4A1B1F7B1F237DF3C13D8A9FC" 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_4C3DC36A0E564C3DA894DF3C13D9D94D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ED223CA4A1B1F7B1F237DF3C13D8A9FC" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_4C3DC36A0E564C3DA894DF3C13D9D94D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_BED08B2CB30E9EB3CD00DF3C13D97AAC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ED223CA4A1B1F7B1F237DF3C13D8A9FC" xlink:to="loc_us-gaap_NondesignatedMember_BED08B2CB30E9EB3CD00DF3C13D97AAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C805F70DE19EB102DE8FDF3C13D932A0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C805F70DE19EB102DE8FDF3C13D932A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C805F70DE19EB102DE8FDF3C13D932A0" xlink:to="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_C805F70DE19EB102DE8FDF3C13D932A0" xlink:to="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_67B4F64DB07D45397707DF3C13D9EC63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4" xlink:to="loc_us-gaap_CashFlowHedgingMember_67B4F64DB07D45397707DF3C13D9EC63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_7C86969DCC3D2598DA12DF3C13DA62BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_6D7D3AC44DED7B635607DF3C13D9F3A4" xlink:to="loc_us-gaap_FairValueHedgingMember_7C86969DCC3D2598DA12DF3C13DA62BB" 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_CCF551DCB8D510EE7E72DF3C13DA7923" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" xlink:to="loc_srt_RangeAxis_CCF551DCB8D510EE7E72DF3C13DA7923" 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_A3773F3158F4B4A1F8FFDF3C13DA1540_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_CCF551DCB8D510EE7E72DF3C13DA7923" xlink:to="loc_srt_RangeMember_A3773F3158F4B4A1F8FFDF3C13DA1540_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_A3773F3158F4B4A1F8FFDF3C13DA1540" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_CCF551DCB8D510EE7E72DF3C13DA7923" xlink:to="loc_srt_RangeMember_A3773F3158F4B4A1F8FFDF3C13DA1540" 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_28EA40E03346C9D43FA6DF3C13DAB980" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A3773F3158F4B4A1F8FFDF3C13DA1540" xlink:to="loc_srt_MinimumMember_28EA40E03346C9D43FA6DF3C13DAB980" 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_6DF6B00504BBEF14A343DF3C13E0B80C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A3773F3158F4B4A1F8FFDF3C13DA1540" xlink:to="loc_srt_MaximumMember_6DF6B00504BBEF14A343DF3C13E0B80C" xlink:type="arc" />
    <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_0E5E147D82AFBC803CC0DF3C13E03C92" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_240E802FC44F4D824348DF3C13D6E176" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_0E5E147D82AFBC803CC0DF3C13E03C92" 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_DCAD02934353FAD9DF4EDF3C13E04E1D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0E5E147D82AFBC803CC0DF3C13E03C92" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_DCAD02934353FAD9DF4EDF3C13E04E1D_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_DCAD02934353FAD9DF4EDF3C13E04E1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_0E5E147D82AFBC803CC0DF3C13E03C92" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_DCAD02934353FAD9DF4EDF3C13E04E1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseMember" xlink:label="loc_us-gaap_InterestExpenseMember_EE1D9A143A1C9445FCDCDF3C13E0C438" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_DCAD02934353FAD9DF4EDF3C13E04E1D" xlink:to="loc_us-gaap_InterestExpenseMember_EE1D9A143A1C9445FCDCDF3C13E0C438" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTermOfContract" xlink:label="loc_us-gaap_DerivativeTermOfContract_EF904B2829A6F03A26D4DF3C13E1D1AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_DerivativeTermOfContract_EF904B2829A6F03A26D4DF3C13E1D1AF" 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_76335E58AE3917E05FE2DF3C13E11DAA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_DerivativeNotionalAmount_76335E58AE3917E05FE2DF3C13E11DAA" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_MinimumLengthofTimeHedgedinCashFlowHedge" xlink:label="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_49DF4810F4AF6111999EDF3C13E1839B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_49DF4810F4AF6111999EDF3C13E1839B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_F6D3D94F1056489D4188DF3C13E2B6D0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_F6D3D94F1056489D4188DF3C13E2B6D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_F319BF656088886A939CDF3C13E282B6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_F319BF656088886A939CDF3C13E282B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_8DE41C5660BC612CFAF6DF3C13E250D9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_0B7FD41DAA3CDAD20134DF3C13E1BA51" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_8DE41C5660BC612CFAF6DF3C13E250D9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfClassificationOfDerivativeAssetsAndLiabilitiesWithinConsolidatedBalanceSheetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_FA16B36CF618591D87E38F77D4C52D84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_FA16B36CF618591D87E38F77D4C52D84" 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_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_647A03BD3056519C8A62FA76921A0124" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_FA16B36CF618591D87E38F77D4C52D84" xlink:to="loc_us-gaap_HedgingDesignationAxis_647A03BD3056519C8A62FA76921A0124" 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_4844FD91561D94AEA9460587DD1AB5C5_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_647A03BD3056519C8A62FA76921A0124" xlink:to="loc_us-gaap_HedgingDesignationDomain_4844FD91561D94AEA9460587DD1AB5C5_E864B487E758552986E6C884DD4570CD" 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_8FF1DB7F10A75FE9B17B884CED1570D6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_647A03BD3056519C8A62FA76921A0124" xlink:to="loc_us-gaap_HedgingDesignationDomain_8FF1DB7F10A75FE9B17B884CED1570D6" 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_5C3ED177793B5F4C9883F7F7E4A7D794" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_8FF1DB7F10A75FE9B17B884CED1570D6" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_5C3ED177793B5F4C9883F7F7E4A7D794" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_B8E557D27DF65580B4D5DE595BC5D454" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_8FF1DB7F10A75FE9B17B884CED1570D6" xlink:to="loc_us-gaap_NondesignatedMember_B8E557D27DF65580B4D5DE595BC5D454" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1DF571E669365CD0824771B837B3A02A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_FA16B36CF618591D87E38F77D4C52D84" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1DF571E669365CD0824771B837B3A02A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_719475D95519FB8A7DED0587DD1A6E49_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1DF571E669365CD0824771B837B3A02A" xlink:to="loc_us-gaap_HedgingRelationshipDomain_719475D95519FB8A7DED0587DD1A6E49_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9A7AA5201ED65823A1E1E329E5660B98" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1DF571E669365CD0824771B837B3A02A" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9A7AA5201ED65823A1E1E329E5660B98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_83EF229DAB0E584797390C330350C92B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9A7AA5201ED65823A1E1E329E5660B98" xlink:to="loc_us-gaap_CashFlowHedgingMember_83EF229DAB0E584797390C330350C92B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_B6EF54E284F15CEDBF27FBBA121A556D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9A7AA5201ED65823A1E1E329E5660B98" xlink:to="loc_us-gaap_FairValueHedgingMember_B6EF54E284F15CEDBF27FBBA121A556D" 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_6B30F82A98F259D99810FF8F6A113E95" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_FA16B36CF618591D87E38F77D4C52D84" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_6B30F82A98F259D99810FF8F6A113E95" 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_F35BFAE6F182653F1FC70587DD1B420E_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_6B30F82A98F259D99810FF8F6A113E95" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_F35BFAE6F182653F1FC70587DD1B420E_E864B487E758552986E6C884DD4570CD" 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_D4C220EB434456799392C9EB11878F8D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_6B30F82A98F259D99810FF8F6A113E95" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" 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_091211B28BF25C58AB068C31865E1D68" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" xlink:to="loc_us-gaap_InterestRateSwapMember_091211B28BF25C58AB068C31865E1D68" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_C5AC7E4E7C655827BE7B05B378A145F2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" xlink:to="loc_us-gaap_CommodityContractMember_C5AC7E4E7C655827BE7B05B378A145F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_AB207CDCA4A65F5A8C11517FEA0F5C84" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" xlink:to="loc_us-gaap_ForeignExchangeContractMember_AB207CDCA4A65F5A8C11517FEA0F5C84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_9D30244414F956F0A261328186AB5AC1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" xlink:to="loc_us-gaap_InterestRateContractMember_9D30244414F956F0A261328186AB5AC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_4BDE0D074810537A9D035B78A766D987" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_D4C220EB434456799392C9EB11878F8D" xlink:to="loc_us-gaap_EquitySwapMember_4BDE0D074810537A9D035B78A766D987" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_16063C2702455302B7E25F74D5FCF68B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:to="loc_us-gaap_DerivativeAssets_16063C2702455302B7E25F74D5FCF68B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_09123C110A6A5CE2A16CE602AE54923B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:to="loc_us-gaap_DerivativeLiabilities_09123C110A6A5CE2A16CE602AE54923B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading" xlink:label="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_673712D509D659748403B85C9D786657" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:to="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_673712D509D659748403B85C9D786657" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading" xlink:label="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_19B893A58F0E5732AC4539F4993F8341" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_9B3A71455BF45D60BD2F45E8A42CE683" xlink:to="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_19B893A58F0E5732AC4539F4993F8341" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfCumulativeBasisAdjustmentsForInterestRateSwapDerivativesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_B41BF3F6D509A700F561DFE1D12F1894" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B41BF3F6D509A700F561DFE1D12F1894" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" 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_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_407249ACD67C02F00737DFE1D12C55EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_407249ACD67C02F00737DFE1D12C55EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_68898F8B4AB9EAAC259CDFE1D12CBE83_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_407249ACD67C02F00737DFE1D12C55EF" xlink:to="loc_us-gaap_HedgingRelationshipDomain_68898F8B4AB9EAAC259CDFE1D12CBE83_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_68898F8B4AB9EAAC259CDFE1D12CBE83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_407249ACD67C02F00737DFE1D12C55EF" xlink:to="loc_us-gaap_HedgingRelationshipDomain_68898F8B4AB9EAAC259CDFE1D12CBE83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_B9C197E80DEA20957CB3DFE1D12CF42C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_68898F8B4AB9EAAC259CDFE1D12CBE83" xlink:to="loc_us-gaap_FairValueHedgingMember_B9C197E80DEA20957CB3DFE1D12CF42C" 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_C323497664D01B2A653DDFE1D12D9ED2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_C323497664D01B2A653DDFE1D12D9ED2" 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_9497ECEC91DEDB63F47EDFE1D12D1B83_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_C323497664D01B2A653DDFE1D12D9ED2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9497ECEC91DEDB63F47EDFE1D12D1B83_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_9497ECEC91DEDB63F47EDFE1D12D1B83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_C323497664D01B2A653DDFE1D12D9ED2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9497ECEC91DEDB63F47EDFE1D12D1B83" 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_E3C04D3F4F52B46C19EDDFE1D12DF785" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9497ECEC91DEDB63F47EDFE1D12D1B83" xlink:to="loc_us-gaap_InterestRateSwapMember_E3C04D3F4F52B46C19EDDFE1D12DF785" 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_6B7F2A707844EBE52524DFE1D12DC90A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:to="loc_us-gaap_HedgingDesignationAxis_6B7F2A707844EBE52524DFE1D12DC90A" 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_9617F5F3B8E7728FD8B3DFE1D12EAEB2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_6B7F2A707844EBE52524DFE1D12DC90A" xlink:to="loc_us-gaap_HedgingDesignationDomain_9617F5F3B8E7728FD8B3DFE1D12EAEB2_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_9617F5F3B8E7728FD8B3DFE1D12EAEB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_6B7F2A707844EBE52524DFE1D12DC90A" xlink:to="loc_us-gaap_HedgingDesignationDomain_9617F5F3B8E7728FD8B3DFE1D12EAEB2" 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_2FCF6450AC8F7CBDD06CDFE1D12E5198" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_9617F5F3B8E7728FD8B3DFE1D12EAEB2" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_2FCF6450AC8F7CBDD06CDFE1D12E5198" 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_A808849A6EF7613461F2DFE1D12EC482" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_A808849A6EF7613461F2DFE1D12EC482" 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_BA8C7B9AA28E07BEFD4DDFE1D12EA94F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_A808849A6EF7613461F2DFE1D12EC482" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_BA8C7B9AA28E07BEFD4DDFE1D12EA94F_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_BA8C7B9AA28E07BEFD4DDFE1D12EA94F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_A808849A6EF7613461F2DFE1D12EC482" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_BA8C7B9AA28E07BEFD4DDFE1D12EA94F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PositionAxis" xlink:label="loc_us-gaap_PositionAxis_A6D6317BF06D93BF3813DFE1D12F04A0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_6FAF712BA8B92F358E03DFE1D12BFDC5" xlink:to="loc_us-gaap_PositionAxis_A6D6317BF06D93BF3813DFE1D12F04A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PositionDomain" xlink:label="loc_us-gaap_PositionDomain_51697595D1819FE731CFDFE1D12F3593_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PositionAxis_A6D6317BF06D93BF3813DFE1D12F04A0" xlink:to="loc_us-gaap_PositionDomain_51697595D1819FE731CFDFE1D12F3593_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PositionDomain" xlink:label="loc_us-gaap_PositionDomain_51697595D1819FE731CFDFE1D12F3593" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PositionAxis_A6D6317BF06D93BF3813DFE1D12F04A0" xlink:to="loc_us-gaap_PositionDomain_51697595D1819FE731CFDFE1D12F3593" 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_F7B9CAA064DCA7C57871DFE1D12FA8B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B41BF3F6D509A700F561DFE1D12F1894" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_F7B9CAA064DCA7C57871DFE1D12FA8B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_6D59760EF3A09CE0302ADFE1D12F5E40" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B41BF3F6D509A700F561DFE1D12F1894" xlink:to="loc_us-gaap_DerivativeAssets_6D59760EF3A09CE0302ADFE1D12F5E40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_D06A6D7FAA750E02FF60DFE1D130DAC4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_B41BF3F6D509A700F561DFE1D12F1894" xlink:to="loc_us-gaap_DerivativeLiabilities_D06A6D7FAA750E02FF60DFE1D130DAC4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsScheduleOfEffectOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" 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_325BE9AE4D7FAAF07D8D21094AEA3F98" 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_1F4C8C02D34614A9C52421094AE7F60A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_325BE9AE4D7FAAF07D8D21094AEA3F98" xlink:to="loc_us-gaap_DerivativeTable_1F4C8C02D34614A9C52421094AE7F60A" 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_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_32C41C88B2F0F66C8E2421094AE7D45D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_1F4C8C02D34614A9C52421094AE7F60A" xlink:to="loc_us-gaap_HedgingDesignationAxis_32C41C88B2F0F66C8E2421094AE7D45D" 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_857B2D139D8A0B0B1B6B21094AE7A354_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_32C41C88B2F0F66C8E2421094AE7D45D" xlink:to="loc_us-gaap_HedgingDesignationDomain_857B2D139D8A0B0B1B6B21094AE7A354_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_857B2D139D8A0B0B1B6B21094AE7A354" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_32C41C88B2F0F66C8E2421094AE7D45D" xlink:to="loc_us-gaap_HedgingDesignationDomain_857B2D139D8A0B0B1B6B21094AE7A354" 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_97ADF63428105CF357A221094AE7FB88" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_857B2D139D8A0B0B1B6B21094AE7A354" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_97ADF63428105CF357A221094AE7FB88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1C2A8AC01424FFFA41BD21094AE828E6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_1F4C8C02D34614A9C52421094AE7F60A" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1C2A8AC01424FFFA41BD21094AE828E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_DB8D5DCEA2F66B49461D21094AE835E9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1C2A8AC01424FFFA41BD21094AE828E6" xlink:to="loc_us-gaap_HedgingRelationshipDomain_DB8D5DCEA2F66B49461D21094AE835E9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_DB8D5DCEA2F66B49461D21094AE835E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1C2A8AC01424FFFA41BD21094AE828E6" xlink:to="loc_us-gaap_HedgingRelationshipDomain_DB8D5DCEA2F66B49461D21094AE835E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_27EAA79D3957685C078821094AE818F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_DB8D5DCEA2F66B49461D21094AE835E9" xlink:to="loc_us-gaap_CashFlowHedgingMember_27EAA79D3957685C078821094AE818F4" 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_34F20B0960819AC5438921094AE96FBA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_1F4C8C02D34614A9C52421094AE7F60A" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_34F20B0960819AC5438921094AE96FBA" 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_3859D749C44BC5D7E03C21094AE9E19F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_34F20B0960819AC5438921094AE96FBA" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F_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_3859D749C44BC5D7E03C21094AE9E19F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_34F20B0960819AC5438921094AE96FBA" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_0AD688B8298ED72E925F21094AE91521" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F" xlink:to="loc_us-gaap_CommodityContractMember_0AD688B8298ED72E925F21094AE91521" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_57122D894B008138369D21094AE908DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F" xlink:to="loc_us-gaap_ForeignExchangeContractMember_57122D894B008138369D21094AE908DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_DF3A557E6DA2310AC2BB21094AEA16AC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F" xlink:to="loc_us-gaap_InterestRateContractMember_DF3A557E6DA2310AC2BB21094AEA16AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_A794AC5C36012D75037621094AEAE6C5" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3859D749C44BC5D7E03C21094AE9E19F" xlink:to="loc_us-gaap_EquitySwapMember_A794AC5C36012D75037621094AEAE6C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_98A01D12C2F94190D02D21094AEAE8EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_325BE9AE4D7FAAF07D8D21094AEA3F98" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_98A01D12C2F94190D02D21094AEAE8EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_7A78C26D709965FC6E2A214BEAC395DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_325BE9AE4D7FAAF07D8D21094AEA3F98" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_7A78C26D709965FC6E2A214BEAC395DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_6A14CA8158B536D77967215A4D8A4248" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_325BE9AE4D7FAAF07D8D21094AEA3F98" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_6A14CA8158B536D77967215A4D8A4248" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DocumentAndEntityInformationDocument" xlink:type="extended">
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInformationLineItems" xlink:label="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:type="locator" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitiesTable" xlink:label="loc_dei_EntitiesTable_0BB4174B4161124DAC7DD522A52B123B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntitiesTable_0BB4174B4161124DAC7DD522A52B123B" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_6D25D294D19F5AB80437D522A52B7C5D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_0BB4174B4161124DAC7DD522A52B123B" xlink:to="loc_us-gaap_StatementClassOfStockAxis_6D25D294D19F5AB80437D522A52B7C5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6D25D294D19F5AB80437D522A52B7C5D" xlink:to="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6D25D294D19F5AB80437D522A52B7C5D" xlink:to="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360" 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_AD4292873ED990C38406D522A52C49DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360" xlink:to="loc_us-gaap_CommonStockMember_AD4292873ED990C38406D522A52C49DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_26DD55C766F44EE2E739D522A52CCAD2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_3A78062072F4E8ECF0A5D522A52C3360" xlink:to="loc_us-gaap_CommonClassBMember_26DD55C766F44EE2E739D522A52CCAD2" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_4E9955CC05F4FA5933D6D522A52DAD17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentType_4E9955CC05F4FA5933D6D522A52DAD17" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentQuarterlyReport" xlink:label="loc_dei_DocumentQuarterlyReport_9123857A500372CDA26AD522A52D7495" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentQuarterlyReport_9123857A500372CDA26AD522A52D7495" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_BE7EA987C6F4158D9FFFD522A52DE411" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentPeriodEndDate_BE7EA987C6F4158D9FFFD522A52DE411" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_7C10921BAB8CE744994AD522A52DB918" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentTransitionReport_7C10921BAB8CE744994AD522A52DB918" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_37334DE87486851A84F1D522A52E063A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityFileNumber_37334DE87486851A84F1D522A52E063A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_E31AC068A1363EF12A4DD522A52EED21" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityRegistrantName_E31AC068A1363EF12A4DD522A52EED21" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_88A758744951E9D58525D522A52E6115" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityIncorporationStateCountryCode_88A758744951E9D58525D522A52E6115" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityTaxIdentificationNumber" xlink:label="loc_dei_EntityTaxIdentificationNumber_26A9875925C5A6D7B765D522A52E3019" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityTaxIdentificationNumber_26A9875925C5A6D7B765D522A52E3019" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_9D3B339FD1BE87EF0A46D522A52E2E41" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityAddressAddressLine1_9D3B339FD1BE87EF0A46D522A52E2E41" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_450BBFD11FDDD99A12C7D522A52E8611" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityAddressCityOrTown_450BBFD11FDDD99A12C7D522A52E8611" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressStateOrProvince" xlink:label="loc_dei_EntityAddressStateOrProvince_7344E0E66E98F9F4389CD522A52FA64D" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityAddressStateOrProvince_7344E0E66E98F9F4389CD522A52FA64D" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_EC46A1C982B2C13CB91ED522A52F6365" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityAddressPostalZipCode_EC46A1C982B2C13CB91ED522A52F6365" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_51A9D48CE4BCA92B6D0BD522A52F31C7" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_CityAreaCode_51A9D48CE4BCA92B6D0BD522A52F31C7" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_6E5993D732D57178F5D3D522A52F893E" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_LocalPhoneNumber_6E5993D732D57178F5D3D522A52F893E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_2F38F34809EDE0FA3380D522A52F57C9" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_Security12bTitle_2F38F34809EDE0FA3380D522A52F57C9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_C01E35430DD217C1A149D522A52F895A" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_TradingSymbol_C01E35430DD217C1A149D522A52F895A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_896F0F36D991274AE53BD522A5301BB0" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_SecurityExchangeName_896F0F36D991274AE53BD522A5301BB0" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_1711C89F8F6A657FC82CD522A5354921" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityCurrentReportingStatus_1711C89F8F6A657FC82CD522A5354921" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_6911CF1196F4EC559563D522A5359E43" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityInteractiveDataCurrent_6911CF1196F4EC559563D522A5359E43" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_323EC4EC92C9D1E34222D522A5351963" xlink:type="locator" />
    <link:definitionArc order="20" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityFilerCategory_323EC4EC92C9D1E34222D522A5351963" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitySmallBusiness" xlink:label="loc_dei_EntitySmallBusiness_DF2A9E155BCF5854C76FD522A536828F" xlink:type="locator" />
    <link:definitionArc order="21" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntitySmallBusiness_DF2A9E155BCF5854C76FD522A536828F" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_7B34CBF80A68235D8DACD522A536BAFE" xlink:type="locator" />
    <link:definitionArc order="22" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityEmergingGrowthCompany_7B34CBF80A68235D8DACD522A536BAFE" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_B32E9CF31FF5156B7497D522A5362653" xlink:type="locator" />
    <link:definitionArc order="23" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityShellCompany_B32E9CF31FF5156B7497D522A5362653" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_FFBA2855136361D22A11D522A53642A1" xlink:type="locator" />
    <link:definitionArc order="24" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_FFBA2855136361D22A11D522A53642A1" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_ED0AFF023974636765E2D522A536AEC9" xlink:type="locator" />
    <link:definitionArc order="25" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_EntityCentralIndexKey_ED0AFF023974636765E2D522A536AEC9" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_3AA29C0C45CF42AD91A8D522A5369C77" xlink:type="locator" />
    <link:definitionArc order="26" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_CurrentFiscalYearEndDate_3AA29C0C45CF42AD91A8D522A5369C77" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_60AEF5602F95D0E02E05D522A5368C9E" xlink:type="locator" />
    <link:definitionArc order="27" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentFiscalYearFocus_60AEF5602F95D0E02E05D522A5368C9E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_6B68A0BBCEE96457E9DCD522A5373655" xlink:type="locator" />
    <link:definitionArc order="28" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_DocumentFiscalPeriodFocus_6B68A0BBCEE96457E9DCD522A5373655" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_C4F730168FEC279298FED522A5370BD7" xlink:type="locator" />
    <link:definitionArc order="29" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_892EA868DBABFE022D2CD522A52D3C1A" xlink:to="loc_dei_AmendmentFlag_C4F730168FEC279298FED522A5370BD7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EarningsPerShare" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EarningsPerShareNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_37BE61ECE2B3904328B6DFDB5980E1B5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8078853951517ADE20C9DFDB597F7A05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_37BE61ECE2B3904328B6DFDB5980E1B5" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8078853951517ADE20C9DFDB597F7A05" 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_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_185D859B2AF8C7819D1ADFDB59804349" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_8078853951517ADE20C9DFDB597F7A05" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_185D859B2AF8C7819D1ADFDB59804349" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_79544562A3C420B35586DFDB598027D4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_185D859B2AF8C7819D1ADFDB59804349" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_79544562A3C420B35586DFDB598027D4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_79544562A3C420B35586DFDB598027D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_185D859B2AF8C7819D1ADFDB59804349" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_79544562A3C420B35586DFDB598027D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_F45E5900F7D030B0AED8DFDB5980A64E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_79544562A3C420B35586DFDB598027D4" xlink:to="loc_us-gaap_EmployeeStockOptionMember_F45E5900F7D030B0AED8DFDB5980A64E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0BC96A7A8645E4AC69D2DFDB59814195" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_37BE61ECE2B3904328B6DFDB5980E1B5" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0BC96A7A8645E4AC69D2DFDB59814195" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_8A6DC656267952E2B944450ECD8CB638" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_97502375DEF850258DD3CFF45BFF0954" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_8A6DC656267952E2B944450ECD8CB638" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_97502375DEF850258DD3CFF45BFF0954" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_940678AE740E57EA90AB478A548945F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_97502375DEF850258DD3CFF45BFF0954" xlink:to="loc_us-gaap_StatementClassOfStockAxis_940678AE740E57EA90AB478A548945F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_264806B8B99DE21935E50587DBD7C228_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_940678AE740E57EA90AB478A548945F6" xlink:to="loc_us-gaap_ClassOfStockDomain_264806B8B99DE21935E50587DBD7C228_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_169BFD48E47C50EFAECA4728BCA871CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_940678AE740E57EA90AB478A548945F6" xlink:to="loc_us-gaap_ClassOfStockDomain_169BFD48E47C50EFAECA4728BCA871CD" 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_8462181F04F653B1B915A74A9CC65D6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_169BFD48E47C50EFAECA4728BCA871CD" xlink:to="loc_us-gaap_CommonStockMember_8462181F04F653B1B915A74A9CC65D6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_3C30FD09A58C506395CB4E734A38592C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_169BFD48E47C50EFAECA4728BCA871CD" xlink:to="loc_us-gaap_CommonClassBMember_3C30FD09A58C506395CB4E734A38592C" xlink:type="arc" />
    <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_16DCDBA74FFB5BE2B8B75842BC5D1BF8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_97502375DEF850258DD3CFF45BFF0954" xlink:to="loc_us-gaap_AwardTypeAxis_16DCDBA74FFB5BE2B8B75842BC5D1BF8" 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_CA5539A40925D04E5E190587DBD8BC2B_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_16DCDBA74FFB5BE2B8B75842BC5D1BF8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CA5539A40925D04E5E190587DBD8BC2B_E864B487E758552986E6C884DD4570CD" 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_EB0B3DD7F6695572B12CC7D233ECD9F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_16DCDBA74FFB5BE2B8B75842BC5D1BF8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EB0B3DD7F6695572B12CC7D233ECD9F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_44AD0D4387C75CA4983B36D002ACF600" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EB0B3DD7F6695572B12CC7D233ECD9F8" xlink:to="loc_us-gaap_EmployeeStockOptionMember_44AD0D4387C75CA4983B36D002ACF600" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_B4DC28D6F7F656648FC52E45479B22E6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_EB0B3DD7F6695572B12CC7D233ECD9F8" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_B4DC28D6F7F656648FC52E45479B22E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicTwoClassMethodAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_8A6DC656267952E2B944450ECD8CB638" xlink:to="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Dividends" xlink:label="loc_us-gaap_Dividends_39364EFD68F45C3EBF2F1BF3344701C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:to="loc_us-gaap_Dividends_39364EFD68F45C3EBF2F1BF3344701C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_C4938FFECCAD5433A15CD125676E36E9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_C4938FFECCAD5433A15CD125676E36E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_107B125CBBD55CF48CC2F344EC530D4F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_107B125CBBD55CF48CC2F344EC530D4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_925EEC7E337A5B2F8106B05F91140D53" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_925EEC7E337A5B2F8106B05F91140D53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_2E5B478C243F5BFBBC7E0B6F71D72080" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02CFA2533D665931A8F1CC28263FA7D3" xlink:to="loc_us-gaap_EarningsPerShareBasic_2E5B478C243F5BFBBC7E0B6F71D72080" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_8A6DC656267952E2B944450ECD8CB638" xlink:to="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DistributedEarnings" xlink:label="loc_us-gaap_DistributedEarnings_BF0A445B1BD356CAA75FFCA7E78E994E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_DistributedEarnings_BF0A445B1BD356CAA75FFCA7E78E994E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_76CBC009F4E757F09A7C7D142A2A17C5" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_76CBC009F4E757F09A7C7D142A2A17C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_64CEB95726585ADCB6D0419EE203BD30" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_64CEB95726585ADCB6D0419EE203BD30" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock" xlink:label="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_0E8BD5CEC84E5659B271F50D0B01DC7A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_0E8BD5CEC84E5659B271F50D0B01DC7A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_B6618AAC4F835AC6A988DFF37A674C98" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_B6618AAC4F835AC6A988DFF37A674C98" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_1490C581390B56B4B550239959D8B659" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_1490C581390B56B4B550239959D8B659" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_D9A8549A50CB57CDA99351015C0008F7" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_8A8A828E2DC65BD486A002557AAF477F" xlink:to="loc_us-gaap_EarningsPerShareDiluted_D9A8549A50CB57CDA99351015C0008F7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EarningsPerShareTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurements" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsNarrativeDetails" 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_C6118F0192EAA2DD543ADF3C130AAD1E" 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_E2D201ADCAE01165B10CDF3C1307CC93" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_C6118F0192EAA2DD543ADF3C130AAD1E" xlink:to="loc_us-gaap_DerivativeTable_E2D201ADCAE01165B10CDF3C1307CC93" 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_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_236E0DD14C991F727B38DF3C130887BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_E2D201ADCAE01165B10CDF3C1307CC93" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_236E0DD14C991F727B38DF3C130887BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_C89405BD68B1FB80CD32DF3C13082349_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_236E0DD14C991F727B38DF3C130887BB" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_C89405BD68B1FB80CD32DF3C13082349_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_C89405BD68B1FB80CD32DF3C13082349" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_236E0DD14C991F727B38DF3C130887BB" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_C89405BD68B1FB80CD32DF3C13082349" 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_7609C7C2E347B281DDC5DF3C1309E00A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_E2D201ADCAE01165B10CDF3C1307CC93" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7609C7C2E347B281DDC5DF3C1309E00A" 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_AE4AAA6A0394CFC78240DF3C130983D1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7609C7C2E347B281DDC5DF3C1309E00A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AE4AAA6A0394CFC78240DF3C130983D1_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_AE4AAA6A0394CFC78240DF3C130983D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7609C7C2E347B281DDC5DF3C1309E00A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AE4AAA6A0394CFC78240DF3C130983D1" 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_0884A111C068A6FDEBF6DF3C1309F683" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_AE4AAA6A0394CFC78240DF3C130983D1" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_0884A111C068A6FDEBF6DF3C1309F683" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_0C88CAC9B836F38DE79DDF3C1309F408" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_E2D201ADCAE01165B10CDF3C1307CC93" xlink:to="loc_us-gaap_RestructuringPlanAxis_0C88CAC9B836F38DE79DDF3C1309F408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_A2FBB6DCB819F6CC1A1BDF3C130A0F67_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_0C88CAC9B836F38DE79DDF3C1309F408" xlink:to="loc_us-gaap_RestructuringPlanDomain_A2FBB6DCB819F6CC1A1BDF3C130A0F67_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_A2FBB6DCB819F6CC1A1BDF3C130A0F67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_0C88CAC9B836F38DE79DDF3C1309F408" xlink:to="loc_us-gaap_RestructuringPlanDomain_A2FBB6DCB819F6CC1A1BDF3C130A0F67" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_MarginforGrowthProgramMember" xlink:label="loc_hsy_MarginforGrowthProgramMember_27982E920A63AC66B802DF3C130A4EFF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_A2FBB6DCB819F6CC1A1BDF3C130A0F67" xlink:to="loc_hsy_MarginforGrowthProgramMember_27982E920A63AC66B802DF3C130A4EFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges" xlink:label="loc_us-gaap_AssetImpairmentCharges_1D4ECD56163522E725D7DF3C130AC2F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_C6118F0192EAA2DD543ADF3C130AAD1E" xlink:to="loc_us-gaap_AssetImpairmentCharges_1D4ECD56163522E725D7DF3C130AC2F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueNetAssetLiability" xlink:label="loc_us-gaap_FairValueNetAssetLiability_F7B896E87420A5693F0EDF3C130BB7D4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_C6118F0192EAA2DD543ADF3C130AAD1E" xlink:to="loc_us-gaap_FairValueNetAssetLiability_F7B896E87420A5693F0EDF3C130BB7D4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_F0169059B6A650D9867DD63A1238B625" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_BCEF649B1FEB551897930CAD4811E4FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_F0169059B6A650D9867DD63A1238B625" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_BCEF649B1FEB551897930CAD4811E4FA" 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_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A7531F77FA4951D7880B85E020DFAEBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_BCEF649B1FEB551897930CAD4811E4FA" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A7531F77FA4951D7880B85E020DFAEBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_9A590BA6DCBEE4C6C54C0587DCFA6829_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A7531F77FA4951D7880B85E020DFAEBE" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_9A590BA6DCBEE4C6C54C0587DCFA6829_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_C3BAC43B3FB45DE7B47582BF081CA384" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_A7531F77FA4951D7880B85E020DFAEBE" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_C3BAC43B3FB45DE7B47582BF081CA384" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_2A9D992D91865600A5EF95CB963013A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_C3BAC43B3FB45DE7B47582BF081CA384" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_2A9D992D91865600A5EF95CB963013A4" 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_97C8C23D26AB523EA4BCDF68893A5216" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_BCEF649B1FEB551897930CAD4811E4FA" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_97C8C23D26AB523EA4BCDF68893A5216" 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_5536B7170CC59BF7F7B40587DCFB4F21_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_97C8C23D26AB523EA4BCDF68893A5216" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_5536B7170CC59BF7F7B40587DCFB4F21_E864B487E758552986E6C884DD4570CD" 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_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_97C8C23D26AB523EA4BCDF68893A5216" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_D4AB96BD35765F8284BB616523A6678A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:to="loc_us-gaap_ForeignExchangeContractMember_D4AB96BD35765F8284BB616523A6678A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_90F492B5B3F6549B81112A4302C7C0AB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:to="loc_us-gaap_InterestRateContractMember_90F492B5B3F6549B81112A4302C7C0AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_722924AC27A5566989EB6395F2631BAA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:to="loc_us-gaap_EquitySwapMember_722924AC27A5566989EB6395F2631BAA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_59B5BD516660597EB6D7287AFBA80B2E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_CAE02F3FFBF852C59FB8F4469AF7D8A1" xlink:to="loc_us-gaap_CommodityContractMember_59B5BD516660597EB6D7287AFBA80B2E" 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_8EC102C59E76578599344B4B435331A1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_BCEF649B1FEB551897930CAD4811E4FA" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8EC102C59E76578599344B4B435331A1" 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_80FC7B72E07F868D97B40587DCFCF62B_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8EC102C59E76578599344B4B435331A1" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_80FC7B72E07F868D97B40587DCFCF62B_E864B487E758552986E6C884DD4570CD" 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_1EAF876F3BE5537C99D6DE6DCB36FB48" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8EC102C59E76578599344B4B435331A1" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1EAF876F3BE5537C99D6DE6DCB36FB48" 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_561392401AEC5504A53131AC532693CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1EAF876F3BE5537C99D6DE6DCB36FB48" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_561392401AEC5504A53131AC532693CF" 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_BE8B1E33FBA2505A88EAC7C797EF174B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1EAF876F3BE5537C99D6DE6DCB36FB48" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_BE8B1E33FBA2505A88EAC7C797EF174B" 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_0F6B060DFD315C598D8C8B3864BCE394" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1EAF876F3BE5537C99D6DE6DCB36FB48" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_0F6B060DFD315C598D8C8B3864BCE394" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_46195BCB0BA750EB8396314B4BA15211" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_F0169059B6A650D9867DD63A1238B625" xlink:to="loc_us-gaap_DerivativeAssets_46195BCB0BA750EB8396314B4BA15211" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_C10C23C3E7C857619B435D368C9B2606" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_F0169059B6A650D9867DD63A1238B625" xlink:to="loc_us-gaap_DerivativeLiabilities_C10C23C3E7C857619B435D368C9B2606" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsScheduleOfFairValuesAndCarryingValuesOfLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_E5BBC54DE91EEDEEB134F87EC2773A92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_E5BBC54DE91EEDEEB134F87EC2773A92" 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_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_68A803AA7EC5818636F8F87EC277788A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_E5BBC54DE91EEDEEB134F87EC2773A92" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_68A803AA7EC5818636F8F87EC277788A" 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_433F787D23D27F154171F87EC27846A0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_68A803AA7EC5818636F8F87EC277788A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_433F787D23D27F154171F87EC27846A0_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_433F787D23D27F154171F87EC27846A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_68A803AA7EC5818636F8F87EC277788A" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_433F787D23D27F154171F87EC27846A0" 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_4A51C532F626ADBC8D8CF87EC27879D5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_433F787D23D27F154171F87EC27846A0" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_4A51C532F626ADBC8D8CF87EC27879D5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_LongtermDebtCurrentMaturitiesFairValue" xlink:label="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_22EEE48E284EDC444A24F87EC278A271" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_22EEE48E284EDC444A24F87EC278A271" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_LongtermDebtExcludingCurrentMaturitiesFairValue" xlink:label="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_BB3038766170BCCCF0E6F87EC27811B6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_BB3038766170BCCCF0E6F87EC27811B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_19663B790FB60B3B7C79F87EC2799CE0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_us-gaap_LongTermDebtFairValue_19663B790FB60B3B7C79F87EC2799CE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_A065394804EE5C700985F87EC279C535" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_A065394804EE5C700985F87EC279C535" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_6A263047BFA1901E187DF87EC2792362" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_6A263047BFA1901E187DF87EC2792362" 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_968A97623F3691E9CFFEF87EC2790D16" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_ABA9C3C54976E6269BC1F87EC278BB81" xlink:to="loc_us-gaap_LongTermDebt_968A97623F3691E9CFFEF87EC2790D16" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_2050CF3550C582BC41B7D0AD981AA775" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_488BC8FB4483F1A023ADD0AD98184F5B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_2050CF3550C582BC41B7D0AD981AA775" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_488BC8FB4483F1A023ADD0AD98184F5B" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_DEF56D4AE803F47FD733D0AD9819EE94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_488BC8FB4483F1A023ADD0AD98184F5B" xlink:to="loc_srt_ConsolidationItemsAxis_DEF56D4AE803F47FD733D0AD9819EE94" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_8A003CDBDC4EDB048458D0AD981973F6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_DEF56D4AE803F47FD733D0AD9819EE94" xlink:to="loc_srt_ConsolidationItemsDomain_8A003CDBDC4EDB048458D0AD981973F6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_8A003CDBDC4EDB048458D0AD981973F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_DEF56D4AE803F47FD733D0AD9819EE94" xlink:to="loc_srt_ConsolidationItemsDomain_8A003CDBDC4EDB048458D0AD981973F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_F61030A0B3E900A18BECD0AD98191A50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8A003CDBDC4EDB048458D0AD981973F6" xlink:to="loc_us-gaap_OperatingSegmentsMember_F61030A0B3E900A18BECD0AD98191A50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_C993A4BBC0BBA3DD6B5AD0AD981904CD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_488BC8FB4483F1A023ADD0AD98184F5B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C993A4BBC0BBA3DD6B5AD0AD981904CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C993A4BBC0BBA3DD6B5AD0AD981904CD" xlink:to="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C993A4BBC0BBA3DD6B5AD0AD981904CD" xlink:to="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_9947ED4A1B54696A2EECD0AD981A7BFE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983" xlink:to="loc_hsy_NorthAmericaSegmentMember_9947ED4A1B54696A2EECD0AD981A7BFE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_89320ADD6EF4AC302D13D0AD981ABAFA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0322DEBD484BBE56ADD0D0AD981A5983" xlink:to="loc_hsy_InternationalandOtherSegmentMember_89320ADD6EF4AC302D13D0AD981ABAFA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_BF51CADE38B14999348CD0AD981ABA6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2050CF3550C582BC41B7D0AD981AA775" xlink:to="loc_us-gaap_GoodwillRollForward_BF51CADE38B14999348CD0AD981ABA6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_7ADE2433F2CE1AF6060CD0AD981BCFA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_BF51CADE38B14999348CD0AD981ABA6F" xlink:to="loc_us-gaap_Goodwill_7ADE2433F2CE1AF6060CD0AD981BCFA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_590D42EB82DF425469D9D0B469E72148" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_BF51CADE38B14999348CD0AD981ABA6F" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_590D42EB82DF425469D9D0B469E72148" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_D30523426392415197AAD0AD981B3FB7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_BF51CADE38B14999348CD0AD981ABA6F" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_D30523426392415197AAD0AD981B3FB7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsScheduleOfGrossCarryingAmountAndAccumulatedAmortizationForEachMajorClassOfIntangibleAssetDetails" 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_7D535A4CEF5571D77AE8D0F8F4423033" 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_FF4966885954EDB36116D0F8F442D143" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7D535A4CEF5571D77AE8D0F8F4423033" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_FF4966885954EDB36116D0F8F442D143" 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_952A7D8FEEB3230495DDD0F8F4429238" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_FF4966885954EDB36116D0F8F442D143" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_952A7D8FEEB3230495DDD0F8F4429238" 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_F0744A53703D7CB7026CD0F8F442F058_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_952A7D8FEEB3230495DDD0F8F4429238" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F0744A53703D7CB7026CD0F8F442F058_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_F0744A53703D7CB7026CD0F8F442F058" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_952A7D8FEEB3230495DDD0F8F4429238" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F0744A53703D7CB7026CD0F8F442F058" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_320B27266997A685EBD7D0F8F4426AE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F0744A53703D7CB7026CD0F8F442F058" xlink:to="loc_us-gaap_TrademarksMember_320B27266997A685EBD7D0F8F4426AE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerRelatedIntangibleAssetsMember" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_5380A7FDC0EDC081F66BD0F8F44259D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F0744A53703D7CB7026CD0F8F442F058" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_5380A7FDC0EDC081F66BD0F8F44259D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_B8E257759BC989E8D948D0F8F442840C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F0744A53703D7CB7026CD0F8F442F058" xlink:to="loc_us-gaap_PatentsMember_B8E257759BC989E8D948D0F8F442840C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_D81243A6F901CCEC1A39D0F8F4423FEF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_FF4966885954EDB36116D0F8F442D143" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_D81243A6F901CCEC1A39D0F8F4423FEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_47DB2A5D19C0EF6E8A86D0F8F44251C4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_D81243A6F901CCEC1A39D0F8F4423FEF" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_47DB2A5D19C0EF6E8A86D0F8F44251C4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_47DB2A5D19C0EF6E8A86D0F8F44251C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_D81243A6F901CCEC1A39D0F8F4423FEF" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_47DB2A5D19C0EF6E8A86D0F8F44251C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_BAA29BCDED6D3F30A3CFD0F8F442AB0B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_47DB2A5D19C0EF6E8A86D0F8F44251C4" xlink:to="loc_us-gaap_TrademarksMember_BAA29BCDED6D3F30A3CFD0F8F442AB0B" 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_ADD752BB8B1C6C5D7B90D0F8F442BC46" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7D535A4CEF5571D77AE8D0F8F4423033" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_ADD752BB8B1C6C5D7B90D0F8F442BC46" 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_A92FBEADC155DA3041C3D0F8F4424A64" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7D535A4CEF5571D77AE8D0F8F4423033" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_A92FBEADC155DA3041C3D0F8F4424A64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_7D3A67D273296647E548D0F8F442392F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7D535A4CEF5571D77AE8D0F8F4423033" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_7D3A67D273296647E548D0F8F442392F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1158204138D2EF9EE34FD0F8F442E285" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_7D535A4CEF5571D77AE8D0F8F4423033" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_1158204138D2EF9EE34FD0F8F442E285" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxContingencyLineItems" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxContingencyTable" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_BB8C7D64489C5E4DAB81FA8A43DD8E6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_BB8C7D64489C5E4DAB81FA8A43DD8E6A" 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_2361719CAFE752F0B77E162C3DCEB450" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_BB8C7D64489C5E4DAB81FA8A43DD8E6A" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_2361719CAFE752F0B77E162C3DCEB450" 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_00BB456E2770A65A84DE0587DC8346BA_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_2361719CAFE752F0B77E162C3DCEB450" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_00BB456E2770A65A84DE0587DC8346BA_E864B487E758552986E6C884DD4570CD" 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_6A6867F38CB757208681B59C35E3ED40" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_2361719CAFE752F0B77E162C3DCEB450" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_6A6867F38CB757208681B59C35E3ED40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_11964317F5FF5E7E8921B655FB9D9DA4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_BB8C7D64489C5E4DAB81FA8A43DD8E6A" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_11964317F5FF5E7E8921B655FB9D9DA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_1615D35F52852B65267B0587DC84E3AA_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_11964317F5FF5E7E8921B655FB9D9DA4" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_1615D35F52852B65267B0587DC84E3AA_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_EquityMethodInvesteeNameDomain" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_6AA56DC257345F04AE5140F37760175D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_11964317F5FF5E7E8921B655FB9D9DA4" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_6AA56DC257345F04AE5140F37760175D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5FDC9EBBEBDD5F4F8909F46699929049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5FDC9EBBEBDD5F4F8909F46699929049" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_B51F5B2BD7285D1A81276CEA5BE981D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_B51F5B2BD7285D1A81276CEA5BE981D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit_5E9A9A35F06956BEA3F30213E07A30FF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit_5E9A9A35F06956BEA3F30213E07A30FF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_TaxCutsandJobsActof2017NetImpactChangeinTaxRateandMandatoryTaxonUnremittedForeignEarningsIncomeTaxExpenseBenefit" xlink:label="loc_hsy_TaxCutsandJobsActof2017NetImpactChangeinTaxRateandMandatoryTaxonUnremittedForeignEarningsIncomeTaxExpenseBenefit_1AA2C9D99AB557CD90533202328BAB26" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_hsy_TaxCutsandJobsActof2017NetImpactChangeinTaxRateandMandatoryTaxonUnremittedForeignEarningsIncomeTaxExpenseBenefit_1AA2C9D99AB557CD90533202328BAB26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TaxCutsAndJobsActOf2017MeasurementPeriodAdjustmentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_TaxCutsAndJobsActOf2017MeasurementPeriodAdjustmentIncomeTaxExpenseBenefit_BD219B2C4141595BA42B1E03F1DFA791" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_1026984E613D5D70B552395D5791D89A" xlink:to="loc_us-gaap_TaxCutsAndJobsActOf2017MeasurementPeriodAdjustmentIncomeTaxExpenseBenefit_BD219B2C4141595BA42B1E03F1DFA791" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/Leases" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesScheduleOfComponentsOfLeaseExpenseDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesScheduleOfInformationRegardingOurLeaseTermsAndDiscountRatesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesScheduleOfMaturitiesOfLeaseLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesScheduleOfSupplementalCashFlowInformationRelatedToLeasesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LeasesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NoncontrollingInterest" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestLineItems" xlink:label="loc_us-gaap_MinorityInterestLineItems_D6E98E1DB7E75C02A4A695420F9D1FDF" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestTable" xlink:label="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_D6E98E1DB7E75C02A4A695420F9D1FDF" xlink:to="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_387B47E85FD250AB8D25F75EFF05D64D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_srt_ConsolidationItemsAxis_387B47E85FD250AB8D25F75EFF05D64D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_98692FDFDBBEA5FCBC130587DC065EF8_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_387B47E85FD250AB8D25F75EFF05D64D" xlink:to="loc_srt_ConsolidationItemsDomain_98692FDFDBBEA5FCBC130587DC065EF8_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_6BFD6B78EDB7599DA801482C77E1690E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_387B47E85FD250AB8D25F75EFF05D64D" xlink:to="loc_srt_ConsolidationItemsDomain_6BFD6B78EDB7599DA801482C77E1690E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_1ECC08615B3351B1BDA7EE0C1A8A2F32" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_srt_ConsolidatedEntitiesAxis_1ECC08615B3351B1BDA7EE0C1A8A2F32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_34122CCE3FB36E884DC40587DC07CE96_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_1ECC08615B3351B1BDA7EE0C1A8A2F32" xlink:to="loc_srt_ConsolidatedEntitiesDomain_34122CCE3FB36E884DC40587DC07CE96_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_E626108C1E605418B971AA60E9EA8A1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_1ECC08615B3351B1BDA7EE0C1A8A2F32" xlink:to="loc_srt_ConsolidatedEntitiesDomain_E626108C1E605418B971AA60E9EA8A1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_0838CB1D61395E6FAE6C2C197D0B2BA7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_srt_OwnershipAxis_0838CB1D61395E6FAE6C2C197D0B2BA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_B6EABE9B9C69272D1C590587DC0799F8_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_0838CB1D61395E6FAE6C2C197D0B2BA7" xlink:to="loc_srt_OwnershipDomain_B6EABE9B9C69272D1C590587DC0799F8_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_2A0B36E1A21C525D990FD97EB12C14F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_0838CB1D61395E6FAE6C2C197D0B2BA7" xlink:to="loc_srt_OwnershipDomain_2A0B36E1A21C525D990FD97EB12C14F3" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_52D9F24CFEC358CEA8A2B021414B6A3C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_dei_LegalEntityAxis_52D9F24CFEC358CEA8A2B021414B6A3C" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CDEAB72015A3A21783560587DC0862F3_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_52D9F24CFEC358CEA8A2B021414B6A3C" xlink:to="loc_dei_EntityDomain_CDEAB72015A3A21783560587DC0862F3_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_13B9981D5DA457D48EDC10EB8E106535" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_52D9F24CFEC358CEA8A2B021414B6A3C" xlink:to="loc_dei_EntityDomain_13B9981D5DA457D48EDC10EB8E106535" xlink:type="arc" />
    <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_B3CF9F67512453FDB97D28A811AA5197" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_B3CF9F67512453FDB97D28A811AA5197" 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_244115872791DCD0A7600587DC084E65_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_B3CF9F67512453FDB97D28A811AA5197" xlink:to="loc_us-gaap_EquityComponentDomain_244115872791DCD0A7600587DC084E65_E864B487E758552986E6C884DD4570CD" 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_E2BD3B69155054BA85336A21CDE2DF78" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_B3CF9F67512453FDB97D28A811AA5197" xlink:to="loc_us-gaap_EquityComponentDomain_E2BD3B69155054BA85336A21CDE2DF78" xlink:type="arc" />
    <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_DDED6B8388E85463A58B741C302C8B3A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_E54CDE6B77A851BA8F2C4BB16F221626" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_DDED6B8388E85463A58B741C302C8B3A" 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_129FCE5F114EAB5C5BB30587DC085986_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_DDED6B8388E85463A58B741C302C8B3A" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_129FCE5F114EAB5C5BB30587DC085986_E864B487E758552986E6C884DD4570CD" 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_CFDD58E1DA195FFBBD4A1BF67C7029CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_DDED6B8388E85463A58B741C302C8B3A" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_CFDD58E1DA195FFBBD4A1BF67C7029CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestDisclosureTextBlock" xlink:label="loc_us-gaap_MinorityInterestDisclosureTextBlock_97D3F55331905061B6FBE6174E0F3656" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_D6E98E1DB7E75C02A4A695420F9D1FDF" xlink:to="loc_us-gaap_MinorityInterestDisclosureTextBlock_97D3F55331905061B6FBE6174E0F3656" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NoncontrollingInterestNarrativeDetails" 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_30B9AB589820343D0189496E1F832234" 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_B544A452B56E979B1B7F496E1F83209C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_30B9AB589820343D0189496E1F832234" xlink:to="loc_us-gaap_StatementTable_B544A452B56E979B1B7F496E1F83209C" 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_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_0C841E119F9E7028DE70496E54B4F549" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B544A452B56E979B1B7F496E1F83209C" xlink:to="loc_srt_OwnershipAxis_0C841E119F9E7028DE70496E54B4F549" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_E6557D7CBCC84A7D5B3A496E56F16CD8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_0C841E119F9E7028DE70496E54B4F549" xlink:to="loc_srt_OwnershipDomain_E6557D7CBCC84A7D5B3A496E56F16CD8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_E6557D7CBCC84A7D5B3A496E56F16CD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_0C841E119F9E7028DE70496E54B4F549" xlink:to="loc_srt_OwnershipDomain_E6557D7CBCC84A7D5B3A496E56F16CD8" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_LotteShanghaiFoodCompanyMember" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_DCE5C0C7004BE74F521B4978E9B27452" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_E6557D7CBCC84A7D5B3A496E56F16CD8" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_DCE5C0C7004BE74F521B4978E9B27452" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_99729BC6AD84E12896DA496E1F830C7E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B544A452B56E979B1B7F496E1F83209C" xlink:to="loc_dei_LegalEntityAxis_99729BC6AD84E12896DA496E1F830C7E" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_2DD96C70A1AF97D5D50F496E1F830018_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_99729BC6AD84E12896DA496E1F830C7E" xlink:to="loc_dei_EntityDomain_2DD96C70A1AF97D5D50F496E1F830018_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_2DD96C70A1AF97D5D50F496E1F830018" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_99729BC6AD84E12896DA496E1F830C7E" xlink:to="loc_dei_EntityDomain_2DD96C70A1AF97D5D50F496E1F830018" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_LotteShanghaiFoodCompanyMember" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_FB58EE2282B22FE5AF9B496E1F8312B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2DD96C70A1AF97D5D50F496E1F830018" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_FB58EE2282B22FE5AF9B496E1F8312B1" xlink:type="arc" />
    <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_077E07DFFC1342597C14496E1F839602" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B544A452B56E979B1B7F496E1F83209C" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_077E07DFFC1342597C14496E1F839602" 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_62F2C6A6EFA9D333CBCC496E1F839841_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_077E07DFFC1342597C14496E1F839602" xlink:to="loc_us-gaap_EquityComponentDomain_62F2C6A6EFA9D333CBCC496E1F839841_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_62F2C6A6EFA9D333CBCC496E1F839841" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_077E07DFFC1342597C14496E1F839602" xlink:to="loc_us-gaap_EquityComponentDomain_62F2C6A6EFA9D333CBCC496E1F839841" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_8F1A99FF4BDC4B8F37C8496E1F83B33C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_62F2C6A6EFA9D333CBCC496E1F839841" xlink:to="loc_us-gaap_NoncontrollingInterestMember_8F1A99FF4BDC4B8F37C8496E1F83B33C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_B80CE659351A54D8FECD496E1F83A2CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_30B9AB589820343D0189496E1F832234" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_B80CE659351A54D8FECD496E1F83A2CF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NoncontrollingInterestScheduleOfActivityRelatingToNoncontrollingInterestDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestLineItems" xlink:label="loc_us-gaap_MinorityInterestLineItems_E73F8A280C3F2E1625D33A42983B25C3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestTable" xlink:label="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_E73F8A280C3F2E1625D33A42983B25C3" xlink:to="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_073ED191C9EEEC03C3F13A429837D03A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_srt_ConsolidationItemsAxis_073ED191C9EEEC03C3F13A429837D03A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A35AE18A1D559469FD383A429838D9AF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_073ED191C9EEEC03C3F13A429837D03A" xlink:to="loc_srt_ConsolidationItemsDomain_A35AE18A1D559469FD383A429838D9AF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A35AE18A1D559469FD383A429838D9AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_073ED191C9EEEC03C3F13A429837D03A" xlink:to="loc_srt_ConsolidationItemsDomain_A35AE18A1D559469FD383A429838D9AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_53F45882277B5F2520083A4298387BFC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_srt_ConsolidatedEntitiesAxis_53F45882277B5F2520083A4298387BFC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_F8A0E8DF6232A84F55B23A42983878FF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_53F45882277B5F2520083A4298387BFC" xlink:to="loc_srt_ConsolidatedEntitiesDomain_F8A0E8DF6232A84F55B23A42983878FF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_F8A0E8DF6232A84F55B23A42983878FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_53F45882277B5F2520083A4298387BFC" xlink:to="loc_srt_ConsolidatedEntitiesDomain_F8A0E8DF6232A84F55B23A42983878FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_5D849EA7741FF3A484223A429839910F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_srt_OwnershipAxis_5D849EA7741FF3A484223A429839910F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_9B6A030FC50730A833793A4298390A71_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_5D849EA7741FF3A484223A429839910F" xlink:to="loc_srt_OwnershipDomain_9B6A030FC50730A833793A4298390A71_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_9B6A030FC50730A833793A4298390A71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_5D849EA7741FF3A484223A429839910F" xlink:to="loc_srt_OwnershipDomain_9B6A030FC50730A833793A4298390A71" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_F55E3FA74ACDCD5A83F93A4298395254" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_dei_LegalEntityAxis_F55E3FA74ACDCD5A83F93A4298395254" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_75A02D23AE5C9F85CFE23A429839A398_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_F55E3FA74ACDCD5A83F93A4298395254" xlink:to="loc_dei_EntityDomain_75A02D23AE5C9F85CFE23A429839A398_default" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_75A02D23AE5C9F85CFE23A429839A398" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_F55E3FA74ACDCD5A83F93A4298395254" xlink:to="loc_dei_EntityDomain_75A02D23AE5C9F85CFE23A429839A398" xlink:type="arc" />
    <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_88AD59C80EB6EDFFF9BE3A42983AC089" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_88AD59C80EB6EDFFF9BE3A42983AC089" 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_078203F82259BAFC189C3A42983A529F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_88AD59C80EB6EDFFF9BE3A42983AC089" xlink:to="loc_us-gaap_EquityComponentDomain_078203F82259BAFC189C3A42983A529F_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_078203F82259BAFC189C3A42983A529F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_88AD59C80EB6EDFFF9BE3A42983AC089" xlink:to="loc_us-gaap_EquityComponentDomain_078203F82259BAFC189C3A42983A529F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_0873CAB07E7812A920963A42983A7874" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_078203F82259BAFC189C3A42983A529F" xlink:to="loc_us-gaap_NoncontrollingInterestMember_0873CAB07E7812A920963A42983A7874" xlink:type="arc" />
    <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_156C56F118A80D1B1D973A42983BB49A" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_08862A74D0994EB582BD3A429837D35A" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_156C56F118A80D1B1D973A42983BB49A" 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_13B495DF600F373D84173A42983B2DEA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_156C56F118A80D1B1D973A42983BB49A" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_13B495DF600F373D84173A42983B2DEA_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_13B495DF600F373D84173A42983B2DEA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_156C56F118A80D1B1D973A42983BB49A" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_13B495DF600F373D84173A42983B2DEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_BBF0CDB894DCE77A4FA83A42983B0858" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_E73F8A280C3F2E1625D33A42983B25C3" xlink:to="loc_us-gaap_MinorityInterest_BBF0CDB894DCE77A4FA83A42983B0858" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8AEEBF949BF7A14F04743A42983BC5A0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_E73F8A280C3F2E1625D33A42983B25C3" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8AEEBF949BF7A14F04743A42983BC5A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_696C5D609E59152106903A42983C19AD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_E73F8A280C3F2E1625D33A42983B25C3" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_696C5D609E59152106903A42983C19AD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NoncontrollingInterestTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestLineItems" xlink:label="loc_us-gaap_MinorityInterestLineItems_2C051610B0B853F9ABD8823A0EA3665D" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestTable" xlink:label="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_2C051610B0B853F9ABD8823A0EA3665D" xlink:to="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_315F416EF5EB577AB9DE32495B8A5F81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_srt_ConsolidationItemsAxis_315F416EF5EB577AB9DE32495B8A5F81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A7A2CA254E8905D43F1F0587DBFF5B4B_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_315F416EF5EB577AB9DE32495B8A5F81" xlink:to="loc_srt_ConsolidationItemsDomain_A7A2CA254E8905D43F1F0587DBFF5B4B_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_B7AA683AC9D1588A9440162F88A84224" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_315F416EF5EB577AB9DE32495B8A5F81" xlink:to="loc_srt_ConsolidationItemsDomain_B7AA683AC9D1588A9440162F88A84224" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesAxis" xlink:label="loc_srt_ConsolidatedEntitiesAxis_E6C01936BE52541791650BE4969FE4A2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_srt_ConsolidatedEntitiesAxis_E6C01936BE52541791650BE4969FE4A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_B43FC71F9C1347EC691A0587DBFF06A9_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_E6C01936BE52541791650BE4969FE4A2" xlink:to="loc_srt_ConsolidatedEntitiesDomain_B43FC71F9C1347EC691A0587DBFF06A9_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidatedEntitiesDomain" xlink:label="loc_srt_ConsolidatedEntitiesDomain_32B50B1B164452E890C1113D62C6B676" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_E6C01936BE52541791650BE4969FE4A2" xlink:to="loc_srt_ConsolidatedEntitiesDomain_32B50B1B164452E890C1113D62C6B676" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis" xlink:label="loc_srt_OwnershipAxis_0A761FD06B975EC9A0D738AC0FD09AD8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_srt_OwnershipAxis_0A761FD06B975EC9A0D738AC0FD09AD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_D90EF4981DD8320785D20587DC00D88F_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_0A761FD06B975EC9A0D738AC0FD09AD8" xlink:to="loc_srt_OwnershipDomain_D90EF4981DD8320785D20587DC00D88F_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain" xlink:label="loc_srt_OwnershipDomain_2930583D637F525BA11F16F40FF35F1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_0A761FD06B975EC9A0D738AC0FD09AD8" xlink:to="loc_srt_OwnershipDomain_2930583D637F525BA11F16F40FF35F1A" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_D50983FC34DD570DAA9DA7788B646FAF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_dei_LegalEntityAxis_D50983FC34DD570DAA9DA7788B646FAF" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_EF08A721E6FB16BF68300587DC0034E9_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_D50983FC34DD570DAA9DA7788B646FAF" xlink:to="loc_dei_EntityDomain_EF08A721E6FB16BF68300587DC0034E9_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_0F03F7074D8256B59E4EDE8E8E107E35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_D50983FC34DD570DAA9DA7788B646FAF" xlink:to="loc_dei_EntityDomain_0F03F7074D8256B59E4EDE8E8E107E35" xlink:type="arc" />
    <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_627EA91635375810B94C078A1B66A4AA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_627EA91635375810B94C078A1B66A4AA" 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_A7A01293ECD94EFA40660587DC008F95_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_627EA91635375810B94C078A1B66A4AA" xlink:to="loc_us-gaap_EquityComponentDomain_A7A01293ECD94EFA40660587DC008F95_E864B487E758552986E6C884DD4570CD" 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_7DE880A293015067BE6B245327AB8244" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_627EA91635375810B94C078A1B66A4AA" xlink:to="loc_us-gaap_EquityComponentDomain_7DE880A293015067BE6B245327AB8244" xlink:type="arc" />
    <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_01383D60A195542798D7D8CF4F385A7B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_86BC2538F78E509AA79E168DA4AC602B" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_01383D60A195542798D7D8CF4F385A7B" 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_48CA5BD9AF44BFAEC7380587DC012028_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_01383D60A195542798D7D8CF4F385A7B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_48CA5BD9AF44BFAEC7380587DC012028_E864B487E758552986E6C884DD4570CD" 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_F640307D9000588980D8A0B9137D30A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_01383D60A195542798D7D8CF4F385A7B" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_F640307D9000588980D8A0B9137D30A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockholdersEquityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfStockholdersEquityTableTextBlock_06456E576FC752D49F8A942136E93200" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_2C051610B0B853F9ABD8823A0EA3665D" xlink:to="loc_us-gaap_ScheduleOfStockholdersEquityTableTextBlock_06456E576FC752D49F8A942136E93200" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNet" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetScheduleOfOtherIncomeAndExpenseNetDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlans" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_B0D028BEF27BCB10DA4ECF6F55A02CAC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_B0D028BEF27BCB10DA4ECF6F55A02CAC" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" 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_D6510D910612C02C17EECF6F559DED16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:to="loc_srt_RangeAxis_D6510D910612C02C17EECF6F559DED16" 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_78CED04784223A083AA4CF6F559EA479_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_D6510D910612C02C17EECF6F559DED16" xlink:to="loc_srt_RangeMember_78CED04784223A083AA4CF6F559EA479_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_78CED04784223A083AA4CF6F559EA479" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_D6510D910612C02C17EECF6F559DED16" xlink:to="loc_srt_RangeMember_78CED04784223A083AA4CF6F559EA479" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_4390F335465610549B95CF6F559EBBDF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_4390F335465610549B95CF6F559EBBDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_4390F335465610549B95CF6F559EBBDF" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_4390F335465610549B95CF6F559EBBDF" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_62EEDF9191E0D1E1A67FCF6F559E5D4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_62EEDF9191E0D1E1A67FCF6F559E5D4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_416D327893C3902E1A0FCF6F559F9BA2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_53F1C7A50BE6CDC4F714CF6F559E7059" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_416D327893C3902E1A0FCF6F559F9BA2" 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_E524FFDF8E178331DDFDCF6F559FFAE7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:to="loc_srt_StatementScenarioAxis_E524FFDF8E178331DDFDCF6F559FFAE7" 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_8D8DB3FA34BD4D162E39CF6F559FF292_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_E524FFDF8E178331DDFDCF6F559FFAE7" xlink:to="loc_srt_ScenarioUnspecifiedDomain_8D8DB3FA34BD4D162E39CF6F559FF292_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_8D8DB3FA34BD4D162E39CF6F559FF292" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_E524FFDF8E178331DDFDCF6F559FFAE7" xlink:to="loc_srt_ScenarioUnspecifiedDomain_8D8DB3FA34BD4D162E39CF6F559FF292" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanFundingStatusAxis" xlink:label="loc_us-gaap_RetirementPlanFundingStatusAxis_A49FDF2CF56F7B463F22CF6F559FAD06" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:to="loc_us-gaap_RetirementPlanFundingStatusAxis_A49FDF2CF56F7B463F22CF6F559FAD06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanFundingStatusDomain" xlink:label="loc_us-gaap_RetirementPlanFundingStatusDomain_AB724DCB42757AB552D1CF6F559F8275_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanFundingStatusAxis_A49FDF2CF56F7B463F22CF6F559FAD06" xlink:to="loc_us-gaap_RetirementPlanFundingStatusDomain_AB724DCB42757AB552D1CF6F559F8275_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanFundingStatusDomain" xlink:label="loc_us-gaap_RetirementPlanFundingStatusDomain_AB724DCB42757AB552D1CF6F559F8275" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanFundingStatusAxis_A49FDF2CF56F7B463F22CF6F559FAD06" xlink:to="loc_us-gaap_RetirementPlanFundingStatusDomain_AB724DCB42757AB552D1CF6F559F8275" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis" xlink:label="loc_us-gaap_RetirementPlanNameAxis_1A42A1FB7340D1E02682CF6F55A02AA1" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7917F481FBF7AA9BE852CF6F559D97BD" xlink:to="loc_us-gaap_RetirementPlanNameAxis_1A42A1FB7340D1E02682CF6F55A02AA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaap_RetirementPlanNameDomain_901ED30859441D0878BECF6F55A08BC3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_1A42A1FB7340D1E02682CF6F55A02AA1" xlink:to="loc_us-gaap_RetirementPlanNameDomain_901ED30859441D0878BECF6F55A08BC3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain" xlink:label="loc_us-gaap_RetirementPlanNameDomain_901ED30859441D0878BECF6F55A08BC3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_1A42A1FB7340D1E02682CF6F55A02AA1" xlink:to="loc_us-gaap_RetirementPlanNameDomain_901ED30859441D0878BECF6F55A08BC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_7BF20F1051167F621A1DCF6F55A066AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_B0D028BEF27BCB10DA4ECF6F55A02CAC" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_7BF20F1051167F621A1DCF6F55A066AC" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_DefinedBenefitPlanRemeasurementBasisSpreadonDiscountRate" xlink:label="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadonDiscountRate_097AD9482BFD84435C47CF717954F07F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_B0D028BEF27BCB10DA4ECF6F55A02CAC" xlink:to="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadonDiscountRate_097AD9482BFD84435C47CF717954F07F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_3B879A6680AE51449DEACF6F55A1AE18" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_B0D028BEF27BCB10DA4ECF6F55A02CAC" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_3B879A6680AE51449DEACF6F55A1AE18" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansScheduleOfComponentsOfNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_EB42E9498D7308DD1EF7D5890A53C380" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_1F062D28D70FFDB9634ED5890A52BB3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_EB42E9498D7308DD1EF7D5890A53C380" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_1F062D28D70FFDB9634ED5890A52BB3E" 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_RetirementPlanTypeAxis" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_1B7D4FC47637361B751FD5890A52E219" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_1F062D28D70FFDB9634ED5890A52BB3E" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_1B7D4FC47637361B751FD5890A52E219" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_1B7D4FC47637361B751FD5890A52E219" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_1B7D4FC47637361B751FD5890A52E219" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_A4FB1A955400B6E4F4BDD5890A53679F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_A4FB1A955400B6E4F4BDD5890A53679F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6628D529A17587427D64D5890A53BCB7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_8EC5FEE661E15E4A4EC2D5890A52D87C" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_6628D529A17587427D64D5890A53BCB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_EB42E9498D7308DD1EF7D5890A53C380" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_6D36EA73086828651CA9D5890A5441E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_6D36EA73086828651CA9D5890A5441E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_256672A7433E1C0BC8EFD5890A54EE43" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_256672A7433E1C0BC8EFD5890A54EE43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_DC9DCEBCE110820970BED5890A542435" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_DC9DCEBCE110820970BED5890A542435" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7C6FC30DE8684C5B7677D5890A58767C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7C6FC30DE8684C5B7677D5890A58767C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_C291B00C2D8AFDE6D572D5890A581719" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_C291B00C2D8AFDE6D572D5890A581719" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_6F7D284C2ED331242E77D5890A59A037" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_6F7D284C2ED331242E77D5890A59A037" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_31A65180E662CD7BC87ED5890A592BDC" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_CC80C246764154674590D5890A53DB8A" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_31A65180E662CD7BC87ED5890A592BDC" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_3208AA7F8B669DC38BE7D0F8F2F3320A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_3208AA7F8B669DC38BE7D0F8F2F3320A" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" 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_06FA2E28A195F082DBB2D0F8F2E310D0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_06FA2E28A195F082DBB2D0F8F2E310D0" 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_56FFC312A5699C438A15D0F8F2E33860_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_06FA2E28A195F082DBB2D0F8F2E310D0" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_56FFC312A5699C438A15D0F8F2E33860_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_56FFC312A5699C438A15D0F8F2E33860" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_06FA2E28A195F082DBB2D0F8F2E310D0" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_56FFC312A5699C438A15D0F8F2E33860" 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_792EC779917459975E92D0F8F2E30C7D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_56FFC312A5699C438A15D0F8F2E33860" xlink:to="loc_us-gaap_CostOfSalesMember_792EC779917459975E92D0F8F2E30C7D" 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_96803EE36F94B343FFD5D0F8F2E316DE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_srt_StatementScenarioAxis_96803EE36F94B343FFD5D0F8F2E316DE" 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_8137F62D041C8974CAC5D0F8F2E33185_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_96803EE36F94B343FFD5D0F8F2E316DE" xlink:to="loc_srt_ScenarioUnspecifiedDomain_8137F62D041C8974CAC5D0F8F2E33185_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_8137F62D041C8974CAC5D0F8F2E33185" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_96803EE36F94B343FFD5D0F8F2E316DE" xlink:to="loc_srt_ScenarioUnspecifiedDomain_8137F62D041C8974CAC5D0F8F2E33185" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioForecastMember" xlink:label="loc_srt_ScenarioForecastMember_2DFD1DED7BF5A4320FF8D0F8F2E30E63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_8137F62D041C8974CAC5D0F8F2E33185" xlink:to="loc_srt_ScenarioForecastMember_2DFD1DED7BF5A4320FF8D0F8F2E30E63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_0B942FE3E8C26E84183BD0F8F2E3EBD8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_srt_ConsolidationItemsAxis_0B942FE3E8C26E84183BD0F8F2E3EBD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_AAD34A93A569EEE36571D0F8F2E34D7E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_0B942FE3E8C26E84183BD0F8F2E3EBD8" xlink:to="loc_srt_ConsolidationItemsDomain_AAD34A93A569EEE36571D0F8F2E34D7E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_AAD34A93A569EEE36571D0F8F2E34D7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_0B942FE3E8C26E84183BD0F8F2E3EBD8" xlink:to="loc_srt_ConsolidationItemsDomain_AAD34A93A569EEE36571D0F8F2E34D7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_8BAE482CE14B1F3BAFB4D0F8F2E36115" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_AAD34A93A569EEE36571D0F8F2E34D7E" xlink:to="loc_us-gaap_OperatingSegmentsMember_8BAE482CE14B1F3BAFB4D0F8F2E36115" 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_5A71A20FD3E4762E1AF4D0F8F2E37C15" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_5A71A20FD3E4762E1AF4D0F8F2E37C15" 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_4B61544A0D24BF96210FD0F8F2E34728_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_5A71A20FD3E4762E1AF4D0F8F2E37C15" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4B61544A0D24BF96210FD0F8F2E34728_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_4B61544A0D24BF96210FD0F8F2E34728" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_5A71A20FD3E4762E1AF4D0F8F2E37C15" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4B61544A0D24BF96210FD0F8F2E34728" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_9DA963BC37D0EAA42AF7D0F8F2E33C93" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4B61544A0D24BF96210FD0F8F2E34728" xlink:to="loc_us-gaap_CommodityContractMember_9DA963BC37D0EAA42AF7D0F8F2E33C93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_A44728E0D3A434ED77C4D0F8F2E36623" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_A44728E0D3A434ED77C4D0F8F2E36623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_4B4ABDF1683C7EAE5811D0F8F2E33B63_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A44728E0D3A434ED77C4D0F8F2E36623" xlink:to="loc_us-gaap_SegmentDomain_4B4ABDF1683C7EAE5811D0F8F2E33B63_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_4B4ABDF1683C7EAE5811D0F8F2E33B63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A44728E0D3A434ED77C4D0F8F2E36623" xlink:to="loc_us-gaap_SegmentDomain_4B4ABDF1683C7EAE5811D0F8F2E33B63" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_EF0C5A8A90E281035BC6D0F8F2E31767" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4B4ABDF1683C7EAE5811D0F8F2E33B63" xlink:to="loc_hsy_NorthAmericaSegmentMember_EF0C5A8A90E281035BC6D0F8F2E31767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_158EC82D7DFD64FD984DD0F8F2E3957E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_158EC82D7DFD64FD984DD0F8F2E3957E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_70CAD660912E312A954DD0F8F2E38B29_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_158EC82D7DFD64FD984DD0F8F2E3957E" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_70CAD660912E312A954DD0F8F2E38B29_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_70CAD660912E312A954DD0F8F2E38B29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_158EC82D7DFD64FD984DD0F8F2E3957E" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_70CAD660912E312A954DD0F8F2E38B29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_B06A75994B5F67F35E07D0F8F2E3B989" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_70CAD660912E312A954DD0F8F2E38B29" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_B06A75994B5F67F35E07D0F8F2E3B989" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9DEF26BA03A71D68EDFAD0F8F2E3445B" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_507CBCBBAEC9C5FD87EDD0F8F2E3DD59" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9DEF26BA03A71D68EDFAD0F8F2E3445B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_839BC10723C8C1C172DAD0F8F2E366EB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9DEF26BA03A71D68EDFAD0F8F2E3445B" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_839BC10723C8C1C172DAD0F8F2E366EB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_839BC10723C8C1C172DAD0F8F2E366EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9DEF26BA03A71D68EDFAD0F8F2E3445B" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_839BC10723C8C1C172DAD0F8F2E366EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_246883A16E445AA7F21DD0F8F2F321EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_839BC10723C8C1C172DAD0F8F2E366EB" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_246883A16E445AA7F21DD0F8F2F321EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_BBDD27C41A87D60423EDD0F8F2F3C51E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_3208AA7F8B669DC38BE7D0F8F2F3320A" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_BBDD27C41A87D60423EDD0F8F2F3C51E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives" xlink:label="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_088C8FEE89BB767B126BD0F8F2F32349" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_3208AA7F8B669DC38BE7D0F8F2F3320A" xlink:to="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_088C8FEE89BB767B126BD0F8F2F32349" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_28B130E2AE0B644A4028D0F8F2F37041" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_3208AA7F8B669DC38BE7D0F8F2F3320A" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_28B130E2AE0B644A4028D0F8F2F37041" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationScheduleOfDepreciationAndAmortizationExpenseIncludedWithinSegmentIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_82BD76BD486C5AF5A2992CA859682E62" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_87A671BC7C2451D39DCEA9C568E4C42C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_82BD76BD486C5AF5A2992CA859682E62" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_87A671BC7C2451D39DCEA9C568E4C42C" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_09CD06B04CAE56F496D6B38DF0469782" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_87A671BC7C2451D39DCEA9C568E4C42C" xlink:to="loc_srt_ConsolidationItemsAxis_09CD06B04CAE56F496D6B38DF0469782" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_75AFA6D204DE9AE23FE80587DC1FA721_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_09CD06B04CAE56F496D6B38DF0469782" xlink:to="loc_srt_ConsolidationItemsDomain_75AFA6D204DE9AE23FE80587DC1FA721_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_79C70F6552AE591E84BC9EBBC515A32D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_09CD06B04CAE56F496D6B38DF0469782" xlink:to="loc_srt_ConsolidationItemsDomain_79C70F6552AE591E84BC9EBBC515A32D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_4DE8189CC3F155A89058D0CF90863BDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_79C70F6552AE591E84BC9EBBC515A32D" xlink:to="loc_us-gaap_OperatingSegmentsMember_4DE8189CC3F155A89058D0CF90863BDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_946E99FF37A75FF0BDE34D16A92AFE09" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_79C70F6552AE591E84BC9EBBC515A32D" xlink:to="loc_us-gaap_CorporateNonSegmentMember_946E99FF37A75FF0BDE34D16A92AFE09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_BE8CA8E799BF5384AE97F1BFB6C4AB72" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_87A671BC7C2451D39DCEA9C568E4C42C" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_BE8CA8E799BF5384AE97F1BFB6C4AB72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B2C020335D56AEF7FCEC0587DC2032DC_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BE8CA8E799BF5384AE97F1BFB6C4AB72" xlink:to="loc_us-gaap_SegmentDomain_B2C020335D56AEF7FCEC0587DC2032DC_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_2224B4A32FC95988A9D23513DBAA5050" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_BE8CA8E799BF5384AE97F1BFB6C4AB72" xlink:to="loc_us-gaap_SegmentDomain_2224B4A32FC95988A9D23513DBAA5050" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_862BE78445D45A78A11B2A01DC0625CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_2224B4A32FC95988A9D23513DBAA5050" xlink:to="loc_hsy_NorthAmericaSegmentMember_862BE78445D45A78A11B2A01DC0625CD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_23781A1AEA285E63971E1D46B2A83973" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_2224B4A32FC95988A9D23513DBAA5050" xlink:to="loc_hsy_InternationalandOtherSegmentMember_23781A1AEA285E63971E1D46B2A83973" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateMember" xlink:label="loc_us-gaap_CorporateMember_8FF7DEAFF45D5EE5A148CAA10ED88B83" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_2224B4A32FC95988A9D23513DBAA5050" xlink:to="loc_us-gaap_CorporateMember_8FF7DEAFF45D5EE5A148CAA10ED88B83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_11625D5E7A53577FBDCDD635861D39E3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_82BD76BD486C5AF5A2992CA859682E62" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_11625D5E7A53577FBDCDD635861D39E3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationScheduleOfNetSalesAndEarningsBySegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6BFE280342F0BDBB0D4F9363942B9AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6BFE280342F0BDBB0D4F9363942B9AF" 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_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_3B51D6029934BEE96643F9363942369D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6BFE280342F0BDBB0D4F9363942B9AF" xlink:to="loc_srt_ConsolidationItemsAxis_3B51D6029934BEE96643F9363942369D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_3B51D6029934BEE96643F9363942369D" xlink:to="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_3B51D6029934BEE96643F9363942369D" xlink:to="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_73102C58864DF6BEC5E7F936394320AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97" xlink:to="loc_us-gaap_OperatingSegmentsMember_73102C58864DF6BEC5E7F936394320AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_077B93DB0646E2BAC2FCF9363943BD8C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97" xlink:to="loc_us-gaap_CorporateNonSegmentMember_077B93DB0646E2BAC2FCF9363943BD8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_ADB0058631D39BB93E69F93639445B60" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_B8EEDF117F6D154D574FF9363943AA97" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_ADB0058631D39BB93E69F93639445B60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_A69389B923B17C9810E4F936394430A5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_D6BFE280342F0BDBB0D4F9363942B9AF" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_A69389B923B17C9810E4F936394430A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A69389B923B17C9810E4F936394430A5" xlink:to="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_A69389B923B17C9810E4F936394430A5" xlink:to="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_37BECF7D12690B1591BAF9363945CAC9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_37BECF7D12690B1591BAF9363945CAC9" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_6987796F27AFC297CE9EF93639454DDA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A" xlink:to="loc_hsy_NorthAmericaSegmentMember_6987796F27AFC297CE9EF93639454DDA" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_6631B18188D0F6F8E464F9363946790F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_DBA2EC1C7FE9817F9536F93639444C1A" xlink:to="loc_hsy_InternationalandOtherSegmentMember_6631B18188D0F6F8E464F9363946790F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1BB200F3FC26BDF19F5CF9363946D25A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1BB200F3FC26BDF19F5CF9363946D25A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_16501DF836BED2444865F9363946D2C2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_OperatingIncomeLoss_16501DF836BED2444865F9363946D2C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_A4C05F5285107AE1EF03F9363E44B129" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_A4C05F5285107AE1EF03F9363E44B129" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_AA37B481E6841F68C669F93639478DC4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_AA37B481E6841F68C669F93639478DC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_CB24D64ACA4DFBDB41F8F93639477C83" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_CB24D64ACA4DFBDB41F8F93639477C83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_5249CDEC0776BDA2588AF93639476674" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_RestructuringCharges_5249CDEC0776BDA2588AF93639476674" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationIntegrationRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationIntegrationRelatedCosts_F7011B80F7AFB5EE9848F9363947BD18" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_BusinessCombinationIntegrationRelatedCosts_F7011B80F7AFB5EE9848F9363947BD18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnDispositionOfIntangibleAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_55EAED6F25C7774E372FF936394785B9" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_55EAED6F25C7774E372FF936394785B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_F6E4C18588EDDC4AD8C5F93639471C26" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_F6E4C18588EDDC4AD8C5F93639471C26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_0CAFB47B1C69E6D5DFC2F936394841CD" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_0CAFB47B1C69E6D5DFC2F936394841CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_BBD4528A91FD6A5FD993F9363948EC8F" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_37BB71CB6F6B14340DAAF93639466B33" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_BBD4528A91FD6A5FD993F9363948EC8F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationScheduleOfUnallocatedMarkToMarketGainsLossesOnCommodityDerivativesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_168A33124FC554B892B8493ACDFCF9DC" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_168A33124FC554B892B8493ACDFCF9DC" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" 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_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_334DC020642A5730850B57929FBC24C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_us-gaap_HedgingDesignationAxis_334DC020642A5730850B57929FBC24C4" 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_362A7A21BC459C491D1F1EC12B25128C_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_334DC020642A5730850B57929FBC24C4" xlink:to="loc_us-gaap_HedgingDesignationDomain_362A7A21BC459C491D1F1EC12B25128C_E864B487E758552986E6C884DD4570CD" 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_5CB01E889214578FA232AC9C7E6FDE72" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_334DC020642A5730850B57929FBC24C4" xlink:to="loc_us-gaap_HedgingDesignationDomain_5CB01E889214578FA232AC9C7E6FDE72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_74BBF333238C503D93301668160C6107" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_5CB01E889214578FA232AC9C7E6FDE72" xlink:to="loc_us-gaap_NondesignatedMember_74BBF333238C503D93301668160C6107" 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_79E7EB33D38753729C617EF55BA8C613" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_79E7EB33D38753729C617EF55BA8C613" 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_36BACED3631FCE5371B11EC12B265764_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_79E7EB33D38753729C617EF55BA8C613" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_36BACED3631FCE5371B11EC12B265764_E864B487E758552986E6C884DD4570CD" 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_37DDB891433B56ADB168693BFF18ACBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_79E7EB33D38753729C617EF55BA8C613" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_37DDB891433B56ADB168693BFF18ACBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_20C4B8523F1C5E2688EE048A40FC5EA4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_37DDB891433B56ADB168693BFF18ACBB" xlink:to="loc_us-gaap_CommodityContractMember_20C4B8523F1C5E2688EE048A40FC5EA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis" xlink:label="loc_srt_ConsolidationItemsAxis_ECB7E06CD6C45F5180DB1ECAB5768B86" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_srt_ConsolidationItemsAxis_ECB7E06CD6C45F5180DB1ECAB5768B86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_4566B2ABA7BBE640B4D11EC12B26DC10_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_ECB7E06CD6C45F5180DB1ECAB5768B86" xlink:to="loc_srt_ConsolidationItemsDomain_4566B2ABA7BBE640B4D11EC12B26DC10_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain" xlink:label="loc_srt_ConsolidationItemsDomain_A1A592F82FFC5C18A22978FECADF69BF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_ECB7E06CD6C45F5180DB1ECAB5768B86" xlink:to="loc_srt_ConsolidationItemsDomain_A1A592F82FFC5C18A22978FECADF69BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_9DDD9850B822536584F99F78692C1E49" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_A1A592F82FFC5C18A22978FECADF69BF" xlink:to="loc_us-gaap_OperatingSegmentsMember_9DDD9850B822536584F99F78692C1E49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_B8D295F50F4B54FDA12A3316864E462C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_B8D295F50F4B54FDA12A3316864E462C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_BA20D21502DA126EF3031EC12B27340E_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B8D295F50F4B54FDA12A3316864E462C" xlink:to="loc_us-gaap_SegmentDomain_BA20D21502DA126EF3031EC12B27340E_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B3F68BE6CB4356B8AFF96745D576674A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_B8D295F50F4B54FDA12A3316864E462C" xlink:to="loc_us-gaap_SegmentDomain_B3F68BE6CB4356B8AFF96745D576674A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_1FA8931FE8B557AAADEAEDECDD61AFA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B3F68BE6CB4356B8AFF96745D576674A" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_1FA8931FE8B557AAADEAEDECDD61AFA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaap_SubsegmentsAxis_2B4A3481696A53B3BEBA56684D4EF0ED" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_us-gaap_SubsegmentsAxis_2B4A3481696A53B3BEBA56684D4EF0ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_87B47BCB07DB98D09A631EC12B270C2B_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_2B4A3481696A53B3BEBA56684D4EF0ED" xlink:to="loc_us-gaap_SubsegmentsDomain_87B47BCB07DB98D09A631EC12B270C2B_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_6ADD46C4517B5D5AA93F9069BCF419DF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_2B4A3481696A53B3BEBA56684D4EF0ED" xlink:to="loc_us-gaap_SubsegmentsDomain_6ADD46C4517B5D5AA93F9069BCF419DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsAxis" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsAxis_AE446560BEB65B048057EF949FE16145" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_95506D5B006D558F88503B9142922F30" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsAxis_AE446560BEB65B048057EF949FE16145" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_F396DB69A7D5D50AF3C41EC12B284212_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_AE446560BEB65B048057EF949FE16145" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_F396DB69A7D5D50AF3C41EC12B284212_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_53BA79FA4B5C53C1B7A763FFB5B66633" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_AE446560BEB65B048057EF949FE16145" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_53BA79FA4B5C53C1B7A763FFB5B66633" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_CE803F44CC4F5543841BC6872725B63B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_168A33124FC554B892B8493ACDFCF9DC" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_CE803F44CC4F5543841BC6872725B63B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_27979E4187AA5F07BF69E41CFC57277B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_168A33124FC554B892B8493ACDFCF9DC" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_27979E4187AA5F07BF69E41CFC57277B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses" xlink:label="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_635FE239963E56A294EC93F5AB08E85A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_168A33124FC554B892B8493ACDFCF9DC" xlink:to="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_635FE239963E56A294EC93F5AB08E85A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_8A7BAFCD47D55EB9893F51C898C451BE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_4BE5BCABC3CB50BF9CF0C3F737D3A776" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_8A7BAFCD47D55EB9893F51C898C451BE" xlink:to="loc_us-gaap_DebtInstrumentTable_4BE5BCABC3CB50BF9CF0C3F737D3A776" 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_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_2FF351ACB5DE56BB9464867B5B20E150" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4BE5BCABC3CB50BF9CF0C3F737D3A776" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_2FF351ACB5DE56BB9464867B5B20E150" 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_77A82118BF9D3A52889F0587DD396D18_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2FF351ACB5DE56BB9464867B5B20E150" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_77A82118BF9D3A52889F0587DD396D18_E864B487E758552986E6C884DD4570CD" 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_98DE44B4E62E5CA18AFE6A82D0D6ACCF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_2FF351ACB5DE56BB9464867B5B20E150" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_98DE44B4E62E5CA18AFE6A82D0D6ACCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_22B945643F6352B4A0FA446C7E1A5BEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_98DE44B4E62E5CA18AFE6A82D0D6ACCF" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_22B945643F6352B4A0FA446C7E1A5BEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_D144B983787A54BB9B7C67957D3111DC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4BE5BCABC3CB50BF9CF0C3F737D3A776" xlink:to="loc_us-gaap_DebtInstrumentAxis_D144B983787A54BB9B7C67957D3111DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_235A92267A7E1150B3610587DD3ACF97_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_D144B983787A54BB9B7C67957D3111DC" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_235A92267A7E1150B3610587DD3ACF97_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_D144B983787A54BB9B7C67957D3111DC" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.90Due2020Domain" xlink:label="loc_hsy_Notes2.90Due2020Domain_97DBB914D494573ABC1BFC48CA0B68D3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes2.90Due2020Domain_97DBB914D494573ABC1BFC48CA0B68D3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes4.125Due2020Member" xlink:label="loc_hsy_Notes4.125Due2020Member_CECCD4EC0440574B89B9FD79ED69D0D7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes4.125Due2020Member_CECCD4EC0440574B89B9FD79ED69D0D7" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.10Due2021Domain" xlink:label="loc_hsy_Notes3.10Due2021Domain_54E68F73CCD75A56BE06E0D66E8A7754" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes3.10Due2021Domain_54E68F73CCD75A56BE06E0D66E8A7754" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Debentures8.8Due2021Member" xlink:label="loc_hsy_Debentures8.8Due2021Member_9C0E80519A6F55A1BA225AA767DFEF9F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Debentures8.8Due2021Member_9C0E80519A6F55A1BA225AA767DFEF9F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.375Due2023Domain" xlink:label="loc_hsy_Notes3.375Due2023Domain_3B41C7E20C8254F8A489839A37DCDFE3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes3.375Due2023Domain_3B41C7E20C8254F8A489839A37DCDFE3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.625Due2023Member" xlink:label="loc_hsy_Notes2.625Due2023Member_DBE8FAD0F6145CE4BDED73592AC69FA3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes2.625Due2023Member_DBE8FAD0F6145CE4BDED73592AC69FA3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.20Due2025Member" xlink:label="loc_hsy_Notes3.20Due2025Member_7440603E322E5507BAAEBEB51AA7CF74" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes3.20Due2025Member_7440603E322E5507BAAEBEB51AA7CF74" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.30Due2026Member" xlink:label="loc_hsy_Notes2.30Due2026Member_9AC019AE0B805603B07E85120B27BED3" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes2.30Due2026Member_9AC019AE0B805603B07E85120B27BED3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Debentures7.2Due2027Member" xlink:label="loc_hsy_Debentures7.2Due2027Member_06649483CDD05749AB3890D8564B8778" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Debentures7.2Due2027Member_06649483CDD05749AB3890D8564B8778" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.375Due2046Member" xlink:label="loc_hsy_Notes3.375Due2046Member_F4C7B1FF68D65D159EF15FD32207FF31" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_5DA49C28EBDC5AE4A2C69686725E3085" xlink:to="loc_hsy_Notes3.375Due2046Member_F4C7B1FF68D65D159EF15FD32207FF31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_FB3E835EEF935772BB8B1A45F2BF27AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_8A7BAFCD47D55EB9893F51C898C451BE" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_FB3E835EEF935772BB8B1A45F2BF27AF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" 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_1E1F910E0F5B8720D67AD0F8F4326F2D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_1E1F910E0F5B8720D67AD0F8F4326F2D" 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_F90A175DB5515364855ED0F8F4322590_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_1E1F910E0F5B8720D67AD0F8F4326F2D" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_F90A175DB5515364855ED0F8F4322590_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_F90A175DB5515364855ED0F8F4322590" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_1E1F910E0F5B8720D67AD0F8F4326F2D" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_F90A175DB5515364855ED0F8F4322590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_83C129B5681371AE5128D0F8F4324111" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:to="loc_us-gaap_DebtInstrumentAxis_83C129B5681371AE5128D0F8F4324111" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_74249CB496C96864FA03D0F8F4323399_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_83C129B5681371AE5128D0F8F4324111" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_74249CB496C96864FA03D0F8F4323399_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_74249CB496C96864FA03D0F8F4323399" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_83C129B5681371AE5128D0F8F4324111" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_74249CB496C96864FA03D0F8F4323399" 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_C84960C18857A24EBD28D0F8F432C8A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_74249CB496C96864FA03D0F8F4323399" xlink:to="loc_us-gaap_LineOfCreditMember_C84960C18857A24EBD28D0F8F432C8A3" 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_48F06E7579EA648042B0D0F8F4325A89" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:to="loc_us-gaap_CreditFacilityAxis_48F06E7579EA648042B0D0F8F4325A89" 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_66E1FDDD802159579FF6D0F8F432CE76_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_48F06E7579EA648042B0D0F8F4325A89" xlink:to="loc_us-gaap_CreditFacilityDomain_66E1FDDD802159579FF6D0F8F432CE76_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_66E1FDDD802159579FF6D0F8F432CE76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_48F06E7579EA648042B0D0F8F4325A89" xlink:to="loc_us-gaap_CreditFacilityDomain_66E1FDDD802159579FF6D0F8F432CE76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_95111F12980E5CE6BCBED0F8F432CE76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_66E1FDDD802159579FF6D0F8F432CE76" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_95111F12980E5CE6BCBED0F8F432CE76" 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_6691950648660FC02824D0F8F43217A9" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_6691950648660FC02824D0F8F43217A9" 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_DAF93670CC3D3415F593D0F8F432131D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6691950648660FC02824D0F8F43217A9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DAF93670CC3D3415F593D0F8F432131D_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_DAF93670CC3D3415F593D0F8F432131D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_6691950648660FC02824D0F8F43217A9" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_DAF93670CC3D3415F593D0F8F432131D" 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_BEDD979A1D74A52BDCF9D0F8F432AE01" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DAF93670CC3D3415F593D0F8F432131D" xlink:to="loc_us-gaap_LineOfCreditMember_BEDD979A1D74A52BDCF9D0F8F432AE01" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignLineOfCreditMember" xlink:label="loc_us-gaap_ForeignLineOfCreditMember_0392917183A7ACDEF96ED0F8F432E8FE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_DAF93670CC3D3415F593D0F8F432131D" xlink:to="loc_us-gaap_ForeignLineOfCreditMember_0392917183A7ACDEF96ED0F8F432E8FE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_9214D6FC7D316F44A1F7D0F8F432441D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_9762C2D375EE1A7A84E9D0F8F4326E18" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_9214D6FC7D316F44A1F7D0F8F432441D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_C0347B0C68D9B9410A8BD0F8F432DDB8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_9214D6FC7D316F44A1F7D0F8F432441D" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_C0347B0C68D9B9410A8BD0F8F432DDB8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_C0347B0C68D9B9410A8BD0F8F432DDB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_9214D6FC7D316F44A1F7D0F8F432441D" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_C0347B0C68D9B9410A8BD0F8F432DDB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_119F6CB48740B8845287D0F8F432829C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_C0347B0C68D9B9410A8BD0F8F432DDB8" xlink:to="loc_us-gaap_CommercialPaperMember_119F6CB48740B8845287D0F8F432829C" 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_37643DDA3CE19D4B5423D0F8F432F865" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_37643DDA3CE19D4B5423D0F8F432F865" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit" xlink:label="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_1883619A758FFDCA78C6D0F8F4323A4C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_1883619A758FFDCA78C6D0F8F4323A4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LinesOfCreditCurrent" xlink:label="loc_us-gaap_LinesOfCreditCurrent_404E833FDC68F832C6A1D0F8F432AE62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_us-gaap_LinesOfCreditCurrent_404E833FDC68F832C6A1D0F8F432AE62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_D35652C12ADAEDD1FFA3D0F8F432953B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_us-gaap_ShortTermBorrowings_D35652C12ADAEDD1FFA3D0F8F432953B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_08625F0D90182C194F24D0F8F4322932" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_DEBB8ED94B9C0AC6872ED0F8F432489E" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_08625F0D90182C194F24D0F8F4322932" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfLongTermDebtInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_111FC2B07363BB4E94C1F87EC3552456" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_us-gaap_DebtInstrumentTable_111FC2B07363BB4E94C1F87EC3552456" 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_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_866CD2481EF690B743BBF87EC3556543" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_111FC2B07363BB4E94C1F87EC3552456" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_866CD2481EF690B743BBF87EC3556543" 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_EBB89E89773C193B7A37F87EC35A146B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_866CD2481EF690B743BBF87EC3556543" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_EBB89E89773C193B7A37F87EC35A146B_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_EBB89E89773C193B7A37F87EC35A146B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_866CD2481EF690B743BBF87EC3556543" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_EBB89E89773C193B7A37F87EC35A146B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_4AA9167118AD63D33688F87EC35B99BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_EBB89E89773C193B7A37F87EC35A146B" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_4AA9167118AD63D33688F87EC35B99BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_E08F1E566B8BAF6073ECF87EC35B3B78" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_111FC2B07363BB4E94C1F87EC3552456" xlink:to="loc_us-gaap_DebtInstrumentAxis_E08F1E566B8BAF6073ECF87EC35B3B78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_E08F1E566B8BAF6073ECF87EC35B3B78" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_E08F1E566B8BAF6073ECF87EC35B3B78" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.90Due2020Domain" xlink:label="loc_hsy_Notes2.90Due2020Domain_F4EA8AD04C40F631861BF87EC35B9014" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes2.90Due2020Domain_F4EA8AD04C40F631861BF87EC35B9014" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes4.125Due2020Member" xlink:label="loc_hsy_Notes4.125Due2020Member_65349A680AE422FE0530F87EC35CA418" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes4.125Due2020Member_65349A680AE422FE0530F87EC35CA418" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.10Due2021Domain" xlink:label="loc_hsy_Notes3.10Due2021Domain_8F499551F1B7FA4C8514F87EC35C2A62" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes3.10Due2021Domain_8F499551F1B7FA4C8514F87EC35C2A62" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Debentures8.8Due2021Member" xlink:label="loc_hsy_Debentures8.8Due2021Member_2372FA1157214B152CAFF87EC35C1A03" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Debentures8.8Due2021Member_2372FA1157214B152CAFF87EC35C1A03" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.375Due2023Domain" xlink:label="loc_hsy_Notes3.375Due2023Domain_B859014556397B5C9BD9F87EC35C5567" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes3.375Due2023Domain_B859014556397B5C9BD9F87EC35C5567" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.625Due2023Member" xlink:label="loc_hsy_Notes2.625Due2023Member_C2FBB322EB460AF233ADF87EC35C4000" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes2.625Due2023Member_C2FBB322EB460AF233ADF87EC35C4000" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.20Due2025Member" xlink:label="loc_hsy_Notes3.20Due2025Member_F22BC6D5D9D7F6F9C51EF87EC35DF7F3" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes3.20Due2025Member_F22BC6D5D9D7F6F9C51EF87EC35DF7F3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes2.30Due2026Member" xlink:label="loc_hsy_Notes2.30Due2026Member_894974856A95F4E3422EF87EC35D8F31" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes2.30Due2026Member_894974856A95F4E3422EF87EC35D8F31" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Debentures7.2Due2027Member" xlink:label="loc_hsy_Debentures7.2Due2027Member_51AA5A7E3ABC082AC7D0F87EC35DBBAF" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Debentures7.2Due2027Member_51AA5A7E3ABC082AC7D0F87EC35DBBAF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_Notes3.375Due2046Member" xlink:label="loc_hsy_Notes3.375Due2046Member_D165FFF3F617D0E22931F87EC35D9A3F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_31FFBB19D270B60AD535F87EC35BD093" xlink:to="loc_hsy_Notes3.375Due2046Member_D165FFF3F617D0E22931F87EC35D9A3F" 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_3D6AF6072959DD0FC5B7F87EC35D9C73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_us-gaap_LongTermDebt_3D6AF6072959DD0FC5B7F87EC35D9C73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiability" xlink:label="loc_us-gaap_FinanceLeaseLiability_9CB9352C76E140F77CD6F87EC35EB2A1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_us-gaap_FinanceLeaseLiability_9CB9352C76E140F77CD6F87EC35EB2A1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet" xlink:label="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_0B2EA46FEBE0D481F618F87EC35E1710" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_0B2EA46FEBE0D481F618F87EC35E1710" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_BBD529EE48BBBD0E24D4F87EC35E0BEF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_BBD529EE48BBBD0E24D4F87EC35E0BEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_E6A7BBF5D8219080DE2FF87EC35E3CFE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7866E422A1C9C70C38DCF87EC35DC635" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_E6A7BBF5D8219080DE2FF87EC35E3CFE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtScheduleOfNetInterestExpenseDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlans" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansNarrativeDetails" 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_6DC068AB63B35ADDB349B89E5DC8635C" 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_B958E545CD585B729203A97036C06C94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B958E545CD585B729203A97036C06C94" 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_079F574305905D88A06ED033F100AA5A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B958E545CD585B729203A97036C06C94" xlink:to="loc_us-gaap_AwardTypeAxis_079F574305905D88A06ED033F100AA5A" 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_2E9210544CF77C96E0950587DC6C7DA3_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_079F574305905D88A06ED033F100AA5A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_2E9210544CF77C96E0950587DC6C7DA3_E864B487E758552986E6C884DD4570CD" 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_FBAF99FC4ED85FAE89E2F5017A127AF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_079F574305905D88A06ED033F100AA5A" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FBAF99FC4ED85FAE89E2F5017A127AF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_CA4F6942397D5302AC7792946AE86C09" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FBAF99FC4ED85FAE89E2F5017A127AF7" xlink:to="loc_us-gaap_EmployeeStockOptionMember_CA4F6942397D5302AC7792946AE86C09" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PerformanceStockUnitsandRestrictedStockUnitsMember" xlink:label="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_E349345D81C3508A85AE2FB786F5F018" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FBAF99FC4ED85FAE89E2F5017A127AF7" xlink:to="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_E349345D81C3508A85AE2FB786F5F018" 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_7CEC0248A4B85FA9811424086096821B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B958E545CD585B729203A97036C06C94" xlink:to="loc_srt_RangeAxis_7CEC0248A4B85FA9811424086096821B" 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_2B62F07036A05B9F7EFB0587DC6D0DDA_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_7CEC0248A4B85FA9811424086096821B" xlink:to="loc_srt_RangeMember_2B62F07036A05B9F7EFB0587DC6D0DDA_E864B487E758552986E6C884DD4570CD" 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_617190EAD63257AC9EDC13DD56ED2C1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_7CEC0248A4B85FA9811424086096821B" xlink:to="loc_srt_RangeMember_617190EAD63257AC9EDC13DD56ED2C1F" 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_C6DFC666F8F558AB998F2F04E399E74A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_617190EAD63257AC9EDC13DD56ED2C1F" xlink:to="loc_srt_MinimumMember_C6DFC666F8F558AB998F2F04E399E74A" 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_AE9AC35505645E198BE84A9E183E10E8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_617190EAD63257AC9EDC13DD56ED2C1F" xlink:to="loc_srt_MaximumMember_AE9AC35505645E198BE84A9E183E10E8" 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_D5620DE7D315533E85132A06A4B7E473" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_D5620DE7D315533E85132A06A4B7E473" 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_5327EEC94F3E5B73A78CAB482F7C0C55" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5327EEC94F3E5B73A78CAB482F7C0C55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9C9FC46BC1175234AF4F98F448D0BFA7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9C9FC46BC1175234AF4F98F448D0BFA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_991A64C85698543EB4883D0310159C9C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_991A64C85698543EB4883D0310159C9C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_FAF96C7C425D5FF6881F4E964EBD050D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_FAF96C7C425D5FF6881F4E964EBD050D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_5827613353925A5EB9FC80DAD1A5DB35" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_5827613353925A5EB9FC80DAD1A5DB35" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_DeferredCompensationArrangementwithIndividualConversionBasis" xlink:label="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_D0F10228E5C45322BF8DA4494033CA03" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_6DC068AB63B35ADDB349B89E5DC8635C" xlink:to="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_D0F10228E5C45322BF8DA4494033CA03" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfFairValueWeightedAverageAssumptionsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusActivityDetails" 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_5FA0B0667795855B79553A4298A42512" 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_32CAEF0E1DDCE71620B83A4298A32E7A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5FA0B0667795855B79553A4298A42512" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_32CAEF0E1DDCE71620B83A4298A32E7A" 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_8A92E3D36B6FCAE0D9003A4298A362A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_32CAEF0E1DDCE71620B83A4298A32E7A" xlink:to="loc_us-gaap_AwardTypeAxis_8A92E3D36B6FCAE0D9003A4298A362A8" 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_558D037B4B11880B45263A4298A49B50_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8A92E3D36B6FCAE0D9003A4298A362A8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_558D037B4B11880B45263A4298A49B50_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_558D037B4B11880B45263A4298A49B50" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8A92E3D36B6FCAE0D9003A4298A362A8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_558D037B4B11880B45263A4298A49B50" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_45F6F195E15ED613DD923A4298A49F6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_558D037B4B11880B45263A4298A49B50" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_45F6F195E15ED613DD923A4298A49F6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5FA0B0667795855B79553A4298A42512" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_D547F4C9D9FAD834D1023A4298A59F62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_D547F4C9D9FAD834D1023A4298A59F62" 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_9CE01046A75B3EB272163A4298A5ED64" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_9CE01046A75B3EB272163A4298A5ED64" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_F9616FEE4C85B0E13D333A4298A5BAA0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_F9616FEE4C85B0E13D333A4298A5BAA0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_47A720F7D1668490596C3A4298A5829A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_47A720F7D1668490596C3A4298A5829A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7FAAA1F36BB621C5F6DD3A4298A649E5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_A467B661C7D9A111F8793A4298A40580" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_7FAAA1F36BB621C5F6DD3A4298A649E5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_5FA0B0667795855B79553A4298A42512" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_3E15BA9E839005EAC2423A4298A6FCA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_3E15BA9E839005EAC2423A4298A6FCA2" 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_29F7DF5A26C9EBC319233A4298A619C3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_29F7DF5A26C9EBC319233A4298A619C3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_AD384BDA11318CC877E33A4298A74487" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_AD384BDA11318CC877E33A4298A74487" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_1CEA2FDB5E6431726BBA3A4298A76E02" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_1CEA2FDB5E6431726BBA3A4298A76E02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_85B911D3E52943F8A2113A4298A74A9D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_4EF5F0D8C049F8A309803A4298A6DD24" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_85B911D3E52943F8A2113A4298A74A9D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfPsusAndRsusFairValueWeightedAverageAssumptionsDetails" 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_E84E338A284B5B92A78ECF1DA5C2886D" 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_B832155DDBA4554DB8796C0BE900F97F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B832155DDBA4554DB8796C0BE900F97F" 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_B9F59AA3CAFE504A92E505D798CA8FAA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B832155DDBA4554DB8796C0BE900F97F" xlink:to="loc_us-gaap_AwardTypeAxis_B9F59AA3CAFE504A92E505D798CA8FAA" 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_8519EC3DFDAC338F5F080587DC4E46D4_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_B9F59AA3CAFE504A92E505D798CA8FAA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8519EC3DFDAC338F5F080587DC4E46D4_E864B487E758552986E6C884DD4570CD" 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_87343C2715215F9CBDA098DC793629DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_B9F59AA3CAFE504A92E505D798CA8FAA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87343C2715215F9CBDA098DC793629DD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_AF403D9113755EBE853D386F17E1BC82" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87343C2715215F9CBDA098DC793629DD" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_AF403D9113755EBE853D386F17E1BC82" 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_1E2B1E7882D3553F8BF7A19ADE1688B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_1E2B1E7882D3553F8BF7A19ADE1688B4" 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_A6AADA1BC3EF5D57AA40DAFD56273B6E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_A6AADA1BC3EF5D57AA40DAFD56273B6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_27AEAB0F774456F29FA6F0E68A7F6229" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_SharePrice_27AEAB0F774456F29FA6F0E68A7F6229" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_A399C1C9ACE2536AB3BA084716D9B575" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_A399C1C9ACE2536AB3BA084716D9B575" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_5912F1A8CA61529BA54A434807037421" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E84E338A284B5B92A78ECF1DA5C2886D" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_5912F1A8CA61529BA54A434807037421" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansScheduleOfStockOptionActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_02331D12395C56A08B01635EEE15DA67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_02331D12395C56A08B01635EEE15DA67" 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_AdjustmentsForNewAccountingPronouncementsAxis" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DA9E42E82EC65BAAA9D9BE96977A452F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_02331D12395C56A08B01635EEE15DA67" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DA9E42E82EC65BAAA9D9BE96977A452F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_9D122EF1AC07A1F0ACD10587DD8F3666_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DA9E42E82EC65BAAA9D9BE96977A452F" xlink:to="loc_us-gaap_TypeOfAdoptionMember_9D122EF1AC07A1F0ACD10587DD8F3666_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:label="loc_us-gaap_TypeOfAdoptionMember_0CC1B8FDB3A4569F88EA554DA684C175" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_DA9E42E82EC65BAAA9D9BE96977A452F" xlink:to="loc_us-gaap_TypeOfAdoptionMember_0CC1B8FDB3A4569F88EA554DA684C175" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_CDC237ABBEA85799884333CE208685C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_0CC1B8FDB3A4569F88EA554DA684C175" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_CDC237ABBEA85799884333CE208685C4" xlink:type="arc" />
    <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_C1DE18D58768592AB244E4018C46174C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_02331D12395C56A08B01635EEE15DA67" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_C1DE18D58768592AB244E4018C46174C" 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_F81186EBA8454830FFDB0587DD8FE4B1_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C1DE18D58768592AB244E4018C46174C" xlink:to="loc_us-gaap_EquityComponentDomain_F81186EBA8454830FFDB0587DD8FE4B1_E864B487E758552986E6C884DD4570CD" 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_5F3448D5040B5060A57D55F43C05FB04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_C1DE18D58768592AB244E4018C46174C" xlink:to="loc_us-gaap_EquityComponentDomain_5F3448D5040B5060A57D55F43C05FB04" 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_21B6CA921F475555AD26833E4C7723F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_5F3448D5040B5060A57D55F43C05FB04" xlink:to="loc_us-gaap_RetainedEarningsMember_21B6CA921F475555AD26833E4C7723F5" 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_61B5AF2F9A5251798A5E52E8584295B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_61B5AF2F9A5251798A5E52E8584295B1" 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_25CE66DF3D305E2E8C63B9E33804985B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:to="loc_us-gaap_OperatingLeaseLiability_25CE66DF3D305E2E8C63B9E33804985B" 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_AF48AF869A275D8F90292A7CFF6D8512" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_AF48AF869A275D8F90292A7CFF6D8512" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_TaxCutsandJobsActof2017ReclassificationfromAOCItoRetainedEarnings" xlink:label="loc_hsy_TaxCutsandJobsActof2017ReclassificationfromAOCItoRetainedEarnings_0BB158AC35CB5651A3FBC400792A3877" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_82C61C8B741E519DA22EF3A97C21282B" xlink:to="loc_hsy_TaxCutsandJobsActof2017ReclassificationfromAOCItoRetainedEarnings_0BB158AC35CB5651A3FBC400792A3877" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformationScheduleOfSupplementalBalanceSheetInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TreasuryStockActivity" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TreasuryStockActivityNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_390C1722AA435DED84D55A0FFB6F4C9C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfTreasuryStockTable" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_1325974C3AF9550A835CA066FD1902D2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_390C1722AA435DED84D55A0FFB6F4C9C" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_1325974C3AF9550A835CA066FD1902D2" 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_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_7A9EE09B5B8B530D9B6478E0B579D7DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_1325974C3AF9550A835CA066FD1902D2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_7A9EE09B5B8B530D9B6478E0B579D7DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_E695F1968E49216F8F2F0587DC0DC51E_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7A9EE09B5B8B530D9B6478E0B579D7DC" xlink:to="loc_us-gaap_ClassOfStockDomain_E695F1968E49216F8F2F0587DC0DC51E_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_F51FE55F9EA15102BF2C7F5D22599117" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7A9EE09B5B8B530D9B6478E0B579D7DC" xlink:to="loc_us-gaap_ClassOfStockDomain_F51FE55F9EA15102BF2C7F5D22599117" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_B32FA7D6A7975BE9B2F289560C6729FC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_1325974C3AF9550A835CA066FD1902D2" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_B32FA7D6A7975BE9B2F289560C6729FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_1C8E0BA5B3AE6C8DEF130587DC0EF2F2_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_B32FA7D6A7975BE9B2F289560C6729FC" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_1C8E0BA5B3AE6C8DEF130587DC0EF2F2_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_8154682E51F454AC870FE418027211EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_B32FA7D6A7975BE9B2F289560C6729FC" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_8154682E51F454AC870FE418027211EE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_A2017ShareRepurchaseProgramMember" xlink:label="loc_hsy_A2017ShareRepurchaseProgramMember_90835CC25B575FF5B07340EDA6C0EEAF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_8154682E51F454AC870FE418027211EE" xlink:to="loc_hsy_A2017ShareRepurchaseProgramMember_90835CC25B575FF5B07340EDA6C0EEAF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_A2018ShareRepurchaseProgramMember" xlink:label="loc_hsy_A2018ShareRepurchaseProgramMember_3C891E9AE8965118A98968273FA6F3E3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_8154682E51F454AC870FE418027211EE" xlink:to="loc_hsy_A2018ShareRepurchaseProgramMember_3C891E9AE8965118A98968273FA6F3E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_B35637BD0EF550EC954F1793E699F33E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_390C1722AA435DED84D55A0FFB6F4C9C" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_B35637BD0EF550EC954F1793E699F33E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_96EBEDA161C25D079B761ED353D4CB45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_390C1722AA435DED84D55A0FFB6F4C9C" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_96EBEDA161C25D079B761ED353D4CB45" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TreasuryStockActivityScheduleOfTreasuryStockActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_2B6E6872C16C5C2A8D3C292BCF988886" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_2B6E6872C16C5C2A8D3C292BCF988886" 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_FCF0F702477450E08C8AF756AA7EFFD8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_2B6E6872C16C5C2A8D3C292BCF988886" xlink:to="loc_us-gaap_AwardTypeAxis_FCF0F702477450E08C8AF756AA7EFFD8" 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_24B7EBE14CEE73BAB9260587DC13A37B_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_FCF0F702477450E08C8AF756AA7EFFD8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_24B7EBE14CEE73BAB9260587DC13A37B_E864B487E758552986E6C884DD4570CD" 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_9F9ACBE0709D560491242DAB64AEE7B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_FCF0F702477450E08C8AF756AA7EFFD8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9F9ACBE0709D560491242DAB64AEE7B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_4E9FC72050135871BE09C34FD2A4EC89" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9F9ACBE0709D560491242DAB64AEE7B7" xlink:to="loc_us-gaap_EmployeeStockOptionMember_4E9FC72050135871BE09C34FD2A4EC89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_30C58004A3505DAB906635A7C7CE0251" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_2B6E6872C16C5C2A8D3C292BCF988886" xlink:to="loc_us-gaap_StatementClassOfStockAxis_30C58004A3505DAB906635A7C7CE0251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9D7AE01FB672A38D3CAE0587DC14F53F_E864B487E758552986E6C884DD4570CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_30C58004A3505DAB906635A7C7CE0251" xlink:to="loc_us-gaap_ClassOfStockDomain_9D7AE01FB672A38D3CAE0587DC14F53F_E864B487E758552986E6C884DD4570CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_ADB67EA595C95DCCA7A373E39CE6E6A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_30C58004A3505DAB906635A7C7CE0251" xlink:to="loc_us-gaap_ClassOfStockDomain_ADB67EA595C95DCCA7A373E39CE6E6A4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_07687EC5ABE05CB0A24730466720A4B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_ADB67EA595C95DCCA7A373E39CE6E6A4" xlink:to="loc_hsy_HersheyCommonStockMember_07687EC5ABE05CB0A24730466720A4B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockSharesAcquired" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_0CF8A827602B5850AD17FCEF7EB43C16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_0CF8A827602B5850AD17FCEF7EB43C16" 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_E8DAA08AC3B850AE99FF591F0CCBAC2A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_E8DAA08AC3B850AE99FF591F0CCBAC2A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_TreasuryStockChangeinShares" xlink:label="loc_hsy_TreasuryStockChangeinShares_DF5B33956340561E93A7F470056FE95E" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_hsy_TreasuryStockChangeinShares_DF5B33956340561E93A7F470056FE95E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_45E8A3F9D5435AE5A03484448DEA3A62" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_45E8A3F9D5435AE5A03484448DEA3A62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_4CFDEA17A3805388BE283891B8DED1F0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_4CFDEA17A3805388BE283891B8DED1F0" xlink:type="arc" />
    <link:loc xlink:href="hsy-20190929.xsd#hsy_TreasuryStockChangeinValue" xlink:label="loc_hsy_TreasuryStockChangeinValue_59A6EAEE01AC50ADACD5E670245EBAA8" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_D71902C714F05C478287814B8B46D315" xlink:to="loc_hsy_TreasuryStockChangeinValue_59A6EAEE01AC50ADACD5E670245EBAA8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TreasuryStockActivityTables" xlink:type="extended" />
</link:linkbase>




