<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestitures" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestitures" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestitures2015DivestitureNarrativeDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestitures2015DivestitureNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresAllanCandyCompanyLimitedDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresAllanCandyCompanyLimitedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresLotteShanghaiFoodCompanyDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresLotteShanghaiFoodCompanyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresProFormaInformationDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresProFormaInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresTables" xlink:href="hsy-20161231.xsd#BusinessAcquisitionsAndDivestituresTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivities" xlink:href="hsy-20161231.xsd#BusinessRealignmentActivities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesNarrativeDetails" xlink:href="hsy-20161231.xsd#BusinessRealignmentActivitiesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesRealigmnmentReserveRollforwardDetails" xlink:href="hsy-20161231.xsd#BusinessRealignmentActivitiesRealigmnmentReserveRollforwardDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesRealignmentRelatedChargesDetails" xlink:href="hsy-20161231.xsd#BusinessRealignmentActivitiesRealignmentRelatedChargesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/BusinessRealignmentActivitiesTables" xlink:href="hsy-20161231.xsd#BusinessRealignmentActivitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingencies" xlink:href="hsy-20161231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:href="hsy-20161231.xsd#CommitmentsAndContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesOperatingLeaseObligationsDetails" xlink:href="hsy-20161231.xsd#CommitmentsAndContingenciesOperatingLeaseObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesPurchaseObligationsDetails" xlink:href="hsy-20161231.xsd#CommitmentsAndContingenciesPurchaseObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/CommitmentsAndContingenciesTables" xlink:href="hsy-20161231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheets" xlink:href="hsy-20161231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="hsy-20161231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="hsy-20161231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="hsy-20161231.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" xlink:href="hsy-20161231.xsd#ConsolidatedStatementsOfIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquity" xlink:href="hsy-20161231.xsd#ConsolidatedStatementsOfStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:href="hsy-20161231.xsd#ConsolidatedStatementsOfStockholdersEquityParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstruments" xlink:href="hsy-20161231.xsd#DerivativeInstruments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:href="hsy-20161231.xsd#DerivativeInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsEffectsOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:href="hsy-20161231.xsd#DerivativeInstrumentsEffectsOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsNarrativeDetails" xlink:href="hsy-20161231.xsd#DerivativeInstrumentsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DerivativeInstrumentsTables" xlink:href="hsy-20161231.xsd#DerivativeInstrumentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/DocumentAndEntityInformation" xlink:href="hsy-20161231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShare" xlink:href="hsy-20161231.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareDetails" xlink:href="hsy-20161231.xsd#EarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareNarrativeDetails" xlink:href="hsy-20161231.xsd#EarningsPerShareNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EarningsPerShareTables" xlink:href="hsy-20161231.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterests" xlink:href="hsy-20161231.xsd#EquityAndNoncontrollingInterests" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsCommonStockOutstandingDetails" xlink:href="hsy-20161231.xsd#EquityAndNoncontrollingInterestsCommonStockOutstandingDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsNarrativeDetails" xlink:href="hsy-20161231.xsd#EquityAndNoncontrollingInterestsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsNoncontrollingInterestAndRedeemableNoncontrollingInterestDetails" xlink:href="hsy-20161231.xsd#EquityAndNoncontrollingInterestsNoncontrollingInterestAndRedeemableNoncontrollingInterestDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsTables" xlink:href="hsy-20161231.xsd#EquityAndNoncontrollingInterestsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:href="hsy-20161231.xsd#FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurements" xlink:href="hsy-20161231.xsd#FairValueMeasurementsFairValueMeasurements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueMeasurementsTables" xlink:href="hsy-20161231.xsd#FairValueMeasurementsFairValueMeasurementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsFairValueOfLongTermDebtDetails" xlink:href="hsy-20161231.xsd#FairValueMeasurementsFairValueOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/FairValueMeasurementsNarrativeDetails" xlink:href="hsy-20161231.xsd#FairValueMeasurementsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssets" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsCarryingAmountsAndAccumulatedAmortizationDetails" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssetsCarryingAmountsAndAccumulatedAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsFutureEstimatedAmortizationExpenseDetails" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssetsFutureEstimatedAmortizationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsNarrativeDetails" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsSummaryOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssetsSummaryOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsTables" xlink:href="hsy-20161231.xsd#GoodwillAndIntangibleAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxes" xlink:href="hsy-20161231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesComponentsOfIncomeTaxExpenseBenefitDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesComponentsOfIncomeTaxExpenseBenefitDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesIncomeBeforeTaxesDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesIncomeBeforeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesNarrativeDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesTables" xlink:href="hsy-20161231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/IncomeTaxesUnrecognizedTaxBenefitsReconciliationDetails" xlink:href="hsy-20161231.xsd#IncomeTaxesUnrecognizedTaxBenefitsReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:href="hsy-20161231.xsd#OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetDetails" xlink:href="hsy-20161231.xsd#OtherIncomeExpenseNetOtherIncomeExpenseNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetTables" xlink:href="hsy-20161231.xsd#OtherIncomeExpenseNetOtherIncomeExpenseNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlans" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansChangesInBenefitObligationsAndPlanAssetsAndFundedStatusDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansChangesInBenefitObligationsAndPlanAssetsAndFundedStatusDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansExpectedBenefitPaymentsToBePaidDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansExpectedBenefitPaymentsToBePaidDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansOnePercentChangeInAssumedHealthCareTrendRateEffectsDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansOnePercentChangeInAssumedHealthCareTrendRateEffectsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansSummaryOfPlanAssetsAcrossAssetClassesDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansSummaryOfPlanAssetsAcrossAssetClassesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansTables" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:href="hsy-20161231.xsd#PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/QuarterlyDataDetails" xlink:href="hsy-20161231.xsd#QuarterlyDataDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/QuarterlyDataTables" xlink:href="hsy-20161231.xsd#QuarterlyDataTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/QuarterlyDataUnaudited" xlink:href="hsy-20161231.xsd#QuarterlyDataUnaudited" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:href="hsy-20161231.xsd#ScheduleIiValuationAndQualifyingAccounts" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:href="hsy-20161231.xsd#ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformation" xlink:href="hsy-20161231.xsd#SegmentInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationByGeographyDetails" xlink:href="hsy-20161231.xsd#SegmentInformationByGeographyDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationDepreciationAndAmortizationDetails" xlink:href="hsy-20161231.xsd#SegmentInformationDepreciationAndAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:href="hsy-20161231.xsd#SegmentInformationNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationSalesAndIncomeDetails" xlink:href="hsy-20161231.xsd#SegmentInformationSalesAndIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationSegmentInformationSummaryOfDerivativeInformationDetails" xlink:href="hsy-20161231.xsd#SegmentInformationSegmentInformationSummaryOfDerivativeInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SegmentInformationTables" xlink:href="hsy-20161231.xsd#SegmentInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebt" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtInterestExpenseDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtInterestExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtLongTermDebtInterestRatesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtMaturityDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtLongTermDebtMaturityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtShortTermDebtDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtShortTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtSummaryOfLongTermDebtDetails" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtSummaryOfLongTermDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/ShortAndLongTermDebtTables" xlink:href="hsy-20161231.xsd#ShortAndLongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlans" xlink:href="hsy-20161231.xsd#StockCompensationPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansFairValueWeightedAverageAssumptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansNarrativeDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansStockOptionActivityDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansStockOptionActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansStockOptionInformationByExercisePriceRangeDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansStockOptionInformationByExercisePriceRangeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansSummaryOfPsusAndRsusActivityDetails" xlink:href="hsy-20161231.xsd#StockCompensationPlansSummaryOfPsusAndRsusActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/StockCompensationPlansTables" xlink:href="hsy-20161231.xsd#StockCompensationPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesInventoriesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="hsy-20161231.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformation" xlink:href="hsy-20161231.xsd#SupplementalBalanceSheetInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformationDetails" xlink:href="hsy-20161231.xsd#SupplementalBalanceSheetInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:href="hsy-20161231.xsd#SupplementalBalanceSheetInformationTables" 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/BusinessAcquisitionsAndDivestitures" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestitures2015DivestitureNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_E3C7264D87122D40503368578910C4D5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_00A9F48D4C7EAEB2DFBE685789103E1D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_E3C7264D87122D40503368578910C4D5" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_00A9F48D4C7EAEB2DFBE685789103E1D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_C8ED85C4A0291EB9697268578910E221" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_00A9F48D4C7EAEB2DFBE685789103E1D" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_C8ED85C4A0291EB9697268578910E221" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_5A8C985BD93F1BC1FA4C6857891033FD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_C8ED85C4A0291EB9697268578910E221" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_5A8C985BD93F1BC1FA4C6857891033FD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_5A8C985BD93F1BC1FA4C6857891033FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_C8ED85C4A0291EB9697268578910E221" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_5A8C985BD93F1BC1FA4C6857891033FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupHeldForSaleOrDisposedOfBySaleNotDiscontinuedOperationsMember" xlink:label="loc_us-gaap_DisposalGroupHeldForSaleOrDisposedOfBySaleNotDiscontinuedOperationsMember_53445266E6171618827368578910E060" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupClassificationDomain_5A8C985BD93F1BC1FA4C6857891033FD" xlink:to="loc_us-gaap_DisposalGroupHeldForSaleOrDisposedOfBySaleNotDiscontinuedOperationsMember_53445266E6171618827368578910E060" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_01C1BD72FC7D9971D4FE685789104052" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsTable_00A9F48D4C7EAEB2DFBE685789103E1D" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_01C1BD72FC7D9971D4FE685789104052" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_D8F23589776EB3B8AB89685789102FD3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_01C1BD72FC7D9971D4FE685789104052" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_D8F23589776EB3B8AB89685789102FD3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_D8F23589776EB3B8AB89685789102FD3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_01C1BD72FC7D9971D4FE685789104052" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_D8F23589776EB3B8AB89685789102FD3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_MaunaLoaMacadamiaNutCorporationMember" xlink:label="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_835529FC0041122B5D1E68578910B4C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_D8F23589776EB3B8AB89685789102FD3" xlink:to="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_835529FC0041122B5D1E68578910B4C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromDivestitureOfBusinesses" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_9E38C1F8E976CBEE43526857891080C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_E3C7264D87122D40503368578910C4D5" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfBusinesses_9E38C1F8E976CBEE43526857891080C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal" xlink:label="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_5122C47AF2E89E046A16685789104D11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_E3C7264D87122D40503368578910C4D5" xlink:to="loc_us-gaap_DisposalGroupNotDiscontinuedOperationGainLossOnDisposal_5122C47AF2E89E046A16685789104D11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_2D964A74AB551C68489268578910CC5F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsLineItems_E3C7264D87122D40503368578910C4D5" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_2D964A74AB551C68489268578910CC5F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresAllanCandyCompanyLimitedDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_7327994B653BAE6A318C14855B2AD8D7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_7327994B653BAE6A318C14855B2AD8D7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_10B68637F01D18EA5B1914855B2AE47A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_7327994B653BAE6A318C14855B2AD8D7" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_10B68637F01D18EA5B1914855B2AE47A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_446DA5918D89B745F65A14855B2A4CF2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_10B68637F01D18EA5B1914855B2AE47A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_446DA5918D89B745F65A14855B2A4CF2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_446DA5918D89B745F65A14855B2A4CF2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_10B68637F01D18EA5B1914855B2AE47A" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_446DA5918D89B745F65A14855B2A4CF2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_TheAllanCandyCompanyLimitedMember" xlink:label="loc_hsy_TheAllanCandyCompanyLimitedMember_2303AC028588188E364114855B349006" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_446DA5918D89B745F65A14855B2A4CF2" xlink:to="loc_hsy_TheAllanCandyCompanyLimitedMember_2303AC028588188E364114855B349006" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_3BA21566B9066358DAB314855B34D4CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_3BA21566B9066358DAB314855B34D4CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_5061E621B54FD6E5A3A314855B34B682" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_5061E621B54FD6E5A3A314855B34B682" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_57E096DF76A03FC2D9AA14855B3421EF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_Goodwill_57E096DF76A03FC2D9AA14855B3421EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_5B1D374F5731CD6B0D3114855B3448F0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_5B1D374F5731CD6B0D3114855B3448F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_DED99496B89AFA59505814855B347FD2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_DED99496B89AFA59505814855B347FD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_2022E377AC3D8226488514855B34CCBD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_938607B6DDF4D7B5998414855B346FD8" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_2022E377AC3D8226488514855B34CCBD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1D8F3760702D1BA171D31E524A9B87CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1D8F3760702D1BA171D31E524A9B87CB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_99C518A15061060A64C31E524A9BA2F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1D8F3760702D1BA171D31E524A9B87CB" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_99C518A15061060A64C31E524A9BA2F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_78137A9FD967622B3FF61E524A9BA650_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99C518A15061060A64C31E524A9BA2F7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_78137A9FD967622B3FF61E524A9BA650_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_78137A9FD967622B3FF61E524A9BA650" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_99C518A15061060A64C31E524A9BA2F7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_78137A9FD967622B3FF61E524A9BA650" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_KRAVEPureFoodsInc.Member" xlink:label="loc_hsy_KRAVEPureFoodsInc.Member_59E1DBD0B5A3059ECB631E524A9BB407" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_78137A9FD967622B3FF61E524A9BA650" xlink:to="loc_hsy_KRAVEPureFoodsInc.Member_59E1DBD0B5A3059ECB631E524A9BB407" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_634A36556045BD40ADEA1E524A9B7DF2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1D8F3760702D1BA171D31E524A9B87CB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_634A36556045BD40ADEA1E524A9B7DF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_634A36556045BD40ADEA1E524A9B7DF2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_634A36556045BD40ADEA1E524A9B7DF2" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_B70A05AB51C3C48C069C1E524A9BE8E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3" xlink:to="loc_us-gaap_TrademarksMember_B70A05AB51C3C48C069C1E524A9BE8E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_38127BB2DF1D6BCA92181E524A9BCD1E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_1E7B0EA1A8F4DD8BCD071E524A9BD9A3" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_38127BB2DF1D6BCA92181E524A9BCD1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_D0DF3C0CD13D5CB794D71E524A9B7B1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_Goodwill_D0DF3C0CD13D5CB794D71E524A9B7B1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_C457EBA92FC3902AA0081E524A9BDDC3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_C457EBA92FC3902AA0081E524A9BDDC3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_6A9029576C819A0CE7C31E524A9B0772" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_6A9029576C819A0CE7C31E524A9B0772" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_3926290D302AD5595E041E524AAAD2ED" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_3926290D302AD5595E041E524AAAD2ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_F968505A365B376813F71E524AAAC8F4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDeferredTaxLiabilitiesNoncurrent_F968505A365B376813F71E524AAAC8F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5DEE07FFA59103C91B1B1E524AAA6BE6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_448E08FADEBCC378C9B21E524A9B4B60" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_5DEE07FFA59103C91B1B1E524AAA6BE6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresKravePureFoodsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B6D81D10101F5FD2F30F1F0E9C39B605" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B6D81D10101F5FD2F30F1F0E9C39B605" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_94F298952B822738253B1F0E9C39AA16" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B6D81D10101F5FD2F30F1F0E9C39B605" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_94F298952B822738253B1F0E9C39AA16" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BAE658D5EA47AC4333C41F0E9C39F79A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_94F298952B822738253B1F0E9C39AA16" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BAE658D5EA47AC4333C41F0E9C39F79A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BAE658D5EA47AC4333C41F0E9C39F79A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_94F298952B822738253B1F0E9C39AA16" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BAE658D5EA47AC4333C41F0E9C39F79A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_KRAVEPureFoodsInc.Member" xlink:label="loc_hsy_KRAVEPureFoodsInc.Member_B93A6E6498C47777D6E51F0E9C39C411" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_BAE658D5EA47AC4333C41F0E9C39F79A" xlink:to="loc_hsy_KRAVEPureFoodsInc.Member_B93A6E6498C47777D6E51F0E9C39C411" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_AC64B9DC561997DC812F1F0E9C395A65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B6D81D10101F5FD2F30F1F0E9C39B605" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_AC64B9DC561997DC812F1F0E9C395A65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_AC64B9DC561997DC812F1F0E9C395A65" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_AC64B9DC561997DC812F1F0E9C395A65" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_19EF3BE5F11CE20F3F891F0E9C39D8C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511" xlink:to="loc_us-gaap_TrademarksMember_19EF3BE5F11CE20F3F891F0E9C39D8C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_C93972FF1452906453D11F0E9C3959F8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_DFF9CC1597A939C500361F0E9C398511" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_C93972FF1452906453D11F0E9C3959F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_2BC80D4D934703FE9C281F35A910F371" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_2BC80D4D934703FE9C281F35A910F371" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_3127492190DC86C3C70C1F0E9C499CE3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_3127492190DC86C3C70C1F0E9C499CE3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_0319513B6B069FA702221F0E9C49F8C6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh_0319513B6B069FA702221F0E9C49F8C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationLiability" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_F3100225EDED073116581F0E9C496F41" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationLiability_F3100225EDED073116581F0E9C496F41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsForPreviousAcquisition" xlink:label="loc_us-gaap_PaymentsForPreviousAcquisition_EED995C954BBBBC048801F0E9C49E46D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2237D6D45188EF4291D51F0E9C49A368" xlink:to="loc_us-gaap_PaymentsForPreviousAcquisition_EED995C954BBBBC048801F0E9C49E46D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresLotteShanghaiFoodCompanyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B1745644F6B3A176DC4F13AC41D52F5F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B1745644F6B3A176DC4F13AC41D52F5F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_1CFE42B046C23AE12BD213AC41D52111" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B1745644F6B3A176DC4F13AC41D52F5F" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_1CFE42B046C23AE12BD213AC41D52111" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_13560868EC3BB403ECF313AC41D5B244_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1CFE42B046C23AE12BD213AC41D52111" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_13560868EC3BB403ECF313AC41D5B244_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_13560868EC3BB403ECF313AC41D5B244" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_1CFE42B046C23AE12BD213AC41D52111" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_13560868EC3BB403ECF313AC41D5B244" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LotteShanghaiFoodCompanyMember" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_8D06983F21F75C4265B013AC41D513ED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_13560868EC3BB403ECF313AC41D5B244" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_8D06983F21F75C4265B013AC41D513ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_D0F9FD27F100F9AACC0213AC41D558B0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_B1745644F6B3A176DC4F13AC41D52F5F" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_D0F9FD27F100F9AACC0213AC41D558B0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_0E75821E1898F86F64E813AC41D51E0A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_D0F9FD27F100F9AACC0213AC41D558B0" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0E75821E1898F86F64E813AC41D51E0A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_0E75821E1898F86F64E813AC41D51E0A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_D0F9FD27F100F9AACC0213AC41D558B0" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_0E75821E1898F86F64E813AC41D51E0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpenseMember" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_DA8C0060D9BB27E092E313AC41D571F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_0E75821E1898F86F64E813AC41D51E0A" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_DA8C0060D9BB27E092E313AC41D571F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_3E98283F96F502565E7913AC41D56DC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_3E98283F96F502565E7913AC41D56DC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_E99D32EBC29D45E74C6C13AC41D5BD03" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_E99D32EBC29D45E74C6C13AC41D5BD03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage_68DA2816EA4032E94DEC13AC41D59F6B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireePercentage_68DA2816EA4032E94DEC13AC41D59F6B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeIncludingSubsequentAcquisitionPercentage" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeIncludingSubsequentAcquisitionPercentage_2D65CF58113DBDA6FEF013AC41D5FCDC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeIncludingSubsequentAcquisitionPercentage_2D65CF58113DBDA6FEF013AC41D5FCDC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferredIncludingEquityInterestInAcquireeHeldPriorToCombination1" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferredIncludingEquityInterestInAcquireeHeldPriorToCombination1_5DE3881801E52B99B0E313AC41D5F9D9" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferredIncludingEquityInterestInAcquireeHeldPriorToCombination1_5DE3881801E52B99B0E313AC41D5F9D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeFairValue1" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeFairValue1_C62008FD7150E606D51613AC41D527E3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeFairValue1_C62008FD7150E606D51613AC41D527E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_F431B48A1CD7FB7C2EED13AC41D5BA07" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_MinorityInterest_F431B48A1CD7FB7C2EED13AC41D5BA07" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_FDCBFB0B0646502BD32113AC41D56DC0" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_FDCBFB0B0646502BD32113AC41D56DC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_373D3B156C5F9A27420113AC41D5A585" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_373D3B156C5F9A27420113AC41D5A585" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_1510BF6B69337344BD9E13AC41D5A97A" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_1510BF6B69337344BD9E13AC41D5A97A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_CD9810EE8618DC26D47613AC41D5765E" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherNoncurrentAssets_CD9810EE8618DC26D47613AC41D5765E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain_0277ADAC44DDF7F5E69413AC41D50444" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain_0277ADAC44DDF7F5E69413AC41D50444" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9C422A3D4FC61528453E13AC41D52501" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_AE893D18D30E23325F3B13AC41D5FD03" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9C422A3D4FC61528453E13AC41D52501" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresProFormaInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_A261F6685A8ABF8B215A685789193A91" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1160EFF61DD653D4B57D68578918617A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_A261F6685A8ABF8B215A685789193A91" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1160EFF61DD653D4B57D68578918617A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_514AF2744453B09116C468578918162E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1160EFF61DD653D4B57D68578918617A" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_514AF2744453B09116C468578918162E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AFB8F5562178E9126E12685789184C3B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_514AF2744453B09116C468578918162E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AFB8F5562178E9126E12685789184C3B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AFB8F5562178E9126E12685789184C3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_514AF2744453B09116C468578918162E" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AFB8F5562178E9126E12685789184C3B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_176B8B5B195DAB1BD46768578918098D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_AFB8F5562178E9126E12685789184C3B" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_176B8B5B195DAB1BD46768578918098D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_3FD986ED86F129D41E766857891945AC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1160EFF61DD653D4B57D68578918617A" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_3FD986ED86F129D41E766857891945AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_E553D2B3FD010091861C685789190921_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3FD986ED86F129D41E766857891945AC" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_E553D2B3FD010091861C685789190921_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_E553D2B3FD010091861C685789190921" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3FD986ED86F129D41E766857891945AC" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_E553D2B3FD010091861C685789190921" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_7A1E6C14E351E80EFA4468578919B166" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_E553D2B3FD010091861C685789190921" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_7A1E6C14E351E80EFA4468578919B166" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationAcquisitionRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_0EB5D3D47373CCD2D11A68578919242F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_A261F6685A8ABF8B215A685789193A91" xlink:to="loc_us-gaap_BusinessCombinationAcquisitionRelatedCosts_0EB5D3D47373CCD2D11A68578919242F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A2CEF06B93A7389DD82C28AAEF03DEA6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A2CEF06B93A7389DD82C28AAEF03DEA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A2CEF06B93A7389DD82C28AAEF03DEA6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A2CEF06B93A7389DD82C28AAEF03DEA6" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_BD7868BE57CC8EFEC8FD28AAEF03A726" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3" xlink:to="loc_us-gaap_TrademarksMember_BD7868BE57CC8EFEC8FD28AAEF03A726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_E76B468F99745782840728AAEF037B65" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_F7F5610ED6F3EA4A497228AAEF0380A3" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_E76B468F99745782840728AAEF037B65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_F25C27E3217D650A135728AAEF03484A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:to="loc_us-gaap_RangeAxis_F25C27E3217D650A135728AAEF03484A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4A0ACBA0E2545D92296E28AAEF035350_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_F25C27E3217D650A135728AAEF03484A" xlink:to="loc_us-gaap_RangeMember_4A0ACBA0E2545D92296E28AAEF035350_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_4A0ACBA0E2545D92296E28AAEF035350" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_F25C27E3217D650A135728AAEF03484A" xlink:to="loc_us-gaap_RangeMember_4A0ACBA0E2545D92296E28AAEF035350" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_879020A57250278333A028AAEF039F4C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:to="loc_us-gaap_StatementScenarioAxis_879020A57250278333A028AAEF039F4C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_3FA173BEDD551A93B8BF28AAEF03D5A5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_879020A57250278333A028AAEF039F4C" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_3FA173BEDD551A93B8BF28AAEF03D5A5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_3FA173BEDD551A93B8BF28AAEF03D5A5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_879020A57250278333A028AAEF039F4C" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_3FA173BEDD551A93B8BF28AAEF03D5A5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_FA8D4252852ACC94C39D28AAEF03B99D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_FA8D4252852ACC94C39D28AAEF03B99D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D7179DB4DD507447AA2328AAEF03629E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FA8D4252852ACC94C39D28AAEF03B99D" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D7179DB4DD507447AA2328AAEF03629E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D7179DB4DD507447AA2328AAEF03629E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_FA8D4252852ACC94C39D28AAEF03B99D" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D7179DB4DD507447AA2328AAEF03629E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RippleBrandCollectiveLLCMember" xlink:label="loc_hsy_RippleBrandCollectiveLLCMember_A5514C60B2A7D8D53FBF28AAEF03D102" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D7179DB4DD507447AA2328AAEF03629E" xlink:to="loc_hsy_RippleBrandCollectiveLLCMember_A5514C60B2A7D8D53FBF28AAEF03D102" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_F018A013B14A0139D40D28AAEF03E7AA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_CDB4DF6DDE1A6B9F547F28AAEF032FB4" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_F018A013B14A0139D40D28AAEF03E7AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_BAE8C9B023F354EB9AF928AAEF03DBC1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F018A013B14A0139D40D28AAEF03E7AA" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_BAE8C9B023F354EB9AF928AAEF03DBC1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_BAE8C9B023F354EB9AF928AAEF03DBC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F018A013B14A0139D40D28AAEF03E7AA" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_BAE8C9B023F354EB9AF928AAEF03DBC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_56F20FF18840EDA71B1628AAEF039CBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_56F20FF18840EDA71B1628AAEF039CBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_34D58AFD32E9FBFC05B828AAEF035364" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_Goodwill_34D58AFD32E9FBFC05B828AAEF035364" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_4A9B0FAB564EA129D58A28AAEF030088" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_4A9B0FAB564EA129D58A28AAEF030088" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_83B8E829BBCA7B8097C228AAEF030617" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_83B8E829BBCA7B8097C228AAEF030617" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_EF214500684CB173D2A728AAEF0383F2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_EF214500684CB173D2A728AAEF0383F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_E56B3B3D56A98830C18628AAEF03A36C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7A0A09809CE5BFB5719D28AAEF03A4CE" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_E56B3B3D56A98830C18628AAEF03A36C" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresRippleBrandCollectiveLlcNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_05E48D1703D692C9DE2D1F9C3316E9DB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_31A93B3360C01399AFD21F9C33165083" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_05E48D1703D692C9DE2D1F9C3316E9DB" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_31A93B3360C01399AFD21F9C33165083" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B95FD4F81D742BD3CD521F9C3316FEBC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_31A93B3360C01399AFD21F9C33165083" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B95FD4F81D742BD3CD521F9C3316FEBC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D188876505E7CE310FB91F9C3316006A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B95FD4F81D742BD3CD521F9C3316FEBC" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D188876505E7CE310FB91F9C3316006A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D188876505E7CE310FB91F9C3316006A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B95FD4F81D742BD3CD521F9C3316FEBC" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D188876505E7CE310FB91F9C3316006A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RippleBrandCollectiveLLCMember" xlink:label="loc_hsy_RippleBrandCollectiveLLCMember_59110DBBCB4972B204C81F9C331662CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_D188876505E7CE310FB91F9C3316006A" xlink:to="loc_hsy_RippleBrandCollectiveLLCMember_59110DBBCB4972B204C81F9C331662CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F5D00F8813F3500F0F411F9C331624A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_31A93B3360C01399AFD21F9C33165083" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F5D00F8813F3500F0F411F9C331624A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F5D00F8813F3500F0F411F9C331624A3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_F5D00F8813F3500F0F411F9C331624A3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_4F9FE7D3CFDA72510DEA1F9C3316F511" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE" xlink:to="loc_us-gaap_TrademarksMember_4F9FE7D3CFDA72510DEA1F9C3316F511" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_150AD2CA495C2087FD6E1F9C3316917A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_55E109F562C9FD24C91E1F9C33163CBE" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_150AD2CA495C2087FD6E1F9C3316917A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_330E94C551A7E0D107321F9C3316E6C9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_31A93B3360C01399AFD21F9C33165083" xlink:to="loc_us-gaap_RangeAxis_330E94C551A7E0D107321F9C3316E6C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_330E94C551A7E0D107321F9C3316E6C9" xlink:to="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_330E94C551A7E0D107321F9C3316E6C9" xlink:to="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_B1BCDAC7B5416D4765A71F9C33168096" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C" xlink:to="loc_us-gaap_MinimumMember_B1BCDAC7B5416D4765A71F9C33168096" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_849F2168A53E87E44A091F9C331603E0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_DE6B0FA33612C2C496711F9C3316FE7C" xlink:to="loc_us-gaap_MaximumMember_849F2168A53E87E44A091F9C331603E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_A70D9C83CB03C734586F1F9C3316D594" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_05E48D1703D692C9DE2D1F9C3316E9DB" xlink:to="loc_us-gaap_Revenues_A70D9C83CB03C734586F1F9C3316D594" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_DFB36B01A7B779DD45711F9C331681D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_05E48D1703D692C9DE2D1F9C3316E9DB" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_DFB36B01A7B779DD45711F9C331681D9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyAssetsAcquiredAndLiabilitiesAssumedAllocationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_73246E8BF346703C3D6D1E4CF6E5BEED" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_73246E8BF346703C3D6D1E4CF6E5BEED" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_A3B2A96F898762A8D07B1E4CF6E5F6A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_73246E8BF346703C3D6D1E4CF6E5BEED" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_A3B2A96F898762A8D07B1E4CF6E5F6A9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A7E0C5CCAD763E9BE8E51E4CF6E5480F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A3B2A96F898762A8D07B1E4CF6E5F6A9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A7E0C5CCAD763E9BE8E51E4CF6E5480F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A7E0C5CCAD763E9BE8E51E4CF6E5480F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_A3B2A96F898762A8D07B1E4CF6E5F6A9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A7E0C5CCAD763E9BE8E51E4CF6E5480F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_18FCA8BF173DF17B54961E4CF6E5B164" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_A7E0C5CCAD763E9BE8E51E4CF6E5480F" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_18FCA8BF173DF17B54961E4CF6E5B164" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_9718A05B655438061D931E4CF6E5AFE8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_9718A05B655438061D931E4CF6E5AFE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_7BF93F4EA6E50489A02C1E4CF6E5930A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedInventory_7BF93F4EA6E50489A02C1E4CF6E5930A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_0215D2DA0BE0FBBB61021E4CF6E5CFEC" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_0215D2DA0BE0FBBB61021E4CF6E5CFEC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_01751FABF34EB18458D71E4CF6E5A98D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_01751FABF34EB18458D71E4CF6E5A98D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_60698600F08A672D6A171E4CF6E59350" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_Goodwill_60698600F08A672D6A171E4CF6E59350" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_A05F5367EEF49C620C871E4CF6E5740F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_A05F5367EEF49C620C871E4CF6E5740F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets_CA0CEB329D35D4FBCD601E4CF6E51C87" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentAssets_CA0CEB329D35D4FBCD601E4CF6E51C87" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_A0710E2B70D25B8435B21E4CF6E52A46" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilities_A0710E2B70D25B8435B21E4CF6E52A46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_60F1295E6A10EBD08D971E4CF6E58559" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesLongTermDebt_60F1295E6A10EBD08D971E4CF6E58559" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_7DF54F7B44E9948A0BEC1E4CF6E5A0B9" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesOther_7DF54F7B44E9948A0BEC1E4CF6E5A0B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A39A989D8295F4572E7A1E4CF6E567C0" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_A39A989D8295F4572E7A1E4CF6E567C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable_84A6B6DAE5CC2707F2961E4CF6E54442" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentAccountsReceivable_84A6B6DAE5CC2707F2961E4CF6E54442" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInventory" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInventory_1534120CE8F7824BCF0A1E4CF6E5B8EB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentInventory_1534120CE8F7824BCF0A1E4CF6E5B8EB" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherCurrentAssets" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherCurrentAssets_6FA0834E2117B654BCB01E4CF6E55752" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherCurrentAssets_6FA0834E2117B654BCB01E4CF6E55752" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment_04CF179F09C74E79D4131E4CF6F4864E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentPropertyPlantAndEquipment_04CF179F09C74E79D4131E4CF6F4864E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D0CF36AE1A35D9E001411E4CF6F4C572" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D0CF36AE1A35D9E001411E4CF6F4C572" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles_4C6DCEF0C18E3370476D1E4CF6F42365" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentIntangibles_4C6DCEF0C18E3370476D1E4CF6F42365" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherNoncurrentAssets" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherNoncurrentAssets_7C12274A6CDE014C20161E4CF6F4BE2C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherNoncurrentAssets_7C12274A6CDE014C20161E4CF6F4BE2C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLiabilitiesAssumedCurrent" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLiabilitiesAssumedCurrent_1C4E874C884C1D684B1A1E4CF6F4A4CB" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentLiabilitiesAssumedCurrent_1C4E874C884C1D684B1A1E4CF6F4A4CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentFinancialLiabilities" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentFinancialLiabilities_3E401FAC70992924626C1E4CF6F4ADF6" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentFinancialLiabilities_3E401FAC70992924626C1E4CF6F4ADF6" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherLiabilitiesNoncurrent" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherLiabilitiesNoncurrent_14D15594805BF50FFB9C1E4CF6F4A179" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentsAbstract_7F9F1F8D94F3D383E1EC1E4CF6E538EF" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentOtherLiabilitiesNoncurrent_14D15594805BF50FFB9C1E4CF6F4A179" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_A804EF4993F2EB52C0D61E4CF6F4F4C6" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_309C9F5ADC35F15A431D1E4CF6E50FDA" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_A804EF4993F2EB52C0D61E4CF6F4F4C6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresShanghaiGoldenMonkeyNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_50716F9E7FA5DDA6B1BD1E4B9F355B04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_50716F9E7FA5DDA6B1BD1E4B9F355B04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5FBB3501E899DC25BAA51E4B9F35E497_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_50716F9E7FA5DDA6B1BD1E4B9F355B04" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5FBB3501E899DC25BAA51E4B9F35E497_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5FBB3501E899DC25BAA51E4B9F35E497" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_50716F9E7FA5DDA6B1BD1E4B9F355B04" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5FBB3501E899DC25BAA51E4B9F35E497" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_B986261D36FD058677F01E4B9F35F623" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5FBB3501E899DC25BAA51E4B9F35E497" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_B986261D36FD058677F01E4B9F35F623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_F4F793389BBCAAE5DE8E1E4B9F35DC5A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_F4F793389BBCAAE5DE8E1E4B9F35DC5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_F4F793389BBCAAE5DE8E1E4B9F35DC5A" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_F4F793389BBCAAE5DE8E1E4B9F35DC5A" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember" xlink:label="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_57989A560FCF21847F641E4B9F353A1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE" xlink:to="loc_us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember_57989A560FCF21847F641E4B9F353A1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesMember" xlink:label="loc_us-gaap_AccruedLiabilitiesMember_2C165A269AB60E8C9D361E4B9F351E2B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_A368B19C1F531A48C1261E4B9F3539CE" xlink:to="loc_us-gaap_AccruedLiabilitiesMember_2C165A269AB60E8C9D361E4B9F351E2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_E532F7655FBBD81210911E4B9F358EAF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_E532F7655FBBD81210911E4B9F358EAF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8FC0AC11490E772CC62F1E4B9F358957_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E532F7655FBBD81210911E4B9F358EAF" xlink:to="loc_us-gaap_SegmentDomain_8FC0AC11490E772CC62F1E4B9F358957_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8FC0AC11490E772CC62F1E4B9F358957" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E532F7655FBBD81210911E4B9F358EAF" xlink:to="loc_us-gaap_SegmentDomain_8FC0AC11490E772CC62F1E4B9F358957" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_C4032DC09EE33C046C4D1E4B9F356DA1" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_2C3A1E7F9BB5AB6E66191E4B9F354585" xlink:to="loc_us-gaap_StatementGeographicalAxis_C4032DC09EE33C046C4D1E4B9F356DA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_5A867972C97F9C6E09CE1E4B9F350D95_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_C4032DC09EE33C046C4D1E4B9F356DA1" xlink:to="loc_us-gaap_SegmentGeographicalDomain_5A867972C97F9C6E09CE1E4B9F350D95_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_5A867972C97F9C6E09CE1E4B9F350D95" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_C4032DC09EE33C046C4D1E4B9F356DA1" xlink:to="loc_us-gaap_SegmentGeographicalDomain_5A867972C97F9C6E09CE1E4B9F350D95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_95336810FBD5F4D98DCC1E4B9F35ECBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_95336810FBD5F4D98DCC1E4B9F35ECBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_79FAD85BB3FD837AEA181E4B9F352D35" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_79FAD85BB3FD837AEA181E4B9F352D35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesGross_E252A5FB3D24FE3F8E241E4B9F353CBA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesGross_E252A5FB3D24FE3F8E241E4B9F353CBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationContingentConsiderationAssetCurrent" xlink:label="loc_us-gaap_BusinessCombinationContingentConsiderationAssetCurrent_131A8AE583B578C81A491E4B9F35C86B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_BusinessCombinationContingentConsiderationAssetCurrent_131A8AE583B578C81A491E4B9F35C86B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_BusinessAcquisitionAdditionalVotingInterestPurchasePeriod" xlink:label="loc_hsy_BusinessAcquisitionAdditionalVotingInterestPurchasePeriod_83C13903927DF483B2D61E4B9F35998E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_hsy_BusinessAcquisitionAdditionalVotingInterestPurchasePeriod_83C13903927DF483B2D61E4B9F35998E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_AccruedLiabilitiesCurrentPaymentsToAcquireBusinesses" xlink:label="loc_hsy_AccruedLiabilitiesCurrentPaymentsToAcquireBusinesses_8A53084821D5A2F64EE51E4B9F35B8B2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_hsy_AccruedLiabilitiesCurrentPaymentsToAcquireBusinesses_8A53084821D5A2F64EE51E4B9F35B8B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_2CA69C011FA3F75BFF681E4B9F35B757" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_2CA69C011FA3F75BFF681E4B9F35B757" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_26C3284893D5142324DF1E4B9F359AE8" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_C62BA6E8C894EF2798081E4B9F35FD75" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_26C3284893D5142324DF1E4B9F359AE8" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessAcquisitionsAndDivestituresTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_56F014F23E3673521DCECBB9128BF688" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_49E448D8D95362201520CBB9128B7EA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_56F014F23E3673521DCECBB9128BF688" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_49E448D8D95362201520CBB9128B7EA1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_39E5FA4EBC858D06E085CBB9128BD7FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_49E448D8D95362201520CBB9128B7EA1" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_39E5FA4EBC858D06E085CBB9128BD7FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_39E5FA4EBC858D06E085CBB9128BD7FB" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_39E5FA4EBC858D06E085CBB9128BD7FB" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RippleBrandCollectiveLLCMember" xlink:label="loc_hsy_RippleBrandCollectiveLLCMember_17EE6F0B202A10BEFA3DCBB9128B59F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847" xlink:to="loc_hsy_RippleBrandCollectiveLLCMember_17EE6F0B202A10BEFA3DCBB9128B59F4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_KRAVEPureFoodsInc.Member" xlink:label="loc_hsy_KRAVEPureFoodsInc.Member_ECF4AB7336A061C0E244CBB9128B329C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847" xlink:to="loc_hsy_KRAVEPureFoodsInc.Member_ECF4AB7336A061C0E244CBB9128B329C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_35BEBA50E3A8B0CC502ACBB9128B4CC9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_F1644F300F84653C344CCBB9128B3847" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_35BEBA50E3A8B0CC502ACBB9128B4CC9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_810B1A63598547789F94CBB9128BE280" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_49E448D8D95362201520CBB9128B7EA1" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_810B1A63598547789F94CBB9128BE280" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2305C922DE089A0AFA23CBB9128B0AC1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_810B1A63598547789F94CBB9128BE280" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2305C922DE089A0AFA23CBB9128B0AC1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2305C922DE089A0AFA23CBB9128B0AC1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_810B1A63598547789F94CBB9128BE280" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2305C922DE089A0AFA23CBB9128B0AC1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationAxis" xlink:label="loc_us-gaap_DisposalGroupClassificationAxis_B45595F40B090A4BE406CBB9128B414B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_49E448D8D95362201520CBB9128B7EA1" xlink:to="loc_us-gaap_DisposalGroupClassificationAxis_B45595F40B090A4BE406CBB9128B414B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_0BFC967B422E382FBD17CBB9128BAB41_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_B45595F40B090A4BE406CBB9128B414B" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_0BFC967B422E382FBD17CBB9128BAB41_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupClassificationDomain" xlink:label="loc_us-gaap_DisposalGroupClassificationDomain_0BFC967B422E382FBD17CBB9128BAB41" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DisposalGroupClassificationAxis_B45595F40B090A4BE406CBB9128B414B" xlink:to="loc_us-gaap_DisposalGroupClassificationDomain_0BFC967B422E382FBD17CBB9128BAB41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_680878EAE15C415C5B5FCBB9128BAA7F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_56F014F23E3673521DCECBB9128BF688" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_680878EAE15C415C5B5FCBB9128BAA7F" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_73B48DDB48301BB34F561E524982C819" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_73B48DDB48301BB34F561E524982C819" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_FAD977F04906FE814AA41E52498297A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_73B48DDB48301BB34F561E524982C819" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_FAD977F04906FE814AA41E52498297A2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_FAD977F04906FE814AA41E52498297A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_73B48DDB48301BB34F561E524982C819" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_FAD977F04906FE814AA41E52498297A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringChargesMember" xlink:label="loc_us-gaap_RestructuringChargesMember_02843CC886DD5F22CE4E1E524982B135" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_FAD977F04906FE814AA41E52498297A2" xlink:to="loc_us-gaap_RestructuringChargesMember_02843CC886DD5F22CE4E1E524982B135" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_75B9533A3165DE88C7CE1E524982AB47" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_75B9533A3165DE88C7CE1E524982AB47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_D8FA7FDD59458B9891C41E524982A9B6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_75B9533A3165DE88C7CE1E524982AB47" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_D8FA7FDD59458B9891C41E524982A9B6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_D8FA7FDD59458B9891C41E524982A9B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_75B9533A3165DE88C7CE1E524982AB47" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_D8FA7FDD59458B9891C41E524982A9B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_D9BDA5B7EA3DCC811C2C1E524982C458" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_D8FA7FDD59458B9891C41E524982A9B6" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_D9BDA5B7EA3DCC811C2C1E524982C458" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7F3D78D3FD5F4748BBFC1E524982697C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7F3D78D3FD5F4748BBFC1E524982697C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7F3D78D3FD5F4748BBFC1E524982697C" xlink:to="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7F3D78D3FD5F4748BBFC1E524982697C" xlink:to="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NorthAmericaMember" xlink:label="loc_us-gaap_NorthAmericaMember_C7A68C7540F3DB7790831E52498244F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA" xlink:to="loc_us-gaap_NorthAmericaMember_C7A68C7540F3DB7790831E52498244F8" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_190EA378BAD979AE451E1E52498286F8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_65E3A5EC3452CF92AAC01E52498203DA" xlink:to="loc_hsy_InternationalandOtherSegmentMember_190EA378BAD979AE451E1E52498286F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_8926FF9C3EDA5DF5EE531E524982038F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:to="loc_us-gaap_RestructuringPlanAxis_8926FF9C3EDA5DF5EE531E524982038F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_8926FF9C3EDA5DF5EE531E524982038F" xlink:to="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_8926FF9C3EDA5DF5EE531E524982038F" xlink:to="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NorthAmericaMember" xlink:label="loc_us-gaap_NorthAmericaMember_982E512EA0DEC3BF3E751E524982A556" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854" xlink:to="loc_us-gaap_NorthAmericaMember_982E512EA0DEC3BF3E751E524982A556" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ChinaStructureOptimizationMember" xlink:label="loc_hsy_ChinaStructureOptimizationMember_B232DAEEE4D9D890FED51E52498227AD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854" xlink:to="loc_hsy_ChinaStructureOptimizationMember_B232DAEEE4D9D890FED51E52498227AD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ProductivityInitiative2015Member" xlink:label="loc_hsy_ProductivityInitiative2015Member_C63BA5C2A45C42CF6B2A1E5249829F18" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_4B16AF1E7D1B89F45FEA1E524982E854" xlink:to="loc_hsy_ProductivityInitiative2015Member_C63BA5C2A45C42CF6B2A1E5249829F18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_5A15C253F434EDB633751E52498239E7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_B0AD403CA83FCD75B1F71E524982B8F2" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_5A15C253F434EDB633751E52498239E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_F664F4E53C8B61AEAFE91E5249821F85_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_5A15C253F434EDB633751E52498239E7" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_F664F4E53C8B61AEAFE91E5249821F85_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_F664F4E53C8B61AEAFE91E5249821F85" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_5A15C253F434EDB633751E52498239E7" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_F664F4E53C8B61AEAFE91E5249821F85" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OneTimeTerminationBenefitsMember" xlink:label="loc_us-gaap_OneTimeTerminationBenefitsMember_8A7C6FEC7B678F47262A1E52498233E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_F664F4E53C8B61AEAFE91E5249821F85" xlink:to="loc_us-gaap_OneTimeTerminationBenefitsMember_8A7C6FEC7B678F47262A1E52498233E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_3BE554D5CC1C776FE5BF1E524982F342" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_3BE554D5CC1C776FE5BF1E524982F342" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_3CB219573DCC353B3F341E5249824B26" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_RestructuringCharges_3CB219573DCC353B3F341E5249824B26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_F86AC1D666C0B5FD1B6F1E524982A855" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_F86AC1D666C0B5FD1B6F1E524982A855" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RestructuringandRelatedCostPeriodofIncurredRestructuringCosts" xlink:label="loc_hsy_RestructuringandRelatedCostPeriodofIncurredRestructuringCosts_C74D94236B1E7DAEFF871E524982AE3A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_hsy_RestructuringandRelatedCostPeriodofIncurredRestructuringCosts_C74D94236B1E7DAEFF871E524982AE3A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_51D64ABFD53730405B461E524982BB3F" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedNumberOfPositionsEliminated_51D64ABFD53730405B461E524982BB3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringAndRelatedCostCostIncurredToDate1" xlink:label="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_2FE11E36D5459CF9FBF61E524982E230" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_8EF9AB032D37F4BE9CB81E5249824714" xlink:to="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_2FE11E36D5459CF9FBF61E524982E230" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesRealigmnmentReserveRollforwardDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_DF05F3EEC53052DB81CB05764E16C1A8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_A5F363F6D3F182DB7F6805764E16AECE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_DF05F3EEC53052DB81CB05764E16C1A8" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_A5F363F6D3F182DB7F6805764E16AECE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_A05C920ED627943584A905764E163C14" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_A5F363F6D3F182DB7F6805764E16AECE" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_A05C920ED627943584A905764E163C14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_60A37EE62B8F84F0FB3A05764E163609_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_A05C920ED627943584A905764E163C14" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_60A37EE62B8F84F0FB3A05764E163609_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_60A37EE62B8F84F0FB3A05764E163609" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_A05C920ED627943584A905764E163C14" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_60A37EE62B8F84F0FB3A05764E163609" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringReserveRollForward" xlink:label="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_DF05F3EEC53052DB81CB05764E16C1A8" xlink:to="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringReserve" xlink:label="loc_us-gaap_RestructuringReserve_EACCA613BB86B2C49B9805764E165A70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:to="loc_us-gaap_RestructuringReserve_EACCA613BB86B2C49B9805764E165A70" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RestructuringChargesBusinessRealignmentReserve" xlink:label="loc_hsy_RestructuringChargesBusinessRealignmentReserve_3DF97851B93F4C9A153F05764E16B926" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:to="loc_hsy_RestructuringChargesBusinessRealignmentReserve_3DF97851B93F4C9A153F05764E16B926" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsForRestructuring" xlink:label="loc_us-gaap_PaymentsForRestructuring_496E2911BD2DB13FC50105764E161B5A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:to="loc_us-gaap_PaymentsForRestructuring_496E2911BD2DB13FC50105764E161B5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringReserveAccrualAdjustment1" xlink:label="loc_us-gaap_RestructuringReserveAccrualAdjustment1_29DB6B66146C1197F89E05764E16F944" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringReserveRollForward_227600831F885A80282305764E163C29" xlink:to="loc_us-gaap_RestructuringReserveAccrualAdjustment1_29DB6B66146C1197F89E05764E16F944" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BusinessRealignmentActivitiesRealignmentRelatedChargesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_6A3021667D4FBDF94FC51F89B336F88C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_6A3021667D4FBDF94FC51F89B336F88C" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_95B0DA306FEA56F873B61F89B336018A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_95B0DA306FEA56F873B61F89B336018A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_95B0DA306FEA56F873B61F89B336018A" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TypeOfRestructuringDomain" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_95B0DA306FEA56F873B61F89B336018A" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeSeveranceMember" xlink:label="loc_us-gaap_EmployeeSeveranceMember_2E8EE28FC4BDF22DF0401F89B336A266" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:to="loc_us-gaap_EmployeeSeveranceMember_2E8EE28FC4BDF22DF0401F89B336A266" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_AcceleratedDepreciationandAmortizationMember" xlink:label="loc_hsy_AcceleratedDepreciationandAmortizationMember_4D9BA2DAA40E7C7F7CE41F89B33696BB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:to="loc_hsy_AcceleratedDepreciationandAmortizationMember_4D9BA2DAA40E7C7F7CE41F89B33696BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherRestructuringMember" xlink:label="loc_us-gaap_OtherRestructuringMember_0A1D7594957B73BE49891F89B336EFC9" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:to="loc_us-gaap_OtherRestructuringMember_0A1D7594957B73BE49891F89B336EFC9" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PensionSettlementChargeMember" xlink:label="loc_hsy_PensionSettlementChargeMember_79099F3E68AF775F2AAE1F89B336FAB4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_44DAB9E4D44B590542FC1F89B3367422" xlink:to="loc_hsy_PensionSettlementChargeMember_79099F3E68AF775F2AAE1F89B336FAB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A61E52CE99786D6EA7501F89B336B716" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A61E52CE99786D6EA7501F89B336B716" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_41282911940C773EFCC31F89B33609EC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A61E52CE99786D6EA7501F89B336B716" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_41282911940C773EFCC31F89B33609EC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_41282911940C773EFCC31F89B33609EC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_A61E52CE99786D6EA7501F89B336B716" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_41282911940C773EFCC31F89B33609EC" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_MaunaLoaMacadamiaNutCorporationMember" xlink:label="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_36CCA446C7576E37936B1F89B3368651" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_41282911940C773EFCC31F89B33609EC" xlink:to="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_36CCA446C7576E37936B1F89B3368651" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanAxis" xlink:label="loc_us-gaap_RestructuringPlanAxis_B0D1BFE42AA88C48DDAF1F89B3360327" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:to="loc_us-gaap_RestructuringPlanAxis_B0D1BFE42AA88C48DDAF1F89B3360327" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_B0D1BFE42AA88C48DDAF1F89B3360327" xlink:to="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringPlanDomain" xlink:label="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_B0D1BFE42AA88C48DDAF1F89B3360327" xlink:to="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ChinaStructureOptimizationMember" xlink:label="loc_hsy_ChinaStructureOptimizationMember_53531F73F134B35C74331F89B336280F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:to="loc_hsy_ChinaStructureOptimizationMember_53531F73F134B35C74331F89B336280F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ProductivityInitiative2015Member" xlink:label="loc_hsy_ProductivityInitiative2015Member_3E7427679BA1B64125AE1F89B3360EC3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:to="loc_hsy_ProductivityInitiative2015Member_3E7427679BA1B64125AE1F89B3360EC3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_OtherInternationalRestructuringProgramsMember" xlink:label="loc_hsy_OtherInternationalRestructuringProgramsMember_D2770342E3BC30CC2C061F89B336CF70" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:to="loc_hsy_OtherInternationalRestructuringProgramsMember_D2770342E3BC30CC2C061F89B336CF70" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NextCenturyProgramMember" xlink:label="loc_hsy_NextCenturyProgramMember_2A48CE38BF92FC7628181F89B336E4AD" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_FD2C6EDD96707F0F9AE11F89B3361D2B" xlink:to="loc_hsy_NextCenturyProgramMember_2A48CE38BF92FC7628181F89B336E4AD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_B97D9123A9806ECCBD421F89B336D418" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_02712CC31318B0FFA0AB1F89B336452D" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_B97D9123A9806ECCBD421F89B336D418" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B97D9123A9806ECCBD421F89B336D418" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_B97D9123A9806ECCBD421F89B336D418" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfSalesMember" xlink:label="loc_us-gaap_CostOfSalesMember_A2AE59FA20ACBB506AF11F89B336950E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2" xlink:to="loc_us-gaap_CostOfSalesMember_A2AE59FA20ACBB506AF11F89B336950E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_D3D5E9AEDBFB83A6CFE41F89B336787A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_D3D5E9AEDBFB83A6CFE41F89B336787A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringChargesMember" xlink:label="loc_us-gaap_RestructuringChargesMember_8507F470080B635C8EF71F89B336E274" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_A61B41A0433CBE7662FD1F89B3362BA2" xlink:to="loc_us-gaap_RestructuringChargesMember_8507F470080B635C8EF71F89B336E274" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_1C02F69F39B96AC89C2F1F89B336F14E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_6A3021667D4FBDF94FC51F89B336F88C" xlink:to="loc_us-gaap_RestructuringCharges_1C02F69F39B96AC89C2F1F89B336F14E" 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/CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingenciesLineItems" xlink:label="loc_us-gaap_LossContingenciesLineItems_A5FDEACD0C27A28A97AEBC4F46B637D4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingenciesTable" xlink:label="loc_us-gaap_LossContingenciesTable_A3A16759080991C4186ABC4F46B65324" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_A5FDEACD0C27A28A97AEBC4F46B637D4" xlink:to="loc_us-gaap_LossContingenciesTable_A3A16759080991C4186ABC4F46B65324" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_5C7F6CC0042C20B922B8BC4F46B67C9A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_A3A16759080991C4186ABC4F46B65324" xlink:to="loc_us-gaap_StatementGeographicalAxis_5C7F6CC0042C20B922B8BC4F46B67C9A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_ABBA455E8A319DD949DABC4F46B6AAD9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_5C7F6CC0042C20B922B8BC4F46B67C9A" xlink:to="loc_us-gaap_SegmentGeographicalDomain_ABBA455E8A319DD949DABC4F46B6AAD9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_ABBA455E8A319DD949DABC4F46B6AAD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_5C7F6CC0042C20B922B8BC4F46B67C9A" xlink:to="loc_us-gaap_SegmentGeographicalDomain_ABBA455E8A319DD949DABC4F46B6AAD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseAxis" xlink:label="loc_us-gaap_LitigationCaseAxis_5BE5182C81F2A08939B1BC4F46B64827" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_A3A16759080991C4186ABC4F46B65324" xlink:to="loc_us-gaap_LitigationCaseAxis_5BE5182C81F2A08939B1BC4F46B64827" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseTypeDomain" xlink:label="loc_us-gaap_LitigationCaseTypeDomain_DF39FBF377B680E4390FBC4F46B69D23_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationCaseAxis_5BE5182C81F2A08939B1BC4F46B64827" xlink:to="loc_us-gaap_LitigationCaseTypeDomain_DF39FBF377B680E4390FBC4F46B69D23_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseTypeDomain" xlink:label="loc_us-gaap_LitigationCaseTypeDomain_DF39FBF377B680E4390FBC4F46B69D23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationCaseAxis_5BE5182C81F2A08939B1BC4F46B64827" xlink:to="loc_us-gaap_LitigationCaseTypeDomain_DF39FBF377B680E4390FBC4F46B69D23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusAxis" xlink:label="loc_us-gaap_LitigationStatusAxis_1D9524D2DE8CA217FFCDBC4F46B6772B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_A3A16759080991C4186ABC4F46B65324" xlink:to="loc_us-gaap_LitigationStatusAxis_1D9524D2DE8CA217FFCDBC4F46B6772B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusDomain" xlink:label="loc_us-gaap_LitigationStatusDomain_36C7B0D57391730C4FD8BC4F46B6D151_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LitigationStatusAxis_1D9524D2DE8CA217FFCDBC4F46B6772B" xlink:to="loc_us-gaap_LitigationStatusDomain_36C7B0D57391730C4FD8BC4F46B6D151_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusDomain" xlink:label="loc_us-gaap_LitigationStatusDomain_36C7B0D57391730C4FD8BC4F46B6D151" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LitigationStatusAxis_1D9524D2DE8CA217FFCDBC4F46B6772B" xlink:to="loc_us-gaap_LitigationStatusDomain_36C7B0D57391730C4FD8BC4F46B6D151" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseAndRentalExpense" xlink:label="loc_us-gaap_LeaseAndRentalExpense_774731EC0F49EAEB88FABC4F46B6B987" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_A5FDEACD0C27A28A97AEBC4F46B637D4" xlink:to="loc_us-gaap_LeaseAndRentalExpense_774731EC0F49EAEB88FABC4F46B6B987" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesOperatingLeaseObligationsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesPurchaseObligationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_1D9905AC4B844FD49FADBC4F46D43875" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationTable" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_98205414EDB4E30017E8BC4F46D4D104" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_1D9905AC4B844FD49FADBC4F46D43875" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_98205414EDB4E30017E8BC4F46D4D104" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_08D78987B014400EBFAABC4F46D476C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_98205414EDB4E30017E8BC4F46D4D104" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_08D78987B014400EBFAABC4F46D476C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain" xlink:label="loc_us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain_C29C6833E3035C5534AEBC4F46D48F08_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_08D78987B014400EBFAABC4F46D476C1" xlink:to="loc_us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain_C29C6833E3035C5534AEBC4F46D48F08_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain" xlink:label="loc_us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain_C29C6833E3035C5534AEBC4F46D48F08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_08D78987B014400EBFAABC4F46D476C1" xlink:to="loc_us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain_C29C6833E3035C5534AEBC4F46D48F08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoriesMember" xlink:label="loc_us-gaap_InventoriesMember_2CB45E5C1663EF2C3566BC4F46D433D4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnconditionalPurchaseObligationCategoryOfGoodsOrServicesAcquiredDomain_C29C6833E3035C5534AEBC4F46D48F08" xlink:to="loc_us-gaap_InventoriesMember_2CB45E5C1663EF2C3566BC4F46D433D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationLineItems_1D9905AC4B844FD49FADBC4F46D43875" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_2EE046760A52C093D0B0BC4F46D4933B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_2EE046760A52C093D0B0BC4F46D4933B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_332D2D14DE62F792D846BC4F46D48704" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_332D2D14DE62F792D846BC4F46D48704" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_3E9317A38DE22C8AF52CBC4F46DE0147" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_3E9317A38DE22C8AF52CBC4F46DE0147" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_115BB73315240049DB4EBC4F46DE151F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationAbstract_8B3434AC4685F28722D3BC4F46D43E52" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_115BB73315240049DB4EBC4F46DE151F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CommitmentsAndContingenciesTables" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_6EC5BAB5501A420C5CB6EF83195F1945" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_1B36A212F0986118D296EF83195F3497" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_6EC5BAB5501A420C5CB6EF83195F1945" xlink:to="loc_us-gaap_StatementTable_1B36A212F0986118D296EF83195F3497" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_4B4B091501375C861622EF83195F88F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1B36A212F0986118D296EF83195F3497" xlink:to="loc_us-gaap_StatementClassOfStockAxis_4B4B091501375C861622EF83195F88F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4B4B091501375C861622EF83195F88F7" xlink:to="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4B4B091501375C861622EF83195F88F7" xlink:to="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_69C2AC396977EB38007BEF83195F8EF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917" xlink:to="loc_hsy_HersheyCommonStockMember_69C2AC396977EB38007BEF83195F8EF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_93B496590014F5D96205EF83195FD5DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_357004BFF84C3B7DCF4AEF83195FD917" xlink:to="loc_us-gaap_CommonClassBMember_93B496590014F5D96205EF83195FD5DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsAbstract" xlink:label="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6EC5BAB5501A420C5CB6EF83195F1945" xlink:to="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrentAbstract" xlink:label="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_86C011AEC4B28014D4CDEF83195F6679" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_86C011AEC4B28014D4CDEF83195F6679" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_EAC2959B15E2FA2471D3EF83195FED83" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_EAC2959B15E2FA2471D3EF83195FED83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_B31E04CB7A4D795F9920EF83195F87AA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:to="loc_us-gaap_InventoryNet_B31E04CB7A4D795F9920EF83195F87AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_EA29D1F9C6A06E87AF80EF83195F703F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_EA29D1F9C6A06E87AF80EF83195F703F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_9912898D331E317E8F46EF83195F46D5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_2DB024E45653FF3A9E0FEF83195F5ECF" xlink:to="loc_us-gaap_AssetsCurrent_9912898D331E317E8F46EF83195F46D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_75582E5DF8B6AE9F2714EF83195F74E2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_75582E5DF8B6AE9F2714EF83195F74E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_DEDED3600F14B2C211C8EF83195F7B92" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_Goodwill_DEDED3600F14B2C211C8EF83195F7B92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3D8165CC907B9E07DE6FEF83195F7BE7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3D8165CC907B9E07DE6FEF83195F7BE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_AB5AE7BE029A80C7C37FEF83195F846C" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_AB5AE7BE029A80C7C37FEF83195F846C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_DC5CBA11BF3AA7548DBBEF83195FEB5D" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_DeferredTaxAssetsLiabilitiesNetNoncurrent_DC5CBA11BF3AA7548DBBEF83195FEB5D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_6D8E023A29433A7E6370EF83195FDE89" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_2E612A920FDEBB7603E8EF83195F85E9" xlink:to="loc_us-gaap_Assets_6D8E023A29433A7E6370EF83195FDE89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_6EC5BAB5501A420C5CB6EF83195F1945" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_E945B66C7180C21C0FC2EF83195FFC86" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_AccountsPayableCurrent_E945B66C7180C21C0FC2EF83195FFC86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3E0770F19EB31147C0D8EF83195F2806" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_3E0770F19EB31147C0D8EF83195F2806" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_3100F03B06D2E3791359EF83195F7C39" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_3100F03B06D2E3791359EF83195F7C39" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_F92586BC90D22E8445B7EF83195F0C41" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_ShortTermBorrowings_F92586BC90D22E8445B7EF83195F0C41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_41D66A949D46E6F2C910EF83195F8CD0" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_LongTermDebtCurrent_41D66A949D46E6F2C910EF83195F8CD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_2478902638CD1E572B86EF83195F9EEE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_619211C53741369EC5DFEF83195F5D47" xlink:to="loc_us-gaap_LiabilitiesCurrent_2478902638CD1E572B86EF83195F9EEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_3D061FC618E6DE74D181EF83196F0655" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_3D061FC618E6DE74D181EF83196F0655" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_02AD3D8FF03228FC825AEF83196FD2D1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_02AD3D8FF03228FC825AEF83196FD2D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_C64453A27C64C2D47075EF83196F08A4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesNoncurrent_C64453A27C64C2D47075EF83196F08A4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_F0DBD50C4C6AC1AD2534EF83196F9ACB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_Liabilities_F0DBD50C4C6AC1AD2534EF83196F9ACB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_53C49315BC2D54EAD2C3EF83196FA726" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_PreferredStockValue_53C49315BC2D54EAD2C3EF83196FA726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_CF25977723A976FD1036EF83196FB51C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_CommonStockValue_CF25977723A976FD1036EF83196FB51C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_26E7080C635216EABC61EF83196F9776" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_AdditionalPaidInCapital_26E7080C635216EABC61EF83196F9776" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_D6972C16A0D5364649BAEF83196F9155" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_D6972C16A0D5364649BAEF83196F9155" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_D7E1C440ACD897E41C37EF83196F3816" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_TreasuryStockValue_D7E1C440ACD897E41C37EF83196F3816" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_DFAB5B20F8C3F4598F63EF83196F86A3" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_DFAB5B20F8C3F4598F63EF83196F86A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_3ABA37914B79CB7226FCEF83196F2F99" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_StockholdersEquity_3ABA37914B79CB7226FCEF83196F2F99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_EB5A2616738DBBC2E1DCEF83196F61E1" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_MinorityInterest_EB5A2616738DBBC2E1DCEF83196F61E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4A49B7E84CB96536DB40EF83196F4A88" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_8485E5A320DE808BD5E4EF83196F921B" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_4A49B7E84CB96536DB40EF83196F4A88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_25858368486A456350F2EF83196F863F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_51F71AFDD12BB239A912EF83195F4AD8" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_25858368486A456350F2EF83196F863F" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_FC4870BB377B5B1C28D56857893EB704" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_8E56D261264D377215C16857893E3536" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_FC4870BB377B5B1C28D56857893EB704" xlink:to="loc_us-gaap_StatementTable_8E56D261264D377215C16857893E3536" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_77FA0BB40453BD5283686857893ECFE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_8E56D261264D377215C16857893E3536" xlink:to="loc_us-gaap_StatementClassOfStockAxis_77FA0BB40453BD5283686857893ECFE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_77FA0BB40453BD5283686857893ECFE6" xlink:to="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_77FA0BB40453BD5283686857893ECFE6" xlink:to="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_DA314E57439CA52A5C286857893E20E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2" xlink:to="loc_hsy_HersheyCommonStockMember_DA314E57439CA52A5C286857893E20E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_1DCE0449B7520323FD696857893E1960" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_FAABF32B35E2D9B0EE336857893E46B2" xlink:to="loc_us-gaap_CommonClassBMember_1DCE0449B7520323FD696857893E1960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_F410FF8492BE20F421256857893E3F1F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_FC4870BB377B5B1C28D56857893EB704" xlink:to="loc_us-gaap_PreferredStockSharesIssued_F410FF8492BE20F421256857893E3F1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_5679FDE1B67909A12B766857893EC900" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_FC4870BB377B5B1C28D56857893EB704" xlink:to="loc_us-gaap_CommonStockSharesIssued_5679FDE1B67909A12B766857893EC900" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_9C5CC8C06F48B45FEE316857893E11F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_FC4870BB377B5B1C28D56857893EB704" xlink:to="loc_us-gaap_TreasuryStockShares_9C5CC8C06F48B45FEE316857893E11F4" 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:definitionLink xlink:role="http://www.hersheys.com/role/ConsolidatedStatementsOfIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_F7E9DE101333F114305E28E3F4E0CD92" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_StatementTable_F7E9DE101333F114305E28E3F4E0CD92" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_EC93C03338F66EE13F4328E3F4E06DA9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_F7E9DE101333F114305E28E3F4E0CD92" xlink:to="loc_us-gaap_StatementClassOfStockAxis_EC93C03338F66EE13F4328E3F4E06DA9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_EC93C03338F66EE13F4328E3F4E06DA9" xlink:to="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_EC93C03338F66EE13F4328E3F4E06DA9" xlink:to="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_2B7D4FAE74A0DC2A9F4728E3F4E07868" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9" xlink:to="loc_hsy_HersheyCommonStockMember_2B7D4FAE74A0DC2A9F4728E3F4E07868" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_923AF018738D8BE4F70428E3F4E037DD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_EFE5307401FC4C741B1A28E3F4E0CBD9" xlink:to="loc_us-gaap_CommonClassBMember_923AF018738D8BE4F70428E3F4E037DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaap_SalesRevenueNet_9EBACADDB3242256489328E3F4E0FAF5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_SalesRevenueNet_9EBACADDB3242256489328E3F4E0FAF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsSold" xlink:label="loc_us-gaap_CostOfGoodsSold_7BD25C4DA3486A8FD91428E3F4E0E31F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_CostOfGoodsSold_7BD25C4DA3486A8FD91428E3F4E0E31F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_60EF075C57303392687A28E3F4E049AB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_GrossProfit_60EF075C57303392687A28E3F4E049AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_07D5D483CD4D312E529F28E3F4E01EAE" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_07D5D483CD4D312E529F28E3F4E01EAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_72DA4363C611182ADE0128E3F4E1A89E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_72DA4363C611182ADE0128E3F4E1A89E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_RestructuringChargesBusinessRealignment" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_0A8F50B42F1EC367A86E28E3F4E19180" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_0A8F50B42F1EC367A86E28E3F4E19180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_598E69ECCCC4561C12EF28E3F4E19341" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_OperatingIncomeLoss_598E69ECCCC4561C12EF28E3F4E19341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_52F090DBD3FE724628BD28E3F4E1EEF8" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_52F090DBD3FE724628BD28E3F4E1EEF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_87EE7DD4DD8B0D3F625D28E3F4E100B5" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_87EE7DD4DD8B0D3F625D28E3F4E100B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_8F21039D7979DC5F2F6B28E3F4E1A8BB" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_8F21039D7979DC5F2F6B28E3F4E1A8BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_77CBBD889A5BC519206128E3F4E11EBC" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_77CBBD889A5BC519206128E3F4E11EBC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_B3C891CF87CBA63C586728E3F4E1D0C0" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_NetIncomeLoss_B3C891CF87CBA63C586728E3F4E1D0C0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_3564F8B50DA09D8369A628E3F4E12A48" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_3564F8B50DA09D8369A628E3F4E12A48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_CC3690DCC7E2EDB07C5528E3F4E1D906" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_3564F8B50DA09D8369A628E3F4E12A48" xlink:to="loc_us-gaap_EarningsPerShareBasic_CC3690DCC7E2EDB07C5528E3F4E1D906" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_BAF2BCBFA5F525A4CE1D28E3F4E1B9DB" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_BAF2BCBFA5F525A4CE1D28E3F4E1B9DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_D204F9687CD834A0586928E3F4E1E386" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_BAF2BCBFA5F525A4CE1D28E3F4E1B9DB" xlink:to="loc_us-gaap_EarningsPerShareDiluted_D204F9687CD834A0586928E3F4E1E386" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DividendsCommonStockAbstract" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_6AF245DFDF071E33772228E3F4E127DF" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D89F2C37F6D1C9730D8528E3F4E01392" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_6AF245DFDF071E33772228E3F4E127DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_5CE864A79844E6EC2A3128E3F4E1F526" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_6AF245DFDF071E33772228E3F4E127DF" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_5CE864A79844E6EC2A3128E3F4E1F526" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_D5CB882758E23315470B28E3F477F9D6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_B21CB3FB4B1F41D1285628E3F4766F6B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_D5CB882758E23315470B28E3F477F9D6" xlink:to="loc_us-gaap_StatementTable_B21CB3FB4B1F41D1285628E3F4766F6B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_82668EBAB2570743309E28E3F4776B6F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B21CB3FB4B1F41D1285628E3F4766F6B" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_82668EBAB2570743309E28E3F4776B6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_82668EBAB2570743309E28E3F4776B6F" xlink:to="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_82668EBAB2570743309E28E3F4776B6F" xlink:to="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockMember" xlink:label="loc_us-gaap_PreferredStockMember_05AA0C2C5C9D5920F5ED28E3F4776C8A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_PreferredStockMember_05AA0C2C5C9D5920F5ED28E3F4776C8A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember" xlink:label="loc_us-gaap_CommonStockMember_5291D1F698B8A5DDD45028E3F47705D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_CommonStockMember_5291D1F698B8A5DDD45028E3F47705D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_32251B61C7FABDFEC4F828E3F477104B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_32251B61C7FABDFEC4F828E3F477104B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:label="loc_us-gaap_RetainedEarningsMember_DA4440E18B5A97847A4428E3F4772E62" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_RetainedEarningsMember_DA4440E18B5A97847A4428E3F4772E62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember" xlink:label="loc_us-gaap_TreasuryStockMember_35F7826EC5B0DA0CA95828E3F4770DD3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_TreasuryStockMember_35F7826EC5B0DA0CA95828E3F4770DD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_47C6C338A7E5EB66F50E28E3F4775415" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_47C6C338A7E5EB66F50E28E3F4775415" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_77F03C4859C7F5D4EF8C28E3F4770137" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_07FDC93B404EB1916E8A28E3F4773ED7" xlink:to="loc_us-gaap_NoncontrollingInterestMember_77F03C4859C7F5D4EF8C28E3F4770137" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_8ECE7F46CA368EB56E3B28E3F477ABFF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_B21CB3FB4B1F41D1285628E3F4766F6B" xlink:to="loc_us-gaap_StatementClassOfStockAxis_8ECE7F46CA368EB56E3B28E3F477ABFF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_8ECE7F46CA368EB56E3B28E3F477ABFF" xlink:to="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_8ECE7F46CA368EB56E3B28E3F477ABFF" xlink:to="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_F2AB8B2DAF2402103E3428E3F47713B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58" xlink:to="loc_hsy_HersheyCommonStockMember_F2AB8B2DAF2402103E3428E3F47713B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_5BC5E2D684D00AE1C8EA28E3F4775516" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C11A1029B5B98488396E28E3F4771D58" xlink:to="loc_us-gaap_CommonClassBMember_5BC5E2D684D00AE1C8EA28E3F4775516" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_D5CB882758E23315470B28E3F477F9D6" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_9B7C223A52318CBEB5FA28E3F478AB28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_9B7C223A52318CBEB5FA28E3F478AB28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_983F4A6008648048EA7D28E3F4788F08" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_NetIncomeLoss_983F4A6008648048EA7D28E3F4788F08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3E7AAF87DEF1C5A3EF3E28E3F478D021" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_3E7AAF87DEF1C5A3EF3E28E3F478D021" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DividendsCommonStockAbstract" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_6AECAC0BA364162F15DB28E3F4781BCC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_6AECAC0BA364162F15DB28E3F4781BCC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:label="loc_us-gaap_DividendsCommonStockCash_2682A6EC1D97A863D36128E3F478D90E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_6AECAC0BA364162F15DB28E3F4781BCC" xlink:to="loc_us-gaap_DividendsCommonStockCash_2682A6EC1D97A863D36128E3F478D90E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecuritiesNetOfAdjustments" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecuritiesNetOfAdjustments_4E9B17E2877E7EA2611328E3F4788773" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueConversionOfConvertibleSecuritiesNetOfAdjustments_4E9B17E2877E7EA2611328E3F4788773" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_CD68F89AADFEC85C566B28E3F478E577" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_CD68F89AADFEC85C566B28E3F478E577" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet" xlink:label="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_20C86B3AEFAAD056D43C28E3F4785F69" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_AdjustmentToAdditionalPaidInCapitalIncomeTaxEffectFromShareBasedCompensationNet_20C86B3AEFAAD056D43C28E3F4785F69" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_7788D436682941A33B5928E3F47876FC" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_7788D436682941A33B5928E3F47876FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_7AF3A8C92188E04EC17928E3F47841EE" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromBusinessCombination_7AF3A8C92188E04EC17928E3F47841EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ReclassificationsOfTemporaryToPermanentEquity" xlink:label="loc_us-gaap_ReclassificationsOfTemporaryToPermanentEquity_060833074770E348EE9528E3F478DD60" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_ReclassificationsOfTemporaryToPermanentEquity_060833074770E348EE9528E3F478DD60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_419C8AB7FD46B8AD20C328E3F4791CBE" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_66131477CC50A60274B128E3F4786B76" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_419C8AB7FD46B8AD20C328E3F4791CBE" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_62A8236A5E73A7838769685788599AA7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_E34311B5F2D23BF6E3B76857885860F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_62A8236A5E73A7838769685788599AA7" xlink:to="loc_us-gaap_StatementTable_E34311B5F2D23BF6E3B76857885860F0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_9BF91821D3CB84BA5C8A685788582E3E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_E34311B5F2D23BF6E3B76857885860F0" xlink:to="loc_us-gaap_StatementClassOfStockAxis_9BF91821D3CB84BA5C8A685788582E3E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_9BF91821D3CB84BA5C8A685788582E3E" xlink:to="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_9BF91821D3CB84BA5C8A685788582E3E" xlink:to="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_AD4E6B2D0579B9A00652685788591FA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384" xlink:to="loc_hsy_HersheyCommonStockMember_AD4E6B2D0579B9A00652685788591FA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_D219B5FB8499106DAC8168578859607A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_003798A86F04C820A13E685788582384" xlink:to="loc_us-gaap_CommonClassBMember_D219B5FB8499106DAC8168578859607A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_E811FFA1E5BCF051BD166857885946EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_62A8236A5E73A7838769685788599AA7" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_E811FFA1E5BCF051BD166857885946EE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstruments" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_EED59C8860535B03E6342352BA3C45DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_EED59C8860535B03E6342352BA3C45DC" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_86D864116BC2CF5F6DD32352BA3C979C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_EED59C8860535B03E6342352BA3C45DC" xlink:to="loc_us-gaap_HedgingDesignationAxis_86D864116BC2CF5F6DD32352BA3C979C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_86D864116BC2CF5F6DD32352BA3C979C" xlink:to="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_86D864116BC2CF5F6DD32352BA3C979C" xlink:to="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_A311AF9DD0B046BCB9772352BA3C2386" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_A311AF9DD0B046BCB9772352BA3C2386" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_62473A8B7F3AB790D2072352BA3D707C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4F798C7B222336ED171F2352BA3C9F04" xlink:to="loc_us-gaap_NondesignatedMember_62473A8B7F3AB790D2072352BA3D707C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_CE5F953E5315D89C40F82352BA3D9A92" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_EED59C8860535B03E6342352BA3C45DC" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_CE5F953E5315D89C40F82352BA3D9A92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_CE5F953E5315D89C40F82352BA3D9A92" xlink:to="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_CE5F953E5315D89C40F82352BA3D9A92" xlink:to="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_4841D899ACC81D64789B2352BA3DA3EF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA" xlink:to="loc_us-gaap_CashFlowHedgingMember_4841D899ACC81D64789B2352BA3DA3EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_DBD4BBCC4E71B98EE78A2352BA3DAE1F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_C09456414C69C4CC25182352BA3DACDA" xlink:to="loc_us-gaap_FairValueHedgingMember_DBD4BBCC4E71B98EE78A2352BA3DAE1F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_181167B6E06A99C359D62352BA3DB52C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_EED59C8860535B03E6342352BA3C45DC" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_181167B6E06A99C359D62352BA3DB52C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_181167B6E06A99C359D62352BA3DB52C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_181167B6E06A99C359D62352BA3DB52C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_12074C46052962AF9E462352BA3DC8FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:to="loc_us-gaap_CommodityContractMember_12074C46052962AF9E462352BA3DC8FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_41CD269A307CCF994F6D2352BA3DC874" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:to="loc_us-gaap_ForeignExchangeContractMember_41CD269A307CCF994F6D2352BA3DC874" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_F67053C62F0F549DA2E62352BA3D7197" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:to="loc_us-gaap_InterestRateContractMember_F67053C62F0F549DA2E62352BA3D7197" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_39973E8EA6E0E9E0B5232352BA3D4CA4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_3C91C8362C0FD70AADCF2352BA3DB176" xlink:to="loc_us-gaap_EquitySwapMember_39973E8EA6E0E9E0B5232352BA3D4CA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_F664E3FC5C94A87C3EC22352BA3E4D3D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:to="loc_us-gaap_DerivativeAssets_F664E3FC5C94A87C3EC22352BA3E4D3D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_8FB1A5C86FF1D5AB1E4D2352BA3E179D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:to="loc_us-gaap_DerivativeLiabilities_8FB1A5C86FF1D5AB1E4D2352BA3E179D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading" xlink:label="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_364736CDD6E7A7762B6F2352BA3E8271" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:to="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_364736CDD6E7A7762B6F2352BA3E8271" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading" xlink:label="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_8E1750ED4B1C3785A2192352BA3E1420" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_CBD13B4E0896C2BA35CB2352BA3DD634" xlink:to="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_8E1750ED4B1C3785A2192352BA3E1420" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsEffectsOfDerivativeInstrumentsOnConsolidatedStatementsOfIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_5DFD9D4BE3483DF02C6CBC4F497CB963" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:to="loc_us-gaap_DerivativeTable_5DFD9D4BE3483DF02C6CBC4F497CB963" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_9FAE26062B65E31FE3D1BC4F497C5561" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_5DFD9D4BE3483DF02C6CBC4F497CB963" xlink:to="loc_us-gaap_HedgingDesignationAxis_9FAE26062B65E31FE3D1BC4F497C5561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_9FAE26062B65E31FE3D1BC4F497C5561" xlink:to="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_9FAE26062B65E31FE3D1BC4F497C5561" xlink:to="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_25382848F762984ED482BC4F497CB5A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34" xlink:to="loc_us-gaap_NondesignatedMember_25382848F762984ED482BC4F497CB5A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_B163FBBF1A70EB8AA037BC4F497C8E3C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_AC8CEAD6A80214688CE1BC4F497C4D34" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_B163FBBF1A70EB8AA037BC4F497C8E3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19C8B43A25376E34B27EBC4F497C4E8B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_5DFD9D4BE3483DF02C6CBC4F497CB963" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19C8B43A25376E34B27EBC4F497C4E8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_E44F068FA3CF05155F08BC4F497CECBD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19C8B43A25376E34B27EBC4F497C4E8B" xlink:to="loc_us-gaap_HedgingRelationshipDomain_E44F068FA3CF05155F08BC4F497CECBD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_E44F068FA3CF05155F08BC4F497CECBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19C8B43A25376E34B27EBC4F497C4E8B" xlink:to="loc_us-gaap_HedgingRelationshipDomain_E44F068FA3CF05155F08BC4F497CECBD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_7730E7EE7216BFE0C8D6BC4F497CFA6D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_E44F068FA3CF05155F08BC4F497CECBD" xlink:to="loc_us-gaap_CashFlowHedgingMember_7730E7EE7216BFE0C8D6BC4F497CFA6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_1A1A581A7B88FBEE6F09BC4F497CE113" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_5DFD9D4BE3483DF02C6CBC4F497CB963" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_1A1A581A7B88FBEE6F09BC4F497CE113" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1A1A581A7B88FBEE6F09BC4F497CE113" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1A1A581A7B88FBEE6F09BC4F497CE113" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_E64023A5B17C7FCC7C10BC4F49861CDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:to="loc_us-gaap_CommodityContractMember_E64023A5B17C7FCC7C10BC4F49861CDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_A63FAAE4F5C28C6BB3F6BC4F49868AB6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:to="loc_us-gaap_ForeignExchangeContractMember_A63FAAE4F5C28C6BB3F6BC4F49868AB6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_30A97A68A2836727181EBC4F4986F6C7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:to="loc_us-gaap_InterestRateContractMember_30A97A68A2836727181EBC4F4986F6C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_8D4664F1A7BC51FF673BBC4F4986E4F2" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9E9FFB59DA82FE557A99BC4F49866371" xlink:to="loc_us-gaap_EquitySwapMember_8D4664F1A7BC51FF673BBC4F4986E4F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_567424E9D9B34FED152FBC4F498633C6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_567424E9D9B34FED152FBC4F498633C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_42920904BF89AB27EC22BC4F49860047" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInOtherComprehensiveIncomeEffectivePortionNet_42920904BF89AB27EC22BC4F49860047" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_28EDFA0801A657EE1661BC4F498644C3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossReclassifiedFromAccumulatedOCIIntoIncomeEffectivePortionNet_28EDFA0801A657EE1661BC4F498644C3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_412964E9E602478D2EA2BC4F4986679D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_41604239A086069DF36EBC4F49863EB6" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet_412964E9E602478D2EA2BC4F4986679D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DerivativeInstrumentsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_AE2452505D986EEB160E28AAC48A2047" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_AE2452505D986EEB160E28AAC48A2047" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5A1E00E81FE51FBE920628AAC48A0AE9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_AE2452505D986EEB160E28AAC48A2047" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5A1E00E81FE51FBE920628AAC48A0AE9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5A1E00E81FE51FBE920628AAC48A0AE9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_AE2452505D986EEB160E28AAC48A2047" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5A1E00E81FE51FBE920628AAC48A0AE9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_2E36A0509FBBDA37504B28AAC48AA336" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5A1E00E81FE51FBE920628AAC48A0AE9" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_2E36A0509FBBDA37504B28AAC48AA336" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_E2296F4D6705475882AB28AAC48A7130" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_E2296F4D6705475882AB28AAC48A7130" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E2296F4D6705475882AB28AAC48A7130" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_E2296F4D6705475882AB28AAC48A7130" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_33F8D3B893D84452BBBB28AAC48A13F2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:to="loc_us-gaap_CommodityContractMember_33F8D3B893D84452BBBB28AAC48A13F2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_ABD68125F60A20FD505D28AAC48A8FF5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:to="loc_us-gaap_ForeignExchangeContractMember_ABD68125F60A20FD505D28AAC48A8FF5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_3E826D022863743468CA28AAC48A7540" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:to="loc_us-gaap_InterestRateContractMember_3E826D022863743468CA28AAC48A7540" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_394C197F6A7A16ADBAFC28AAC48AF34D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:to="loc_us-gaap_EquitySwapMember_394C197F6A7A16ADBAFC28AAC48AF34D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestRateSwapMember" xlink:label="loc_us-gaap_InterestRateSwapMember_8EEEC877A79F81F2C00528AAC48AD0E8" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7003DF1C17A45F20183428AAC48A2E51" xlink:to="loc_us-gaap_InterestRateSwapMember_8EEEC877A79F81F2C00528AAC48AD0E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:label="loc_us-gaap_HedgingDesignationAxis_9450D656DB4226F6EABF28AAC48A7EA4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_HedgingDesignationAxis_9450D656DB4226F6EABF28AAC48A7EA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_9450D656DB4226F6EABF28AAC48A7EA4" xlink:to="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:label="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_9450D656DB4226F6EABF28AAC48A7EA4" xlink:to="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_E60DC8F088DAF1A6682328AAC48A8754" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_E60DC8F088DAF1A6682328AAC48A8754" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NondesignatedMember" xlink:label="loc_us-gaap_NondesignatedMember_05015906949569E9EE6B28AAC48ADBD3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_2BF6981A80B180F73F0B28AAC48A07EB" xlink:to="loc_us-gaap_NondesignatedMember_05015906949569E9EE6B28AAC48ADBD3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_F0B9F609BCF049B8A2BE28AAC48A0F9E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_F0B9F609BCF049B8A2BE28AAC48A0F9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_F0B9F609BCF049B8A2BE28AAC48A0F9E" xlink:to="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:label="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_F0B9F609BCF049B8A2BE28AAC48A0F9E" xlink:to="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:label="loc_us-gaap_CashFlowHedgingMember_F5D526B6C0D3F15B1BD028AAC48A6D36" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E" xlink:to="loc_us-gaap_CashFlowHedgingMember_F5D526B6C0D3F15B1BD028AAC48A6D36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:label="loc_us-gaap_FairValueHedgingMember_22BD9E4FFD29495ED2E128AAC48A291E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_D4F78AF3EB689C7BB66728AAC48A836E" xlink:to="loc_us-gaap_FairValueHedgingMember_22BD9E4FFD29495ED2E128AAC48A291E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_C09ED603963328828BB128AAC48A42E2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_RangeAxis_C09ED603963328828BB128AAC48A42E2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_C09ED603963328828BB128AAC48A42E2" xlink:to="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_C09ED603963328828BB128AAC48A42E2" xlink:to="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_C70E26F7C739D15A92B228AAC48A161E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8" xlink:to="loc_us-gaap_MinimumMember_C70E26F7C739D15A92B228AAC48A161E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_D62B8D1E48A57D1E426328AAC48A7C6F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_AABFD7B956A3E3F98D9128AAC48A76F8" xlink:to="loc_us-gaap_MaximumMember_D62B8D1E48A57D1E426328AAC48A7C6F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_F2281AE2C0D9A86A27E928AAC48A0306" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_A7C7E651204A1A9424A228AAC48ADEB0" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_F2281AE2C0D9A86A27E928AAC48A0306" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_3F9F416B394008B7473D28AAC48AA564_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F2281AE2C0D9A86A27E928AAC48A0306" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3F9F416B394008B7473D28AAC48AA564_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_3F9F416B394008B7473D28AAC48AA564" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_F2281AE2C0D9A86A27E928AAC48A0306" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3F9F416B394008B7473D28AAC48AA564" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestExpenseMember" xlink:label="loc_us-gaap_InterestExpenseMember_C12A2ACDA652214F480E28AAC48A92C4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_3F9F416B394008B7473D28AAC48AA564" xlink:to="loc_us-gaap_InterestExpenseMember_C12A2ACDA652214F480E28AAC48A92C4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_MinimumLengthofTimeHedgedinCashFlowHedge" xlink:label="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_8D89C5A6D8D95E8AC4C028AAC48A2C1B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_8D89C5A6D8D95E8AC4C028AAC48A2C1B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_F5EDF0E0D434BEFC2FFB28AAC48AF52F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_F5EDF0E0D434BEFC2FFB28AAC48AF52F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:label="loc_invest_DerivativeNotionalAmount_282F2B7FEC1C8A6149A228AAC48AD19C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_invest_DerivativeNotionalAmount_282F2B7FEC1C8A6149A228AAC48AD19C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities_996AF465D9997BD8D47328B44245CA54" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_IncreaseDecreaseInDerivativeAssetsAndLiabilities_996AF465D9997BD8D47328B44245CA54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeTermOfContract" xlink:label="loc_us-gaap_DerivativeTermOfContract_720BDB5034ED6416C18428AAC48AAF05" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_DerivativeTermOfContract_720BDB5034ED6416C18428AAC48AAF05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_8E8C2576CFC1071BB29728AAC48AA373" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_8E8C2576CFC1071BB29728AAC48AA373" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_BB6065826F12F65EB36328AAC48A2E50" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_B8DA53A25B98FF58841828AAC48A3019" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_BB6065826F12F65EB36328AAC48A2E50" 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/DocumentAndEntityInformation" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_258965AACC5E75E53FE768578855D1F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_DocumentInformationTable_258965AACC5E75E53FE768578855D1F1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_03014240CFD54E09E115685788550EF3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_258965AACC5E75E53FE768578855D1F1" xlink:to="loc_us-gaap_StatementClassOfStockAxis_03014240CFD54E09E115685788550EF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_03014240CFD54E09E115685788550EF3" xlink:to="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_03014240CFD54E09E115685788550EF3" xlink:to="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_D8503880EEACFA44F7BA685788555B09" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470" xlink:to="loc_hsy_HersheyCommonStockMember_D8503880EEACFA44F7BA685788555B09" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_236535D00669460188B96857885679CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_EBFF435AEDDEEF1D3F77685788555470" xlink:to="loc_us-gaap_CommonClassBMember_236535D00669460188B96857885679CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_2A1FA040FBE671A7CDC2685788560F32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityRegistrantName_2A1FA040FBE671A7CDC2685788560F32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_3EE0B1F31FB423E51E12685788562838" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityCentralIndexKey_3EE0B1F31FB423E51E12685788562838" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_30500536FBFF175FDF1F685788562DE8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_CurrentFiscalYearEndDate_30500536FBFF175FDF1F685788562DE8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_2517AA213DA3CCC2F8A168578856B45A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityFilerCategory_2517AA213DA3CCC2F8A168578856B45A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_15F7E44F6F7EDB6581BC68578856D955" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_DocumentType_15F7E44F6F7EDB6581BC68578856D955" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_C7FA97FD4A9ACC84B2D268578856EC29" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_DocumentPeriodEndDate_C7FA97FD4A9ACC84B2D268578856EC29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_0B905970475F2046265968578856342A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_DocumentFiscalYearFocus_0B905970475F2046265968578856342A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_597EE6D4CE9067C0A6D8685788560304" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_DocumentFiscalPeriodFocus_597EE6D4CE9067C0A6D8685788560304" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_1B74B6C2EA137F3F884F685788565F95" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_AmendmentFlag_1B74B6C2EA137F3F884F685788565F95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_4E4621E2FF5BDB8E54B8685788564888" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_4E4621E2FF5BDB8E54B8685788564888" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_0DFEE8063ECFE7117E7A685788565F0F" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_0DFEE8063ECFE7117E7A685788565F0F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_B17CCDCD7F81CCF84DAC68578856E865" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityVoluntaryFilers_B17CCDCD7F81CCF84DAC68578856E865" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_279217F82523CE0612DE68578856A25B" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityCurrentReportingStatus_279217F82523CE0612DE68578856A25B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityPublicFloat" xlink:label="loc_dei_EntityPublicFloat_621AB149980B445FA7AC6857885695D7" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_D8EC547AF918B4F03D1668578856E19F" xlink:to="loc_dei_EntityPublicFloat_621AB149980B445FA7AC6857885695D7" 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/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_44A1238B6BB647D6B8CAEF83174D8275" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_A2DA20CDBB1AEE6AF488EF83174DB2E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_44A1238B6BB647D6B8CAEF83174D8275" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_A2DA20CDBB1AEE6AF488EF83174DB2E2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_39C8AECBE16F8AB633FFEF83174D72EE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_A2DA20CDBB1AEE6AF488EF83174DB2E2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_39C8AECBE16F8AB633FFEF83174D72EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_39C8AECBE16F8AB633FFEF83174D72EE" xlink:to="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_39C8AECBE16F8AB633FFEF83174D72EE" xlink:to="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_A46C63B54CFE97B4BBC0EF83174DC60C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE" xlink:to="loc_hsy_HersheyCommonStockMember_A46C63B54CFE97B4BBC0EF83174DC60C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_54EF5E04A250F984D521EF83174D1A77" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_5760EB4CF580486A4518EF83174D6ACE" xlink:to="loc_us-gaap_CommonClassBMember_54EF5E04A250F984D521EF83174D1A77" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_4D52C4698F7580B756C9EF83174D57B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_A2DA20CDBB1AEE6AF488EF83174DB2E2" xlink:to="loc_us-gaap_AwardTypeAxis_4D52C4698F7580B756C9EF83174D57B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_4D52C4698F7580B756C9EF83174D57B3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_4D52C4698F7580B756C9EF83174D57B3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_4967EE70AA7A297E1D85EF83174DD72A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4" xlink:to="loc_us-gaap_EmployeeStockOptionMember_4967EE70AA7A297E1D85EF83174DD72A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_8AF160F2AC0A964B8F6AEF83174DD745" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_87B9B5E63C90FFDD315BEF83174DC8F4" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_8AF160F2AC0A964B8F6AEF83174DD745" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicTwoClassMethodAbstract" xlink:label="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_44A1238B6BB647D6B8CAEF83174D8275" xlink:to="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Dividends" xlink:label="loc_us-gaap_Dividends_D8C9F398B7F21C84F1DCEF83174DBAFD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:to="loc_us-gaap_Dividends_D8C9F398B7F21C84F1DCEF83174DBAFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_3B173D836CC5A5F21235EF83174D2A8F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_3B173D836CC5A5F21235EF83174D2A8F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_1EA8F50863B0BCCE38C7EF83174D89AA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_1EA8F50863B0BCCE38C7EF83174D89AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_B3902A2EDA76512B7CE3EF83174DEEEF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_B3902A2EDA76512B7CE3EF83174DEEEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_9F46539F0D43D64A04FBEF83174D1C21" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_93C18A41F97ED550DCD2EF83174D23C9" xlink:to="loc_us-gaap_EarningsPerShareBasic_9F46539F0D43D64A04FBEF83174D1C21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract" xlink:label="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_44A1238B6BB647D6B8CAEF83174D8275" xlink:to="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DistributedEarnings" xlink:label="loc_us-gaap_DistributedEarnings_B65B1A8D74A593C633ADEF83174D2ED7" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_DistributedEarnings_B65B1A8D74A593C633ADEF83174D2ED7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_93A303DA49A6F46B4DE6EF83174D3EDE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_93A303DA49A6F46B4DE6EF83174D3EDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_AEA435504D604BD6DDBDEF83174DF8E8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_AEA435504D604BD6DDBDEF83174DF8E8" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock" xlink:label="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_CE3CC2738F3647936DB6EF83174D17B6" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_CE3CC2738F3647936DB6EF83174D17B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_A5A8217A18B42C737093EF83174D8DD6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_A5A8217A18B42C737093EF83174D8DD6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_00313E75CDB80FBC4531EF83174DDFEF" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_00313E75CDB80FBC4531EF83174DDFEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_E04C457636B26ABA9EC6EF83174DC788" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_3F0DB3D8A7DFFFC3269BEF83174D63F7" xlink:to="loc_us-gaap_EarningsPerShareDiluted_E04C457636B26ABA9EC6EF83174DC788" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EarningsPerShareNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_349C942C97FBD2DCCABE041BB77BD425" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_26655752539886EDFBFE041BB77BB5D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_349C942C97FBD2DCCABE041BB77BD425" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_26655752539886EDFBFE041BB77BB5D8" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0C4F11AD053D027B4900041BB77B90B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_26655752539886EDFBFE041BB77BB5D8" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0C4F11AD053D027B4900041BB77B90B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_CDEC732440707708702B041BB77BC68E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0C4F11AD053D027B4900041BB77B90B4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_CDEC732440707708702B041BB77BC68E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_CDEC732440707708702B041BB77BC68E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_0C4F11AD053D027B4900041BB77B90B4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_CDEC732440707708702B041BB77BC68E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_C30E89CE53743414E0C3041BB77BA135" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_CDEC732440707708702B041BB77BC68E" xlink:to="loc_us-gaap_EmployeeStockOptionMember_C30E89CE53743414E0C3041BB77BA135" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_E27FCBAFDC5DBD20712B041BB77B17F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_349C942C97FBD2DCCABE041BB77BD425" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_E27FCBAFDC5DBD20712B041BB77B17F5" 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/EquityAndNoncontrollingInterests" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsCommonStockOutstandingDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_43AFBBF97C61891201021E5248E6DE5C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_43AFBBF97C61891201021E5248E6DE5C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_C93A8EB3070A58CEE1631E5248E67BB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_43AFBBF97C61891201021E5248E6DE5C" xlink:to="loc_us-gaap_StatementClassOfStockAxis_C93A8EB3070A58CEE1631E5248E67BB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9255BD51413605A7D0C61E5248E6F6D9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C93A8EB3070A58CEE1631E5248E67BB8" xlink:to="loc_us-gaap_ClassOfStockDomain_9255BD51413605A7D0C61E5248E6F6D9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_9255BD51413605A7D0C61E5248E6F6D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_C93A8EB3070A58CEE1631E5248E67BB8" xlink:to="loc_us-gaap_ClassOfStockDomain_9255BD51413605A7D0C61E5248E6F6D9" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_30F5E76A7220D68665EF1E5248E62604" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9255BD51413605A7D0C61E5248E6F6D9" xlink:to="loc_hsy_HersheyCommonStockMember_30F5E76A7220D68665EF1E5248E62604" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_72D3901213A00C0E0F641E5248E684D4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_43AFBBF97C61891201021E5248E6DE5C" xlink:to="loc_us-gaap_AwardTypeAxis_72D3901213A00C0E0F641E5248E684D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_39AF64F46ECA70F321B21E5248E6E541_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_72D3901213A00C0E0F641E5248E684D4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_39AF64F46ECA70F321B21E5248E6E541_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_39AF64F46ECA70F321B21E5248E6E541" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_72D3901213A00C0E0F641E5248E684D4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_39AF64F46ECA70F321B21E5248E6E541" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_E68115917927936335241E5248E6BFE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_39AF64F46ECA70F321B21E5248E6E541" xlink:to="loc_us-gaap_EmployeeStockOptionMember_E68115917927936335241E5248E6BFE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConversionOfStockSharesConverted1" xlink:label="loc_us-gaap_ConversionOfStockSharesConverted1_3CBA7AE7F04DAE4F3D001E5248E60FBE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_us-gaap_ConversionOfStockSharesConverted1_3CBA7AE7F04DAE4F3D001E5248E60FBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_786A7A49119D22BB522F1E5248E6E96B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_us-gaap_CommonStockSharesIssued_786A7A49119D22BB522F1E5248E6E96B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_TreasuryStockSharesRollForward" xlink:label="loc_hsy_TreasuryStockSharesRollForward_080DD29FF010B00EBD6B1E5248E6AA21" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_hsy_TreasuryStockSharesRollForward_080DD29FF010B00EBD6B1E5248E6AA21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockShares" xlink:label="loc_us-gaap_TreasuryStockShares_11CEEB1B38A56E5CB99C1E5248E66083" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hsy_TreasuryStockSharesRollForward_080DD29FF010B00EBD6B1E5248E6AA21" xlink:to="loc_us-gaap_TreasuryStockShares_11CEEB1B38A56E5CB99C1E5248E66083" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareRepurchaseProgramAbstract" xlink:label="loc_hsy_ShareRepurchaseProgramAbstract_7147E38C5785E17336031E5248E629FD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hsy_TreasuryStockSharesRollForward_080DD29FF010B00EBD6B1E5248E6AA21" xlink:to="loc_hsy_ShareRepurchaseProgramAbstract_7147E38C5785E17336031E5248E629FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_B8E8E90A4338E9E776511E5248F628B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_hsy_ShareRepurchaseProgramAbstract_7147E38C5785E17336031E5248E629FD" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_B8E8E90A4338E9E776511E5248F628B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharebasedCompensationAbstract" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharebasedCompensationAbstract_EF8ABE65FC1602C16CFA1E5248F65336" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharebasedCompensationAbstract_EF8ABE65FC1602C16CFA1E5248F65336" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_E819AC00E07B11A26C191E5248F6A1F8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockIssuedDuringPeriodSharebasedCompensationAbstract_EF8ABE65FC1602C16CFA1E5248F65336" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_E819AC00E07B11A26C191E5248F6A1F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_B495B2D474EA74E06CC01E5248F65220" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_23441896C814D77F2D711E5248E657F5" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_B495B2D474EA74E06CC01E5248F65220" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_B8483FF5E396EEB2234ECD3A6B01AF7C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:to="loc_us-gaap_StatementClassOfStockAxis_B8483FF5E396EEB2234ECD3A6B01AF7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_B8483FF5E396EEB2234ECD3A6B01AF7C" xlink:to="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_B8483FF5E396EEB2234ECD3A6B01AF7C" xlink:to="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_6837B4B4EA2443D742AECD3A6B01CD62" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0" xlink:to="loc_hsy_HersheyCommonStockMember_6837B4B4EA2443D742AECD3A6B01CD62" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_22E3D22D020D37716347CD3A6B012364" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7A564C57D305502FEEBACD3A6B013CA0" xlink:to="loc_us-gaap_CommonClassBMember_22E3D22D020D37716347CD3A6B012364" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CounterpartyNameAxis" xlink:label="loc_us-gaap_CounterpartyNameAxis_B5D9ADBEBC664806EBF9CD3A6B01C14D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:to="loc_us-gaap_CounterpartyNameAxis_B5D9ADBEBC664806EBF9CD3A6B01C14D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_BB8B422C65F8E1CD486DCD3A6B01DC00_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CounterpartyNameAxis_B5D9ADBEBC664806EBF9CD3A6B01C14D" xlink:to="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_BB8B422C65F8E1CD486DCD3A6B01DC00_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:label="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_BB8B422C65F8E1CD486DCD3A6B01DC00" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CounterpartyNameAxis_B5D9ADBEBC664806EBF9CD3A6B01C14D" xlink:to="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_BB8B422C65F8E1CD486DCD3A6B01DC00" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyTrustCompanyMember" xlink:label="loc_hsy_HersheyTrustCompanyMember_305ECC2BC26E3DC74B2BCD3A6B017FDB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RepurchaseAgreementCounterpartyNameDomain_BB8B422C65F8E1CD486DCD3A6B01DC00" xlink:to="loc_hsy_HersheyTrustCompanyMember_305ECC2BC26E3DC74B2BCD3A6B017FDB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_035BC1EA1B2B4CC8B7C1CD3A6B01056B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_035BC1EA1B2B4CC8B7C1CD3A6B01056B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_085765BF03D523AE33B8CD3A6B01BA97_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_035BC1EA1B2B4CC8B7C1CD3A6B01056B" xlink:to="loc_us-gaap_EquityComponentDomain_085765BF03D523AE33B8CD3A6B01BA97_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_085765BF03D523AE33B8CD3A6B01BA97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_035BC1EA1B2B4CC8B7C1CD3A6B01056B" xlink:to="loc_us-gaap_EquityComponentDomain_085765BF03D523AE33B8CD3A6B01BA97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_A85F2B16933DB42DC4A4CD3A6B01ED02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_085765BF03D523AE33B8CD3A6B01BA97" xlink:to="loc_us-gaap_NoncontrollingInterestMember_A85F2B16933DB42DC4A4CD3A6B01ED02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_LegalEntityAxis" xlink:label="loc_dei_LegalEntityAxis_975F2C323CA72BBF28B8CD3A6B014D41" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_8223D588DDCEC7F481A9CD3A6B01FE12" xlink:to="loc_dei_LegalEntityAxis_975F2C323CA72BBF28B8CD3A6B014D41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CA299F114A0C29262914CD3A6B01025D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_975F2C323CA72BBF28B8CD3A6B014D41" xlink:to="loc_dei_EntityDomain_CA299F114A0C29262914CD3A6B01025D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityDomain" xlink:label="loc_dei_EntityDomain_CA299F114A0C29262914CD3A6B01025D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_975F2C323CA72BBF28B8CD3A6B014D41" xlink:to="loc_dei_EntityDomain_CA299F114A0C29262914CD3A6B01025D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LotteShanghaiFoodCompanyMember" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_1AAF58A5B9A80D784107CD3A6B0126BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_CA299F114A0C29262914CD3A6B01025D" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_1AAF58A5B9A80D784107CD3A6B0126BC" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_CommonandPreferredStockSharesAuthorized" xlink:label="loc_hsy_CommonandPreferredStockSharesAuthorized_7F0D59FA10FDCE3F6D29CD3A6B011B28" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_hsy_CommonandPreferredStockSharesAuthorized_7F0D59FA10FDCE3F6D29CD3A6B011B28" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_3CC0CC84D2476D52F710CD3A6B01DA73" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_3CC0CC84D2476D52F710CD3A6B01DA73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_690E8D50BFEAA430AB48CD3A6B012D48" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_690E8D50BFEAA430AB48CD3A6B012D48" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_B26456129DE4AEF91A60CD3A6B01D021" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_B26456129DE4AEF91A60CD3A6B01D021" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_156A8ED2BAA0D69C4C23CD3A6B01D25E" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_156A8ED2BAA0D69C4C23CD3A6B01D25E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_CommonStockNumberofVotes" xlink:label="loc_hsy_CommonStockNumberofVotes_9747653AFBAF1644973CCD3A6B01901F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_hsy_CommonStockNumberofVotes_9747653AFBAF1644973CCD3A6B01901F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_CommonStockVotingRightsBoardElectionPercentage" xlink:label="loc_hsy_CommonStockVotingRightsBoardElectionPercentage_BE1E4CAA12D5C61F0B29CD3A6B01B260" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_hsy_CommonStockVotingRightsBoardElectionPercentage_BE1E4CAA12D5C61F0B29CD3A6B01B260" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DividendsCommonStockCashAdditionalPercentageOverClassBCommonStockDividends" xlink:label="loc_hsy_DividendsCommonStockCashAdditionalPercentageOverClassBCommonStockDividends_DE708B3DFFF1CE448E41CD3A6B01A84D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_hsy_DividendsCommonStockCashAdditionalPercentageOverClassBCommonStockDividends_DE708B3DFFF1CE448E41CD3A6B01A84D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConversionOfStockSharesConverted1" xlink:label="loc_us-gaap_ConversionOfStockSharesConverted1_E604DE0EA09F2C78AF60CD3A6B019A8D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_ConversionOfStockSharesConverted1_E604DE0EA09F2C78AF60CD3A6B019A8D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesOutstanding" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_391B0EC1D524BD467316CD3A6B0100F2" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_391B0EC1D524BD467316CD3A6B0100F2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_CommonStockVotingPercentage" xlink:label="loc_hsy_CommonStockVotingPercentage_3E7DB377A59AF52036C5CD3A6B01BD4A" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_hsy_CommonStockVotingPercentage_3E7DB377A59AF52036C5CD3A6B01BD4A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_299645A48D98F67CE7EACD3A6B0146EF" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_B57E7A328226E3A8DDEECD3A6B012CE7" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_299645A48D98F67CE7EACD3A6B0146EF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsNoncontrollingInterestAndRedeemableNoncontrollingInterestDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestLineItems" xlink:label="loc_us-gaap_MinorityInterestLineItems_4BC00C0446345CD009A8BC4F471072BE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestTable" xlink:label="loc_us-gaap_MinorityInterestTable_EDC1664D3A36EE5A7009BC4F4710B26F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_4BC00C0446345CD009A8BC4F471072BE" xlink:to="loc_us-gaap_MinorityInterestTable_EDC1664D3A36EE5A7009BC4F4710B26F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_33B00EAEF8AF74C03158BC4F47104295" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_EDC1664D3A36EE5A7009BC4F4710B26F" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_33B00EAEF8AF74C03158BC4F47104295" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_47B08E4176CDCF404DA4BC4F4710B896_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_33B00EAEF8AF74C03158BC4F47104295" xlink:to="loc_us-gaap_EquityComponentDomain_47B08E4176CDCF404DA4BC4F4710B896_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain" xlink:label="loc_us-gaap_EquityComponentDomain_47B08E4176CDCF404DA4BC4F4710B896" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_33B00EAEF8AF74C03158BC4F47104295" xlink:to="loc_us-gaap_EquityComponentDomain_47B08E4176CDCF404DA4BC4F4710B896" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NoncontrollingInterestMember" xlink:label="loc_us-gaap_NoncontrollingInterestMember_FB64A6FD4EBF38D57278BC4F4710AB4E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_47B08E4176CDCF404DA4BC4F4710B896" xlink:to="loc_us-gaap_NoncontrollingInterestMember_FB64A6FD4EBF38D57278BC4F4710AB4E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MovementInMinorityInterestRollForward" xlink:label="loc_us-gaap_MovementInMinorityInterestRollForward_DB33567D38808CD329D7BC4F47105BF8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_4BC00C0446345CD009A8BC4F471072BE" xlink:to="loc_us-gaap_MovementInMinorityInterestRollForward_DB33567D38808CD329D7BC4F47105BF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_FEBBDB13F0192ECB0283BC4F47108766" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_DB33567D38808CD329D7BC4F47105BF8" xlink:to="loc_us-gaap_MinorityInterest_FEBBDB13F0192ECB0283BC4F47108766" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_70C7F8F847BCA025FB27BC4F4710ECC0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_DB33567D38808CD329D7BC4F47105BF8" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_70C7F8F847BCA025FB27BC4F4710ECC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_D6F22F81FF42836AE890BC4F47109F3A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_DB33567D38808CD329D7BC4F47105BF8" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_D6F22F81FF42836AE890BC4F47109F3A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EquityAndNoncontrollingInterestsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsAssetsAndLiabilitiesMeasuredAtFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_52DD57BECDDC1C7810E4188856B2F804" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8EC260F182CE37D333A9188856B2A3A4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_52DD57BECDDC1C7810E4188856B2F804" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8EC260F182CE37D333A9188856B2A3A4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_629F298902AAE12C163F188856B2F904" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8EC260F182CE37D333A9188856B2A3A4" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_629F298902AAE12C163F188856B2F904" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_A42E258735A8F4DAAC14188856B2BE3C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_629F298902AAE12C163F188856B2F904" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_A42E258735A8F4DAAC14188856B2BE3C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_A42E258735A8F4DAAC14188856B2BE3C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_629F298902AAE12C163F188856B2F904" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_A42E258735A8F4DAAC14188856B2BE3C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_A5687054DB8B56E25F05188856B2B439" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_A42E258735A8F4DAAC14188856B2BE3C" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_A5687054DB8B56E25F05188856B2B439" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_F7A9672F7F66202814B9188856B29098" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8EC260F182CE37D333A9188856B2A3A4" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_F7A9672F7F66202814B9188856B29098" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F7A9672F7F66202814B9188856B29098" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F7A9672F7F66202814B9188856B29098" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:label="loc_us-gaap_ForeignExchangeContractMember_1AC844FA635AE145E8C7188856B2272A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:to="loc_us-gaap_ForeignExchangeContractMember_1AC844FA635AE145E8C7188856B2272A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestRateContractMember" xlink:label="loc_us-gaap_InterestRateContractMember_24C69BE3BC77C04DAC80188856B2D13E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:to="loc_us-gaap_InterestRateContractMember_24C69BE3BC77C04DAC80188856B2D13E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySwapMember" xlink:label="loc_us-gaap_EquitySwapMember_DF658F24BD222E4876EB188856B218AF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:to="loc_us-gaap_EquitySwapMember_DF658F24BD222E4876EB188856B218AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_4DEA7BEB4A49529720A6188856B23D70" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_DE0EEFCE2CDF09E22A61188856B216A6" xlink:to="loc_us-gaap_CommodityContractMember_4DEA7BEB4A49529720A6188856B23D70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_79D997759706B29592DE188856B23017" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_8EC260F182CE37D333A9188856B2A3A4" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_79D997759706B29592DE188856B23017" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_79D997759706B29592DE188856B23017" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_79D997759706B29592DE188856B23017" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_7FA5915D0F22EBE57E17188856B29560" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_7FA5915D0F22EBE57E17188856B29560" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_7E4CA46F75D74B9B7738188856B2C5BC" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_7E4CA46F75D74B9B7738188856B2C5BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_79C1416E672C00C033FC188856B28C06" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_B4B4C0ED0B208225A49E188856B2BD70" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_79C1416E672C00C033FC188856B28C06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_1D5395E22F6703399011188856B2F386" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_52DD57BECDDC1C7810E4188856B2F804" xlink:to="loc_us-gaap_DerivativeAssets_1D5395E22F6703399011188856B2F386" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_C9D07D4129FD483F485E188856B25153" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_52DD57BECDDC1C7810E4188856B2F804" xlink:to="loc_us-gaap_DerivativeLiabilities_C9D07D4129FD483F485E188856B25153" xlink:type="arc" />
  </link:definitionLink>
  <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/FairValueMeasurementsFairValueOfLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_47104E002E76F949CB69CC60BACACFD2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_47104E002E76F949CB69CC60BACACFD2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_412F30EDA58E4E95DD21CC60BACAC352" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_47104E002E76F949CB69CC60BACACFD2" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_412F30EDA58E4E95DD21CC60BACAC352" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C0E6FB3F59FFD9358E68CC60BACACDD7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_412F30EDA58E4E95DD21CC60BACAC352" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C0E6FB3F59FFD9358E68CC60BACACDD7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C0E6FB3F59FFD9358E68CC60BACACDD7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_412F30EDA58E4E95DD21CC60BACAC352" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C0E6FB3F59FFD9358E68CC60BACACDD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_196406D5D5B8460F5208CC60BACA89DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C0E6FB3F59FFD9358E68CC60BACACDD7" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_196406D5D5B8460F5208CC60BACA89DA" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LongtermDebtCurrentMaturitiesFairValue" xlink:label="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_8536E5685990D0100BC1CC60BACA187D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_8536E5685990D0100BC1CC60BACA187D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_756B1A9306523305186ECC60BACA67CE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_us-gaap_LongTermDebtCurrent_756B1A9306523305186ECC60BACA67CE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LongtermDebtExcludingCurrentMaturitiesFairValue" xlink:label="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_02A07606456E7520CDDACC60BACA276D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_02A07606456E7520CDDACC60BACA276D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_860F400C6BD7F3449129CC60BACAB74D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_860F400C6BD7F3449129CC60BACAB74D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtFairValue" xlink:label="loc_us-gaap_LongTermDebtFairValue_3AD5D6A76E3B5AC35646CC60BACAFB2D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_us-gaap_LongTermDebtFairValue_3AD5D6A76E3B5AC35646CC60BACAFB2D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7C1BC5028F24C3C07FA5CC60BACA26AD" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_4320FA879245E6579675CC60BACA5E80" xlink:to="loc_us-gaap_LongTermDebt_7C1BC5028F24C3C07FA5CC60BACA26AD" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeLineItems" xlink:label="loc_us-gaap_DerivativeLineItems_1B53EC401267990C29A81F0E992D074A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeTable" xlink:label="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_1B53EC401267990C29A81F0E992D074A" xlink:to="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7A0FE7DBC255CD52BEAB1F0E991D18BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7A0FE7DBC255CD52BEAB1F0E991D18BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C3BF3FA98A7F506CDCA61F0E991D83B1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7A0FE7DBC255CD52BEAB1F0E991D18BA" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C3BF3FA98A7F506CDCA61F0E991D83B1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C3BF3FA98A7F506CDCA61F0E991D83B1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_7A0FE7DBC255CD52BEAB1F0E991D18BA" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C3BF3FA98A7F506CDCA61F0E991D83B1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_4B4AAF0B2AB129A9369D1F36BDAADB4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_C3BF3FA98A7F506CDCA61F0E991D83B1" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_4B4AAF0B2AB129A9369D1F36BDAADB4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:label="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1937FC0A35A8F37FA81D1F0E991DF9EE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1937FC0A35A8F37FA81D1F0E991DF9EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2F10C53282188D97F0131F0E991D3089_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1937FC0A35A8F37FA81D1F0E991DF9EE" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2F10C53282188D97F0131F0E991D3089_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:label="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2F10C53282188D97F0131F0E991D3089" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis_1937FC0A35A8F37FA81D1F0E991DF9EE" xlink:to="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2F10C53282188D97F0131F0E991D3089" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_MaunaLoaMacadamiaNutCorporationMember" xlink:label="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_680E3518FDB60FABAED01F0E991DDFBA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_2F10C53282188D97F0131F0E991D3089" xlink:to="loc_hsy_MaunaLoaMacadamiaNutCorporationMember_680E3518FDB60FABAED01F0E991DDFBA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_E026E8EBE48E4520DBBA1F0E991DE493" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_ConsolidationItemsAxis_E026E8EBE48E4520DBBA1F0E991DE493" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_00755230E2464A90200D1F0E991D1A67_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_E026E8EBE48E4520DBBA1F0E991DE493" xlink:to="loc_us-gaap_ConsolidationItemsDomain_00755230E2464A90200D1F0E991D1A67_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_00755230E2464A90200D1F0E991D1A67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_E026E8EBE48E4520DBBA1F0E991DE493" xlink:to="loc_us-gaap_ConsolidationItemsDomain_00755230E2464A90200D1F0E991D1A67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_8E15A3C33098EBEFB0031F0E991D83F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_00755230E2464A90200D1F0E991D1A67" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_8E15A3C33098EBEFB0031F0E991D83F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_6EED40D482011933E2FD1F0E991DCE27" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_StatementGeographicalAxis_6EED40D482011933E2FD1F0E991DCE27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_C0D614E22248CEB898881F0E991D99F1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_6EED40D482011933E2FD1F0E991DCE27" xlink:to="loc_us-gaap_SegmentGeographicalDomain_C0D614E22248CEB898881F0E991D99F1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_C0D614E22248CEB898881F0E991D99F1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_6EED40D482011933E2FD1F0E991DCE27" xlink:to="loc_us-gaap_SegmentGeographicalDomain_C0D614E22248CEB898881F0E991D99F1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_9B5E9D4A1D77C1C4E7F71F0E991D8A42" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9B5E9D4A1D77C1C4E7F71F0E991D8A42" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_A9740073A8437B64399B1F0E991DCE59_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9B5E9D4A1D77C1C4E7F71F0E991D8A42" xlink:to="loc_us-gaap_SegmentDomain_A9740073A8437B64399B1F0E991DCE59_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_A9740073A8437B64399B1F0E991DCE59" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9B5E9D4A1D77C1C4E7F71F0E991D8A42" xlink:to="loc_us-gaap_SegmentDomain_A9740073A8437B64399B1F0E991DCE59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_37D0E60801C724D6A9621F0E991DACA6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_37D0E60801C724D6A9621F0E991DACA6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FA2B82517B714A925AFB1F0E991D0F1E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_37D0E60801C724D6A9621F0E991DACA6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FA2B82517B714A925AFB1F0E991D0F1E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FA2B82517B714A925AFB1F0E991D0F1E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_37D0E60801C724D6A9621F0E991DACA6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_FA2B82517B714A925AFB1F0E991D0F1E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EnergyAxis" xlink:label="loc_us-gaap_EnergyAxis_5E33FF811A50F40FB9C41F0E991D7969" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_EnergyAxis_5E33FF811A50F40FB9C41F0E991D7969" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EnergyDomain" xlink:label="loc_us-gaap_EnergyDomain_DBC46B50A562449208AB1F0E991DF220_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EnergyAxis_5E33FF811A50F40FB9C41F0E991D7969" xlink:to="loc_us-gaap_EnergyDomain_DBC46B50A562449208AB1F0E991DF220_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EnergyDomain" xlink:label="loc_us-gaap_EnergyDomain_DBC46B50A562449208AB1F0E991DF220" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EnergyAxis_5E33FF811A50F40FB9C41F0E991D7969" xlink:to="loc_us-gaap_EnergyDomain_DBC46B50A562449208AB1F0E991DF220" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateAxis" xlink:label="loc_us-gaap_VariableRateAxis_6ED310E97942D76DAFDA1F0E991DA014" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_VariableRateAxis_6ED310E97942D76DAFDA1F0E991DA014" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_9447AE85169DB98869871F0E991D60B6_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_6ED310E97942D76DAFDA1F0E991DA014" xlink:to="loc_us-gaap_VariableRateDomain_9447AE85169DB98869871F0E991D60B6_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_VariableRateDomain" xlink:label="loc_us-gaap_VariableRateDomain_9447AE85169DB98869871F0E991D60B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_6ED310E97942D76DAFDA1F0E991DA014" xlink:to="loc_us-gaap_VariableRateDomain_9447AE85169DB98869871F0E991D60B6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_5A3113C5C2FE0A4212801F0E992D6888" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_5A3113C5C2FE0A4212801F0E992D6888" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_FC8135269262ABB8CC6D1F0E992DBFB0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_5A3113C5C2FE0A4212801F0E992D6888" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_FC8135269262ABB8CC6D1F0E992DBFB0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_FC8135269262ABB8CC6D1F0E992DBFB0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_5A3113C5C2FE0A4212801F0E992D6888" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_FC8135269262ABB8CC6D1F0E992DBFB0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PositionAxis" xlink:label="loc_us-gaap_PositionAxis_D8BC001E0307ABDC74271F0E992DF65F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_PositionAxis_D8BC001E0307ABDC74271F0E992DF65F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PositionDomain" xlink:label="loc_us-gaap_PositionDomain_03A0E8B87069C365CA791F0E992D786E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PositionAxis_D8BC001E0307ABDC74271F0E992DF65F" xlink:to="loc_us-gaap_PositionDomain_03A0E8B87069C365CA791F0E992D786E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PositionDomain" xlink:label="loc_us-gaap_PositionDomain_03A0E8B87069C365CA791F0E992D786E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PositionAxis_D8BC001E0307ABDC74271F0E992DF65F" xlink:to="loc_us-gaap_PositionDomain_03A0E8B87069C365CA791F0E992D786E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_0E5211561CF137503D921F0E992D927C" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_668F799E34F2C2FE71F71F0E991D08E7" xlink:to="loc_us-gaap_RangeAxis_0E5211561CF137503D921F0E992D927C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_E7F95F28729832E146421F0E992D1F35_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_0E5211561CF137503D921F0E992D927C" xlink:to="loc_us-gaap_RangeMember_E7F95F28729832E146421F0E992D1F35_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_E7F95F28729832E146421F0E992D1F35" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_0E5211561CF137503D921F0E992D927C" xlink:to="loc_us-gaap_RangeMember_E7F95F28729832E146421F0E992D1F35" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueNetAssetLiability" xlink:label="loc_us-gaap_FairValueNetAssetLiability_1E2DFFC41647988492371F36BD2EC7D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_1B53EC401267990C29A81F0E992D074A" xlink:to="loc_us-gaap_FairValueNetAssetLiability_1E2DFFC41647988492371F36BD2EC7D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_DB6D025122EC7C9430381F0E992DB9C5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_1B53EC401267990C29A81F0E992D074A" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_DB6D025122EC7C9430381F0E992DB9C5" 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/GoodwillAndIntangibleAssetsCarryingAmountsAndAccumulatedAmortizationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11FC83E768BEC13CE257685789C2919A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11FC83E768BEC13CE257685789C2919A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A4681D01E3344BE7DBFE685789C2ABDF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11FC83E768BEC13CE257685789C2919A" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A4681D01E3344BE7DBFE685789C2ABDF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A4681D01E3344BE7DBFE685789C2ABDF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_A4681D01E3344BE7DBFE685789C2ABDF" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_D226A1B50068C9C484F7685789C3FE63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:to="loc_us-gaap_TrademarksMember_D226A1B50068C9C484F7685789C3FE63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelatedIntangibleAssetsMember" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_5F84F21AF10187B04565685789C3F95B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_5F84F21AF10187B04565685789C3F95B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_9B568FB15293D400D7A6685789C3A699" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:to="loc_us-gaap_PatentsMember_9B568FB15293D400D7A6685789C3A699" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherIntangibleAssetsMember" xlink:label="loc_us-gaap_OtherIntangibleAssetsMember_6774088A91655DE4A8F6685789C3A14B" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_CD9852FF587D71999ED2685789C2D9E7" xlink:to="loc_us-gaap_OtherIntangibleAssetsMember_6774088A91655DE4A8F6685789C3A14B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_E5BE4DAB54EE8CF0D797685789C3638F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_11FC83E768BEC13CE257685789C2919A" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_E5BE4DAB54EE8CF0D797685789C3638F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B6513F201B878A738E5D685789C3A1B8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_E5BE4DAB54EE8CF0D797685789C3638F" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B6513F201B878A738E5D685789C3A1B8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B6513F201B878A738E5D685789C3A1B8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_E5BE4DAB54EE8CF0D797685789C3638F" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B6513F201B878A738E5D685789C3A1B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_CD3BE79FDEB62D29033E685789C38166" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_B6513F201B878A738E5D685789C3A1B8" xlink:to="loc_us-gaap_TrademarksMember_CD3BE79FDEB62D29033E685789C38166" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_15960D84A844FF4FE1C6685789C37117" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_15960D84A844FF4FE1C6685789C37117" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_F44A6179B0024F91A542685789C33B9E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_F44A6179B0024F91A542685789C33B9E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_113C63309DE227026C0F685789C38B55" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_113C63309DE227026C0F685789C38B55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0B0E484822068A14DAEB685789C3A07D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_4D5231D0C8AA2E763D0D685789C38514" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0B0E484822068A14DAEB685789C3A07D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsFutureEstimatedAmortizationExpenseDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_0BD4CDA98F15B1B86FB81E51CCD5E204" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_CreditFacilityAxis_0BD4CDA98F15B1B86FB81E51CCD5E204" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_F3DF8D31B69F0D910A5D1E51CCD529EA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_0BD4CDA98F15B1B86FB81E51CCD5E204" xlink:to="loc_us-gaap_CreditFacilityDomain_F3DF8D31B69F0D910A5D1E51CCD529EA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_F3DF8D31B69F0D910A5D1E51CCD529EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_0BD4CDA98F15B1B86FB81E51CCD5E204" xlink:to="loc_us-gaap_CreditFacilityDomain_F3DF8D31B69F0D910A5D1E51CCD529EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_516A6B6F53DE7D8ECDF61E51CCD59473" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_516A6B6F53DE7D8ECDF61E51CCD59473" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_37C3E03B57AC1FC36D921E51CCD5E7A7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_516A6B6F53DE7D8ECDF61E51CCD59473" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_37C3E03B57AC1FC36D921E51CCD5E7A7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_37C3E03B57AC1FC36D921E51CCD5E7A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_516A6B6F53DE7D8ECDF61E51CCD59473" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_37C3E03B57AC1FC36D921E51CCD5E7A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_00F2BDC68B36B528E0781E51CCD567E6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_00F2BDC68B36B528E0781E51CCD567E6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9D85A8A25C85974F6B111E51CCD5FA81_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_00F2BDC68B36B528E0781E51CCD567E6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9D85A8A25C85974F6B111E51CCD5FA81_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9D85A8A25C85974F6B111E51CCD5FA81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_00F2BDC68B36B528E0781E51CCD567E6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9D85A8A25C85974F6B111E51CCD5FA81" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_75FFEDE3E2DC154867571E51CCD59090" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_9D85A8A25C85974F6B111E51CCD5FA81" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_75FFEDE3E2DC154867571E51CCD59090" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_F7E4DE4ADE4F6E3CF1101E51CCD58712" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_ConsolidationItemsAxis_F7E4DE4ADE4F6E3CF1101E51CCD58712" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_78B86F0A0FBA58E0BC251E51CCD5E60E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_F7E4DE4ADE4F6E3CF1101E51CCD58712" xlink:to="loc_us-gaap_ConsolidationItemsDomain_78B86F0A0FBA58E0BC251E51CCD5E60E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_78B86F0A0FBA58E0BC251E51CCD5E60E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_F7E4DE4ADE4F6E3CF1101E51CCD58712" xlink:to="loc_us-gaap_ConsolidationItemsDomain_78B86F0A0FBA58E0BC251E51CCD5E60E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_EB91485C676A619DA3451E51CCD5992B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_78B86F0A0FBA58E0BC251E51CCD5E60E" xlink:to="loc_us-gaap_OperatingSegmentsMember_EB91485C676A619DA3451E51CCD5992B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_C3CF3892C15E7B16E3011E51CCD5B9FA" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_C3CF3892C15E7B16E3011E51CCD5B9FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6DD7523B582C71F90D041E51CCD5C495_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C3CF3892C15E7B16E3011E51CCD5B9FA" xlink:to="loc_us-gaap_SegmentDomain_6DD7523B582C71F90D041E51CCD5C495_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_6DD7523B582C71F90D041E51CCD5C495" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_C3CF3892C15E7B16E3011E51CCD5B9FA" xlink:to="loc_us-gaap_SegmentDomain_6DD7523B582C71F90D041E51CCD5C495" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_EF37A17C7397F65957791E51CCD5EE24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_6DD7523B582C71F90D041E51CCD5C495" xlink:to="loc_hsy_InternationalandOtherSegmentMember_EF37A17C7397F65957791E51CCD5EE24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_2477209FBDDD8FA3EADB1E51CCD53030" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_StatementGeographicalAxis_2477209FBDDD8FA3EADB1E51CCD53030" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_2477209FBDDD8FA3EADB1E51CCD53030" xlink:to="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_2477209FBDDD8FA3EADB1E51CCD53030" xlink:to="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_CN" xlink:label="loc_country_CN_1E295174E068EB1F0B9B1E51CCD5AA44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3" xlink:to="loc_country_CN_1E295174E068EB1F0B9B1E51CCD5AA44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_IN" xlink:label="loc_country_IN_3943D02737DE29A49A641E51CCD595D9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_64C3852A212ABA20CE9C1E51CCD5EBA3" xlink:to="loc_country_IN_3943D02737DE29A49A641E51CCD595D9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_348D59C4CC39E527C0BA1E51CCD5786C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_BB52319EAF9015CEB3931E51CCD5F598" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_348D59C4CC39E527C0BA1E51CCD5786C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_C8BF694EAA2D5C1288F41E51CCD5B767_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_348D59C4CC39E527C0BA1E51CCD5786C" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_C8BF694EAA2D5C1288F41E51CCD5B767_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_C8BF694EAA2D5C1288F41E51CCD5B767" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_348D59C4CC39E527C0BA1E51CCD5786C" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_C8BF694EAA2D5C1288F41E51CCD5B767" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_816B73117444F3C7A94F1E51CCD57EAC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_C8BF694EAA2D5C1288F41E51CCD5B767" xlink:to="loc_us-gaap_TrademarksMember_816B73117444F3C7A94F1E51CCD57EAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_C91627E315761C6560C81E51CCD5DC83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_C91627E315761C6560C81E51CCD5DC83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D7E753960490500C53661E51CCD539B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_D7E753960490500C53661E51CCD539B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_BC6E5E534594AC3DF50C1E51CCD5691A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsIndefinitelivedExcludingGoodwill_BC6E5E534594AC3DF50C1E51CCD5691A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_F3C701CA8880EA39F1081E51CCD5F870" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_Goodwill_F3C701CA8880EA39F1081E51CCD5F870" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill" xlink:label="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_711C1BC986C2D468F24F1E51CCD5A2BF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_ImpairmentOfIntangibleAssetsExcludingGoodwill_711C1BC986C2D468F24F1E51CCD5A2BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_EAEFA447E4EFFDC043FC1E51CCD529F9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_329C6C5F04EBEBB55E5E1E51CCD51EC4" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_EAEFA447E4EFFDC043FC1E51CCD529F9" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GoodwillAndIntangibleAssetsSummaryOfChangesInCarryingValueOfGoodwillByReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillLineItems" xlink:label="loc_us-gaap_GoodwillLineItems_2AF4D7FA183E8BC5C2BF28E3F3AEE3A1" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_52D1A06B427CB8B0EAC828E3F3ADA0F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_2AF4D7FA183E8BC5C2BF28E3F3AEE3A1" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_52D1A06B427CB8B0EAC828E3F3ADA0F4" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_5CB71D1780F940BAA54728E3F3AD10F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_52D1A06B427CB8B0EAC828E3F3ADA0F4" xlink:to="loc_us-gaap_ConsolidationItemsAxis_5CB71D1780F940BAA54728E3F3AD10F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_D39EFF8C6961D14E7C5228E3F3AD7ECB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5CB71D1780F940BAA54728E3F3AD10F4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_D39EFF8C6961D14E7C5228E3F3AD7ECB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_D39EFF8C6961D14E7C5228E3F3AD7ECB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_5CB71D1780F940BAA54728E3F3AD10F4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_D39EFF8C6961D14E7C5228E3F3AD7ECB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_28BC8E4896B100B40CFD28E3F3ADA3CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_D39EFF8C6961D14E7C5228E3F3AD7ECB" xlink:to="loc_us-gaap_OperatingSegmentsMember_28BC8E4896B100B40CFD28E3F3ADA3CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_633A16F12668E823009B28E3F3AE178F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_52D1A06B427CB8B0EAC828E3F3ADA0F4" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_633A16F12668E823009B28E3F3AE178F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_633A16F12668E823009B28E3F3AE178F" xlink:to="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_633A16F12668E823009B28E3F3AE178F" xlink:to="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_C0BBBDA726A9B1CDD0E928E3F3AEE0FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4" xlink:to="loc_hsy_NorthAmericaSegmentMember_C0BBBDA726A9B1CDD0E928E3F3AEE0FE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_21BA1E41E9156ACE7CEA28E3F3AE29FF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_B108AA891A33878319B928E3F3AE8AD4" xlink:to="loc_hsy_InternationalandOtherSegmentMember_21BA1E41E9156ACE7CEA28E3F3AE29FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillGross" xlink:label="loc_us-gaap_GoodwillGross_C36D1C8BCF43E0A8CD3F28E3F3AE97C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2AF4D7FA183E8BC5C2BF28E3F3AEE3A1" xlink:to="loc_us-gaap_GoodwillGross_C36D1C8BCF43E0A8CD3F28E3F3AE97C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairedAccumulatedImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_DE6BED8192100EA9F47428E3F3AE3806" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2AF4D7FA183E8BC5C2BF28E3F3AEE3A1" xlink:to="loc_us-gaap_GoodwillImpairedAccumulatedImpairmentLoss_DE6BED8192100EA9F47428E3F3AE3806" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillRollForward" xlink:label="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_2AF4D7FA183E8BC5C2BF28E3F3AEE3A1" xlink:to="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_B3F7227D77B56ADCF11228E3F3AED009" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:to="loc_us-gaap_Goodwill_B3F7227D77B56ADCF11228E3F3AED009" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_5326C5A6A78322B9295D28E3F3AE82EF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_5326C5A6A78322B9295D28E3F3AE82EF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillImpairmentLoss" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_E53124D0288592B52E3C28E3F3AE7F14" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_E53124D0288592B52E3C28E3F3AE7F14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_FC8F3C3D90E6FE78B7F428E3F3AE4423" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_FC8F3C3D90E6FE78B7F428E3F3AE4423" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_A90C19782EE75A0E413B28E3F3AED786" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_01D3F557C600B55A689828E3F3AE0ED1" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_A90C19782EE75A0E413B28E3F3AED786" 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/IncomeTaxesComponentsOfIncomeTaxExpenseBenefitDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxesDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/IncomeTaxesIncomeBeforeTaxesDetails" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxContingencyLineItems" xlink:label="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxContingencyTable" xlink:label="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_C81C886CC363D68CA2FECC813AD980FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_C81C886CC363D68CA2FECC813AD980FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_B378A44348B414909D6BCC813AD914BE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_C81C886CC363D68CA2FECC813AD980FD" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_B378A44348B414909D6BCC813AD914BE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_B378A44348B414909D6BCC813AD914BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_C81C886CC363D68CA2FECC813AD980FD" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_B378A44348B414909D6BCC813AD914BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignCountryMember" xlink:label="loc_us-gaap_ForeignCountryMember_EA67321000165164BA9DCC813AD9AA65" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_B378A44348B414909D6BCC813AD914BE" xlink:to="loc_us-gaap_ForeignCountryMember_EA67321000165164BA9DCC813AD9AA65" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameAxis_90B350AF396EEF3A3D12CC813AD9A51F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameAxis_90B350AF396EEF3A3D12CC813AD9A51F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_F60CE3FB367F2BAEA21ACC813AD93869_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_90B350AF396EEF3A3D12CC813AD9A51F" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_F60CE3FB367F2BAEA21ACC813AD93869_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:label="loc_us-gaap_IncomeTaxAuthorityNameDomain_F60CE3FB367F2BAEA21ACC813AD93869" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameAxis_90B350AF396EEF3A3D12CC813AD9A51F" xlink:to="loc_us-gaap_IncomeTaxAuthorityNameDomain_F60CE3FB367F2BAEA21ACC813AD93869" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CanadaRevenueAgencyMember" xlink:label="loc_us-gaap_CanadaRevenueAgencyMember_64220B380577366CA54CCC813AD99B45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityNameDomain_F60CE3FB367F2BAEA21ACC813AD93869" xlink:to="loc_us-gaap_CanadaRevenueAgencyMember_64220B380577366CA54CCC813AD99B45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_8B374ECA13800CE106BDCC813AD9A898" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_8B374ECA13800CE106BDCC813AD9A898" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_06DA0F4B79AAEC6D6495CC813AD9BE9D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_8B374ECA13800CE106BDCC813AD9A898" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_06DA0F4B79AAEC6D6495CC813AD9BE9D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_06DA0F4B79AAEC6D6495CC813AD9BE9D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_8B374ECA13800CE106BDCC813AD9A898" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_06DA0F4B79AAEC6D6495CC813AD9BE9D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpenseMember" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_C02CA05FBD7C929DA4EBCC813AD9AFC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_06DA0F4B79AAEC6D6495CC813AD9BE9D" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpenseMember_C02CA05FBD7C929DA4EBCC813AD9AFC5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9CAB1E49C59E039B3CB3CC813AD9F31A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_IncomeTaxContingencyTable_267792BF8A5B2C0DCE50CC813AD9130F" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9CAB1E49C59E039B3CB3CC813AD9F31A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_2D679AF0F5ADF19ED2F5CC813AD9A34C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9CAB1E49C59E039B3CB3CC813AD9F31A" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_2D679AF0F5ADF19ED2F5CC813AD9A34C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvesteeNameDomain" xlink:label="loc_us-gaap_EquityMethodInvesteeNameDomain_2D679AF0F5ADF19ED2F5CC813AD9A34C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9CAB1E49C59E039B3CB3CC813AD9F31A" xlink:to="loc_us-gaap_EquityMethodInvesteeNameDomain_2D679AF0F5ADF19ED2F5CC813AD9A34C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PartnershipsQualifyingForTaxCreditsMember" xlink:label="loc_hsy_PartnershipsQualifyingForTaxCreditsMember_9DE9EB4B6095556037FDCC813AD9D064" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityMethodInvesteeNameDomain_2D679AF0F5ADF19ED2F5CC813AD9A34C" xlink:to="loc_hsy_PartnershipsQualifyingForTaxCreditsMember_9DE9EB4B6095556037FDCC813AD9D064" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_53FCAB9569A631A020A4CC813AD92773" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalTaxEffectFromShareBasedCompensation_53FCAB9569A631A020A4CC813AD92773" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_21DF29EF8312EFA2F5A3CC813AD99BF1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate_21DF29EF8312EFA2F5A3CC813AD99BF1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense_3028A694D856625AFC2BCC813AD9ED49" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestExpense_3028A694D856625AFC2BCC813AD9ED49" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_244B2408B8B27FF93F55CC813AD901DA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncomeTaxPenaltiesAndInterestAccrued_244B2408B8B27FF93F55CC813AD901DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxAdjustmentsSettlementsAndUnusualProvisions" xlink:label="loc_us-gaap_TaxAdjustmentsSettlementsAndUnusualProvisions_74C862E4A34A1AF0EE47CC813AD9595A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_TaxAdjustmentsSettlementsAndUnusualProvisions_74C862E4A34A1AF0EE47CC813AD9595A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxesReceivableNoncurrent" xlink:label="loc_us-gaap_IncomeTaxesReceivableNoncurrent_0B6D7DD92E45E4A52FACCC813AD99876" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_IncomeTaxesReceivableNoncurrent_0B6D7DD92E45E4A52FACCC813AD99876" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit" xlink:label="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit_615631C078B2799D1063CC813AD9B3DA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_SignificantChangeInUnrecognizedTaxBenefitsIsReasonablyPossibleAmountOfUnrecordedBenefit_615631C078B2799D1063CC813AD9B3DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTaxCredit" xlink:label="loc_us-gaap_InvestmentTaxCredit_60693F92E5A5A15D07A6CC813AD96692" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_InvestmentTaxCredit_60693F92E5A5A15D07A6CC813AD96692" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxCreditsAndAdjustments" xlink:label="loc_us-gaap_IncomeTaxCreditsAndAdjustments_E1E1770B811A4C0598BBCC813AD91F41" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_IncomeTaxCreditsAndAdjustments_E1E1770B811A4C0598BBCC813AD91F41" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_29C590C37E4A357C2426CC813AD953E3" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxContingencyLineItems_3F78A1132D9C7BCE4158CC813AD98797" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_29C590C37E4A357C2426CC813AD953E3" 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/IncomeTaxesUnrecognizedTaxBenefitsReconciliationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNet" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems" xlink:label="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable" xlink:label="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_E575E4AE29D8263A396F28E14E81DDA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_E575E4AE29D8263A396F28E14E81DDA5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_79F6F0A375D7D8F8071C28E14E822EC4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_E575E4AE29D8263A396F28E14E81DDA5" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_79F6F0A375D7D8F8071C28E14E822EC4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0E7CB53E4E0631DF115728E14E8230AB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_79F6F0A375D7D8F8071C28E14E822EC4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0E7CB53E4E0631DF115728E14E8230AB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0E7CB53E4E0631DF115728E14E8230AB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_79F6F0A375D7D8F8071C28E14E822EC4" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0E7CB53E4E0631DF115728E14E8230AB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_7A0D06E1AEA5AC83B02228E14E820751" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0E7CB53E4E0631DF115728E14E8230AB" xlink:to="loc_us-gaap_TrademarksMember_7A0D06E1AEA5AC83B02228E14E820751" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_B7BF74291587F8C67F8428E14E83BB40" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesTable_E575E4AE29D8263A396F28E14E81DDA5" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_B7BF74291587F8C67F8428E14E83BB40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B7BF74291587F8C67F8428E14E83BB40" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_B7BF74291587F8C67F8428E14E83BB40" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member" xlink:label="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_E6546C9C1346AC58193A28E14E83A690" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2" xlink:to="loc_hsy_ShanghaiGoldenMonkeyFoodJointStockCo.Ltd.Member_E6546C9C1346AC58193A28E14E83A690" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LotteShanghaiFoodCompanyMember" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_28919CB4E3B8E2FB4B2F28E14E83DD02" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_1CE5E73D1D4BFACABD8F28E14E8323A2" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_28919CB4E3B8E2FB4B2F28E14E83DD02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment" xlink:label="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_B0099D10F296BEF07F1728E14E83A5F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_EquityMethodInvestmentOtherThanTemporaryImpairment_B0099D10F296BEF07F1728E14E83A5F6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_7776FE9914FB8805A16E28E14E83D564" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_7776FE9914FB8805A16E28E14E83D564" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLoss" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLoss_326E5274E5FA37FC147228E14E839546" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLoss_326E5274E5FA37FC147228E14E839546" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain" xlink:label="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain_224D66BB04D8FE1E5C2128E14E83B332" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_BusinessCombinationStepAcquisitionEquityInterestInAcquireeRemeasurementGain_224D66BB04D8FE1E5C2128E14E83B332" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnDispositionOfIntangibleAssets" xlink:label="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_2E402A0D5328A2568C7928E14E8344C5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_GainLossOnDispositionOfIntangibleAssets_2E402A0D5328A2568C7928E14E8344C5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_OtherNonoperatingGainLoss" xlink:label="loc_hsy_OtherNonoperatingGainLoss_EA4660504609905E087828E14E839750" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_hsy_OtherNonoperatingGainLoss_EA4660504609905E087828E14E839750" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_83570A9191A07485384628E14E831F37" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesReportableDataLineItems_6F2888595D219A2D292028E14E83FA01" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_83570A9191A07485384628E14E831F37" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OtherIncomeExpenseNetOtherIncomeExpenseNetTables" 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/PensionAndOtherPostRetirementBenefitPlansAmountsExpectedToBeAmortizedFromAociIntoNetPeriodicBenefitDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_E12615F75A0FBB4566936857895401EB" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9BCD9D18EDF90A81D574685789549911" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_E12615F75A0FBB4566936857895401EB" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9BCD9D18EDF90A81D574685789549911" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_E2AD61E733554699D45768578954ADE4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_9BCD9D18EDF90A81D574685789549911" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_E2AD61E733554699D45768578954ADE4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_E2AD61E733554699D45768578954ADE4" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_E2AD61E733554699D45768578954ADE4" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_E692D2B1C26F86D0ACB46857895425A0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_E692D2B1C26F86D0ACB46857895425A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9ED56C5C924948228AF468578954D293" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_DC50E1571BB2D8F2D78F68578954CD45" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9ED56C5C924948228AF468578954D293" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss" xlink:label="loc_us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss_66661EF611838F6241E4685789542B6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_E12615F75A0FBB4566936857895401EB" xlink:to="loc_us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss_66661EF611838F6241E4685789542B6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFutureAmortizationOfPriorServiceCostCredit" xlink:label="loc_us-gaap_DefinedBenefitPlanFutureAmortizationOfPriorServiceCostCredit_5C8A3DAF122DAC65B6C3685789547A5F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_E12615F75A0FBB4566936857895401EB" xlink:to="loc_us-gaap_DefinedBenefitPlanFutureAmortizationOfPriorServiceCostCredit_5C8A3DAF122DAC65B6C3685789547A5F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansChangesInBenefitObligationsAndPlanAssetsAndFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_59F99816ABD168AD95C628714D633682" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_59F99816ABD168AD95C628714D633682" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_4EA1128B64448E12CD1928714D6336C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_59F99816ABD168AD95C628714D633682" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_4EA1128B64448E12CD1928714D6336C8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_4EA1128B64448E12CD1928714D6336C8" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_4EA1128B64448E12CD1928714D6336C8" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_870CE3F032A7D9AAC32628714D6329C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_870CE3F032A7D9AAC32628714D6329C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9EB83F4C8227D25B628B28714D6359DF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_640329A45D30ED1768C328714D635754" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9EB83F4C8227D25B628B28714D6359DF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_1E4BD5BEBCEE64F592C628714D637A8C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_1E4BD5BEBCEE64F592C628714D637A8C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_FEFF1C360653EF21EC8028714D6393A0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_FEFF1C360653EF21EC8028714D6393A0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_0649048B9A00AFABE7C828714D63F21A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_0649048B9A00AFABE7C828714D63F21A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanPlanAmendments" xlink:label="loc_us-gaap_DefinedBenefitPlanPlanAmendments_2C42A5F9912F44EB160328714D63DE17" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanPlanAmendments_2C42A5F9912F44EB160328714D63DE17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss" xlink:label="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_3C714DECC8BB483CC09828714D63ECFD" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanActuarialGainLoss_3C714DECC8BB483CC09828714D63ECFD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanCurtailments" xlink:label="loc_us-gaap_DefinedBenefitPlanCurtailments_616B9CD5A7EAACD44E7528714D6382CC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanCurtailments_616B9CD5A7EAACD44E7528714D6382CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanSettlementsBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_A8D0DA8343CD80D1169428714D639582" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanSettlementsBenefitObligation_A8D0DA8343CD80D1169428714D639582" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDivestituresBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanDivestituresBenefitObligation_755439B29E55D8E356C928714D63453C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanDivestituresBenefitObligation_755439B29E55D8E356C928714D63453C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation_E5E0E06631EAC73EA8B428714D63551B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation_E5E0E06631EAC73EA8B428714D63551B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitsPaid" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitsPaid_F418DB8E40BCB0E8872728714D63C3EA" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward_A7A0F7FD30B6CC5C9A4528714D632C76" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitsPaid_F418DB8E40BCB0E8872728714D63C3EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward" xlink:label="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_7D63A2864840435E2EB928714D63CC31" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_7D63A2864840435E2EB928714D63CC31" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_DC18DA2301959DB86D4E28714D6350BD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets_DC18DA2301959DB86D4E28714D6350BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_04DA344219F967DE28A528714D630FAE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_04DA344219F967DE28A528714D630FAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanSettlementsPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanSettlementsPlanAssets_9882A83C6548F5DC6A1028714D6383D4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanSettlementsPlanAssets_9882A83C6548F5DC6A1028714D6383D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDivestituresPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanDivestituresPlanAssets_7F7FC9AE8AAABB49D27C28714D63BADE" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanDivestituresPlanAssets_7F7FC9AE8AAABB49D27C28714D63BADE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets_A2306123B913ED23FB7428714D63C4D0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward_E0E16E8052AA2B57CE1228714D63E453" xlink:to="loc_us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets_A2306123B913ED23FB7428714D63C4D0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_7044E12DF10119BB8B8C28714D6315AF" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_7044E12DF10119BB8B8C28714D6315AF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent" xlink:label="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_1976541E4B484D20CA4C28714D632B43" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:to="loc_us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent_1976541E4B484D20CA4C28714D632B43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_F2C32F52A968E514A9C628714D6309B3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities_F2C32F52A968E514A9C628714D6309B3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_7A956EC0F8B27EBAEFA128714D63ECD7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_7A956EC0F8B27EBAEFA128714D63ECD7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_EF929196E94B002F810528714D63A9F0" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract_434D7AC7B6D1E0D5059C28714D63D956" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheet_EF929196E94B002F810528714D63A9F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_93731DAABE84AFEFA71328714D63AF99" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_98E3E8DEF2A8FEB27E8828714D63B14F" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_93731DAABE84AFEFA71328714D63AF99" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_D6ACC60B3AAE11D4CD5C28714D634FE7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_93731DAABE84AFEFA71328714D63AF99" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax_D6ACC60B3AAE11D4CD5C28714D634FE7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_18B76075484D27B3575928714D63D8C9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_93731DAABE84AFEFA71328714D63AF99" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditAfterTax_18B76075484D27B3575928714D63D8C9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_8465ABC8E65F896DC28A28714D6391BE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeLossAfterTaxAbstract_93731DAABE84AFEFA71328714D63AF99" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossDefinedBenefitPensionAndOtherPostretirementPlansNetOfTax_8465ABC8E65F896DC28A28714D6391BE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansComponentsOfNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_AF40C7F57410133C0AFD685788A4FE07" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_951F1324F8175F795210685788A40976" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_AF40C7F57410133C0AFD685788A4FE07" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_951F1324F8175F795210685788A40976" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_C2F27218518028471364685788A4073F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_951F1324F8175F795210685788A40976" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_C2F27218518028471364685788A4073F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_C2F27218518028471364685788A4073F" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_C2F27218518028471364685788A4073F" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_F24569430D476147B270685788A4BECA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_F24569430D476147B270685788A4BECA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_29EC2FD54D86E931CF33685788A45CB8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_58C4C9AD2C3D37737841685788A44650" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_29EC2FD54D86E931CF33685788A45CB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_AF40C7F57410133C0AFD685788A4FE07" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_117536EE3149FDC57EB5685788A4C50B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_117536EE3149FDC57EB5685788A4C50B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_D04C70EF0853CA2E673D685788A46F1D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_D04C70EF0853CA2E673D685788A46F1D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_E454A8DC440CCB4EC4AB685788A4E174" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_E454A8DC440CCB4EC4AB685788A4E174" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_B8AEA6966F0B0F956FBB685788A4A21D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_B8AEA6966F0B0F956FBB685788A4A21D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_FD4CFCCEA90F5150CAE9685788A45740" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_FD4CFCCEA90F5150CAE9685788A45740" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_86EB3BE31A135499711A685788A504FC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToCurtailments_86EB3BE31A135499711A685788A504FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_A71443220C2D374643ED685788A5B909" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_A71443220C2D374643ED685788A5B909" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_731B52D10DDD965B51DF685788A51D0C" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract_34C2C76DED091A077DAA685788A49690" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_731B52D10DDD965B51DF685788A51D0C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_ACBACF4F5E148B5132F9685788A5DA83" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_AF40C7F57410133C0AFD685788A4FE07" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_ACBACF4F5E148B5132F9685788A5DA83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_0BD45ADDBDDF635E1676685788A5AB60" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_ACBACF4F5E148B5132F9685788A5DA83" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeLossNetGainLossBeforeTax_0BD45ADDBDDF635E1676685788A5AB60" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_186887988D62A00C0DDC685788A504D1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_ACBACF4F5E148B5132F9685788A5DA83" xlink:to="loc_us-gaap_DefinedBenefitPlanAmountsRecognizedInOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_186887988D62A00C0DDC685788A504D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_51D010077C3F6CD83884685788A59C3B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPeriodIncreaseDecreaseAbstract_ACBACF4F5E148B5132F9685788A5DA83" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeTax_51D010077C3F6CD83884685788A59C3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_A60B6262094E8B36DFA0685788A5C547" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_AF40C7F57410133C0AFD685788A4FE07" xlink:to="loc_us-gaap_AmountRecognizedInNetPeriodicBenefitCostAndOtherComprehensiveIncomeLossBeforeTax_A60B6262094E8B36DFA0685788A5C547" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansExpectedBenefitPaymentsToBePaidDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_141413D267F06F896A66BC4F04AE1A71" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_141413D267F06F896A66BC4F04AE1A71" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_6755E36899F577AFBFD5BC4F04AEE049" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_141413D267F06F896A66BC4F04AE1A71" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_6755E36899F577AFBFD5BC4F04AEE049" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_6755E36899F577AFBFD5BC4F04AEE049" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_6755E36899F577AFBFD5BC4F04AEE049" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_384BFF4DA571E2F196F7BC4F04AE8577" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_384BFF4DA571E2F196F7BC4F04AE8577" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_3F0D4953B702FE0B2EF4BC4F04AE0F57" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_803D6FEEAD26899A6FA4BC4F04AEE6E9" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_3F0D4953B702FE0B2EF4BC4F04AE0F57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_4E8BAEA0C9CD6731DC5CBC4F04AE4E06" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths_4E8BAEA0C9CD6731DC5CBC4F04AE4E06" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_591E79235C3A58444D15BC4F04AE3FAB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo_591E79235C3A58444D15BC4F04AE3FAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_088596B12765B4152D31BC4F04AE946F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree_088596B12765B4152D31BC4F04AE946F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_60E3ADBAA805A6A3A3C1BC4F04AE84E3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour_60E3ADBAA805A6A3A3C1BC4F04AE84E3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_522369BC3722DD1496EABC4F04AE34A2" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive_522369BC3722DD1496EABC4F04AE34A2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_9C77AE4C927278CA219FBC4F04AE51DE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_9C08880E8CBCB30B820CBC4F04AEE9F9" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter_9C77AE4C927278CA219FBC4F04AE51DE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_17785973559653BE6C171E524953AC94" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_17785973559653BE6C171E524953AC94" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_15841C2A3FF19D2A17CB1E524953516A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_17785973559653BE6C171E524953AC94" xlink:to="loc_us-gaap_RangeAxis_15841C2A3FF19D2A17CB1E524953516A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_15841C2A3FF19D2A17CB1E524953516A" xlink:to="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_15841C2A3FF19D2A17CB1E524953516A" xlink:to="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_FBF09BE15545AB4319EE1E5249538E02" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE" xlink:to="loc_us-gaap_MinimumMember_FBF09BE15545AB4319EE1E5249538E02" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_09308419C703AC9099A71E5249530CD4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_02A6CF17D17C600B8DFB1E52495376DE" xlink:to="loc_us-gaap_MaximumMember_09308419C703AC9099A71E5249530CD4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_67417A9C6E119B3F2A941E5249530407" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_17785973559653BE6C171E524953AC94" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_67417A9C6E119B3F2A941E5249530407" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_67417A9C6E119B3F2A941E5249530407" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_67417A9C6E119B3F2A941E5249530407" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_2F0B77F5ED194133D3A41E5249535761" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_2F0B77F5ED194133D3A41E5249535761" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_2A8B8CF3B4E8457BEB821E5249537045" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_2A8B8CF3B4E8457BEB821E5249537045" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember" xlink:label="loc_us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember_92DE3A7F45744C46C2AC1E524953A48D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_DBD30886F78C670C0E7D1E524953FBD9" xlink:to="loc_us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember_92DE3A7F45744C46C2AC1E524953A48D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_FD72402ED914B9B504641E5249532553" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_17785973559653BE6C171E524953AC94" xlink:to="loc_us-gaap_StatementScenarioAxis_FD72402ED914B9B504641E5249532553" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_93ED3C2E7E21DC4A41861E5249531A29_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_FD72402ED914B9B504641E5249532553" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_93ED3C2E7E21DC4A41861E5249531A29_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_93ED3C2E7E21DC4A41861E5249531A29" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_FD72402ED914B9B504641E5249532553" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_93ED3C2E7E21DC4A41861E5249531A29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_3A35935E1CFE94E0054F1E52495326F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_93ED3C2E7E21DC4A41861E5249531A29" xlink:to="loc_us-gaap_ScenarioForecastMember_3A35935E1CFE94E0054F1E52495326F4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NumberofDefinedBenefitOtherPostretirementPlansandDefinedContributionOtherPostretirementPlans" xlink:label="loc_hsy_NumberofDefinedBenefitOtherPostretirementPlansandDefinedContributionOtherPostretirementPlans_AF0DC946274E9B1A0FB91E524953982F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_hsy_NumberofDefinedBenefitOtherPostretirementPlansandDefinedContributionOtherPostretirementPlans_AF0DC946274E9B1A0FB91E524953982F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_25C2CF256E2BD3A2AF1C1E524953C1BE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation_25C2CF256E2BD3A2AF1C1E524953C1BE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePreSixtyFive" xlink:label="loc_hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePreSixtyFive_51A817D4634E137D03991E524953B344" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePreSixtyFive_51A817D4634E137D03991E524953B344" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate" xlink:label="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate_4A2A53F65C5BE8A3477F1E524953CA52" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate_4A2A53F65C5BE8A3477F1E524953CA52" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePostSixtyFive" xlink:label="loc_hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePostSixtyFive_95769A793EC547FDD49E1E5249533F95" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_hsy_DefinedBenefitPlanUltimateHealthCareCostTrendRatePostSixtyFive_95769A793EC547FDD49E1E5249533F95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5BA94179CF31F82708441E524953344E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_5BA94179CF31F82708441E524953344E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DefinedBenefitPlansMinimumFutureEmployerContributionsinNextFiscalYear" xlink:label="loc_hsy_DefinedBenefitPlansMinimumFutureEmployerContributionsinNextFiscalYear_68B40EAC0E5AA7F631891E524953848C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_hsy_DefinedBenefitPlansMinimumFutureEmployerContributionsinNextFiscalYear_68B40EAC0E5AA7F631891E524953848C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DefinedBenefitPlanExpectedPeriodtoTerminatePlan" xlink:label="loc_hsy_DefinedBenefitPlanExpectedPeriodtoTerminatePlan_8EF2893E394E1B574D371E52495302CF" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_hsy_DefinedBenefitPlanExpectedPeriodtoTerminatePlan_8EF2893E394E1B574D371E52495302CF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_56D64DDEBC7D69DC8D011E524953FD86" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesCurrentAndNoncurrent_56D64DDEBC7D69DC8D011E524953FD86" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedContributionPlanCostRecognized" xlink:label="loc_us-gaap_DefinedContributionPlanCostRecognized_6525CBC575C73B57A1F71E52495332EF" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_182EB9E58CFA83D903451E524953C173" xlink:to="loc_us-gaap_DefinedContributionPlanCostRecognized_6525CBC575C73B57A1F71E52495332EF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansOnePercentChangeInAssumedHealthCareTrendRateEffectsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPensionPlanAssetsWithinFairValueHierarchyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_28BE8A9539E5AF70B01D14859C5096D8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8046F73FE87E00208EFF14859C5005E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_28BE8A9539E5AF70B01D14859C5096D8" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8046F73FE87E00208EFF14859C5005E7" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_8B36A6E424EE0563FD6514859C500B6C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8046F73FE87E00208EFF14859C5005E7" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_8B36A6E424EE0563FD6514859C500B6C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_8F20DB4AB7D3A4C2BB2D14859C50353C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_8B36A6E424EE0563FD6514859C500B6C" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_8F20DB4AB7D3A4C2BB2D14859C50353C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_8F20DB4AB7D3A4C2BB2D14859C50353C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_8B36A6E424EE0563FD6514859C500B6C" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_8F20DB4AB7D3A4C2BB2D14859C50353C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_A24DDC835E1B2F0D622C14859C50676E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_8F20DB4AB7D3A4C2BB2D14859C50353C" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_A24DDC835E1B2F0D622C14859C50676E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_A3B7E7C47355BFE49A9514859C50F7FD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8046F73FE87E00208EFF14859C5005E7" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_A3B7E7C47355BFE49A9514859C50F7FD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_A3B7E7C47355BFE49A9514859C50F7FD" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_A3B7E7C47355BFE49A9514859C50F7FD" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_5179B70A23A8AE4D9A1C14859C5084E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_5179B70A23A8AE4D9A1C14859C5084E1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_USAllCapMember" xlink:label="loc_hsy_USAllCapMember_CEC3133A1DA8F14C5CFF14859C50E38C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_USAllCapMember_CEC3133A1DA8F14C5CFF14859C50E38C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalAllCapMember" xlink:label="loc_hsy_InternationalAllCapMember_98D588EEE715A99AC16214859C508DC2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_InternationalAllCapMember_98D588EEE715A99AC16214859C508DC2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_GlobalAllCapMember" xlink:label="loc_hsy_GlobalAllCapMember_1025D92A3E5FE2FF34EB14859C50E3D4" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_GlobalAllCapMember_1025D92A3E5FE2FF34EB14859C50E3D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_F6DE6E352D5B6AA9521314859C50F6D5" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_F6DE6E352D5B6AA9521314859C50F6D5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateBondSecuritiesMember" xlink:label="loc_us-gaap_CorporateBondSecuritiesMember_B3C2F81309212BE6A75C14859C50DCBE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_us-gaap_CorporateBondSecuritiesMember_B3C2F81309212BE6A75C14859C50DCBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CollateralizedDebtObligationsMember" xlink:label="loc_us-gaap_CollateralizedDebtObligationsMember_3C314546B304A70B82D314859C500AD2" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_us-gaap_CollateralizedDebtObligationsMember_3C314546B304A70B82D314859C500AD2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember" xlink:label="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_6242FCE2ED2F43A9A89B14859C509EDA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_us-gaap_ForeignGovernmentDebtSecuritiesMember_6242FCE2ED2F43A9A89B14859C509EDA" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_GlobaldiversifiedassetsMember" xlink:label="loc_hsy_GlobaldiversifiedassetsMember_07F22AA8CF1B5E1F42E814859C505EE3" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_GlobaldiversifiedassetsMember_07F22AA8CF1B5E1F42E814859C505EE3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_GlobalrealestateinvestmenttrustsMember" xlink:label="loc_hsy_GlobalrealestateinvestmenttrustsMember_2B1D2C6CE812967B5B3214859C502EB2" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_GlobalrealestateinvestmenttrustsMember_2B1D2C6CE812967B5B3214859C502EB2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_GlobalinfrastructureMember" xlink:label="loc_hsy_GlobalinfrastructureMember_5D776A85E4FD375813E714859C507778" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E2E0008560C6D772C89514859C507575" xlink:to="loc_hsy_GlobalinfrastructureMember_5D776A85E4FD375813E714859C507778" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5FF4A418F7B65B868C2A14859C505009" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8046F73FE87E00208EFF14859C5005E7" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5FF4A418F7B65B868C2A14859C505009" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5FF4A418F7B65B868C2A14859C505009" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_5FF4A418F7B65B868C2A14859C505009" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_F783DA6B3EBAF3AB059214859C50F271" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_F783DA6B3EBAF3AB059214859C50F271" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_3148834D7C4D0707839114859C50C2BF" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_3148834D7C4D0707839114859C50C2BF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_8FA024B2621C39CCA7EE14859C50F95B" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1FCC107387EA1B7B32A414859C500447" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_8FA024B2621C39CCA7EE14859C50F95B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_426E777302178E936FF314859C507C68" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_28BE8A9539E5AF70B01D14859C5096D8" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_426E777302178E936FF314859C507C68" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansSummaryOfPlanAssetsAcrossAssetClassesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8087EFDF5A5B0250902A28E3F2038363" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_90A500F5DC0A3D670F4328E3F2020908" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8087EFDF5A5B0250902A28E3F2038363" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_90A500F5DC0A3D670F4328E3F2020908" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_37B7E8255D1717495C4F28E3F20281CD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_90A500F5DC0A3D670F4328E3F2020908" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_37B7E8255D1717495C4F28E3F20281CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_4F2E9EC8FEEDD55EA74D28E3F2026EDA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_37B7E8255D1717495C4F28E3F20281CD" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_4F2E9EC8FEEDD55EA74D28E3F2026EDA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_4F2E9EC8FEEDD55EA74D28E3F2026EDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_37B7E8255D1717495C4F28E3F20281CD" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_4F2E9EC8FEEDD55EA74D28E3F2026EDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember" xlink:label="loc_us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember_A5DEFF13C47BD5EA76CC28E3F202665B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_4F2E9EC8FEEDD55EA74D28E3F2026EDA" xlink:to="loc_us-gaap_UnitedStatesPensionPlansOfUSEntityDefinedBenefitMember_A5DEFF13C47BD5EA76CC28E3F202665B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:label="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_E2D3505A9940F0D5183C28E3F20239D3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_90A500F5DC0A3D670F4328E3F2020908" xlink:to="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_E2D3505A9940F0D5183C28E3F20239D3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_E2D3505A9940F0D5183C28E3F20239D3" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain" xlink:label="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis_E2D3505A9940F0D5183C28E3F20239D3" xlink:to="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsMember" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_6CC1AF8E1A0E438F8F7528E3F2027705" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_6CC1AF8E1A0E438F8F7528E3F2027705" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySecuritiesMember" xlink:label="loc_us-gaap_EquitySecuritiesMember_F3CCFD072FB6A02F00BA28E3F2031B11" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:to="loc_us-gaap_EquitySecuritiesMember_F3CCFD072FB6A02F00BA28E3F2031B11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:label="loc_us-gaap_DebtSecuritiesMember_688478EAFAF2377F6D9F28E3F2030D7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:to="loc_us-gaap_DebtSecuritiesMember_688478EAFAF2377F6D9F28E3F2030D7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherInvestmentsMember" xlink:label="loc_us-gaap_OtherInvestmentsMember_906F7F966A4E13C3228628E3F203F35C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanAssetCategoriesDomain_E25D84929C8C36BECA3C28E3F202D960" xlink:to="loc_us-gaap_OtherInvestmentsMember_906F7F966A4E13C3228628E3F203F35C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanTargetPlanAssetAllocationsRangeMinimum" xlink:label="loc_us-gaap_DefinedBenefitPlanTargetPlanAssetAllocationsRangeMinimum_BFF9F666AE95D095CB9C28E3F20302B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_8087EFDF5A5B0250902A28E3F2038363" xlink:to="loc_us-gaap_DefinedBenefitPlanTargetPlanAssetAllocationsRangeMinimum_BFF9F666AE95D095CB9C28E3F20302B3" 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/PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingBenefitObligationsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_759010CEC8EDF1E1F42D685787629740" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_880E2050B7424DC432CD685787625AF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_759010CEC8EDF1E1F42D685787629740" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_880E2050B7424DC432CD685787625AF0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_489338B745C26455195868578762F20D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_880E2050B7424DC432CD685787625AF0" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_489338B745C26455195868578762F20D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_489338B745C26455195868578762F20D" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_489338B745C26455195868578762F20D" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_31F89E22C9FC7F9CCFF468578762E5B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_31F89E22C9FC7F9CCFF468578762E5B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9FD58CE83628E7D3CF47685787627E45" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_94DB4C9319277E86543B68578762A6DA" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_9FD58CE83628E7D3CF47685787627E45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_F67AFF420C493834EF6F68578762C15D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_759010CEC8EDF1E1F42D685787629740" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate_F67AFF420C493834EF6F68578762C15D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_7DFBC7B37D7696B9DEFD68578762BD38" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_759010CEC8EDF1E1F42D685787629740" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease_7DFBC7B37D7696B9DEFD68578762BD38" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PensionAndOtherPostRetirementBenefitPlansWeightedAverageAssumptionsUsedInComputingNetPeriodicBenefitCostDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_75EB1A51E8A663B53603685789B9A73C" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6BE875A5B827AD872EFA685789B9ADD9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_75EB1A51E8A663B53603685789B9A73C" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6BE875A5B827AD872EFA685789B9ADD9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis" xlink:label="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_0EB9BE90FCD77A8AA31F685789B9CD2F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_6BE875A5B827AD872EFA685789B9ADD9" xlink:to="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_0EB9BE90FCD77A8AA31F685789B9CD2F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_0EB9BE90FCD77A8AA31F685789B9CD2F" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlansDomain" xlink:label="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxis_0EB9BE90FCD77A8AA31F685789B9CD2F" xlink:to="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_200DECAB2C8CA2F26C62685789B9398A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_200DECAB2C8CA2F26C62685789B9398A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_496430921AEFEB07996F685789B977E0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlansDomain_39863F3742D385EB283D685789B990B7" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_496430921AEFEB07996F685789B977E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_CC5D54F310744DB76FE4685789B9507B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_75EB1A51E8A663B53603685789B9A73C" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate_CC5D54F310744DB76FE4685789B9507B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_000964E2A222547153F9685789B98855" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_75EB1A51E8A663B53603685789B9A73C" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_000964E2A222547153F9685789B98855" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_39AE9AE0ECBD3F344E08685789B9A2EB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_75EB1A51E8A663B53603685789B9A73C" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease_39AE9AE0ECBD3F344E08685789B9A2EB" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/QuarterlyDataDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_58CD8EDDF26F8CD8F93013AC403072A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:to="loc_us-gaap_StatementClassOfStockAxis_58CD8EDDF26F8CD8F93013AC403072A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_58CD8EDDF26F8CD8F93013AC403072A3" xlink:to="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_58CD8EDDF26F8CD8F93013AC403072A3" xlink:to="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HersheyCommonStockMember" xlink:label="loc_hsy_HersheyCommonStockMember_CBCA618DB64123536F3813AC40308249" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8" xlink:to="loc_hsy_HersheyCommonStockMember_CBCA618DB64123536F3813AC40308249" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonClassBMember" xlink:label="loc_us-gaap_CommonClassBMember_D652FDC5C3230ECE996F13AC403003C6" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_A26EBA539C7790C9333213AC403058D8" xlink:to="loc_us-gaap_CommonClassBMember_D652FDC5C3230ECE996F13AC403003C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_F53D0C426A5B26DA46BC13AC40306C43" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:to="loc_us-gaap_RangeAxis_F53D0C426A5B26DA46BC13AC40306C43" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_F53D0C426A5B26DA46BC13AC40306C43" xlink:to="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_F53D0C426A5B26DA46BC13AC40306C43" xlink:to="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_3DA6C6859A6F9D3BC40613AC4030F25D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4" xlink:to="loc_us-gaap_MaximumMember_3DA6C6859A6F9D3BC40613AC4030F25D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_963C11AC3067944F21E313AC40306279" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_238ACC9B88AE9116D6EA13AC403056B4" xlink:to="loc_us-gaap_MinimumMember_963C11AC3067944F21E313AC40306279" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis" xlink:label="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_03CD61E1F5E823BE55C913AC40306CF3" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:to="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_03CD61E1F5E823BE55C913AC40306CF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsForErrorCorrectionDomain" xlink:label="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_C9E0FF3813DC190FF88013AC4030C53C_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_03CD61E1F5E823BE55C913AC40306CF3" xlink:to="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_C9E0FF3813DC190FF88013AC4030C53C_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsForErrorCorrectionDomain" xlink:label="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_C9E0FF3813DC190FF88013AC4030C53C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ErrorCorrectionsAndPriorPeriodAdjustmentsRestatementByRestatementPeriodAndAmountAxis_03CD61E1F5E823BE55C913AC40306CF3" xlink:to="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_C9E0FF3813DC190FF88013AC4030C53C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_HedgeAccountingComplianceForCocoaCommodityDerivativesMember" xlink:label="loc_hsy_HedgeAccountingComplianceForCocoaCommodityDerivativesMember_92525BADEB2580CCBC8513AC40304034" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsForErrorCorrectionDomain_C9E0FF3813DC190FF88013AC4030C53C" xlink:to="loc_hsy_HedgeAccountingComplianceForCocoaCommodityDerivativesMember_92525BADEB2580CCBC8513AC40304034" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_76CE699E117C9D87730B13AC4030CE6D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_CB355C5A554F45ADE9C913AC403049B3" xlink:to="loc_us-gaap_StatementScenarioAxis_76CE699E117C9D87730B13AC4030CE6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_0981C5B94F175EF3DC7F13AC4030175A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_76CE699E117C9D87730B13AC4030CE6D" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_0981C5B94F175EF3DC7F13AC4030175A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_0981C5B94F175EF3DC7F13AC4030175A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_76CE699E117C9D87730B13AC4030CE6D" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_0981C5B94F175EF3DC7F13AC4030175A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestatementAdjustmentMember" xlink:label="loc_us-gaap_RestatementAdjustmentMember_0185128927FC3B69103113AC4030C071" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_0981C5B94F175EF3DC7F13AC4030175A" xlink:to="loc_us-gaap_RestatementAdjustmentMember_0185128927FC3B69103113AC4030C071" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaap_SalesRevenueNet_C22AB8755EB3CB90C6BF13AC4030EB7E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_SalesRevenueNet_C22AB8755EB3CB90C6BF13AC4030EB7E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_43AB490D8B2A4153982613AC4030E6C5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_GrossProfit_43AB490D8B2A4153982613AC4030E6C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_A954789367DE38DCB34A13AC403030DB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_NetIncomeLoss_A954789367DE38DCB34A13AC403030DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:label="loc_us-gaap_EarningsPerShareBasic_3DFF4D1CED5378F095F213AC40301368" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_EarningsPerShareBasic_3DFF4D1CED5378F095F213AC40301368" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:label="loc_us-gaap_EarningsPerShareDiluted_9B85E876732AAD8D283413AC403031FB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_EarningsPerShareDiluted_9B85E876732AAD8D283413AC403031FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_D10B22EAAE6B7CC5B57613AC4030F2D1" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_D10B22EAAE6B7CC5B57613AC4030F2D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_8ACA8C563B7FF4B2BC8413AC4030F860" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_SharePrice_8ACA8C563B7FF4B2BC8413AC4030F860" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsSold" xlink:label="loc_us-gaap_CostOfGoodsSold_3C05584A797E0B09466013AC40300B8D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_1866C74CCD4961D3F3D013AC4030BC83" xlink:to="loc_us-gaap_CostOfGoodsSold_3C05584A797E0B09466013AC40300B8D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/QuarterlyDataTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/QuarterlyDataUnaudited" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccounts" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ScheduleIiValuationAndQualifyingAccountsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_62FE910B50EA7909396AACAE81A7FF47" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAndQualifyingAccountsDisclosureTable" xlink:label="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_6A0AF4C10C0BE75DE3D7ACAE81A77BC5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_62FE910B50EA7909396AACAE81A7FF47" xlink:to="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_6A0AF4C10C0BE75DE3D7ACAE81A77BC5" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesTypeAxis" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_D96781875528CE39756CACAE81A718BE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureTable_6A0AF4C10C0BE75DE3D7ACAE81A77BC5" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_D96781875528CE39756CACAE81A718BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_D96781875528CE39756CACAE81A718BE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDomain" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesTypeAxis_D96781875528CE39756CACAE81A718BE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForTradeReceivablesMember" xlink:label="loc_us-gaap_AllowanceForTradeReceivablesMember_AA0CC336B39FB7058ED7ACAE81A71A24" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B" xlink:to="loc_us-gaap_AllowanceForTradeReceivablesMember_AA0CC336B39FB7058ED7ACAE81A71A24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember" xlink:label="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_8E8268CC7000B1DA1E73ACAE81A74779" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B" xlink:to="loc_us-gaap_ValuationAllowanceOfDeferredTaxAssetsMember_8E8268CC7000B1DA1E73ACAE81A74779" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryValuationReserveMember" xlink:label="loc_us-gaap_InventoryValuationReserveMember_88484B8EBE2D465F0BD3ACAE81A72C50" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAllowancesAndReservesDomain_35477A3A909B1320B7FCACAE81A7951B" xlink:to="loc_us-gaap_InventoryValuationReserveMember_88484B8EBE2D465F0BD3ACAE81A72C50" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MovementInValuationAllowancesAndReservesRollForward" xlink:label="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationAndQualifyingAccountsDisclosureLineItems_62FE910B50EA7909396AACAE81A7FF47" xlink:to="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesBalance" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesBalance_2FF8E30D57008D8B1258ACAE81A79247" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesBalance_2FF8E30D57008D8B1258ACAE81A79247" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_259ED45A134B58EC6613ACAE81A73D14" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense_259ED45A134B58EC6613ACAE81A73D14" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts_2054418BA39E39B74BCBACAE81A7D7CA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts_2054418BA39E39B74BCBACAE81A7D7CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowancesAndReservesDeductions" xlink:label="loc_us-gaap_ValuationAllowancesAndReservesDeductions_8FA0A5DC883DBEDB49E6ACAE81A7337F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInValuationAllowancesAndReservesRollForward_8C1E4300068BBA0BE5C0ACAE81A71DEE" xlink:to="loc_us-gaap_ValuationAllowancesAndReservesDeductions_8FA0A5DC883DBEDB49E6ACAE81A7337F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformation" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationByGeographyDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_DAF183DBAAD449CEA676685788D15A88" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_160951EAAA12314FB2DF685788D0FA2A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_DAF183DBAAD449CEA676685788D15A88" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_160951EAAA12314FB2DF685788D0FA2A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis" xlink:label="loc_us-gaap_StatementGeographicalAxis_FAF66864FC3D06FB51F3685788D0B413" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_160951EAAA12314FB2DF685788D0FA2A" xlink:to="loc_us-gaap_StatementGeographicalAxis_FAF66864FC3D06FB51F3685788D0B413" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementGeographicalAxis_FAF66864FC3D06FB51F3685788D0B413" xlink:to="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain" xlink:label="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementGeographicalAxis_FAF66864FC3D06FB51F3685788D0B413" xlink:to="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_US" xlink:label="loc_country_US_7C2A75F5B27E8ECCFB8F685788D1BD44" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167" xlink:to="loc_country_US_7C2A75F5B27E8ECCFB8F685788D1BD44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NonUsMember" xlink:label="loc_us-gaap_NonUsMember_889F5CEF2AC688F47528685788D11B93" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentGeographicalDomain_85B068D3CB6E62AAA9B4685788D06167" xlink:to="loc_us-gaap_NonUsMember_889F5CEF2AC688F47528685788D11B93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaap_SalesRevenueNet_BEA49F402407E968DF81685788D178A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_DAF183DBAAD449CEA676685788D15A88" xlink:to="loc_us-gaap_SalesRevenueNet_BEA49F402407E968DF81685788D178A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_9870C45AB206164F0600685788D1FA01" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_DAF183DBAAD449CEA676685788D15A88" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_9870C45AB206164F0600685788D1FA01" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationDepreciationAndAmortizationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_559FBD099341DDD9D11FB7A12BBBAB5A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E622E489EB1EC3AD3847B7A12BBB9BF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_559FBD099341DDD9D11FB7A12BBBAB5A" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E622E489EB1EC3AD3847B7A12BBB9BF1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_19BD21E1B6FFF54EBAAAB7A12BBB5BCE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E622E489EB1EC3AD3847B7A12BBB9BF1" xlink:to="loc_us-gaap_ConsolidationItemsAxis_19BD21E1B6FFF54EBAAAB7A12BBB5BCE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_19BD21E1B6FFF54EBAAAB7A12BBB5BCE" xlink:to="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_19BD21E1B6FFF54EBAAAB7A12BBB5BCE" xlink:to="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_7E7D52F890EF1BE0D09BB7A12BBB7F74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27" xlink:to="loc_us-gaap_OperatingSegmentsMember_7E7D52F890EF1BE0D09BB7A12BBB7F74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_068FF2A80BF5587D9260B7A12BBB0936" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_737B51B281645FDE85B9B7A12BBB3A27" xlink:to="loc_us-gaap_CorporateNonSegmentMember_068FF2A80BF5587D9260B7A12BBB0936" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_FE3F40557EF4A2AA8EC7B7A12BBB64EE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_E622E489EB1EC3AD3847B7A12BBB9BF1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_FE3F40557EF4A2AA8EC7B7A12BBB64EE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_FE3F40557EF4A2AA8EC7B7A12BBB64EE" xlink:to="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_FE3F40557EF4A2AA8EC7B7A12BBB64EE" xlink:to="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_05A9FCF1D6A333F7416FB7A12BBB6420" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83" xlink:to="loc_hsy_NorthAmericaSegmentMember_05A9FCF1D6A333F7416FB7A12BBB6420" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_38949F8C4278A815AAA3B7A12BBBED64" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83" xlink:to="loc_hsy_InternationalandOtherSegmentMember_38949F8C4278A815AAA3B7A12BBBED64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateMember" xlink:label="loc_us-gaap_CorporateMember_E693930EDFE11D55EE73B7A12BBBBEA7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8E441704EC0DFBD7C030B7A12BBBDF83" xlink:to="loc_us-gaap_CorporateMember_E693930EDFE11D55EE73B7A12BBBBEA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_6AE7DDE17C609CA08000B7A12BBB718F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_559FBD099341DDD9D11FB7A12BBBAB5A" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_6AE7DDE17C609CA08000B7A12BBB718F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_335B0078FABE4828ACA0CC5FD27E3C94" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_335B0078FABE4828ACA0CC5FD27E3C94" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis" xlink:label="loc_us-gaap_StatementScenarioAxis_5A2FABC06F045E4FF78CCC5FD26EA53E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_StatementScenarioAxis_5A2FABC06F045E4FF78CCC5FD26EA53E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_6538ADFDAFE93263041FCC5FD26E8DF0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementScenarioAxis_5A2FABC06F045E4FF78CCC5FD26EA53E" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_6538ADFDAFE93263041FCC5FD26E8DF0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain" xlink:label="loc_us-gaap_ScenarioUnspecifiedDomain_6538ADFDAFE93263041FCC5FD26E8DF0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementScenarioAxis_5A2FABC06F045E4FF78CCC5FD26EA53E" xlink:to="loc_us-gaap_ScenarioUnspecifiedDomain_6538ADFDAFE93263041FCC5FD26E8DF0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioForecastMember" xlink:label="loc_us-gaap_ScenarioForecastMember_7590BBF29766C4EF6C9CCC5FD26EBDF6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScenarioUnspecifiedDomain_6538ADFDAFE93263041FCC5FD26E8DF0" xlink:to="loc_us-gaap_ScenarioForecastMember_7590BBF29766C4EF6C9CCC5FD26EBDF6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_D8AF540D78746C5E8D7ACC5FD26EB7D4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_ConsolidationItemsAxis_D8AF540D78746C5E8D7ACC5FD26EB7D4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_3F30D5E309BC16333845CC5FD26ECC6E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D8AF540D78746C5E8D7ACC5FD26EB7D4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_3F30D5E309BC16333845CC5FD26ECC6E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_3F30D5E309BC16333845CC5FD26ECC6E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_D8AF540D78746C5E8D7ACC5FD26EB7D4" xlink:to="loc_us-gaap_ConsolidationItemsDomain_3F30D5E309BC16333845CC5FD26ECC6E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_599D774B7BAB88E1AF75CC5FD26EB347" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_3F30D5E309BC16333845CC5FD26ECC6E" xlink:to="loc_us-gaap_OperatingSegmentsMember_599D774B7BAB88E1AF75CC5FD26EB347" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_181DB9265C8BA067CA0FCC5FD26EE38C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_181DB9265C8BA067CA0FCC5FD26EE38C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_B113EDBDFB9736E95CB1CC5FD26EF51D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_181DB9265C8BA067CA0FCC5FD26EE38C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_B113EDBDFB9736E95CB1CC5FD26EF51D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_B113EDBDFB9736E95CB1CC5FD26EF51D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_181DB9265C8BA067CA0FCC5FD26EE38C" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_B113EDBDFB9736E95CB1CC5FD26EF51D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_5D9F37970DE190CE1ABCCC5FD26EECC2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_B113EDBDFB9736E95CB1CC5FD26EF51D" xlink:to="loc_us-gaap_CommodityContractMember_5D9F37970DE190CE1ABCCC5FD26EECC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_E1893CF5D5F2D9734BF2CC5FD26E86FC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_E1893CF5D5F2D9734BF2CC5FD26E86FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_EFFEEFE8C42AB9CF5A53CC5FD26ECDBD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E1893CF5D5F2D9734BF2CC5FD26E86FC" xlink:to="loc_us-gaap_SegmentDomain_EFFEEFE8C42AB9CF5A53CC5FD26ECDBD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_EFFEEFE8C42AB9CF5A53CC5FD26ECDBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_E1893CF5D5F2D9734BF2CC5FD26E86FC" xlink:to="loc_us-gaap_SegmentDomain_EFFEEFE8C42AB9CF5A53CC5FD26ECDBD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_7CA46D5BE3FEB3C52B20CC5FD26E8A6A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_EFFEEFE8C42AB9CF5A53CC5FD26ECDBD" xlink:to="loc_hsy_NorthAmericaSegmentMember_7CA46D5BE3FEB3C52B20CC5FD26E8A6A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_E7FD033321E6E1722C1BCC5FD27E9478" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_E7FD033321E6E1722C1BCC5FD27E9478" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_4E9009DB709FD0F054AECC5FD27E084E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_E7FD033321E6E1722C1BCC5FD27E9478" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_4E9009DB709FD0F054AECC5FD27E084E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_4E9009DB709FD0F054AECC5FD27E084E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_E7FD033321E6E1722C1BCC5FD27E9478" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_4E9009DB709FD0F054AECC5FD27E084E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GeographicConcentrationRiskMember" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_3BD11750423DF496B319CC5FD27E74A7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_4E9009DB709FD0F054AECC5FD27E084E" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_3BD11750423DF496B319CC5FD27E74A7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6BA5BCE1A5189DB8904ECC5FD27E17BE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_B94A2DF3463361F431C7CC5FD26EAD7B" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6BA5BCE1A5189DB8904ECC5FD27E17BE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9939FD5F9D1176923BCBCC5FD27E38FC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6BA5BCE1A5189DB8904ECC5FD27E17BE" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9939FD5F9D1176923BCBCC5FD27E38FC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9939FD5F9D1176923BCBCC5FD27E38FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_6BA5BCE1A5189DB8904ECC5FD27E17BE" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9939FD5F9D1176923BCBCC5FD27E38FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueGoodsNetMember" xlink:label="loc_us-gaap_SalesRevenueGoodsNetMember_E68151020BA60FBB527ECC5FD27E58DC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9939FD5F9D1176923BCBCC5FD27E38FC" xlink:to="loc_us-gaap_SalesRevenueGoodsNetMember_E68151020BA60FBB527ECC5FD27E58DC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_1A388F6F329DDEB9759FCC5FD27E50B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_335B0078FABE4828ACA0CC5FD27E3C94" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_1A388F6F329DDEB9759FCC5FD27E50B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_A8F717CE0D6ACA799CE9CC5FD27E2920" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_335B0078FABE4828ACA0CC5FD27E3C94" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_A8F717CE0D6ACA799CE9CC5FD27E2920" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationSalesAndIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_CE080F507D90738B07A2BC4F47D8E5AF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_CE080F507D90738B07A2BC4F47D8E5AF" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_B3F766CEAFED021F55F5BC4F47D8DC08" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_CE080F507D90738B07A2BC4F47D8E5AF" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_B3F766CEAFED021F55F5BC4F47D8DC08" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8E938ADEDE92D6EC20F1BC4F47D828D1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B3F766CEAFED021F55F5BC4F47D8DC08" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8E938ADEDE92D6EC20F1BC4F47D828D1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8E938ADEDE92D6EC20F1BC4F47D828D1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_B3F766CEAFED021F55F5BC4F47D8DC08" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8E938ADEDE92D6EC20F1BC4F47D828D1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_9DDDF84F8D887424BD05BC4F47D875DB" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_CE080F507D90738B07A2BC4F47D8E5AF" xlink:to="loc_us-gaap_ConsolidationItemsAxis_9DDDF84F8D887424BD05BC4F47D875DB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_9DDDF84F8D887424BD05BC4F47D875DB" xlink:to="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_9DDDF84F8D887424BD05BC4F47D875DB" xlink:to="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_5455950813CC0E6BC545BC4F47D892C5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96" xlink:to="loc_us-gaap_OperatingSegmentsMember_5455950813CC0E6BC545BC4F47D892C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CorporateNonSegmentMember" xlink:label="loc_us-gaap_CorporateNonSegmentMember_0AC1493B69CC019C1E19BC4F47D8BE00" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96" xlink:to="loc_us-gaap_CorporateNonSegmentMember_0AC1493B69CC019C1E19BC4F47D8BE00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_62CCEF10730555E611BFBC4F47D88173" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_69DD08CEBB70B28DA27CBC4F47D8EF96" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_62CCEF10730555E611BFBC4F47D88173" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_906A2BA0378D10D66BB1BC4F47D88290" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_CE080F507D90738B07A2BC4F47D8E5AF" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_906A2BA0378D10D66BB1BC4F47D88290" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_906A2BA0378D10D66BB1BC4F47D88290" xlink:to="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_906A2BA0378D10D66BB1BC4F47D88290" xlink:to="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_51E547C0935D50BA92D4BC4F47E234F6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_51E547C0935D50BA92D4BC4F47E234F6" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_NorthAmericaSegmentMember" xlink:label="loc_hsy_NorthAmericaSegmentMember_09C757F59266A6D62366BC4F47E2D45A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B" xlink:to="loc_hsy_NorthAmericaSegmentMember_09C757F59266A6D62366BC4F47E2D45A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_InternationalandOtherSegmentMember" xlink:label="loc_hsy_InternationalandOtherSegmentMember_2F3C173D9FAD9CF83BB6BC4F47E29B40" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_F38C78F5743C7AE2947CBC4F47D84E4B" xlink:to="loc_hsy_InternationalandOtherSegmentMember_2F3C173D9FAD9CF83BB6BC4F47E29B40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNet" xlink:label="loc_us-gaap_SalesRevenueNet_44242D233663415422F3BC4F47E2F42C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_SalesRevenueNet_44242D233663415422F3BC4F47E2F42C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_1CD721548C299F5FDA8CBC4F47E2DBCD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_OperatingIncomeLoss_1CD721548C299F5FDA8CBC4F47E2DBCD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_C4FAF876883618E80700BC4F47E2723A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_C4FAF876883618E80700BC4F47E2723A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:label="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_3CBA24F1163B7843D23EBC4F47E20BF3" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_GoodwillAndIntangibleAssetImpairment_3CBA24F1163B7843D23EBC4F47E20BF3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestructuringCharges" xlink:label="loc_us-gaap_RestructuringCharges_C5FBEB987795F06E66C0BC4F47E2C139" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_RestructuringCharges_C5FBEB987795F06E66C0BC4F47E2C139" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PensionExpenseNonServiceRelated" xlink:label="loc_hsy_PensionExpenseNonServiceRelated_982418DB82C032E5DA8ABC4F47E22169" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_hsy_PensionExpenseNonServiceRelated_982418DB82C032E5DA8ABC4F47E22169" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessCombinationIntegrationRelatedCosts" xlink:label="loc_us-gaap_BusinessCombinationIntegrationRelatedCosts_2AF40B719B0E6E06930EBC4F47E255B7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_BusinessCombinationIntegrationRelatedCosts_2AF40B719B0E6E06930EBC4F47E255B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_A45B6D93FEEBB78765BABC4F47E2B5BD" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_A45B6D93FEEBB78765BABC4F47E2B5BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_E36FF5ABAD49395C70E1BC4F47E2FC6D" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_E36FF5ABAD49395C70E1BC4F47E2FC6D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_374C01AC29ED7BFEADEBBC4F47E2AC39" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_7B3DB9377E9C405361F7BC4F47E23F59" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_374C01AC29ED7BFEADEBBC4F47E2AC39" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SegmentInformationSegmentInformationSummaryOfDerivativeInformationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_B3F21774950F8FD7F90DBC4F47BA3E3E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_B3F21774950F8FD7F90DBC4F47BA3E3E" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_F3972B3ACDE78068AC3DBC4F47BACE03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_F3972B3ACDE78068AC3DBC4F47BACE03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_BB58174660FD1BA7B7E3BC4F47BA752B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F3972B3ACDE78068AC3DBC4F47BACE03" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_BB58174660FD1BA7B7E3BC4F47BA752B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_BB58174660FD1BA7B7E3BC4F47BA752B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_F3972B3ACDE78068AC3DBC4F47BACE03" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_BB58174660FD1BA7B7E3BC4F47BA752B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommodityContractMember" xlink:label="loc_us-gaap_CommodityContractMember_9F59D8880BC302519BFFBC4F47BA4BB2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_BB58174660FD1BA7B7E3BC4F47BA752B" xlink:to="loc_us-gaap_CommodityContractMember_9F59D8880BC302519BFFBC4F47BA4BB2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsAxis" xlink:label="loc_us-gaap_ConsolidationItemsAxis_3F99AB3005441DEDDE8EBC4F47BA3FAD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:to="loc_us-gaap_ConsolidationItemsAxis_3F99AB3005441DEDDE8EBC4F47BA3FAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_A88EF0D41E39247D97ECBC4F47BAB0EB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConsolidationItemsAxis_3F99AB3005441DEDDE8EBC4F47BA3FAD" xlink:to="loc_us-gaap_ConsolidationItemsDomain_A88EF0D41E39247D97ECBC4F47BAB0EB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConsolidationItemsDomain" xlink:label="loc_us-gaap_ConsolidationItemsDomain_A88EF0D41E39247D97ECBC4F47BAB0EB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConsolidationItemsAxis_3F99AB3005441DEDDE8EBC4F47BA3FAD" xlink:to="loc_us-gaap_ConsolidationItemsDomain_A88EF0D41E39247D97ECBC4F47BAB0EB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingSegmentsMember" xlink:label="loc_us-gaap_OperatingSegmentsMember_8E34F2A20C606E64EC18BC4F47BA4F81" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConsolidationItemsDomain_A88EF0D41E39247D97ECBC4F47BAB0EB" xlink:to="loc_us-gaap_OperatingSegmentsMember_8E34F2A20C606E64EC18BC4F47BA4F81" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_89F071D4A41E0AB110B7BC4F47BA37EA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_89F071D4A41E0AB110B7BC4F47BA37EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5F73FB7AA2D8E12AE898BC4F47BA6FDE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_89F071D4A41E0AB110B7BC4F47BA37EA" xlink:to="loc_us-gaap_SegmentDomain_5F73FB7AA2D8E12AE898BC4F47BA6FDE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain" xlink:label="loc_us-gaap_SegmentDomain_5F73FB7AA2D8E12AE898BC4F47BA6FDE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_89F071D4A41E0AB110B7BC4F47BA37EA" xlink:to="loc_us-gaap_SegmentDomain_5F73FB7AA2D8E12AE898BC4F47BA6FDE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaterialReconcilingItemsMember" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_90D46DC80433AF4BBFF1BC4F47BA3DB7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5F73FB7AA2D8E12AE898BC4F47BA6FDE" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_90D46DC80433AF4BBFF1BC4F47BA3DB7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsAxis" xlink:label="loc_us-gaap_SubsegmentsAxis_B0B9BCD4ECA9A3C224DDBC4F47BAAA7C" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:to="loc_us-gaap_SubsegmentsAxis_B0B9BCD4ECA9A3C224DDBC4F47BAAA7C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_25A8FF6EC2841C6C5808BC4F47BA1622_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_B0B9BCD4ECA9A3C224DDBC4F47BAAA7C" xlink:to="loc_us-gaap_SubsegmentsDomain_25A8FF6EC2841C6C5808BC4F47BA1622_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsDomain" xlink:label="loc_us-gaap_SubsegmentsDomain_25A8FF6EC2841C6C5808BC4F47BA1622" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_B0B9BCD4ECA9A3C224DDBC4F47BAAA7C" xlink:to="loc_us-gaap_SubsegmentsDomain_25A8FF6EC2841C6C5808BC4F47BA1622" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsAxis" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsAxis_B0CCC5AEE7399E844BC2BC4F47BAD3E7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_F1F962558BB9768C6FFDBC4F47BA00C2" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsAxis_B0CCC5AEE7399E844BC2BC4F47BAD3E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_C4D877CC53A5A1EEFBDFBC4F47BAF552_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_B0CCC5AEE7399E844BC2BC4F47BAD3E7" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_C4D877CC53A5A1EEFBDFBC4F47BAF552_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_C4D877CC53A5A1EEFBDFBC4F47BAF552" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_B0CCC5AEE7399E844BC2BC4F47BAD3E7" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_C4D877CC53A5A1EEFBDFBC4F47BAF552" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_682AA02BF77B38C0A743BC4F47BA555F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_B3F21774950F8FD7F90DBC4F47BA3E3E" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_682AA02BF77B38C0A743BC4F47BA555F" 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/ShortAndLongTermDebtInterestExpenseDetails" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_0874CFE49B3B25206B7DB82D9F5A2D1A" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_B38FFD327F0242538857B82D9F5A9DFE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0874CFE49B3B25206B7DB82D9F5A2D1A" xlink:to="loc_us-gaap_DebtInstrumentTable_B38FFD327F0242538857B82D9F5A9DFE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_BDCA3D321F1A2359A9FEB82D9F5A8F17" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_B38FFD327F0242538857B82D9F5A9DFE" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_BDCA3D321F1A2359A9FEB82D9F5A8F17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_CF2DDD18FF0E06C9454CB82D9F5A6643_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_BDCA3D321F1A2359A9FEB82D9F5A8F17" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_CF2DDD18FF0E06C9454CB82D9F5A6643_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_CF2DDD18FF0E06C9454CB82D9F5A6643" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_BDCA3D321F1A2359A9FEB82D9F5A8F17" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_CF2DDD18FF0E06C9454CB82D9F5A6643" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_299A48F060EC8E23BCADB82D9F5ABDA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_CF2DDD18FF0E06C9454CB82D9F5A6643" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_299A48F060EC8E23BCADB82D9F5ABDA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_3647925EF8614A5D41A3B82D9F5AA07A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_B38FFD327F0242538857B82D9F5A9DFE" xlink:to="loc_us-gaap_DebtInstrumentAxis_3647925EF8614A5D41A3B82D9F5AA07A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_3647925EF8614A5D41A3B82D9F5AA07A" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_3647925EF8614A5D41A3B82D9F5AA07A" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes5.45Due2016Member" xlink:label="loc_hsy_Notes5.45Due2016Member_F18638C4A4725937AC24B82D9F5A0E13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes5.45Due2016Member_F18638C4A4725937AC24B82D9F5A0E13" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes1.50Due2016Member" xlink:label="loc_hsy_Notes1.50Due2016Member_6484E12A404B311C5CACB82D9F5A6958" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes1.50Due2016Member_6484E12A404B311C5CACB82D9F5A6958" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes1.60Due2018Member" xlink:label="loc_hsy_Notes1.60Due2018Member_3B488D6D11AA59035360B82D9F5A69E2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes1.60Due2018Member_3B488D6D11AA59035360B82D9F5A69E2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes4.125Due2020Member" xlink:label="loc_hsy_Notes4.125Due2020Member_BC58F98534F6C81C9297B82D9F5A726F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes4.125Due2020Member_BC58F98534F6C81C9297B82D9F5A726F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures8.8Due2021Member" xlink:label="loc_hsy_Debentures8.8Due2021Member_BBF5BFFE691415B22242B82D9F5AB9F3" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Debentures8.8Due2021Member_BBF5BFFE691415B22242B82D9F5AB9F3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes2.625Due2023Member" xlink:label="loc_hsy_Notes2.625Due2023Member_79CB958E9FC9824499B1B82D9F5A97DE" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes2.625Due2023Member_79CB958E9FC9824499B1B82D9F5A97DE" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes3.20Due2025Member" xlink:label="loc_hsy_Notes3.20Due2025Member_995AB41797EC72D7151FB82D9F5A89B7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes3.20Due2025Member_995AB41797EC72D7151FB82D9F5A89B7" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes2.30Due2026Member" xlink:label="loc_hsy_Notes2.30Due2026Member_74610AE99581E86D0D16B82D9F5A3C08" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes2.30Due2026Member_74610AE99581E86D0D16B82D9F5A3C08" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures7.2Due2027Member" xlink:label="loc_hsy_Debentures7.2Due2027Member_08562472D60CAE55D867B82D9F5AD380" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Debentures7.2Due2027Member_08562472D60CAE55D867B82D9F5AD380" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes3.375Due2046Member" xlink:label="loc_hsy_Notes3.375Due2046Member_B19311478FAED887DF32B82D9F5AC924" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_55A98C86C219C3C8FB6FB82D9F5A0567" xlink:to="loc_hsy_Notes3.375Due2046Member_B19311478FAED887DF32B82D9F5AC924" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_15EEE334C0EEA67A4631B82D9F5A7C0B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_0874CFE49B3B25206B7DB82D9F5A2D1A" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_15EEE334C0EEA67A4631B82D9F5A7C0B" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtMaturityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtLongTermDebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_4E1596468B06EE4B2C5A1E5249E03398" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_DebtInstrumentTable_4E1596468B06EE4B2C5A1E5249E03398" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_51DBD540030BC48033221E5249E0CB26" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4E1596468B06EE4B2C5A1E5249E03398" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_51DBD540030BC48033221E5249E0CB26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_852EA0A67031A65B4AB51E5249E0FFE0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_51DBD540030BC48033221E5249E0CB26" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_852EA0A67031A65B4AB51E5249E0FFE0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_852EA0A67031A65B4AB51E5249E0FFE0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_51DBD540030BC48033221E5249E0CB26" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_852EA0A67031A65B4AB51E5249E0FFE0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_528D89033770700F7DA21E5249E0B1CC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_852EA0A67031A65B4AB51E5249E0FFE0" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_528D89033770700F7DA21E5249E0B1CC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_528FA01B48A4F05B20E31E5249E00714" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4E1596468B06EE4B2C5A1E5249E03398" xlink:to="loc_us-gaap_DebtInstrumentAxis_528FA01B48A4F05B20E31E5249E00714" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_528FA01B48A4F05B20E31E5249E00714" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_528FA01B48A4F05B20E31E5249E00714" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes5.45Due2016Member" xlink:label="loc_hsy_Notes5.45Due2016Member_5F705B8AAFEB312118741E5249E081CF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Notes5.45Due2016Member_5F705B8AAFEB312118741E5249E081CF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes1.50Due2016Member" xlink:label="loc_hsy_Notes1.50Due2016Member_07F822DEDF6776C70E001E5249E0A57F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Notes1.50Due2016Member_07F822DEDF6776C70E001E5249E0A57F" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes2.30Due2026Member" xlink:label="loc_hsy_Notes2.30Due2026Member_A894E57331EFC77BFB481E5249E02A18" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Notes2.30Due2026Member_A894E57331EFC77BFB481E5249E02A18" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes3.375Due2046Member" xlink:label="loc_hsy_Notes3.375Due2046Member_F9A94FF0863D132F23191E5249EF1F37" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Notes3.375Due2046Member_F9A94FF0863D132F23191E5249EF1F37" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures8.8Due2021Member" xlink:label="loc_hsy_Debentures8.8Due2021Member_5A73756E5EF8040372461E5249EF966A" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Debentures8.8Due2021Member_5A73756E5EF8040372461E5249EF966A" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures7.2Due2027Member" xlink:label="loc_hsy_Debentures7.2Due2027Member_B086F49F4566C84F67631E5249EFDDC2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7AC7418BD9EBE4C5BB4A1E5249E027F4" xlink:to="loc_hsy_Debentures7.2Due2027Member_B086F49F4566C84F67631E5249EFDDC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAxis" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAxis_4B8DCF57FEC7927A7DF61E5249EFE2CE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_4E1596468B06EE4B2C5A1E5249E03398" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAxis_4B8DCF57FEC7927A7DF61E5249EFE2CE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3790536D36ED979485001E5249EFD4A8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_4B8DCF57FEC7927A7DF61E5249EFE2CE" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3790536D36ED979485001E5249EFD4A8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtTypeDomain" xlink:label="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3790536D36ED979485001E5249EFD4A8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ExtinguishmentOfDebtAxis_4B8DCF57FEC7927A7DF61E5249EFE2CE" xlink:to="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3790536D36ED979485001E5249EFD4A8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_33CD53B119F50F9F4CD91E5249EF9CBC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ExtinguishmentOfDebtTypeDomain_3790536D36ED979485001E5249EFD4A8" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_33CD53B119F50F9F4CD91E5249EF9CBC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_6B4DF5B8BB90B6F8D9EB1E5249EFACA1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_RepaymentsOfDebt_6B4DF5B8BB90B6F8D9EB1E5249EFACA1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_50CC0392EF378F6910231E5249EF5849" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_50CC0392EF378F6910231E5249EF5849" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_7A15105AD30E38C188CD1E5249EF3974" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_7A15105AD30E38C188CD1E5249EF3974" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_DD0571442A1E0BD599121E5249EFD3ED" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_DD0571442A1E0BD599121E5249EFD3ED" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentRepurchaseAmount" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_FF75691054DACCEFF7891E5249EFF621" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_FF75691054DACCEFF7891E5249EFF621" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ExtinguishmentOfDebtAmount" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_2964338AC616094E0E001E5249EF8DAC" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_2964338AC616094E0E001E5249EF8DAC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_E0012A2537C4A90ADC4F1E5249EF34BA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_E0012A2537C4A90ADC4F1E5249EF34BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainOnFairValueHedgeIneffectiveness" xlink:label="loc_us-gaap_GainOnFairValueHedgeIneffectiveness_F6F6E6C04B7C4ADB6DD61E5249EF97C4" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_51AC96B6BDE07899BD921E5249EF58A9" xlink:to="loc_us-gaap_GainOnFairValueHedgeIneffectiveness_F6F6E6C04B7C4ADB6DD61E5249EF97C4" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtShortTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityTable" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_21EE87E3FF4527F88EEE14859CE65AE6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:to="loc_us-gaap_DebtInstrumentAxis_21EE87E3FF4527F88EEE14859CE65AE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_E30D991566141D3659C814859CE60FB8_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_21EE87E3FF4527F88EEE14859CE65AE6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_E30D991566141D3659C814859CE60FB8_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_E30D991566141D3659C814859CE60FB8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_21EE87E3FF4527F88EEE14859CE65AE6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_E30D991566141D3659C814859CE60FB8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_7D7DE4441F74473871EB14859CE6AF12" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_E30D991566141D3659C814859CE60FB8" xlink:to="loc_us-gaap_LineOfCreditMember_7D7DE4441F74473871EB14859CE6AF12" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityAxis" xlink:label="loc_us-gaap_CreditFacilityAxis_0A175DC29C063716439514859CE6E829" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:to="loc_us-gaap_CreditFacilityAxis_0A175DC29C063716439514859CE6E829" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_89D84AE13E9F6F4B969114859CE61A97_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_0A175DC29C063716439514859CE6E829" xlink:to="loc_us-gaap_CreditFacilityDomain_89D84AE13E9F6F4B969114859CE61A97_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CreditFacilityDomain" xlink:label="loc_us-gaap_CreditFacilityDomain_89D84AE13E9F6F4B969114859CE61A97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_0A175DC29C063716439514859CE6E829" xlink:to="loc_us-gaap_CreditFacilityDomain_89D84AE13E9F6F4B969114859CE61A97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevolvingCreditFacilityMember" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_2DA0BF8F23CB0D2CE57C14859CE6CA80" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_89D84AE13E9F6F4B969114859CE61A97" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_2DA0BF8F23CB0D2CE57C14859CE6CA80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_EC868BE8D1C0E1780D7A14859CE6BA52" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_EC868BE8D1C0E1780D7A14859CE6BA52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_EC868BE8D1C0E1780D7A14859CE6BA52" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_EC868BE8D1C0E1780D7A14859CE6BA52" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditMember" xlink:label="loc_us-gaap_LineOfCreditMember_BB16F6CD29BEE064CD2614859CE6F4B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D" xlink:to="loc_us-gaap_LineOfCreditMember_BB16F6CD29BEE064CD2614859CE6F4B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignLineOfCreditMember" xlink:label="loc_us-gaap_ForeignLineOfCreditMember_643BB1604FC0EDE2355614859CE65C26" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_045A9376F30A735D719C14859CE6B67D" xlink:to="loc_us-gaap_ForeignLineOfCreditMember_643BB1604FC0EDE2355614859CE65C26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermDebtTypeAxis" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_BD30B742B88D206D44D014859CE6EE4F" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_979DE81FF91C62940E7614859CE6C476" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_BD30B742B88D206D44D014859CE6EE4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_15837E19225784ECC9D314859CE6FAC0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_BD30B742B88D206D44D014859CE6EE4F" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_15837E19225784ECC9D314859CE6FAC0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermDebtTypeDomain" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_15837E19225784ECC9D314859CE6FAC0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_BD30B742B88D206D44D014859CE6EE4F" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_15837E19225784ECC9D314859CE6FAC0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommercialPaperMember" xlink:label="loc_us-gaap_CommercialPaperMember_52EB616567FE3FD555E114859CE69611" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_15837E19225784ECC9D314859CE6FAC0" xlink:to="loc_us-gaap_CommercialPaperMember_52EB616567FE3FD555E114859CE69611" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_0BAC19D1A18D6933978A14859CE6B6F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_0BAC19D1A18D6933978A14859CE6B6F5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit" xlink:label="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_BA3BC3348AFC1A12FD9514859CE6ABB1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_BA3BC3348AFC1A12FD9514859CE6ABB1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DebtInstrumentCovenantPretaxIncomeFromOperationsToConsolidatedInterestExpenseMinimum" xlink:label="loc_hsy_DebtInstrumentCovenantPretaxIncomeFromOperationsToConsolidatedInterestExpenseMinimum_BC41E3895B9C60A5A11514859CE601F4" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_hsy_DebtInstrumentCovenantPretaxIncomeFromOperationsToConsolidatedInterestExpenseMinimum_BC41E3895B9C60A5A11514859CE601F4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LinesOfCreditCurrent" xlink:label="loc_us-gaap_LinesOfCreditCurrent_F2EC726102228986CCCA14859CE6B387" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_LinesOfCreditCurrent_F2EC726102228986CCCA14859CE6B387" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermBorrowings" xlink:label="loc_us-gaap_ShortTermBorrowings_788B6D67250EA938336A14859CE615B4" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_ShortTermBorrowings_788B6D67250EA938336A14859CE615B4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_DFADB0BF4900B78BB37B14859CE6001E" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_DFADB0BF4900B78BB37B14859CE6001E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumAmountOutstandingDuringPeriod" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumAmountOutstandingDuringPeriod_6591AE5F214ECFB968E614859CE68912" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_6ED6F84638294E950B9314859CE645AD" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumAmountOutstandingDuringPeriod_6591AE5F214ECFB968E614859CE68912" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ShortAndLongTermDebtSummaryOfLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_E2B3D735934D1943C6B0291464C0F70B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:to="loc_us-gaap_DebtInstrumentTable_E2B3D735934D1943C6B0291464C0F70B" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_FF94F6DD6F536298E5FD291464C02D1C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_E2B3D735934D1943C6B0291464C0F70B" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_FF94F6DD6F536298E5FD291464C02D1C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_FF94F6DD6F536298E5FD291464C02D1C" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_FF94F6DD6F536298E5FD291464C02D1C" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_6BE760455455C92C2B36291464C15D9B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_6BE760455455C92C2B36291464C15D9B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalLeaseObligationsMember" xlink:label="loc_us-gaap_CapitalLeaseObligationsMember_94B57806D180F3641D89291464C175A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_B3C2E86101210D615B33291464C0FB67" xlink:to="loc_us-gaap_CapitalLeaseObligationsMember_94B57806D180F3641D89291464C175A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_43442208CEC64AAD7920291464C1F284" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_E2B3D735934D1943C6B0291464C0F70B" xlink:to="loc_us-gaap_DebtInstrumentAxis_43442208CEC64AAD7920291464C1F284" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_43442208CEC64AAD7920291464C1F284" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_43442208CEC64AAD7920291464C1F284" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes5.45Due2016Member" xlink:label="loc_hsy_Notes5.45Due2016Member_EE047C3D9D3AB81D4581291464C15749" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes5.45Due2016Member_EE047C3D9D3AB81D4581291464C15749" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes1.50Due2016Member" xlink:label="loc_hsy_Notes1.50Due2016Member_33F816AFCCA6952E623C291464C35C2B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes1.50Due2016Member_33F816AFCCA6952E623C291464C35C2B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes1.60Due2018Member" xlink:label="loc_hsy_Notes1.60Due2018Member_F31CC8BBD62D6A14E864291464C3FB61" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes1.60Due2018Member_F31CC8BBD62D6A14E864291464C3FB61" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes4.125Due2020Member" xlink:label="loc_hsy_Notes4.125Due2020Member_FAF2C09FDEF6930D87FA291464C34CAB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes4.125Due2020Member_FAF2C09FDEF6930D87FA291464C34CAB" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures8.8Due2021Member" xlink:label="loc_hsy_Debentures8.8Due2021Member_67A56983C7AC886F38F6291464C3275D" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Debentures8.8Due2021Member_67A56983C7AC886F38F6291464C3275D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes2.625Due2023Member" xlink:label="loc_hsy_Notes2.625Due2023Member_5E484CD0ED194D3A67AE291464C35FDF" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes2.625Due2023Member_5E484CD0ED194D3A67AE291464C35FDF" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes3.20Due2025Member" xlink:label="loc_hsy_Notes3.20Due2025Member_A53DDB6A3434E7DEF672291464C3EF7C" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes3.20Due2025Member_A53DDB6A3434E7DEF672291464C3EF7C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes2.30Due2026Member" xlink:label="loc_hsy_Notes2.30Due2026Member_0BD7D03BBA78E6624E84291464C33A6D" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes2.30Due2026Member_0BD7D03BBA78E6624E84291464C33A6D" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Debentures7.2Due2027Member" xlink:label="loc_hsy_Debentures7.2Due2027Member_9E9D91106EBCF6DCBFF5291464C39E66" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Debentures7.2Due2027Member_9E9D91106EBCF6DCBFF5291464C39E66" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_Notes3.375Due2046Member" xlink:label="loc_hsy_Notes3.375Due2046Member_F8EEC8F3EA50C36E657E291464C4B5C6" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_B85194FC9FF8320337A2291464C13DB5" xlink:to="loc_hsy_Notes3.375Due2046Member_F8EEC8F3EA50C36E657E291464C4B5C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_32D2964B6FEFF8D84361291464C4CAF1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:to="loc_us-gaap_LongTermDebt_32D2964B6FEFF8D84361291464C4CAF1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet" xlink:label="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_F840CEF2F5292BDAA11A291464C44A0A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:to="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_F840CEF2F5292BDAA11A291464C44A0A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_D7A5300BA0EB1AB94044291464C495BD" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:to="loc_us-gaap_LongTermDebtCurrent_D7A5300BA0EB1AB94044291464C495BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_F9176EDB5B19AC9787DD291464C41F38" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_B007CC4C34BF8AFB9BCF291464C4DBE7" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_F9176EDB5B19AC9787DD291464C41F38" xlink:type="arc" />
  </link:definitionLink>
  <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/StockCompensationPlansCompensationExpenseAndIncomeTaxBenefitsForStockBasedCompensationProgramsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansFairValueWeightedAverageAssumptionsDetails" 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/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3EAA0980AA49BC968139BC4F48D2301D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3EAA0980AA49BC968139BC4F48D2301D" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_6311D0AFD10FCC8EA228BC4F48DC4FC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3EAA0980AA49BC968139BC4F48D2301D" xlink:to="loc_us-gaap_AwardTypeAxis_6311D0AFD10FCC8EA228BC4F48DC4FC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_6311D0AFD10FCC8EA228BC4F48DC4FC6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_6311D0AFD10FCC8EA228BC4F48DC4FC6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_E4C9C458A1BA07BE1765BC4F48DCB5AC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB" xlink:to="loc_us-gaap_EmployeeStockOptionMember_E4C9C458A1BA07BE1765BC4F48DCB5AC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PerformanceSharesMember" xlink:label="loc_us-gaap_PerformanceSharesMember_50058A17B40DCAB9AAA9BC4F48DC8A6C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB" xlink:to="loc_us-gaap_PerformanceSharesMember_50058A17B40DCAB9AAA9BC4F48DC8A6C" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PerformanceStockUnitsandRestrictedStockUnitsMember" xlink:label="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_774C55DAA94B1429427EBC4F48DC7645" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9275B73930402DBD3FD5BC4F48DCE8CB" xlink:to="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_774C55DAA94B1429427EBC4F48DC7645" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_D17D7BF55119376AB551BC4F48DC279F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3EAA0980AA49BC968139BC4F48D2301D" xlink:to="loc_us-gaap_RangeAxis_D17D7BF55119376AB551BC4F48DC279F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_D17D7BF55119376AB551BC4F48DC279F" xlink:to="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_D17D7BF55119376AB551BC4F48DC279F" xlink:to="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_4327E66CB8C77F8E768DBC4F48DC1D3B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433" xlink:to="loc_us-gaap_MinimumMember_4327E66CB8C77F8E768DBC4F48DC1D3B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_67B2B6C3D5EE5ADA5CA8BC4F48DC1A25" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_483B6E7198E001432AFFBC4F48DCD433" xlink:to="loc_us-gaap_MaximumMember_67B2B6C3D5EE5ADA5CA8BC4F48DC1A25" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_5A666DFA8FB2F379DBADBC4F48DCD1B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_5A666DFA8FB2F379DBADBC4F48DCD1B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_1A19D9BDEF6A891A9CCEBC4F48DC0E23" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_1A19D9BDEF6A891A9CCEBC4F48DC0E23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5B9AB4882874D4A2F88DBC4F48DC8105" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_5B9AB4882874D4A2F88DBC4F48DC8105" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_2952F1630927DC42B434BC4F48DC61BC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_2952F1630927DC42B434BC4F48DC61BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_EEE53EF32308CCCB12CCBC4F48DC2993" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_EEE53EF32308CCCB12CCBC4F48DC2993" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_409BECB5B433A5D60DBEBC4F48DCE1C6" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_409BECB5B433A5D60DBEBC4F48DCE1C6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1CF12DF963944360F493BC4F48DC91EA" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1CF12DF963944360F493BC4F48DC91EA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_C2D97A9A0E739E8AEF9DBC4F48DCDDC2" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedStockOptions_C2D97A9A0E739E8AEF9DBC4F48DCDDC2" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceScorePercentage" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceScorePercentage_8F9460AF4EC67814C590BC4F48DCC32B" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceScorePercentage_8F9460AF4EC67814C590BC4F48DCC32B" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumberExcluded" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumberExcluded_AB1A21385F6117F4ADD0BC4F48DC1750" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumberExcluded_AB1A21385F6117F4ADD0BC4F48DC1750" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_C495D2D74BA02B98A2A1BC4F48E6C10C" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_C495D2D74BA02B98A2A1BC4F48E6C10C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_47F3F0C34C8969E7EB6BBC4F48E62A02" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_47F3F0C34C8969E7EB6BBC4F48E62A02" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_DeferredCompensationArrangementwithIndividualConversionBasis" xlink:label="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_C7ADBA94F58C16C9FF28BC4F48E6EE72" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_E7E1600F2AD0175F6371BC4F48DCCF72" xlink:to="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_C7ADBA94F58C16C9FF28BC4F48E6EE72" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansPsusAndRsusFairValueWeightedAverageAssumptionsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B08CFEE3F3DB1DF6568B685787F7D9A9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B08CFEE3F3DB1DF6568B685787F7D9A9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_8553C7D7D1657A91FCDA685787F74B23" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_B08CFEE3F3DB1DF6568B685787F7D9A9" xlink:to="loc_us-gaap_AwardTypeAxis_8553C7D7D1657A91FCDA685787F74B23" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CB3B0BEF706BA0B7BB41685787F75DCD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8553C7D7D1657A91FCDA685787F74B23" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CB3B0BEF706BA0B7BB41685787F75DCD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CB3B0BEF706BA0B7BB41685787F75DCD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8553C7D7D1657A91FCDA685787F74B23" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CB3B0BEF706BA0B7BB41685787F75DCD" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_2D44D58B6FD386335C71685787F7E61A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_CB3B0BEF706BA0B7BB41685787F75DCD" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_2D44D58B6FD386335C71685787F7E61A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_33EB0C294E1D07167580685787F82130" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_33EB0C294E1D07167580685787F82130" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E4531DA3EE5DA09E11D6685787F8BBC2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_E4531DA3EE5DA09E11D6685787F8BBC2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharePrice" xlink:label="loc_us-gaap_SharePrice_8420011AEEB481075057685787F86E66" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_SharePrice_8420011AEEB481075057685787F86E66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_6C966201F12E7466B540685787F8D15D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_6C966201F12E7466B540685787F8D15D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_360FB3B96F3D6D8CDF6E685787F80277" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_3E6D062EBFC53A798B52685787F7A5E5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_360FB3B96F3D6D8CDF6E685787F80277" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansStockOptionActivityDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansStockOptionInformationByExercisePriceRangeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_D4D15487BABE678EC6D2CBBD876F17B0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_D4D15487BABE678EC6D2CBBD876F17B0" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_3EEBAC5F0E9EE2EAB08DCBBD876F898F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable_D4D15487BABE678EC6D2CBBD876F17B0" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_3EEBAC5F0E9EE2EAB08DCBBD876F898F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_3EEBAC5F0E9EE2EAB08DCBBD876F898F" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis_3EEBAC5F0E9EE2EAB08DCBBD876F898F" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ExercisePriceRangeOneMember" xlink:label="loc_hsy_ExercisePriceRangeOneMember_F7CD83560AE7FD5AD7DBCBBD876F769E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:to="loc_hsy_ExercisePriceRangeOneMember_F7CD83560AE7FD5AD7DBCBBD876F769E" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ExercisePriceRangeTwoMember" xlink:label="loc_hsy_ExercisePriceRangeTwoMember_9BCB437CA3C37039EC14CBBD876FA0D5" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:to="loc_hsy_ExercisePriceRangeTwoMember_9BCB437CA3C37039EC14CBBD876FA0D5" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ExercisePriceRangeThreeMember" xlink:label="loc_hsy_ExercisePriceRangeThreeMember_51A2C9EE9CC619E25355CBBD876F69B0" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:to="loc_hsy_ExercisePriceRangeThreeMember_51A2C9EE9CC619E25355CBBD876F69B0" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ExercisePriceRangeFourMember" xlink:label="loc_hsy_ExercisePriceRangeFourMember_FCC06F898C54CFCA48D8CBBD876F4857" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_6615CCE355D9D910FF04CBBD876F07E1" xlink:to="loc_hsy_ExercisePriceRangeFourMember_FCC06F898C54CFCA48D8CBBD876F4857" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_082B78112B157B6B3CD1CBD615629278" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit_082B78112B157B6B3CD1CBD615629278" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_F154F8403AF3118D1ED2CBD71EE6AE24" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit_F154F8403AF3118D1ED2CBD71EE6AE24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions_BF089A725FBBFC435534CBBD876FAC80" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions_BF089A725FBBFC435534CBBD876FAC80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2_5C5B8C81ABA77CA39BCFCBBD876FFF5A" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageRemainingContractualTerm2_5C5B8C81ABA77CA39BCFCBBD876FFF5A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1" xlink:label="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_370E886ED1CD8D80977FCBBD876F08D7" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeOutstandingOptionsWeightedAverageExercisePriceBeginningBalance1_370E886ED1CD8D80977FCBBD876F08D7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions" xlink:label="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_3BA08E5ABF09E7ED81FCCBBD876FEF9C" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions_3BA08E5ABF09E7ED81FCCBBD876FEF9C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1" xlink:label="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_8908F06654E5C1E2636DCBBD876FF587" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems_8A679F9793EAC669B90CCBBD876FD21B" xlink:to="loc_us-gaap_SharebasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeExercisableOptionsWeightedAverageExercisePrice1_8908F06654E5C1E2636DCBBD876FF587" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/StockCompensationPlansSummaryOfPsusAndRsusActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_50534E4AA22D75B9B32568578818960E" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_92DF3AB8A65D79A6B1CD68578818D8E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_50534E4AA22D75B9B32568578818960E" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_92DF3AB8A65D79A6B1CD68578818D8E1" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_F89974C0EFA4A90929316857881838A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_92DF3AB8A65D79A6B1CD68578818D8E1" xlink:to="loc_us-gaap_AwardTypeAxis_F89974C0EFA4A90929316857881838A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D4AF243246F894D327DB6857881818A3_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_F89974C0EFA4A90929316857881838A3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D4AF243246F894D327DB6857881818A3_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D4AF243246F894D327DB6857881818A3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_F89974C0EFA4A90929316857881838A3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D4AF243246F894D327DB6857881818A3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_A5FDE446F8DFB94D16AC6857881831FA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_D4AF243246F894D327DB6857881818A3" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_A5FDE446F8DFB94D16AC6857881831FA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_50534E4AA22D75B9B32568578818960E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_B43F3DF4EEF2F0589B7D6857881845E4" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_B43F3DF4EEF2F0589B7D6857881845E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_0BA478CD04D0A39DAC4068578818B3E3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_0BA478CD04D0A39DAC4068578818B3E3" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_C2178D2D0A9F9B837D1D68578818CD95" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_C2178D2D0A9F9B837D1D68578818CD95" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_E577D9EEA6F789460887685788185DBC" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_E577D9EEA6F789460887685788185DBC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_A2CB6692F517BD36A2A2685788186913" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_ABCABA479F6F12991CB068578818234B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_A2CB6692F517BD36A2A2685788186913" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_50534E4AA22D75B9B32568578818960E" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_94F98F1A4F8A1311CA1768578818ED37" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_94F98F1A4F8A1311CA1768578818ED37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_762272B22A853B2BDBE3685788199575" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_762272B22A853B2BDBE3685788199575" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_02D2DAE6175253EF57B668578819FE84" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_02D2DAE6175253EF57B668578819FE84" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_987153000CEEC849885868578819A047" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_987153000CEEC849885868578819A047" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_9AB822A3EF820B24D0AD685788190504" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_A14218BB92B19A77A09A6857881829B9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_9AB822A3EF820B24D0AD685788190504" xlink:type="arc" />
  </link:definitionLink>
  <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/SummaryOfSignificantAccountingPoliciesAccountsReceivableTradeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_F802FDD098D680E2D6C2BC4F4B848044" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_C95A08FBB7110CB90C01BC4F4B7A4371" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_F802FDD098D680E2D6C2BC4F4B848044" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_C95A08FBB7110CB90C01BC4F4B7A4371" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_D107EAAA7C164F960964BC4F4B7ABF73" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_C95A08FBB7110CB90C01BC4F4B7A4371" xlink:to="loc_us-gaap_MajorCustomersAxis_D107EAAA7C164F960964BC4F4B7ABF73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_D107EAAA7C164F960964BC4F4B7ABF73" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_D107EAAA7C164F960964BC4F4B7ABF73" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_McLaneCompanyInc.Member" xlink:label="loc_hsy_McLaneCompanyInc.Member_A178C850E8260B20933DBC4F4B7A4B13" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1" xlink:to="loc_hsy_McLaneCompanyInc.Member_A178C850E8260B20933DBC4F4B7A4B13" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_WalMartStoresInc.Member" xlink:label="loc_hsy_WalMartStoresInc.Member_45FABEDCFD3BCA767F06BC4F4B7A96A3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_7CEF58D08A28E4EF2E2DBC4F4B7A1FB1" xlink:to="loc_hsy_WalMartStoresInc.Member_45FABEDCFD3BCA767F06BC4F4B7A96A3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_0010D8A2C01CC923E996BC4F4B7AF86D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_C95A08FBB7110CB90C01BC4F4B7A4371" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_0010D8A2C01CC923E996BC4F4B7AF86D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_682B01291637D4FAD3BEBC4F4B7A98BB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0010D8A2C01CC923E996BC4F4B7AF86D" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_682B01291637D4FAD3BEBC4F4B7A98BB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_682B01291637D4FAD3BEBC4F4B7A98BB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_0010D8A2C01CC923E996BC4F4B7AF86D" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_682B01291637D4FAD3BEBC4F4B7A98BB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_EBA4CF6001A449E5E7ECBC4F4B8475B9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_682B01291637D4FAD3BEBC4F4B7A98BB" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_EBA4CF6001A449E5E7ECBC4F4B8475B9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_979B62E26C7AB55582C3BC4F4B844C7D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_C95A08FBB7110CB90C01BC4F4B7A4371" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_979B62E26C7AB55582C3BC4F4B844C7D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C24DDA58F6E8F0DFA4F6BC4F4B84A8E0_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_979B62E26C7AB55582C3BC4F4B844C7D" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C24DDA58F6E8F0DFA4F6BC4F4B84A8E0_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C24DDA58F6E8F0DFA4F6BC4F4B84A8E0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_979B62E26C7AB55582C3BC4F4B844C7D" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C24DDA58F6E8F0DFA4F6BC4F4B84A8E0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableMember" xlink:label="loc_us-gaap_AccountsReceivableMember_15899CC451D4CAECC5CDBC4F4B84498A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_C24DDA58F6E8F0DFA4F6BC4F4B84A8E0" xlink:to="loc_us-gaap_AccountsReceivableMember_15899CC451D4CAECC5CDBC4F4B84498A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_E885956E6CD4F1193AEABC4F4B844251" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_F802FDD098D680E2D6C2BC4F4B848044" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_E885956E6CD4F1193AEABC4F4B844251" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_81402428C09164C13D34BC4F4B847B7E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_F802FDD098D680E2D6C2BC4F4B848044" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_81402428C09164C13D34BC4F4B847B7E" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesBasisOfPresentationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesComputerSoftwareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A89F66A264C27994ED61685788661656" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_D926C0E99C634ED0366D68578866670A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A89F66A264C27994ED61685788661656" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_D926C0E99C634ED0366D68578866670A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_95554C088019EDAC315D68578866E161" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_D926C0E99C634ED0366D68578866670A" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_95554C088019EDAC315D68578866E161" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_C319188A76029B6C0F0C68578866BF03_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_95554C088019EDAC315D68578866E161" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_C319188A76029B6C0F0C68578866BF03_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_C319188A76029B6C0F0C68578866BF03" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_95554C088019EDAC315D68578866E161" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_C319188A76029B6C0F0C68578866BF03" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SoftwareAndSoftwareDevelopmentCostsMember" xlink:label="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_8D837486E87180717D5F68578866B8B5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_C319188A76029B6C0F0C68578866BF03" xlink:to="loc_us-gaap_SoftwareAndSoftwareDevelopmentCostsMember_8D837486E87180717D5F68578866B8B5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_A0E9478F3E048C6BF06368578866830A" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_D926C0E99C634ED0366D68578866670A" xlink:to="loc_us-gaap_RangeAxis_A0E9478F3E048C6BF06368578866830A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_A0E9478F3E048C6BF06368578866830A" xlink:to="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_A0E9478F3E048C6BF06368578866830A" xlink:to="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_F41C8FAD7B0C9A9EAA7E685788665B97" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64" xlink:to="loc_us-gaap_MinimumMember_F41C8FAD7B0C9A9EAA7E685788665B97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_999924496BDC5D17A43E685788669E75" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_664AB13579C43667806268578866EE64" xlink:to="loc_us-gaap_MaximumMember_999924496BDC5D17A43E685788669E75" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalizedComputerSoftwareNet" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareNet_A976EBBA7DE2C8241CFB685788677FBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A89F66A264C27994ED61685788661656" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareNet_A976EBBA7DE2C8241CFB685788677FBB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_D719EE3B97E05ADCCAD868578867409C" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A89F66A264C27994ED61685788661656" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_D719EE3B97E05ADCCAD868578867409C" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CapitalizedComputerSoftwareAccumulatedAmortization" xlink:label="loc_us-gaap_CapitalizedComputerSoftwareAccumulatedAmortization_B658B12641312E43B6F6685788675414" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_A89F66A264C27994ED61685788661656" xlink:to="loc_us-gaap_CapitalizedComputerSoftwareAccumulatedAmortization_B658B12641312E43B6F6685788675414" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesDescriptionOfBusinessDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_97C714B5DAFEAF907F79BC4F4B34307B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9E6FF3E5F2D14F0B1626BC4F4B340B5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_97C714B5DAFEAF907F79BC4F4B34307B" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9E6FF3E5F2D14F0B1626BC4F4B340B5E" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9A35CC4C09B7247444C9BC4F4B34E8D8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_9E6FF3E5F2D14F0B1626BC4F4B340B5E" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9A35CC4C09B7247444C9BC4F4B34E8D8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9A35CC4C09B7247444C9BC4F4B34E8D8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_9A35CC4C09B7247444C9BC4F4B34E8D8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TrademarksMember" xlink:label="loc_us-gaap_TrademarksMember_C8D99A4BEE12BF88C467BC4F4B344CA8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE" xlink:to="loc_us-gaap_TrademarksMember_C8D99A4BEE12BF88C467BC4F4B344CA8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:label="loc_us-gaap_CustomerRelationshipsMember_DCCAF87CAA4639EA390FBC4F4B34E12B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE" xlink:to="loc_us-gaap_CustomerRelationshipsMember_DCCAF87CAA4639EA390FBC4F4B34E12B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PatentsMember" xlink:label="loc_us-gaap_PatentsMember_7F5215DB9F2B85C9E89ABC4F4B34A9B7" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_F898E4FB56409D1501D5BC4F4B344FAE" xlink:to="loc_us-gaap_PatentsMember_7F5215DB9F2B85C9E89ABC4F4B34A9B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_E16CE683B92CFED7F847BC4F4B34F19A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_97C714B5DAFEAF907F79BC4F4B34307B" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_E16CE683B92CFED7F847BC4F4B34F19A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesInventoriesDetails" 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/SummaryOfSignificantAccountingPoliciesPropertyPlantAndEquipmentDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentLineItems" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_51A04B96CAB8874C071113AC42907668" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A8F7510418D0C4C8F5F313AC4290F75C" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_51A04B96CAB8874C071113AC42907668" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A8F7510418D0C4C8F5F313AC4290F75C" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_48E9CEB4DC83EADC044E13AC429077F0" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A8F7510418D0C4C8F5F313AC4290F75C" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_48E9CEB4DC83EADC044E13AC429077F0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_48E9CEB4DC83EADC044E13AC429077F0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_48E9CEB4DC83EADC044E13AC429077F0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MachineryAndEquipmentMember" xlink:label="loc_us-gaap_MachineryAndEquipmentMember_6F9D43EF379F4F57F27A13AC4290D410" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197" xlink:to="loc_us-gaap_MachineryAndEquipmentMember_6F9D43EF379F4F57F27A13AC4290D410" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember" xlink:label="loc_us-gaap_BuildingAndBuildingImprovementsMember_5E4C96910EBEB411645B13AC4290BB37" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_E29A0CAC9E48944E6E9013AC42907197" xlink:to="loc_us-gaap_BuildingAndBuildingImprovementsMember_5E4C96910EBEB411645B13AC4290BB37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis" xlink:label="loc_us-gaap_RangeAxis_BB758423AC2EF9D6430E13AC4290C3C4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_A8F7510418D0C4C8F5F313AC4290F75C" xlink:to="loc_us-gaap_RangeAxis_BB758423AC2EF9D6430E13AC4290C3C4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RangeAxis_BB758423AC2EF9D6430E13AC4290C3C4" xlink:to="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember" xlink:label="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RangeAxis_BB758423AC2EF9D6430E13AC4290C3C4" xlink:to="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember" xlink:label="loc_us-gaap_MinimumMember_7220A52241E08E0A53F313AC4290EDE1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5" xlink:to="loc_us-gaap_MinimumMember_7220A52241E08E0A53F313AC4290EDE1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember" xlink:label="loc_us-gaap_MaximumMember_6FF1BEE9AA4B687AD72213AC429081B8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RangeMember_B93A5A5A24D1CC22240613AC429098F5" xlink:to="loc_us-gaap_MaximumMember_6FF1BEE9AA4B687AD72213AC429081B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_AA8E45B9565B326129F813AC4290DCA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_51A04B96CAB8874C071113AC42907668" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_AA8E45B9565B326129F813AC4290DCA3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentForAmortization" xlink:label="loc_us-gaap_AdjustmentForAmortization_C73C374FE546ABE3DE691408FF4AC1DA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_51A04B96CAB8874C071113AC42907668" xlink:to="loc_us-gaap_AdjustmentForAmortization_C73C374FE546ABE3DE691408FF4AC1DA" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesRevenueRecognitionDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_C29AB6FA7C3FC05B650FBD50265FD023" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_79F46E9E198BE2AB5681BD50265FE872" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_C29AB6FA7C3FC05B650FBD50265FD023" xlink:to="loc_us-gaap_StatementTable_79F46E9E198BE2AB5681BD50265FE872" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A7BB7AA563100CB86E56BD5026BD0DC6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_79F46E9E198BE2AB5681BD50265FE872" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A7BB7AA563100CB86E56BD5026BD0DC6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CB74A137C70F76D866DFBD5026BD58E9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A7BB7AA563100CB86E56BD5026BD0DC6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CB74A137C70F76D866DFBD5026BD58E9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CB74A137C70F76D866DFBD5026BD58E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_A7BB7AA563100CB86E56BD5026BD0DC6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CB74A137C70F76D866DFBD5026BD58E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueGoodsNetMember" xlink:label="loc_us-gaap_SalesRevenueGoodsNetMember_36EA35FBF8A7ECD31D5ABD5026DC6BAB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_CB74A137C70F76D866DFBD5026BD58E9" xlink:to="loc_us-gaap_SalesRevenueGoodsNetMember_36EA35FBF8A7ECD31D5ABD5026DC6BAB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_05C44C5B8AC0E695D0F0BD5026AD116E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_79F46E9E198BE2AB5681BD50265FE872" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_05C44C5B8AC0E695D0F0BD5026AD116E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_316F4194CC558954F3D3BD5026AD74FB_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_05C44C5B8AC0E695D0F0BD5026AD116E" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_316F4194CC558954F3D3BD5026AD74FB_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_316F4194CC558954F3D3BD5026AD74FB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_05C44C5B8AC0E695D0F0BD5026AD116E" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_316F4194CC558954F3D3BD5026AD74FB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_792CD85E2F45CB65BFE3BD5026DCBF32" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_316F4194CC558954F3D3BD5026AD74FB" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_792CD85E2F45CB65BFE3BD5026DCBF32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis" xlink:label="loc_us-gaap_MajorCustomersAxis_9D621AC7E5F0F3501CD8BD50268E4150" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_79F46E9E198BE2AB5681BD50265FE872" xlink:to="loc_us-gaap_MajorCustomersAxis_9D621AC7E5F0F3501CD8BD50268E4150" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_DD7472ECCEE1B445E845BD50269DD733_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MajorCustomersAxis_9D621AC7E5F0F3501CD8BD50268E4150" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_DD7472ECCEE1B445E845BD50269DD733_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain" xlink:label="loc_us-gaap_NameOfMajorCustomerDomain_DD7472ECCEE1B445E845BD50269DD733" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MajorCustomersAxis_9D621AC7E5F0F3501CD8BD50268E4150" xlink:to="loc_us-gaap_NameOfMajorCustomerDomain_DD7472ECCEE1B445E845BD50269DD733" xlink:type="arc" />
    <link:loc xlink:href="hsy-20161231.xsd#hsy_McLaneCompanyInc.Member" xlink:label="loc_hsy_McLaneCompanyInc.Member_E4B42636E42A9C08D0EABD5026EB0511" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NameOfMajorCustomerDomain_DD7472ECCEE1B445E845BD50269DD733" xlink:to="loc_hsy_McLaneCompanyInc.Member_E4B42636E42A9C08D0EABD5026EB0511" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_2B89151FAD197EE616BFBD50267EE2CE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_C29AB6FA7C3FC05B650FBD50265FD023" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_2B89151FAD197EE616BFBD50267EE2CE" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SummaryOfSignificantAccountingPoliciesSellingMarketingAndAdministrativeExpenseDetails" xlink:type="extended" />
  <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/SupplementalBalanceSheetInformationDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SupplementalBalanceSheetInformationTables" xlink:type="extended" />
</link:linkbase>
