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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:ff865cf8-7d3b-4031-9d3a-1dd0a34c4a59,g:03a433b4-fe63-432c-bbe3-7d79a10c91d0-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATIONDocument" xlink:type="simple" xlink:href="hsy-20200628.xsd#DOCUMENTANDENTITYINFORMATIONDocument"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATIONDocument" xlink:type="extended" id="ifd8328202c4c4999888a7a75052a1a31_DOCUMENTANDENTITYINFORMATIONDocument">
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_ce6bf349-295d-4c35-b6ab-006b1c2acea3" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentType_ce6bf349-295d-4c35-b6ab-006b1c2acea3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_371b6e6e-205a-4c1d-91f7-1d47b83dc4c3" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentQuarterlyReport_371b6e6e-205a-4c1d-91f7-1d47b83dc4c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_afaa8634-b2a1-43d9-9977-96f49147ba4a" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentPeriodEndDate_afaa8634-b2a1-43d9-9977-96f49147ba4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_6f892815-a9e5-4468-af62-b59a5afd5a87" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentTransitionReport_6f892815-a9e5-4468-af62-b59a5afd5a87" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_bc8d9edf-9ea1-487a-b703-be91e0a57ace" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityFileNumber_bc8d9edf-9ea1-487a-b703-be91e0a57ace" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_a2086607-e9f2-4fb1-bab2-5cf33e0e47b5" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityRegistrantName_a2086607-e9f2-4fb1-bab2-5cf33e0e47b5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_8161260a-5c44-49c2-bd9c-37eb990d3d4d" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityIncorporationStateCountryCode_8161260a-5c44-49c2-bd9c-37eb990d3d4d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_9672c65b-8800-4a63-9a85-aa9b658d2072" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityTaxIdentificationNumber_9672c65b-8800-4a63-9a85-aa9b658d2072" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_c9cdc573-5ba6-4d68-98e8-6e4211bb7452" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityAddressAddressLine1_c9cdc573-5ba6-4d68-98e8-6e4211bb7452" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_e4435c81-474b-4310-bdf5-dfd855e2259d" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityAddressCityOrTown_e4435c81-474b-4310-bdf5-dfd855e2259d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_90a967e3-f415-4c0a-9bde-6fbdc4a23379" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityAddressStateOrProvince_90a967e3-f415-4c0a-9bde-6fbdc4a23379" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_71e41463-073a-4db6-b109-259909181d71" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityAddressPostalZipCode_71e41463-073a-4db6-b109-259909181d71" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_7b9be666-d8ee-41cf-83a5-64ce7fc50680" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_CityAreaCode_7b9be666-d8ee-41cf-83a5-64ce7fc50680" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_d8252d23-bd28-412e-8a21-a5d66dd35d29" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_LocalPhoneNumber_d8252d23-bd28-412e-8a21-a5d66dd35d29" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_44ac8acf-41b0-4351-82ae-7d7ffbd16f9b" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_Security12bTitle_44ac8acf-41b0-4351-82ae-7d7ffbd16f9b" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_aaf3bf9f-d88a-44f8-b775-5aed23b76d79" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_TradingSymbol_aaf3bf9f-d88a-44f8-b775-5aed23b76d79" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_9cd3a814-d89d-451b-84a9-85aff5fc7f50" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_SecurityExchangeName_9cd3a814-d89d-451b-84a9-85aff5fc7f50" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_3c34366c-7a61-46fe-87e5-1959ab0e8d85" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityCurrentReportingStatus_3c34366c-7a61-46fe-87e5-1959ab0e8d85" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_cf8fc7a2-9e05-4978-b6c1-aa1a8195e2cb" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityInteractiveDataCurrent_cf8fc7a2-9e05-4978-b6c1-aa1a8195e2cb" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_10d9eb92-2f6d-4db7-a04b-89def38ff000" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityFilerCategory_10d9eb92-2f6d-4db7-a04b-89def38ff000" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_e4a8d302-e88b-4fe5-83d2-622ac121a502" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntitySmallBusiness_e4a8d302-e88b-4fe5-83d2-622ac121a502" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_78e1d179-b79d-4d0b-b45b-44605b28b201" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityEmergingGrowthCompany_78e1d179-b79d-4d0b-b45b-44605b28b201" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_486ecd73-4880-4eca-98ed-5f0f4e04fd69" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityShellCompany_486ecd73-4880-4eca-98ed-5f0f4e04fd69" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_780b05c2-5c5e-4a33-9bfc-ee9618f95f98" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_780b05c2-5c5e-4a33-9bfc-ee9618f95f98" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_84eae83c-381e-44df-82fa-2c1e8c3bd771" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntityCentralIndexKey_84eae83c-381e-44df-82fa-2c1e8c3bd771" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_f135737c-de49-4726-8018-d82176d588d3" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentFiscalYearFocus_f135737c-de49-4726-8018-d82176d588d3" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_5c339554-3ad8-48ca-9d98-7f864c7fd02d" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_CurrentFiscalYearEndDate_5c339554-3ad8-48ca-9d98-7f864c7fd02d" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_ee8ec095-761c-4510-8b66-6842da212475" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_DocumentFiscalPeriodFocus_ee8ec095-761c-4510-8b66-6842da212475" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_60931185-aec5-493a-9ebb-b4bd811d9c88" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_AmendmentFlag_60931185-aec5-493a-9ebb-b4bd811d9c88" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitiesTable_30505e2d-2448-4aeb-a386-bb102bb1bcbc" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_b86a06ab-9ea3-4436-b197-72e4749ceb3b" xlink:to="loc_dei_EntitiesTable_30505e2d-2448-4aeb-a386-bb102bb1bcbc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_c6383652-408c-4009-9439-2305b9f2ea21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_30505e2d-2448-4aeb-a386-bb102bb1bcbc" xlink:to="loc_us-gaap_StatementClassOfStockAxis_c6383652-408c-4009-9439-2305b9f2ea21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_c6383652-408c-4009-9439-2305b9f2ea21_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_c6383652-408c-4009-9439-2305b9f2ea21" xlink:to="loc_us-gaap_ClassOfStockDomain_c6383652-408c-4009-9439-2305b9f2ea21_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_a3398e26-34e9-4ff4-80d8-294d379e455f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_c6383652-408c-4009-9439-2305b9f2ea21" xlink:to="loc_us-gaap_ClassOfStockDomain_a3398e26-34e9-4ff4-80d8-294d379e455f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_ca028f51-173b-4036-993f-f6f161b4d51b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_a3398e26-34e9-4ff4-80d8-294d379e455f" xlink:to="loc_us-gaap_CommonStockMember_ca028f51-173b-4036-993f-f6f161b4d51b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_07e8c392-258e-465d-a130-37212b8242b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_a3398e26-34e9-4ff4-80d8-294d379e455f" xlink:to="loc_us-gaap_CommonClassBMember_07e8c392-258e-465d-a130-37212b8242b4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended" id="if8c7b74d2f72440c817817f6b280e77b_CONSOLIDATEDSTATEMENTSOFINCOME">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_92ccb436-6398-4832-9629-64abd9be9143" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_92ccb436-6398-4832-9629-64abd9be9143" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_18fdc691-a095-4c96-ba64-8a093068cc5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_18fdc691-a095-4c96-ba64-8a093068cc5f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_703a27a6-77cd-46f3-a5a1-82d7634b849a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_GrossProfit_703a27a6-77cd-46f3-a5a1-82d7634b849a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_0574a344-1cea-4a73-89c2-dd9dabdcf29f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_0574a344-1cea-4a73-89c2-dd9dabdcf29f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_0a129eb2-5a2b-48e1-a9a2-07aa243caa58" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_AssetImpairmentCharges_0a129eb2-5a2b-48e1-a9a2-07aa243caa58" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_74879622-935c-4ec4-ad5f-b448b85b61e1" xlink:href="hsy-20200628.xsd#hsy_RestructuringChargesBusinessRealignment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_74879622-935c-4ec4-ad5f-b448b85b61e1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a6d52f19-8e92-40ed-a067-42a3751d16b3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_OperatingIncomeLoss_a6d52f19-8e92-40ed-a067-42a3751d16b3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6c490815-a3f4-408f-9924-36a2506791f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6c490815-a3f4-408f-9924-36a2506791f9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ae9126f1-2272-4f4f-ad5b-8808a02ff6c4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ae9126f1-2272-4f4f-ad5b-8808a02ff6c4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c5a3a5c0-931d-4330-a885-094d951df918" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_c5a3a5c0-931d-4330-a885-094d951df918" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_329e3448-2c44-473c-a28b-ea42225af220" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_329e3448-2c44-473c-a28b-ea42225af220" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_8d80da10-a1b5-45ac-af3b-85b1400f0d4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_ProfitLoss_8d80da10-a1b5-45ac-af3b-85b1400f0d4b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_bb0af39c-2d08-45e9-abc9-7e288872d5f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_bb0af39c-2d08-45e9-abc9-7e288872d5f3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c755b6b3-b949-49c7-8819-85cdd3f26760" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_NetIncomeLoss_c755b6b3-b949-49c7-8819-85cdd3f26760" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_ccd2076b-09ad-4f71-9985-4c624874824b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_ccd2076b-09ad-4f71-9985-4c624874824b" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_233d23cc-b00c-4e80-a6b6-1cf71379fab8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_ccd2076b-09ad-4f71-9985-4c624874824b" xlink:to="loc_us-gaap_EarningsPerShareBasic_233d23cc-b00c-4e80-a6b6-1cf71379fab8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_988dbda5-4191-46a2-8fb3-2f1d7c6f5633" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_988dbda5-4191-46a2-8fb3-2f1d7c6f5633" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_59a578d5-ab3a-4234-b268-3331cd3c6e1a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_988dbda5-4191-46a2-8fb3-2f1d7c6f5633" xlink:to="loc_us-gaap_EarningsPerShareDiluted_59a578d5-ab3a-4234-b268-3331cd3c6e1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_e44c245e-4ca0-4ed7-a1b4-053428e57392" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_e44c245e-4ca0-4ed7-a1b4-053428e57392" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_eb98ad88-3562-4d34-82ac-01e8e45e82f2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_e44c245e-4ca0-4ed7-a1b4-053428e57392" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_eb98ad88-3562-4d34-82ac-01e8e45e82f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_343e1db6-758c-42b9-9113-1202ea39dc5c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_c92f3946-109c-443b-9f1a-40e9725a97d3" xlink:to="loc_us-gaap_StatementTable_343e1db6-758c-42b9-9113-1202ea39dc5c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_8079504a-9de9-49ac-a65f-49078a7afaa2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_343e1db6-758c-42b9-9113-1202ea39dc5c" xlink:to="loc_us-gaap_StatementClassOfStockAxis_8079504a-9de9-49ac-a65f-49078a7afaa2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_8079504a-9de9-49ac-a65f-49078a7afaa2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_8079504a-9de9-49ac-a65f-49078a7afaa2" xlink:to="loc_us-gaap_ClassOfStockDomain_8079504a-9de9-49ac-a65f-49078a7afaa2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_4fbe618a-fd31-4c46-9269-a8cb0b3f6007" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_8079504a-9de9-49ac-a65f-49078a7afaa2" xlink:to="loc_us-gaap_ClassOfStockDomain_4fbe618a-fd31-4c46-9269-a8cb0b3f6007" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_5817e096-ea59-4104-905f-6204075101be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4fbe618a-fd31-4c46-9269-a8cb0b3f6007" xlink:to="loc_us-gaap_CommonStockMember_5817e096-ea59-4104-905f-6204075101be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_a5f735c3-534d-40bc-a930-e2be2b9f27f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4fbe618a-fd31-4c46-9269-a8cb0b3f6007" xlink:to="loc_us-gaap_CommonClassBMember_a5f735c3-534d-40bc-a930-e2be2b9f27f3" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended" id="i27f5a53585f749a5b1599adf8cc1d9c8_CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="i77b0e4c855a34fc68265d3726599034b_CONSOLIDATEDBALANCESHEETS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_470f42e9-b9d0-434a-9b72-64a9b780715e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_470f42e9-b9d0-434a-9b72-64a9b780715e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:to="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_45a3b64d-8f9e-4a2c-9f92-40d44ffa3722" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_45a3b64d-8f9e-4a2c-9f92-40d44ffa3722" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_1a1003c1-258c-4b4a-a55f-0af4a9c34b4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:to="loc_us-gaap_InventoryNet_1a1003c1-258c-4b4a-a55f-0af4a9c34b4d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_b80a9395-3b4c-44c7-bdc0-f1e2e6b5e5a9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_b80a9395-3b4c-44c7-bdc0-f1e2e6b5e5a9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4a090659-9385-4034-8985-14a7a9111af2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_972fc373-66ad-49f4-b9a8-4056f14bf42a" xlink:to="loc_us-gaap_AssetsCurrent_4a090659-9385-4034-8985-14a7a9111af2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_46cd09da-3572-4bdd-bcae-e76ca9c228a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_46cd09da-3572-4bdd-bcae-e76ca9c228a8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_1a727102-30c6-44e6-a121-2a703dab0506" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_Goodwill_1a727102-30c6-44e6-a121-2a703dab0506" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_28efbd7b-4ed6-451b-8081-921797e0eca9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_28efbd7b-4ed6-451b-8081-921797e0eca9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_059a0aeb-7c9e-4649-ae00-41a57d8f8ffb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_059a0aeb-7c9e-4649-ae00-41a57d8f8ffb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_620e1d6f-edfb-4694-87e8-55fe40faf745" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_620e1d6f-edfb-4694-87e8-55fe40faf745" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_945a551f-da3c-40d9-8155-b993d53ca8ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ebf2f79-a715-4927-91ae-7eb7556fb144" xlink:to="loc_us-gaap_Assets_945a551f-da3c-40d9-8155-b993d53ca8ba" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_fd92da1f-0a63-4f94-8dd2-3bba896246f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_AccountsPayableCurrent_fd92da1f-0a63-4f94-8dd2-3bba896246f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_cea7969f-01b2-4ecf-bc09-99be52e8d26e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_cea7969f-01b2-4ecf-bc09-99be52e8d26e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_a1dd25a2-65fc-4387-a483-6b2095b11652" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_a1dd25a2-65fc-4387-a483-6b2095b11652" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_c0d0ac99-ab02-48f6-8e28-7ae2af2093c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_ShortTermBorrowings_c0d0ac99-ab02-48f6-8e28-7ae2af2093c8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_ea2ff87b-2359-438d-882a-34ebcdd31382" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_LongTermDebtCurrent_ea2ff87b-2359-438d-882a-34ebcdd31382" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_f1b5d9ed-a6b0-4c6c-870b-9b9dfc090eb4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_d495bf8d-272c-4945-bb4d-8caa122aac8f" xlink:to="loc_us-gaap_LiabilitiesCurrent_f1b5d9ed-a6b0-4c6c-870b-9b9dfc090eb4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_89c2f80a-bc31-4387-90bf-3e92f0fb6196" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_89c2f80a-bc31-4387-90bf-3e92f0fb6196" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_23bcf013-2ddd-493c-b3b4-d64fe8158ad0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_23bcf013-2ddd-493c-b3b4-d64fe8158ad0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_5a60be1a-1f55-45de-a18d-0c6565685e6c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_5a60be1a-1f55-45de-a18d-0c6565685e6c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_6059a76d-c935-44bb-b360-a3da5f900206" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_Liabilities_6059a76d-c935-44bb-b360-a3da5f900206" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_4496dc86-836b-4ae7-8f14-807b62435c04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_PreferredStockValue_4496dc86-836b-4ae7-8f14-807b62435c04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_fa60e265-f14f-4c7b-a65e-4935e2648ddd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_CommonStockValue_fa60e265-f14f-4c7b-a65e-4935e2648ddd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_1a2ee06d-be53-40b4-9d0b-1f7063809d20" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_AdditionalPaidInCapital_1a2ee06d-be53-40b4-9d0b-1f7063809d20" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_46b1aa49-60dc-4def-bc88-175821e08486" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_46b1aa49-60dc-4def-bc88-175821e08486" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_96b621fb-064d-49bd-b56c-5365652f866f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_TreasuryStockValue_96b621fb-064d-49bd-b56c-5365652f866f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_0c8e54f1-a65c-4264-8f1d-5f27827ca233" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_0c8e54f1-a65c-4264-8f1d-5f27827ca233" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_5f213824-c663-4dda-823f-9ed6dfdfb65f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_StockholdersEquity_5f213824-c663-4dda-823f-9ed6dfdfb65f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_d46730bc-494d-4823-ab85-7b1b51d5ce61" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_MinorityInterest_d46730bc-494d-4823-ab85-7b1b51d5ce61" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_fa282082-8ce1-43a5-a08d-f59242a636ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_e25e8bc8-9eab-4094-9aa7-3d32bf49a722" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_fa282082-8ce1-43a5-a08d-f59242a636ba" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ca8bc8cf-6c9e-4177-bd5e-606d67589cd7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_f2fd4619-d6c9-4adc-b391-4addb84b3e3a" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_ca8bc8cf-6c9e-4177-bd5e-606d67589cd7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_90b0152e-097b-46c2-b196-35a5393fa1fe" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:to="loc_us-gaap_PreferredStockSharesIssued_90b0152e-097b-46c2-b196-35a5393fa1fe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_c8ff8b8a-6af9-4bee-85ed-f6b9439fcd66" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3796e110-14a6-41fe-a2b4-dbb96e5522a5" xlink:to="loc_us-gaap_StatementTable_c8ff8b8a-6af9-4bee-85ed-f6b9439fcd66" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_f6085eab-8a07-46c9-800e-f857bcc0390e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_c8ff8b8a-6af9-4bee-85ed-f6b9439fcd66" xlink:to="loc_us-gaap_StatementClassOfStockAxis_f6085eab-8a07-46c9-800e-f857bcc0390e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_f6085eab-8a07-46c9-800e-f857bcc0390e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_f6085eab-8a07-46c9-800e-f857bcc0390e" xlink:to="loc_us-gaap_ClassOfStockDomain_f6085eab-8a07-46c9-800e-f857bcc0390e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_4092c655-46de-413e-bf24-617a7e278a6f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_f6085eab-8a07-46c9-800e-f857bcc0390e" xlink:to="loc_us-gaap_ClassOfStockDomain_4092c655-46de-413e-bf24-617a7e278a6f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_a97b6420-e0ab-4ba4-88a0-4bc8b5fe7fda" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4092c655-46de-413e-bf24-617a7e278a6f" xlink:to="loc_us-gaap_CommonStockMember_a97b6420-e0ab-4ba4-88a0-4bc8b5fe7fda" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_efb2c80f-b380-47e9-8621-de008783ea0b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4092c655-46de-413e-bf24-617a7e278a6f" xlink:to="loc_us-gaap_CommonClassBMember_efb2c80f-b380-47e9-8621-de008783ea0b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="ic7023558c16d47e085c20ba5ebb74199_CONSOLIDATEDBALANCESHEETSParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_e7a233fd-8b22-497f-bac2-0677c39623ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_4b963d71-7282-4ea1-ac0b-66c88ef70e5c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e7a233fd-8b22-497f-bac2-0677c39623ee" xlink:to="loc_us-gaap_PreferredStockSharesIssued_4b963d71-7282-4ea1-ac0b-66c88ef70e5c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_c6212da8-a3f8-40ea-b4ad-ced91c0a1383" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e7a233fd-8b22-497f-bac2-0677c39623ee" xlink:to="loc_us-gaap_CommonStockSharesIssued_c6212da8-a3f8-40ea-b4ad-ced91c0a1383" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockShares_dfda08c8-01e3-498e-a29b-362020c89c13" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e7a233fd-8b22-497f-bac2-0677c39623ee" xlink:to="loc_us-gaap_TreasuryStockShares_dfda08c8-01e3-498e-a29b-362020c89c13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_4086d4ab-1bcc-44f4-8f57-a7e3f96d15a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_e7a233fd-8b22-497f-bac2-0677c39623ee" xlink:to="loc_us-gaap_StatementTable_4086d4ab-1bcc-44f4-8f57-a7e3f96d15a0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_a2223468-c674-43ce-bb0e-c4b42de23128" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4086d4ab-1bcc-44f4-8f57-a7e3f96d15a0" xlink:to="loc_us-gaap_StatementClassOfStockAxis_a2223468-c674-43ce-bb0e-c4b42de23128" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_a2223468-c674-43ce-bb0e-c4b42de23128_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a2223468-c674-43ce-bb0e-c4b42de23128" xlink:to="loc_us-gaap_ClassOfStockDomain_a2223468-c674-43ce-bb0e-c4b42de23128_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_9c4890c2-7049-4c45-9ecf-516e69d645fa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a2223468-c674-43ce-bb0e-c4b42de23128" xlink:to="loc_us-gaap_ClassOfStockDomain_9c4890c2-7049-4c45-9ecf-516e69d645fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_81d866c8-b6d7-4ed9-bc86-bfd6f8b4c314" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9c4890c2-7049-4c45-9ecf-516e69d645fa" xlink:to="loc_us-gaap_CommonStockMember_81d866c8-b6d7-4ed9-bc86-bfd6f8b4c314" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_7ce4edac-6520-404b-978d-cae7e718614c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9c4890c2-7049-4c45-9ecf-516e69d645fa" xlink:to="loc_us-gaap_CommonClassBMember_7ce4edac-6520-404b-978d-cae7e718614c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="ibe42f9bcc6244019b87ac4d9d1b01138_CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended" id="if3d9c5aed1864e00b991e986efc20dc5_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_18fb4bc3-9769-4bae-a228-dd364dd96b45" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_18fb4bc3-9769-4bae-a228-dd364dd96b45" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_a7473644-67c6-473d-8ad4-cd57ebc8bb94" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_a7473644-67c6-473d-8ad4-cd57ebc8bb94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e5fa360f-c83e-4cd2-bd28-55fec92844d4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_NetIncomeLoss_e5fa360f-c83e-4cd2-bd28-55fec92844d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_db427e57-45d3-48a5-a7e2-4ee0387da7a4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_db427e57-45d3-48a5-a7e2-4ee0387da7a4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_5099ad0d-e1ea-42ee-8bc6-eeb3ce6fb9c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_ProfitLoss_5099ad0d-e1ea-42ee-8bc6-eeb3ce6fb9c8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3cc27fa8-67ae-4332-9d29-51774a439399" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_3cc27fa8-67ae-4332-9d29-51774a439399" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_c84d5b78-a973-4a99-8e3a-b937b67f30c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_c84d5b78-a973-4a99-8e3a-b937b67f30c1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_49590f5c-2a65-499e-ae31-513df4c68013" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DividendsCommonStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_c84d5b78-a973-4a99-8e3a-b937b67f30c1" xlink:to="loc_us-gaap_DividendsCommonStockCash_49590f5c-2a65-499e-ae31-513df4c68013" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_b99056d0-8d45-49df-b2b2-446ddb477000" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_b99056d0-8d45-49df-b2b2-446ddb477000" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_aad8278a-5c8a-4886-b947-6bbb5e5c48d3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_aad8278a-5c8a-4886-b947-6bbb5e5c48d3" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_10b7d0c9-e544-413a-9405-e5314c6c01b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_10b7d0c9-e544-413a-9405-e5314c6c01b5" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_c1f41ab6-9ce6-4066-abdc-0c8dff9f536b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_ec7baace-7bf3-4a14-a4f1-677c6db963d6" xlink:to="loc_us-gaap_CumulativeEffectOfNewAccountingPrincipleInPeriodOfAdoption_c1f41ab6-9ce6-4066-abdc-0c8dff9f536b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_eec5dbff-5c97-4171-9737-ac9047dc8e20" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3051e5cf-89c1-4034-a240-c4ad96b0f075" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_18fb4bc3-9769-4bae-a228-dd364dd96b45" xlink:to="loc_us-gaap_StatementTable_3051e5cf-89c1-4034-a240-c4ad96b0f075" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3051e5cf-89c1-4034-a240-c4ad96b0f075" xlink:to="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f" xlink:to="loc_us-gaap_TypeOfAdoptionMember_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfAdoptionMember_08efc9cb-44e2-4112-86f0-f8b8d3787901" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfAdoptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AdjustmentsForNewAccountingPronouncementsAxis_e76e8067-98ef-4c88-a7e5-d25d46dc8a4f" xlink:to="loc_us-gaap_TypeOfAdoptionMember_08efc9cb-44e2-4112-86f0-f8b8d3787901" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdate201602Member_316a1d83-cd86-4cbe-9767-498f5f7b8431" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountingStandardsUpdate201602Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfAdoptionMember_08efc9cb-44e2-4112-86f0-f8b8d3787901" xlink:to="loc_us-gaap_AccountingStandardsUpdate201602Member_316a1d83-cd86-4cbe-9767-498f5f7b8431" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_8be3fab5-8dc3-42ab-92fd-03d86a4d411d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3051e5cf-89c1-4034-a240-c4ad96b0f075" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_8be3fab5-8dc3-42ab-92fd-03d86a4d411d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_8be3fab5-8dc3-42ab-92fd-03d86a4d411d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8be3fab5-8dc3-42ab-92fd-03d86a4d411d" xlink:to="loc_us-gaap_EquityComponentDomain_8be3fab5-8dc3-42ab-92fd-03d86a4d411d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_8be3fab5-8dc3-42ab-92fd-03d86a4d411d" xlink:to="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_e2b18ab6-9a76-43a2-b3c8-65b9ef1bf46f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_PreferredStockMember_e2b18ab6-9a76-43a2-b3c8-65b9ef1bf46f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_094269bb-6fed-4abf-b632-de8d25958640" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_CommonStockMember_094269bb-6fed-4abf-b632-de8d25958640" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_b8ba5fe9-50e0-474e-a26f-714cb03e2fc8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_b8ba5fe9-50e0-474e-a26f-714cb03e2fc8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_24ada771-b9dd-4014-b68a-99468f8f5cc0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_RetainedEarningsMember_24ada771-b9dd-4014-b68a-99468f8f5cc0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_5678c863-0f38-4f42-b1e3-ee57e835d9b2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_TreasuryStockMember_5678c863-0f38-4f42-b1e3-ee57e835d9b2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_43bc1303-055b-4b40-a43d-5c23e5140921" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_43bc1303-055b-4b40-a43d-5c23e5140921" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_568a7b0f-14b0-41ee-8f6d-ccbe70a41cac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_df90ed73-e254-4171-8478-b7f1aa0bb230" xlink:to="loc_us-gaap_NoncontrollingInterestMember_568a7b0f-14b0-41ee-8f6d-ccbe70a41cac" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_5e46e2c2-2e09-48ec-8bff-7c216971e135" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3051e5cf-89c1-4034-a240-c4ad96b0f075" xlink:to="loc_us-gaap_StatementClassOfStockAxis_5e46e2c2-2e09-48ec-8bff-7c216971e135" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_5e46e2c2-2e09-48ec-8bff-7c216971e135_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_5e46e2c2-2e09-48ec-8bff-7c216971e135" xlink:to="loc_us-gaap_ClassOfStockDomain_5e46e2c2-2e09-48ec-8bff-7c216971e135_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_9dcb7b01-2164-4f91-adef-b704fefdac31" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_5e46e2c2-2e09-48ec-8bff-7c216971e135" xlink:to="loc_us-gaap_ClassOfStockDomain_9dcb7b01-2164-4f91-adef-b704fefdac31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_ba87d52e-9392-4d1f-a91f-a2618b285fb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9dcb7b01-2164-4f91-adef-b704fefdac31" xlink:to="loc_us-gaap_CommonStockMember_ba87d52e-9392-4d1f-a91f-a2618b285fb1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_2861a49e-25a7-4329-8335-4dc6e82903fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_9dcb7b01-2164-4f91-adef-b704fefdac31" xlink:to="loc_us-gaap_CommonClassBMember_2861a49e-25a7-4329-8335-4dc6e82903fd" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="extended" id="iae921ee5600645a6938cee62a4b8301f_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_15b2dded-ae1b-4535-ac06-6fc670b3fc30" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_37c2aa44-37f1-4a59-9c7d-0fbf66a47f64" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_15b2dded-ae1b-4535-ac06-6fc670b3fc30" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_37c2aa44-37f1-4a59-9c7d-0fbf66a47f64" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_ed37ba89-594b-4ce7-a260-e52d06592262" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_15b2dded-ae1b-4535-ac06-6fc670b3fc30" xlink:to="loc_us-gaap_StatementTable_ed37ba89-594b-4ce7-a260-e52d06592262" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_e5ca99cd-86b5-4b3d-99d0-6dc88312d758" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_ed37ba89-594b-4ce7-a260-e52d06592262" xlink:to="loc_us-gaap_StatementClassOfStockAxis_e5ca99cd-86b5-4b3d-99d0-6dc88312d758" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_e5ca99cd-86b5-4b3d-99d0-6dc88312d758_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_e5ca99cd-86b5-4b3d-99d0-6dc88312d758" xlink:to="loc_us-gaap_ClassOfStockDomain_e5ca99cd-86b5-4b3d-99d0-6dc88312d758_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_f2a8d398-c5c1-41e6-94d6-24cb89ec53d3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_e5ca99cd-86b5-4b3d-99d0-6dc88312d758" xlink:to="loc_us-gaap_ClassOfStockDomain_f2a8d398-c5c1-41e6-94d6-24cb89ec53d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_41e75c61-92fd-40b4-a650-bcb73502f8ba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_f2a8d398-c5c1-41e6-94d6-24cb89ec53d3" xlink:to="loc_us-gaap_CommonStockMember_41e75c61-92fd-40b4-a650-bcb73502f8ba" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_5f9cb1b0-dec7-4480-8d18-a35efc34ab17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_f2a8d398-c5c1-41e6-94d6-24cb89ec53d3" xlink:to="loc_us-gaap_CommonClassBMember_5f9cb1b0-dec7-4480-8d18-a35efc34ab17" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="extended" id="i1a4bb893a1604d7486d25fa7a39a6060_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="extended" id="i241b3cbf86274b2f8bff24217b457854_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="extended" id="ic28c3b3be1b34eac85618c9d6aeab0ed_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="extended" id="ibd38c48ed6814009a1133d9c73938735_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="extended" id="i333761ad4ded46589583cf959167f04b_BUSINESSACQUISITIONANDDIVESTITURES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="extended" id="if5cd8ec366f24c459efc5f93596f1e54_BUSINESSACQUISITIONANDDIVESTITURESTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_8e8c8819-efc4-458e-a58c-6577f1c4aaaa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_f228ab40-d9df-411b-a8c6-dd2dbfeb38f4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8e8c8819-efc4-458e-a58c-6577f1c4aaaa" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_f228ab40-d9df-411b-a8c6-dd2dbfeb38f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_61f5f15c-091a-4849-af64-fd29a54affc8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8e8c8819-efc4-458e-a58c-6577f1c4aaaa" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_61f5f15c-091a-4849-af64-fd29a54affc8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_f2180c3e-3244-42fc-af4d-cc340abb31d1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_61f5f15c-091a-4849-af64-fd29a54affc8" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_f2180c3e-3244-42fc-af4d-cc340abb31d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f2180c3e-3244-42fc-af4d-cc340abb31d1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_f2180c3e-3244-42fc-af4d-cc340abb31d1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f2180c3e-3244-42fc-af4d-cc340abb31d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_049387a8-696e-44b7-a1a0-d4c81a63ae48" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_f2180c3e-3244-42fc-af4d-cc340abb31d1" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_049387a8-696e-44b7-a1a0-d4c81a63ae48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_cfa0f5f3-790a-4fe2-a3fb-dbad6a063938" xlink:href="hsy-20200628.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_049387a8-696e-44b7-a1a0-d4c81a63ae48" xlink:to="loc_hsy_ONEBrandsLLCMember_cfa0f5f3-790a-4fe2-a3fb-dbad6a063938" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="extended" id="i402ee7e30892479fb073f05054b1fd06_BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7566ccda-7be0-4e95-b60a-c30d92f6bf65" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_7566ccda-7be0-4e95-b60a-c30d92f6bf65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedTrademarksGross_d8bdd932-48ba-4dd1-9abb-6f300a5810aa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedTrademarksGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_FiniteLivedTrademarksGross_d8bdd932-48ba-4dd1-9abb-6f300a5810aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_adbee531-e042-4b87-b9c6-38ba037d74af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedCustomerRelationshipsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_adbee531-e042-4b87-b9c6-38ba037d74af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_e7baba51-6ad1-40d4-ac39-2b7852542ab1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedNoncompeteAgreementsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_e7baba51-6ad1-40d4-ac39-2b7852542ab1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_17622476-b190-477d-97bd-0cac8b2bfb86" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_17622476-b190-477d-97bd-0cac8b2bfb86" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1e3d2d1b-cf20-4701-9b8a-8ee7138db560" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a06dd91b-873a-4b33-abbd-57a623023b53" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1e3d2d1b-cf20-4701-9b8a-8ee7138db560" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0c847931-7577-48f0-9578-9dd2b9e00c55" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1e3d2d1b-cf20-4701-9b8a-8ee7138db560" xlink:to="loc_srt_RangeAxis_0c847931-7577-48f0-9578-9dd2b9e00c55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0c847931-7577-48f0-9578-9dd2b9e00c55_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0c847931-7577-48f0-9578-9dd2b9e00c55" xlink:to="loc_srt_RangeMember_0c847931-7577-48f0-9578-9dd2b9e00c55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_53624461-ef50-4216-879c-8c11e197d25e" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0c847931-7577-48f0-9578-9dd2b9e00c55" xlink:to="loc_srt_RangeMember_53624461-ef50-4216-879c-8c11e197d25e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_f31b10a6-a962-46fe-8cbc-3b9fbccb19ad" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53624461-ef50-4216-879c-8c11e197d25e" xlink:to="loc_srt_MinimumMember_f31b10a6-a962-46fe-8cbc-3b9fbccb19ad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_b205d4c1-36be-40f7-8622-44671dc04f7f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_53624461-ef50-4216-879c-8c11e197d25e" xlink:to="loc_srt_MaximumMember_b205d4c1-36be-40f7-8622-44671dc04f7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_85a2c2da-1957-4d32-9219-2cc196ecc02d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1e3d2d1b-cf20-4701-9b8a-8ee7138db560" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_85a2c2da-1957-4d32-9219-2cc196ecc02d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_85a2c2da-1957-4d32-9219-2cc196ecc02d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_85a2c2da-1957-4d32-9219-2cc196ecc02d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_85a2c2da-1957-4d32-9219-2cc196ecc02d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_8f6ab0ad-7fd6-41eb-8854-7b622666f9da" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_85a2c2da-1957-4d32-9219-2cc196ecc02d" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_8f6ab0ad-7fd6-41eb-8854-7b622666f9da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_9d25304d-5c0a-4d8c-bd14-306c53c04bbd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_8f6ab0ad-7fd6-41eb-8854-7b622666f9da" xlink:to="loc_us-gaap_TrademarksMember_9d25304d-5c0a-4d8c-bd14-306c53c04bbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_14e57519-d6b1-42e5-8c15-47dbf7582895" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_8f6ab0ad-7fd6-41eb-8854-7b622666f9da" xlink:to="loc_us-gaap_CustomerRelationshipsMember_14e57519-d6b1-42e5-8c15-47dbf7582895" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_5cb07f53-1ba8-4ccf-96a4-30ecfd943f2e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncompeteAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_8f6ab0ad-7fd6-41eb-8854-7b622666f9da" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_5cb07f53-1ba8-4ccf-96a4-30ecfd943f2e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_3ba99eb5-de75-405f-81dd-1fbefea094c7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1e3d2d1b-cf20-4701-9b8a-8ee7138db560" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_3ba99eb5-de75-405f-81dd-1fbefea094c7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3ba99eb5-de75-405f-81dd-1fbefea094c7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3ba99eb5-de75-405f-81dd-1fbefea094c7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_3ba99eb5-de75-405f-81dd-1fbefea094c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e1dfc8db-c569-4e81-9b50-39ffbc5400da" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_3ba99eb5-de75-405f-81dd-1fbefea094c7" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e1dfc8db-c569-4e81-9b50-39ffbc5400da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_388f6518-5463-4638-ab81-c8b2d30dc313" xlink:href="hsy-20200628.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_e1dfc8db-c569-4e81-9b50-39ffbc5400da" xlink:to="loc_hsy_ONEBrandsLLCMember_388f6518-5463-4638-ab81-c8b2d30dc313" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="extended" id="i4aa8964073c74a98a5763499089dd21c_BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_80e3d533-69f7-420f-b8dd-05d55ccadf6e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_Goodwill_80e3d533-69f7-420f-b8dd-05d55ccadf6e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_1a1bf2b1-24bf-4cb8-bfa2-47552a203832" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_1a1bf2b1-24bf-4cb8-bfa2-47552a203832" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_1216192f-9d98-47ac-8bc4-9e013ce9f25e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_1216192f-9d98-47ac-8bc4-9e013ce9f25e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_76f86d24-5839-4340-af1b-3e3c87abea85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_76f86d24-5839-4340-af1b-3e3c87abea85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_39941daf-3989-490f-b109-11f257e841a7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_39941daf-3989-490f-b109-11f257e841a7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_a658ab85-dfdc-4421-bbb0-29f64ac13164" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_a658ab85-dfdc-4421-bbb0-29f64ac13164" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_0b1cd137-4c07-4092-8f4b-d0c37301cce1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_0b1cd137-4c07-4092-8f4b-d0c37301cce1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_5c96d252-6f0b-4102-8404-0631471e6d91" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_5c96d252-6f0b-4102-8404-0631471e6d91" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_196fab71-477f-4ca1-a349-64e02a6b53f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_196fab71-477f-4ca1-a349-64e02a6b53f7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_bfb6f3cf-0488-4fe7-bb94-3f128375975b" xlink:href="hsy-20200628.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_bfb6f3cf-0488-4fe7-bb94-3f128375975b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_ae46efc8-c113-4862-b340-6087bf3a8f8f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_3eb9a609-95a2-47db-b912-8130d6689d04" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_ae46efc8-c113-4862-b340-6087bf3a8f8f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_f06b9118-7348-4532-85ff-40ebfe8229ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_ae46efc8-c113-4862-b340-6087bf3a8f8f" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_f06b9118-7348-4532-85ff-40ebfe8229ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f06b9118-7348-4532-85ff-40ebfe8229ff_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_f06b9118-7348-4532-85ff-40ebfe8229ff" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f06b9118-7348-4532-85ff-40ebfe8229ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_35d0834a-f6b7-4333-845d-dd3c14ae7d93" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_f06b9118-7348-4532-85ff-40ebfe8229ff" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_35d0834a-f6b7-4333-845d-dd3c14ae7d93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_fcca5d1e-70b3-4890-a7d9-0bd334a5830b" xlink:href="hsy-20200628.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_35d0834a-f6b7-4333-845d-dd3c14ae7d93" xlink:to="loc_hsy_ONEBrandsLLCMember_fcca5d1e-70b3-4890-a7d9-0bd334a5830b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="extended" id="i68f837376e4e4378ad4cffed4db6b13d_GOODWILLANDINTANGIBLEASSETS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="extended" id="i2b1d327187c046a29b751a868d7d0c36_GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="extended" id="i091cd8bb28f44e729cde77f4b4d80d43_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_f1d506c7-d240-4724-b4b8-21d42d1c8240" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_9faa2d37-dc80-4c82-95aa-e77cf20e9131" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_f1d506c7-d240-4724-b4b8-21d42d1c8240" xlink:to="loc_us-gaap_GoodwillRollForward_9faa2d37-dc80-4c82-95aa-e77cf20e9131" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_9e41fa90-17cc-4cfd-afbc-d5f2293f73c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9faa2d37-dc80-4c82-95aa-e77cf20e9131" xlink:to="loc_us-gaap_Goodwill_9e41fa90-17cc-4cfd-afbc-d5f2293f73c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_fc6307c4-3543-4969-87a9-0d74c7cd346e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9faa2d37-dc80-4c82-95aa-e77cf20e9131" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_fc6307c4-3543-4969-87a9-0d74c7cd346e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_f9d12367-abc0-4e60-9c18-f4988a934c7a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_9faa2d37-dc80-4c82-95aa-e77cf20e9131" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_f9d12367-abc0-4e60-9c18-f4988a934c7a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_049a3044-6d2d-4b68-9206-9957f6cca225" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_ee09e51c-8383-4081-880a-a3b7ee9d2520" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_f1d506c7-d240-4724-b4b8-21d42d1c8240" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_ee09e51c-8383-4081-880a-a3b7ee9d2520" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_4382b0fd-edb3-4134-8e48-a3c3adc34af6" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_ee09e51c-8383-4081-880a-a3b7ee9d2520" xlink:to="loc_srt_ConsolidationItemsAxis_4382b0fd-edb3-4134-8e48-a3c3adc34af6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4382b0fd-edb3-4134-8e48-a3c3adc34af6_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_4382b0fd-edb3-4134-8e48-a3c3adc34af6" xlink:to="loc_srt_ConsolidationItemsDomain_4382b0fd-edb3-4134-8e48-a3c3adc34af6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_1f35da70-c74c-4b3c-af0f-6aaab4fdc3c7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_4382b0fd-edb3-4134-8e48-a3c3adc34af6" xlink:to="loc_srt_ConsolidationItemsDomain_1f35da70-c74c-4b3c-af0f-6aaab4fdc3c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_d746748f-9d5b-479f-bbef-725e66f8ce87" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_1f35da70-c74c-4b3c-af0f-6aaab4fdc3c7" xlink:to="loc_us-gaap_OperatingSegmentsMember_d746748f-9d5b-479f-bbef-725e66f8ce87" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_36e9dfc4-5566-43b1-9e1e-891f404b3859" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_ee09e51c-8383-4081-880a-a3b7ee9d2520" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_36e9dfc4-5566-43b1-9e1e-891f404b3859" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_36e9dfc4-5566-43b1-9e1e-891f404b3859_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_36e9dfc4-5566-43b1-9e1e-891f404b3859" xlink:to="loc_us-gaap_SegmentDomain_36e9dfc4-5566-43b1-9e1e-891f404b3859_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_aec439f0-0353-4aaa-815c-4b2e48fda2c9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_36e9dfc4-5566-43b1-9e1e-891f404b3859" xlink:to="loc_us-gaap_SegmentDomain_aec439f0-0353-4aaa-815c-4b2e48fda2c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_7fa00119-088a-42e8-a1d1-6ff7e6fbd2b5" xlink:href="hsy-20200628.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_aec439f0-0353-4aaa-815c-4b2e48fda2c9" xlink:to="loc_hsy_NorthAmericaSegmentMember_7fa00119-088a-42e8-a1d1-6ff7e6fbd2b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_87257a30-3a62-4841-bdaa-aa58830dd740" xlink:href="hsy-20200628.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_aec439f0-0353-4aaa-815c-4b2e48fda2c9" xlink:to="loc_hsy_InternationalandOtherSegmentMember_87257a30-3a62-4841-bdaa-aa58830dd740" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="extended" id="i2e35bf29843a4fe08ae96e1c2ea79312_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_18364ebd-301b-4cfb-8d5f-e1686fa3895e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_18364ebd-301b-4cfb-8d5f-e1686fa3895e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_ff280b99-0f27-4a90-8d63-725cdec041c7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_ff280b99-0f27-4a90-8d63-725cdec041c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ef940fca-98ac-46ff-9806-e2e4ba5ee602" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_ef940fca-98ac-46ff-9806-e2e4ba5ee602" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_240acca9-2150-4066-a1fc-58faa61e1829" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_240acca9-2150-4066-a1fc-58faa61e1829" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_195ff2eb-bb30-4438-8a45-fa960fa1878f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_34270f15-8dcc-4cf0-9654-b346f381e227" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_195ff2eb-bb30-4438-8a45-fa960fa1878f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f898a559-472b-47c0-bb6a-901d0d71f159" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_195ff2eb-bb30-4438-8a45-fa960fa1878f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f898a559-472b-47c0-bb6a-901d0d71f159" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f898a559-472b-47c0-bb6a-901d0d71f159_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f898a559-472b-47c0-bb6a-901d0d71f159" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_f898a559-472b-47c0-bb6a-901d0d71f159_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b3fd9171-4f46-4b50-a756-c5282caf443f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_f898a559-472b-47c0-bb6a-901d0d71f159" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b3fd9171-4f46-4b50-a756-c5282caf443f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_5d5aad18-8c59-4ea8-9d41-443742ef9fd2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b3fd9171-4f46-4b50-a756-c5282caf443f" xlink:to="loc_us-gaap_TrademarksMember_5d5aad18-8c59-4ea8-9d41-443742ef9fd2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_837ccaf5-6bc3-4c97-a349-9bab2ab8c137" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CustomerRelatedIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b3fd9171-4f46-4b50-a756-c5282caf443f" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_837ccaf5-6bc3-4c97-a349-9bab2ab8c137" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PatentsMember_79a7ad08-3011-46cb-aec2-a21f2d70fee2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PatentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_b3fd9171-4f46-4b50-a756-c5282caf443f" xlink:to="loc_us-gaap_PatentsMember_79a7ad08-3011-46cb-aec2-a21f2d70fee2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_195ff2eb-bb30-4438-8a45-fa960fa1878f" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c0de5084-74f3-4da8-a4e7-764c61c29468" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_fb5ad708-190c-43f4-a2f1-1843b0f2dcdb" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c0de5084-74f3-4da8-a4e7-764c61c29468" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_1716b0ca-8b53-4ed3-9182-018759bdec58" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c0de5084-74f3-4da8-a4e7-764c61c29468" xlink:to="loc_us-gaap_TrademarksMember_1716b0ca-8b53-4ed3-9182-018759bdec58" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="extended" id="i4283b838564446f7b212c96263fc71bc_GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBT"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="extended" id="ib7f828b3f4f44186a70e45031ff03351_SHORTANDLONGTERMDEBT"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="extended" id="i105d9202ca564b15b993993d53c5cfb6_SHORTANDLONGTERMDEBTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="extended" id="i0592f74ba6b944329c521d9386c4d598_SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_06415cf7-395f-4923-98a6-de98549cf3d4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_57d02677-a5a6-4a20-bea1-fefa36f40507" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_06415cf7-395f-4923-98a6-de98549cf3d4" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_57d02677-a5a6-4a20-bea1-fefa36f40507" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_7a33f227-88ae-4265-aabc-dc966df28c72" xlink:href="hsy-20200628.xsd#hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_06415cf7-395f-4923-98a6-de98549cf3d4" xlink:to="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_7a33f227-88ae-4265-aabc-dc966df28c72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_ffd5ffb9-72f1-46cf-bccc-a736c5c9de93" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_06415cf7-395f-4923-98a6-de98549cf3d4" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_ffd5ffb9-72f1-46cf-bccc-a736c5c9de93" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_ec7397bd-6963-4fea-804b-28bf083b523b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ffd5ffb9-72f1-46cf-bccc-a736c5c9de93" xlink:to="loc_us-gaap_DebtInstrumentAxis_ec7397bd-6963-4fea-804b-28bf083b523b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ec7397bd-6963-4fea-804b-28bf083b523b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_ec7397bd-6963-4fea-804b-28bf083b523b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ec7397bd-6963-4fea-804b-28bf083b523b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_aca45a74-cd3e-4a32-8af1-246b6b089b14" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_ec7397bd-6963-4fea-804b-28bf083b523b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_aca45a74-cd3e-4a32-8af1-246b6b089b14" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_1dde0382-f009-406a-8a88-9d940fdf5d4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_aca45a74-cd3e-4a32-8af1-246b6b089b14" xlink:to="loc_us-gaap_LineOfCreditMember_1dde0382-f009-406a-8a88-9d940fdf5d4d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_1685afe2-7179-4de2-80de-eed60ff0cc1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ffd5ffb9-72f1-46cf-bccc-a736c5c9de93" xlink:to="loc_us-gaap_CreditFacilityAxis_1685afe2-7179-4de2-80de-eed60ff0cc1f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_1685afe2-7179-4de2-80de-eed60ff0cc1f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_1685afe2-7179-4de2-80de-eed60ff0cc1f" xlink:to="loc_us-gaap_CreditFacilityDomain_1685afe2-7179-4de2-80de-eed60ff0cc1f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_fd6d54f7-e12d-48cb-993a-4ef6e45cfc45" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_1685afe2-7179-4de2-80de-eed60ff0cc1f" xlink:to="loc_us-gaap_CreditFacilityDomain_fd6d54f7-e12d-48cb-993a-4ef6e45cfc45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f8f04649-2c28-4ef9-b44d-7cb8cf3e036f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_fd6d54f7-e12d-48cb-993a-4ef6e45cfc45" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f8f04649-2c28-4ef9-b44d-7cb8cf3e036f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_ffd5ffb9-72f1-46cf-bccc-a736c5c9de93" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f401ad41-a83d-4a7d-8044-65975e1c7fca" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_56ee1f85-e5a6-4fd1-ab99-24b9339c5fbd" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f401ad41-a83d-4a7d-8044-65975e1c7fca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_c45355f2-2ae3-4ac8-a347-baa34e75a726" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_f401ad41-a83d-4a7d-8044-65975e1c7fca" xlink:to="loc_us-gaap_LineOfCreditMember_c45355f2-2ae3-4ac8-a347-baa34e75a726" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails" xlink:type="extended" id="i8c403c7d26ef4e5f90cffd5268bd4819_SHORTANDLONGTERMDEBTSCHEDULEOFSHORTTERMDEBTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtLineItems_bfa7eeb0-99a8-43d2-a0b2-36e591c45383" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditCurrent_e12780af-9252-40d6-8630-229e23c84acc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LinesOfCreditCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_bfa7eeb0-99a8-43d2-a0b2-36e591c45383" xlink:to="loc_us-gaap_LinesOfCreditCurrent_e12780af-9252-40d6-8630-229e23c84acc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_72cf494a-16eb-45cc-b2dc-0375818beda7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_bfa7eeb0-99a8-43d2-a0b2-36e591c45383" xlink:to="loc_us-gaap_ShortTermBorrowings_72cf494a-16eb-45cc-b2dc-0375818beda7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_be88e5a8-10f0-4496-9d65-7e4f486a0add" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtLineItems_bfa7eeb0-99a8-43d2-a0b2-36e591c45383" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_be88e5a8-10f0-4496-9d65-7e4f486a0add" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShortTermDebtTable_03cfa301-3f97-41ce-8a2e-f2fd587372a2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShortTermDebtTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShortTermDebtLineItems_bfa7eeb0-99a8-43d2-a0b2-36e591c45383" xlink:to="loc_us-gaap_ScheduleOfShortTermDebtTable_03cfa301-3f97-41ce-8a2e-f2fd587372a2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_d977228c-76b0-4401-976b-d9b01145d476" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_03cfa301-3f97-41ce-8a2e-f2fd587372a2" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_d977228c-76b0-4401-976b-d9b01145d476" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_d977228c-76b0-4401-976b-d9b01145d476_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_d977228c-76b0-4401-976b-d9b01145d476" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_d977228c-76b0-4401-976b-d9b01145d476_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_d981bdff-194e-49e1-9f34-b050e7b34600" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_d977228c-76b0-4401-976b-d9b01145d476" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_d981bdff-194e-49e1-9f34-b050e7b34600" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignLineOfCreditMember_604014da-66e4-44db-8c1a-bbff07b43fd2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_d981bdff-194e-49e1-9f34-b050e7b34600" xlink:to="loc_us-gaap_ForeignLineOfCreditMember_604014da-66e4-44db-8c1a-bbff07b43fd2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_40c2725d-56b5-4acd-9a2e-9afb95564f1c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_03cfa301-3f97-41ce-8a2e-f2fd587372a2" xlink:to="loc_us-gaap_CreditFacilityAxis_40c2725d-56b5-4acd-9a2e-9afb95564f1c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_40c2725d-56b5-4acd-9a2e-9afb95564f1c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_40c2725d-56b5-4acd-9a2e-9afb95564f1c" xlink:to="loc_us-gaap_CreditFacilityDomain_40c2725d-56b5-4acd-9a2e-9afb95564f1c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_4a3be8fc-3245-486b-9796-4372ba54767f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_40c2725d-56b5-4acd-9a2e-9afb95564f1c" xlink:to="loc_us-gaap_CreditFacilityDomain_4a3be8fc-3245-486b-9796-4372ba54767f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_15e7b914-733d-4f5b-b9d9-13d698cf398f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_4a3be8fc-3245-486b-9796-4372ba54767f" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_15e7b914-733d-4f5b-b9d9-13d698cf398f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShortTermDebtTable_03cfa301-3f97-41ce-8a2e-f2fd587372a2" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_5f8025e2-1636-46e0-bbba-201ca4a2fc9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_7a7d6055-7cb8-4022-9c72-2cb85ee2bc0c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_5f8025e2-1636-46e0-bbba-201ca4a2fc9c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_b3be47a1-6146-46ee-8595-37a2b408d789" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_5f8025e2-1636-46e0-bbba-201ca4a2fc9c" xlink:to="loc_us-gaap_CommercialPaperMember_b3be47a1-6146-46ee-8595-37a2b408d789" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="extended" id="i101eaf3a34444238925af487ba8282ed_SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_6f14b857-e66a-46ae-80fa-ce612c3d38ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_LongTermDebt_6f14b857-e66a-46ae-80fa-ce612c3d38ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_d03d6d93-8a55-4e9e-8ee9-7c043105f728" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_FinanceLeaseLiability_d03d6d93-8a55-4e9e-8ee9-7c043105f728" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_5dd3504c-65e9-48ad-9e4b-02547d29c845" xlink:href="hsy-20200628.xsd#hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_5dd3504c-65e9-48ad-9e4b-02547d29c845" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_7d6198dd-b49d-40bf-a237-04a7adee04fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_LongTermDebtCurrent_7d6198dd-b49d-40bf-a237-04a7adee04fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_316b17dd-790e-4e6e-9ebc-5f992d8a0b89" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_316b17dd-790e-4e6e-9ebc-5f992d8a0b89" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_642c658e-256c-4973-8869-05b008b426be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_642c658e-256c-4973-8869-05b008b426be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_5ae6c2b2-75f4-4be1-b2bb-15eb4c25ac18" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_RepaymentsOfDebt_5ae6c2b2-75f4-4be1-b2bb-15eb4c25ac18" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_09184efa-a4d3-43f8-b4ed-36ed9d67a90b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_09184efa-a4d3-43f8-b4ed-36ed9d67a90b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_3ee5a674-6813-4d16-99a2-20a271769595" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_4368761e-e5e8-4770-b6d0-dc545d40a306" xlink:to="loc_us-gaap_DebtInstrumentTable_3ee5a674-6813-4d16-99a2-20a271769595" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ee5a674-6813-4d16-99a2-20a271769595" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_33a678e6-e230-43fc-acf6-c7570b3e050d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b4e71686-14c3-4dd8-9bfe-b4bc1a17b3fd" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_33a678e6-e230-43fc-acf6-c7570b3e050d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_201451bb-f31c-491a-8624-b99c95b6fed3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_33a678e6-e230-43fc-acf6-c7570b3e050d" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_201451bb-f31c-491a-8624-b99c95b6fed3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_a6a39533-d8cf-436b-82bc-e5f284185df2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_3ee5a674-6813-4d16-99a2-20a271769595" xlink:to="loc_us-gaap_DebtInstrumentAxis_a6a39533-d8cf-436b-82bc-e5f284185df2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a6a39533-d8cf-436b-82bc-e5f284185df2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_a6a39533-d8cf-436b-82bc-e5f284185df2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a6a39533-d8cf-436b-82bc-e5f284185df2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_a6a39533-d8cf-436b-82bc-e5f284185df2" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.90Due2020Domain_53306211-9438-4136-b9e8-5f37b25d05c0" xlink:href="hsy-20200628.xsd#hsy_Notes2.90Due2020Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2.90Due2020Domain_53306211-9438-4136-b9e8-5f37b25d05c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes4.125Due2020Member_829115b1-9020-490e-92fb-e46af2cf84fc" xlink:href="hsy-20200628.xsd#hsy_Notes4.125Due2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes4.125Due2020Member_829115b1-9020-490e-92fb-e46af2cf84fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_ae5fe5f0-03dd-4575-a589-45a50887e1ba" xlink:href="hsy-20200628.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Debentures8.8Due2021Member_ae5fe5f0-03dd-4575-a589-45a50887e1ba" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_0e090905-7823-41d6-817f-7ff2aec1f45d" xlink:href="hsy-20200628.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes3.10Due2021Domain_0e090905-7823-41d6-817f-7ff2aec1f45d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_8e92f284-c69c-40ff-8abd-d2c1cb5b4c5c" xlink:href="hsy-20200628.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2.625Due2023Member_8e92f284-c69c-40ff-8abd-d2c1cb5b4c5c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_65c54ee7-59f3-4b85-84bf-128531093a41" xlink:href="hsy-20200628.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes3.375Due2023Domain_65c54ee7-59f3-4b85-84bf-128531093a41" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_c4ad2937-99b6-460f-9807-e085970ef9d4" xlink:href="hsy-20200628.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2.050Due2024Member_c4ad2937-99b6-460f-9807-e085970ef9d4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_924777b1-c11f-4dcc-95e6-d27ea24bb261" xlink:href="hsy-20200628.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes0900NotesDue2025Member_924777b1-c11f-4dcc-95e6-d27ea24bb261" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_d5625bbb-abfe-4af3-9350-01bf2570bd4d" xlink:href="hsy-20200628.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes3.20Due2025Member_d5625bbb-abfe-4af3-9350-01bf2570bd4d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_7778fb0d-7182-44b9-89cc-406e32c0a2f7" xlink:href="hsy-20200628.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2.30Due2026Member_7778fb0d-7182-44b9-89cc-406e32c0a2f7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_1500a237-811b-4688-8bc5-f2973e2f8845" xlink:href="hsy-20200628.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Debentures7.2Due2027Member_1500a237-811b-4688-8bc5-f2973e2f8845" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_565831ac-7e2d-40e5-a475-b766dbab8a59" xlink:href="hsy-20200628.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2.450Due2029Member_565831ac-7e2d-40e5-a475-b766dbab8a59" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_70245088-4610-4c8d-8bdb-af63a9025863" xlink:href="hsy-20200628.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes1700Due2030Member_70245088-4610-4c8d-8bdb-af63a9025863" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_82f0600f-0d4d-4d92-887e-fdd0a3aaed5a" xlink:href="hsy-20200628.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes3.375Due2046Member_82f0600f-0d4d-4d92-887e-fdd0a3aaed5a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_8e0df6d2-a693-453d-b41f-cbfd322c1fbf" xlink:href="hsy-20200628.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes3.125Due2049Member_8e0df6d2-a693-453d-b41f-cbfd322c1fbf" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_fbdb1af8-a6a6-4262-9bbf-8dd429871937" xlink:href="hsy-20200628.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_a4d230a6-6fed-4ad6-8973-6641e39b8eef" xlink:to="loc_hsy_Notes2650NotesDue2050Member_fbdb1af8-a6a6-4262-9bbf-8dd429871937" xlink:type="arc" order="15"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="extended" id="i3ff3f2516cbe4212bd43f0e21039514c_SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_9bde479a-b18f-4ee5-a213-fd891acf133e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_fa10cb1a-0a56-4a09-91cc-e21f0104e3ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9bde479a-b18f-4ee5-a213-fd891acf133e" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_fa10cb1a-0a56-4a09-91cc-e21f0104e3ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_c9b3749d-8a1f-4286-8dfd-f8997a8e05e2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_9bde479a-b18f-4ee5-a213-fd891acf133e" xlink:to="loc_us-gaap_DebtInstrumentTable_c9b3749d-8a1f-4286-8dfd-f8997a8e05e2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_10647349-b640-472c-82c0-07d7a8981e86" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_c9b3749d-8a1f-4286-8dfd-f8997a8e05e2" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_10647349-b640-472c-82c0-07d7a8981e86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_10647349-b640-472c-82c0-07d7a8981e86_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_10647349-b640-472c-82c0-07d7a8981e86" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_10647349-b640-472c-82c0-07d7a8981e86_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_1c49818a-cb76-4cd1-88bd-2ba96204303d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_10647349-b640-472c-82c0-07d7a8981e86" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_1c49818a-cb76-4cd1-88bd-2ba96204303d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_c895b8ea-f024-4af3-8b3f-0731d107e32f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_1c49818a-cb76-4cd1-88bd-2ba96204303d" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_c895b8ea-f024-4af3-8b3f-0731d107e32f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_da8487b6-4588-4e0f-bff1-fc2efce7256b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_c9b3749d-8a1f-4286-8dfd-f8997a8e05e2" xlink:to="loc_us-gaap_DebtInstrumentAxis_da8487b6-4588-4e0f-bff1-fc2efce7256b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_da8487b6-4588-4e0f-bff1-fc2efce7256b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_da8487b6-4588-4e0f-bff1-fc2efce7256b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_da8487b6-4588-4e0f-bff1-fc2efce7256b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_da8487b6-4588-4e0f-bff1-fc2efce7256b" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.90Due2020Domain_f6fb0d94-a03a-41a4-bc22-742ee45aa90e" xlink:href="hsy-20200628.xsd#hsy_Notes2.90Due2020Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2.90Due2020Domain_f6fb0d94-a03a-41a4-bc22-742ee45aa90e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes4.125Due2020Member_188f3d23-412f-4fdb-ba5f-34a3e8b5adfe" xlink:href="hsy-20200628.xsd#hsy_Notes4.125Due2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes4.125Due2020Member_188f3d23-412f-4fdb-ba5f-34a3e8b5adfe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_f2f6f646-7f37-4a30-a33c-b2f0e0727e38" xlink:href="hsy-20200628.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Debentures8.8Due2021Member_f2f6f646-7f37-4a30-a33c-b2f0e0727e38" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_2445f7bd-f483-4490-a859-2185c5cbffba" xlink:href="hsy-20200628.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes3.10Due2021Domain_2445f7bd-f483-4490-a859-2185c5cbffba" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_462fc5d8-880e-41c4-9997-195c31a765ec" xlink:href="hsy-20200628.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2.625Due2023Member_462fc5d8-880e-41c4-9997-195c31a765ec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_b53f5dd2-42a7-4bc1-8a72-b35ccf0b9ab6" xlink:href="hsy-20200628.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes3.375Due2023Domain_b53f5dd2-42a7-4bc1-8a72-b35ccf0b9ab6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_b35e62b5-f51c-4a97-90e2-3ba1d459abe9" xlink:href="hsy-20200628.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2.050Due2024Member_b35e62b5-f51c-4a97-90e2-3ba1d459abe9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_35310b3e-1929-40af-801e-54547663321b" xlink:href="hsy-20200628.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes0900NotesDue2025Member_35310b3e-1929-40af-801e-54547663321b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_93a4f79f-b3d8-4fb3-90e5-c9ca87390d75" xlink:href="hsy-20200628.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes3.20Due2025Member_93a4f79f-b3d8-4fb3-90e5-c9ca87390d75" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_4a9378ee-68ec-4207-9bb5-4633666cfb2c" xlink:href="hsy-20200628.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2.30Due2026Member_4a9378ee-68ec-4207-9bb5-4633666cfb2c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_4920fa66-4c19-4455-8c5f-671eeca50711" xlink:href="hsy-20200628.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Debentures7.2Due2027Member_4920fa66-4c19-4455-8c5f-671eeca50711" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_12db8556-9f89-4c43-83a7-fbc11f4937ce" xlink:href="hsy-20200628.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2.450Due2029Member_12db8556-9f89-4c43-83a7-fbc11f4937ce" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_ede2fe9a-c55c-4e07-9bf2-9d8eb12c290b" xlink:href="hsy-20200628.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes1700Due2030Member_ede2fe9a-c55c-4e07-9bf2-9d8eb12c290b" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_3ee874f2-5057-4816-8605-7f34b83b66f8" xlink:href="hsy-20200628.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes3.375Due2046Member_3ee874f2-5057-4816-8605-7f34b83b66f8" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_4e04be54-fd09-4299-bb6a-e42bec4f8934" xlink:href="hsy-20200628.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes3.125Due2049Member_4e04be54-fd09-4299-bb6a-e42bec4f8934" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_82216bdc-d288-496c-b462-6dc3ff14fe79" xlink:href="hsy-20200628.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_b87309ec-e059-4107-86e1-7c2457ed9488" xlink:to="loc_hsy_Notes2650NotesDue2050Member_82216bdc-d288-496c-b462-6dc3ff14fe79" xlink:type="arc" order="15"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="extended" id="i7d3e61cbdd16420eabd7918874e337eb_SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="extended" id="i82897d0078414ff0a2191d97a496c7b7_DERIVATIVEINSTRUMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="extended" id="ib5e769d15ec14c46a66dd0b603947403_DERIVATIVEINSTRUMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="extended" id="i340bbf6566aa4ac791476dc2ca9efbb7_DERIVATIVEINSTRUMENTSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_fd082503-84cf-4bf8-9b7a-99fc944b2975" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_DerivativeTermOfContract_fd082503-84cf-4bf8-9b7a-99fc944b2975" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_1baaa5ce-5c2c-44c6-9505-022bdbcaa6e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_DerivativeNotionalAmount_1baaa5ce-5c2c-44c6-9505-022bdbcaa6e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_4b0a13fe-1511-40e3-b42c-217b6bb504f4" xlink:href="hsy-20200628.xsd#hsy_MinimumLengthofTimeHedgedinCashFlowHedge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_4b0a13fe-1511-40e3-b42c-217b6bb504f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_665a3cfa-8aab-4302-8a87-a887a2afeed9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_665a3cfa-8aab-4302-8a87-a887a2afeed9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_d0a71fba-86c8-45ca-a235-dc1bae499d01" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_d0a71fba-86c8-45ca-a235-dc1bae499d01" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_66a73a58-6893-4d98-8ae8-ef95ddc4c5c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_66a73a58-6893-4d98-8ae8-ef95ddc4c5c0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_449e5771-53b2-4dc9-b0d7-fa0182941b64" xlink:to="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_0a2b5949-4118-48e0-ae12-f321e45047f0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_0a2b5949-4118-48e0-ae12-f321e45047f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_0a2b5949-4118-48e0-ae12-f321e45047f0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0a2b5949-4118-48e0-ae12-f321e45047f0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_0a2b5949-4118-48e0-ae12-f321e45047f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_0a2b5949-4118-48e0-ae12-f321e45047f0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_0b8794c8-4303-43b9-b2a6-1498520ec5d3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:to="loc_us-gaap_CommodityContractMember_0b8794c8-4303-43b9-b2a6-1498520ec5d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_464f473c-0b54-4add-9743-5f006ed6a494" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:to="loc_us-gaap_ForeignExchangeContractMember_464f473c-0b54-4add-9743-5f006ed6a494" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_a7bc905b-f633-4882-8945-1f230dea708f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:to="loc_us-gaap_InterestRateContractMember_a7bc905b-f633-4882-8945-1f230dea708f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_d4ab29df-e6a8-4e7a-8014-2e962eade5c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:to="loc_us-gaap_EquitySwapMember_d4ab29df-e6a8-4e7a-8014-2e962eade5c6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_a8a6fc3b-61b8-4ab6-a836-16cc9f03084e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_383d588b-200e-43d0-96f1-770345359f12" xlink:to="loc_us-gaap_InterestRateSwapMember_a8a6fc3b-61b8-4ab6-a836-16cc9f03084e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_b9222773-ce99-49b2-8e28-d15042f76b37" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:to="loc_us-gaap_HedgingDesignationAxis_b9222773-ce99-49b2-8e28-d15042f76b37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_b9222773-ce99-49b2-8e28-d15042f76b37_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_b9222773-ce99-49b2-8e28-d15042f76b37" xlink:to="loc_us-gaap_HedgingDesignationDomain_b9222773-ce99-49b2-8e28-d15042f76b37_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c9c126f2-41a0-42b3-afba-28db16dd88a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_b9222773-ce99-49b2-8e28-d15042f76b37" xlink:to="loc_us-gaap_HedgingDesignationDomain_c9c126f2-41a0-42b3-afba-28db16dd88a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_d2743d19-432e-45db-9aec-b3e13d7febf6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_c9c126f2-41a0-42b3-afba-28db16dd88a3" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_d2743d19-432e-45db-9aec-b3e13d7febf6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_8302316f-9e3e-4d47-8abd-1d980c9382b2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_c9c126f2-41a0-42b3-afba-28db16dd88a3" xlink:to="loc_us-gaap_NondesignatedMember_8302316f-9e3e-4d47-8abd-1d980c9382b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_49f082d8-5250-4593-b9d8-db973d605299" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_49f082d8-5250-4593-b9d8-db973d605299" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_49f082d8-5250-4593-b9d8-db973d605299_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_49f082d8-5250-4593-b9d8-db973d605299" xlink:to="loc_us-gaap_HedgingRelationshipDomain_49f082d8-5250-4593-b9d8-db973d605299_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_ac0df6da-a9b2-4132-a4ed-d859bb075c06" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_49f082d8-5250-4593-b9d8-db973d605299" xlink:to="loc_us-gaap_HedgingRelationshipDomain_ac0df6da-a9b2-4132-a4ed-d859bb075c06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_01861c28-8caf-4fcc-8f59-f33cef5c207a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_ac0df6da-a9b2-4132-a4ed-d859bb075c06" xlink:to="loc_us-gaap_CashFlowHedgingMember_01861c28-8caf-4fcc-8f59-f33cef5c207a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_580a0734-57e4-4298-8c86-90c71a4a29b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_ac0df6da-a9b2-4132-a4ed-d859bb075c06" xlink:to="loc_us-gaap_FairValueHedgingMember_580a0734-57e4-4298-8c86-90c71a4a29b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ef15b330-fa44-4707-9ce5-f37154b92329" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:to="loc_srt_RangeAxis_ef15b330-fa44-4707-9ce5-f37154b92329" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ef15b330-fa44-4707-9ce5-f37154b92329_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ef15b330-fa44-4707-9ce5-f37154b92329" xlink:to="loc_srt_RangeMember_ef15b330-fa44-4707-9ce5-f37154b92329_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_abd43275-616e-4935-9c30-008e58f9fc3f" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ef15b330-fa44-4707-9ce5-f37154b92329" xlink:to="loc_srt_RangeMember_abd43275-616e-4935-9c30-008e58f9fc3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_6c5b56f2-1d65-45b1-bf15-18913c7df448" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_abd43275-616e-4935-9c30-008e58f9fc3f" xlink:to="loc_srt_MinimumMember_6c5b56f2-1d65-45b1-bf15-18913c7df448" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_ce541f01-ded4-48e9-9f24-5b6fb47a5ac4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_abd43275-616e-4935-9c30-008e58f9fc3f" xlink:to="loc_srt_MaximumMember_ce541f01-ded4-48e9-9f24-5b6fb47a5ac4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_287265e1-f399-4a77-9aa4-ec0d5a39b6b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_0340803a-a9f8-4d17-a8a1-24a4d012746b" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_287265e1-f399-4a77-9aa4-ec0d5a39b6b4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_287265e1-f399-4a77-9aa4-ec0d5a39b6b4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_287265e1-f399-4a77-9aa4-ec0d5a39b6b4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_287265e1-f399-4a77-9aa4-ec0d5a39b6b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_f348c655-627e-4b9a-ac2e-a2bf823a0141" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_287265e1-f399-4a77-9aa4-ec0d5a39b6b4" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_f348c655-627e-4b9a-ac2e-a2bf823a0141" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_faafd787-0192-46ed-9391-3234e43e521a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f348c655-627e-4b9a-ac2e-a2bf823a0141" xlink:to="loc_us-gaap_InterestExpenseMember_faafd787-0192-46ed-9391-3234e43e521a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="extended" id="i8176b91af9e244ee98b05e4b191d1cd7_DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_d1a9ce22-c59c-48c3-b8c3-3519838e1b61" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:to="loc_us-gaap_DerivativeAssets_d1a9ce22-c59c-48c3-b8c3-3519838e1b61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_a7d36e67-fb68-4fae-9552-7cbc9b8540a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:to="loc_us-gaap_DerivativeLiabilities_a7d36e67-fb68-4fae-9552-7cbc9b8540a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_6782c1bc-48a6-4688-840a-44855e140d8a" xlink:href="hsy-20200628.xsd#hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:to="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_6782c1bc-48a6-4688-840a-44855e140d8a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_83e4718a-c80c-40e4-9b5b-432b344c55fb" xlink:href="hsy-20200628.xsd#hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:to="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_83e4718a-c80c-40e4-9b5b-432b344c55fb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_7c0cbee0-24ce-4681-b01e-d9c508c68c8c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_29f68b27-5a1f-41b5-8986-17d83d7b280f" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_7c0cbee0-24ce-4681-b01e-d9c508c68c8c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_c612feab-0a13-42fc-83f7-2fbdbcc041c7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_7c0cbee0-24ce-4681-b01e-d9c508c68c8c" xlink:to="loc_us-gaap_HedgingDesignationAxis_c612feab-0a13-42fc-83f7-2fbdbcc041c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c612feab-0a13-42fc-83f7-2fbdbcc041c7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_c612feab-0a13-42fc-83f7-2fbdbcc041c7" xlink:to="loc_us-gaap_HedgingDesignationDomain_c612feab-0a13-42fc-83f7-2fbdbcc041c7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_a20f1643-ed57-46ed-99cb-23059c8ecb44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_c612feab-0a13-42fc-83f7-2fbdbcc041c7" xlink:to="loc_us-gaap_HedgingDesignationDomain_a20f1643-ed57-46ed-99cb-23059c8ecb44" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_1e6abef5-267b-42f0-b984-84605e39ae77" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_a20f1643-ed57-46ed-99cb-23059c8ecb44" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_1e6abef5-267b-42f0-b984-84605e39ae77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_48d9e551-fc6d-46f2-aee5-7f4763a0e604" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_a20f1643-ed57-46ed-99cb-23059c8ecb44" xlink:to="loc_us-gaap_NondesignatedMember_48d9e551-fc6d-46f2-aee5-7f4763a0e604" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_9728b9ef-59df-4285-93ad-4079084bb80c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_7c0cbee0-24ce-4681-b01e-d9c508c68c8c" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_9728b9ef-59df-4285-93ad-4079084bb80c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9728b9ef-59df-4285-93ad-4079084bb80c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_9728b9ef-59df-4285-93ad-4079084bb80c" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9728b9ef-59df-4285-93ad-4079084bb80c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_1b094426-d22c-4fbd-8fa9-19fb7a77f5c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_9728b9ef-59df-4285-93ad-4079084bb80c" xlink:to="loc_us-gaap_HedgingRelationshipDomain_1b094426-d22c-4fbd-8fa9-19fb7a77f5c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_9528a57c-1c7b-4729-a488-14c015565849" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_1b094426-d22c-4fbd-8fa9-19fb7a77f5c1" xlink:to="loc_us-gaap_CashFlowHedgingMember_9528a57c-1c7b-4729-a488-14c015565849" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_9dd1c955-54cd-43c6-8021-5db3a4a9b796" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_1b094426-d22c-4fbd-8fa9-19fb7a77f5c1" xlink:to="loc_us-gaap_FairValueHedgingMember_9dd1c955-54cd-43c6-8021-5db3a4a9b796" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_1ee8c26c-c908-43d9-a899-5727b9d0bac2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_7c0cbee0-24ce-4681-b01e-d9c508c68c8c" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_1ee8c26c-c908-43d9-a899-5727b9d0bac2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_1ee8c26c-c908-43d9-a899-5727b9d0bac2_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1ee8c26c-c908-43d9-a899-5727b9d0bac2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_1ee8c26c-c908-43d9-a899-5727b9d0bac2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_1ee8c26c-c908-43d9-a899-5727b9d0bac2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_c5aabbbb-1bcd-42dd-bda9-a6cb30be36c4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:to="loc_us-gaap_CommodityContractMember_c5aabbbb-1bcd-42dd-bda9-a6cb30be36c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_630b6c6d-ea71-4833-9e54-20aa6d794372" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:to="loc_us-gaap_ForeignExchangeContractMember_630b6c6d-ea71-4833-9e54-20aa6d794372" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_11da07c8-599b-432f-bf4d-8598725fd723" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:to="loc_us-gaap_InterestRateContractMember_11da07c8-599b-432f-bf4d-8598725fd723" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_a0c295ca-6d48-45b8-9414-8d58a2fee06d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5af34fd9-1172-4960-83ce-9863a69b2a81" xlink:to="loc_us-gaap_EquitySwapMember_a0c295ca-6d48-45b8-9414-8d58a2fee06d" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="extended" id="i2ee1d9792a0940ca99b274c8671b6362_DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_ad817245-de14-4fdd-8325-7f63f2b86d6d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_135bdbb9-465d-4459-913a-19ba9ef1cb83" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_ad817245-de14-4fdd-8325-7f63f2b86d6d" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_135bdbb9-465d-4459-913a-19ba9ef1cb83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_e3e93dc2-87c0-4dd1-9c02-ef3d142ffd56" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_ad817245-de14-4fdd-8325-7f63f2b86d6d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_e3e93dc2-87c0-4dd1-9c02-ef3d142ffd56" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_2e25c2a6-aaf5-40d9-b2ec-1f25da04060e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_ad817245-de14-4fdd-8325-7f63f2b86d6d" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_2e25c2a6-aaf5-40d9-b2ec-1f25da04060e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_568eb356-44a5-4869-953b-b02da7a0cdbf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_ad817245-de14-4fdd-8325-7f63f2b86d6d" xlink:to="loc_us-gaap_DerivativeTable_568eb356-44a5-4869-953b-b02da7a0cdbf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_de8c2647-d339-4f45-b585-51566b8c53b9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_568eb356-44a5-4869-953b-b02da7a0cdbf" xlink:to="loc_us-gaap_HedgingDesignationAxis_de8c2647-d339-4f45-b585-51566b8c53b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_de8c2647-d339-4f45-b585-51566b8c53b9_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_de8c2647-d339-4f45-b585-51566b8c53b9" xlink:to="loc_us-gaap_HedgingDesignationDomain_de8c2647-d339-4f45-b585-51566b8c53b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_5ced69f8-825f-41f6-8285-7a3a7ae310ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_de8c2647-d339-4f45-b585-51566b8c53b9" xlink:to="loc_us-gaap_HedgingDesignationDomain_5ced69f8-825f-41f6-8285-7a3a7ae310ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_f1f15878-8bcc-49f8-a8fa-bc23f804f478" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_5ced69f8-825f-41f6-8285-7a3a7ae310ee" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_f1f15878-8bcc-49f8-a8fa-bc23f804f478" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_c443e670-a220-45bf-9051-ae9506a44786" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_568eb356-44a5-4869-953b-b02da7a0cdbf" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_c443e670-a220-45bf-9051-ae9506a44786" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_c443e670-a220-45bf-9051-ae9506a44786_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_c443e670-a220-45bf-9051-ae9506a44786" xlink:to="loc_us-gaap_HedgingRelationshipDomain_c443e670-a220-45bf-9051-ae9506a44786_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9639492b-697e-4429-b26c-7fec378f2b58" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_c443e670-a220-45bf-9051-ae9506a44786" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9639492b-697e-4429-b26c-7fec378f2b58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_8e0b6abe-2413-49e7-9277-8c9c8621f5be" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9639492b-697e-4429-b26c-7fec378f2b58" xlink:to="loc_us-gaap_CashFlowHedgingMember_8e0b6abe-2413-49e7-9277-8c9c8621f5be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_568eb356-44a5-4869-953b-b02da7a0cdbf" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ab2e9bc-a5be-4fc0-8fd0-fe71c241dd55" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_6da0e749-4c9a-4752-8635-dd8037f65d93" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:to="loc_us-gaap_CommodityContractMember_6da0e749-4c9a-4752-8635-dd8037f65d93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_2c5e80b3-ec61-4786-9e31-e5168ee95072" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:to="loc_us-gaap_ForeignExchangeContractMember_2c5e80b3-ec61-4786-9e31-e5168ee95072" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_148aae7d-ae99-447d-98ec-01711c63ec60" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:to="loc_us-gaap_InterestRateContractMember_148aae7d-ae99-447d-98ec-01711c63ec60" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_6b6de4bc-281c-41c7-9633-2b61504da40c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_f9b39d17-a529-45ae-ad9e-2a1c476fe840" xlink:to="loc_us-gaap_EquitySwapMember_6b6de4bc-281c-41c7-9633-2b61504da40c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="extended" id="i558434e9e5da4a1ca4f4c3eea3d8a756_DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_b3cdc25e-c2a8-42bd-8945-d9743085cb56" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_836c0c27-985c-4d66-9e21-ade3a97998a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_b3cdc25e-c2a8-42bd-8945-d9743085cb56" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_836c0c27-985c-4d66-9e21-ade3a97998a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_777e422d-66bd-435b-b1a2-df9ede2f51a6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_b3cdc25e-c2a8-42bd-8945-d9743085cb56" xlink:to="loc_us-gaap_DerivativeAssets_777e422d-66bd-435b-b1a2-df9ede2f51a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_6c8185ec-c051-4d08-ac98-fb761134374c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_b3cdc25e-c2a8-42bd-8945-d9743085cb56" xlink:to="loc_us-gaap_DerivativeTable_6c8185ec-c051-4d08-ac98-fb761134374c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6c8185ec-c051-4d08-ac98-fb761134374c" xlink:to="loc_us-gaap_HedgingDesignationAxis_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69" xlink:to="loc_us-gaap_HedgingDesignationDomain_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_f55f67dc-1b53-431a-a7ed-f07260d7930e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_3f114c07-c8c8-4fb9-8dcf-6269f2d7ee69" xlink:to="loc_us-gaap_HedgingDesignationDomain_f55f67dc-1b53-431a-a7ed-f07260d7930e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_9d030bdb-dcaa-4230-9b97-a13b2c1e0626" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_f55f67dc-1b53-431a-a7ed-f07260d7930e" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_9d030bdb-dcaa-4230-9b97-a13b2c1e0626" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19a2f3ee-2326-413c-aae0-176807147388" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6c8185ec-c051-4d08-ac98-fb761134374c" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19a2f3ee-2326-413c-aae0-176807147388" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_19a2f3ee-2326-413c-aae0-176807147388_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19a2f3ee-2326-413c-aae0-176807147388" xlink:to="loc_us-gaap_HedgingRelationshipDomain_19a2f3ee-2326-413c-aae0-176807147388_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9cd31231-9158-45f6-8910-9ad310f078f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_19a2f3ee-2326-413c-aae0-176807147388" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9cd31231-9158-45f6-8910-9ad310f078f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_d13b31f7-4a22-492d-960a-74ad053f67eb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_9cd31231-9158-45f6-8910-9ad310f078f9" xlink:to="loc_us-gaap_FairValueHedgingMember_d13b31f7-4a22-492d-960a-74ad053f67eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_84a78b5c-a7d8-4a63-ba8c-a921fddf393f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_6c8185ec-c051-4d08-ac98-fb761134374c" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_84a78b5c-a7d8-4a63-ba8c-a921fddf393f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_84a78b5c-a7d8-4a63-ba8c-a921fddf393f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_84a78b5c-a7d8-4a63-ba8c-a921fddf393f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_84a78b5c-a7d8-4a63-ba8c-a921fddf393f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9492843a-1dc9-4ed2-af10-2e5811e19d72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_84a78b5c-a7d8-4a63-ba8c-a921fddf393f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9492843a-1dc9-4ed2-af10-2e5811e19d72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_978b32ec-0f39-43e5-9e8e-c768150ea7e3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_9492843a-1dc9-4ed2-af10-2e5811e19d72" xlink:to="loc_us-gaap_InterestRateSwapMember_978b32ec-0f39-43e5-9e8e-c768150ea7e3" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS" xlink:type="extended" id="ie467ca30f0344b60a8170f3914c65db7_FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables" xlink:type="extended" id="i8de81083acfc4e2392d5ab36e356332d_FAIRVALUEMEASUREMENTSFAIRVALUEMEASUREMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="extended" id="ia10c560fb29a4939a4f17740cf01de65_FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4924a434-cfc3-4772-9b78-8920211dca3d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_7744af0b-f94a-44cc-87cc-be28ca8fa337" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4924a434-cfc3-4772-9b78-8920211dca3d" xlink:to="loc_us-gaap_DerivativeAssets_7744af0b-f94a-44cc-87cc-be28ca8fa337" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_093ba7ea-ce0e-4aa3-beee-a2cc24c5b7e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4924a434-cfc3-4772-9b78-8920211dca3d" xlink:to="loc_us-gaap_DerivativeLiabilities_093ba7ea-ce0e-4aa3-beee-a2cc24c5b7e8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetAssetLiability_f21bb6af-bb31-4612-ae46-733467770f0b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueNetAssetLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4924a434-cfc3-4772-9b78-8920211dca3d" xlink:to="loc_us-gaap_FairValueNetAssetLiability_f21bb6af-bb31-4612-ae46-733467770f0b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c904e053-b997-4a3b-8366-f1077c15915d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4924a434-cfc3-4772-9b78-8920211dca3d" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c904e053-b997-4a3b-8366-f1077c15915d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4b7f9f21-1260-40a9-889d-9be2ae8f298b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c904e053-b997-4a3b-8366-f1077c15915d" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4b7f9f21-1260-40a9-889d-9be2ae8f298b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_4b7f9f21-1260-40a9-889d-9be2ae8f298b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4b7f9f21-1260-40a9-889d-9be2ae8f298b" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_4b7f9f21-1260-40a9-889d-9be2ae8f298b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_dbb901f7-eb39-4122-b1ab-0bc1db67c40e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4b7f9f21-1260-40a9-889d-9be2ae8f298b" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_dbb901f7-eb39-4122-b1ab-0bc1db67c40e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_e5fcf40d-b078-426e-aeff-23babdeeb761" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_dbb901f7-eb39-4122-b1ab-0bc1db67c40e" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_e5fcf40d-b078-426e-aeff-23babdeeb761" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_8ad259cf-d179-4ae9-a07b-9ef00123881b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c904e053-b997-4a3b-8366-f1077c15915d" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_8ad259cf-d179-4ae9-a07b-9ef00123881b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8ad259cf-d179-4ae9-a07b-9ef00123881b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ad259cf-d179-4ae9-a07b-9ef00123881b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8ad259cf-d179-4ae9-a07b-9ef00123881b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ad259cf-d179-4ae9-a07b-9ef00123881b" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_4d6cacd8-791a-48e8-9f2b-702f7d5d3c9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:to="loc_us-gaap_ForeignExchangeContractMember_4d6cacd8-791a-48e8-9f2b-702f7d5d3c9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_ba2bbc85-c0b1-49ab-8202-fad02860e791" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:to="loc_us-gaap_InterestRateContractMember_ba2bbc85-c0b1-49ab-8202-fad02860e791" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_20385efc-96e1-4212-b98d-c92c2c3c6c3c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:to="loc_us-gaap_EquitySwapMember_20385efc-96e1-4212-b98d-c92c2c3c6c3c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_af55da03-a680-424d-b2d5-6545a10e75b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_8e856b29-2b4c-4005-82af-9d649751af2b" xlink:to="loc_us-gaap_CommodityContractMember_af55da03-a680-424d-b2d5-6545a10e75b6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_c904e053-b997-4a3b-8366-f1077c15915d" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_27d50757-3b37-4c1c-b9cc-c01d54083d49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_886b18a2-55a4-43c5-ae28-d6d7b1b90b5a" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_27d50757-3b37-4c1c-b9cc-c01d54083d49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_02f754a1-6cc1-431e-8156-a331f83eea11" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_27d50757-3b37-4c1c-b9cc-c01d54083d49" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_02f754a1-6cc1-431e-8156-a331f83eea11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_adaac50b-c55b-4708-a8dc-de95571801ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_27d50757-3b37-4c1c-b9cc-c01d54083d49" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_adaac50b-c55b-4708-a8dc-de95571801ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_ca70e56c-06b8-45a9-9977-2284a8f24fa7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_27d50757-3b37-4c1c-b9cc-c01d54083d49" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_ca70e56c-06b8-45a9-9977-2284a8f24fa7" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="extended" id="i44a816ef67bc47bbb309f9235dd9114d_FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_1475af5f-f482-481d-8838-36b0838b3061" xlink:href="hsy-20200628.xsd#hsy_LongtermDebtCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_1475af5f-f482-481d-8838-36b0838b3061" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_9bfedd80-bbd0-464c-8a3c-99af527a6ed0" xlink:href="hsy-20200628.xsd#hsy_LongtermDebtExcludingCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_9bfedd80-bbd0-464c-8a3c-99af527a6ed0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_b03c155e-270f-49d0-9329-aa836077c769" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_us-gaap_LongTermDebtFairValue_b03c155e-270f-49d0-9329-aa836077c769" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_25dad7b5-2fec-4680-8137-8d4fc10bfb7d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_us-gaap_LongTermDebtCurrent_25dad7b5-2fec-4680-8137-8d4fc10bfb7d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_922e3bbe-b4a0-4437-882d-1fb0f63819ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_922e3bbe-b4a0-4437-882d-1fb0f63819ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_77c8c862-d012-4681-bef7-919679a9177e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_us-gaap_LongTermDebt_77c8c862-d012-4681-bef7-919679a9177e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4d8126b7-36d0-43ad-9f7c-a3a3eecf49d7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_88f9d068-326f-4f8c-9f7d-80b6c35eb784" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4d8126b7-36d0-43ad-9f7c-a3a3eecf49d7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_46a57e1d-a74b-4f1b-89ae-f0a67169abde" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4d8126b7-36d0-43ad-9f7c-a3a3eecf49d7" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_46a57e1d-a74b-4f1b-89ae-f0a67169abde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_46a57e1d-a74b-4f1b-89ae-f0a67169abde_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_46a57e1d-a74b-4f1b-89ae-f0a67169abde" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_46a57e1d-a74b-4f1b-89ae-f0a67169abde_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6218d843-46b6-4e34-84fc-ed6a53fef2c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_46a57e1d-a74b-4f1b-89ae-f0a67169abde" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6218d843-46b6-4e34-84fc-ed6a53fef2c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_840b80a5-b3fc-43c1-b696-0bb793fa2f35" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_6218d843-46b6-4e34-84fc-ed6a53fef2c6" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_840b80a5-b3fc-43c1-b696-0bb793fa2f35" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="extended" id="i9ba64c07dde342eb9302bb50a0e05be9_FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_33929494-41f3-479a-b24f-95bfa08060bc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentChargeOnReclassifiedAssets_eb82993e-819d-48c9-99d3-ed975f5ed217" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ImpairmentChargeOnReclassifiedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_33929494-41f3-479a-b24f-95bfa08060bc" xlink:to="loc_us-gaap_ImpairmentChargeOnReclassifiedAssets_eb82993e-819d-48c9-99d3-ed975f5ed217" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_a7346ac8-daf4-4f8b-9a99-8ae473a73e4a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_33929494-41f3-479a-b24f-95bfa08060bc" xlink:to="loc_us-gaap_AssetImpairmentCharges_a7346ac8-daf4-4f8b-9a99-8ae473a73e4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_368bdd5d-7972-4d47-8c84-6dcb7296105c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_33929494-41f3-479a-b24f-95bfa08060bc" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_368bdd5d-7972-4d47-8c84-6dcb7296105c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_826cbbef-0ddf-45df-ad5e-5dbcff72aed3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_368bdd5d-7972-4d47-8c84-6dcb7296105c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_826cbbef-0ddf-45df-ad5e-5dbcff72aed3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_826cbbef-0ddf-45df-ad5e-5dbcff72aed3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_826cbbef-0ddf-45df-ad5e-5dbcff72aed3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_826cbbef-0ddf-45df-ad5e-5dbcff72aed3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5bb606de-9be3-4c93-b2a8-b7bebb13c473" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_826cbbef-0ddf-45df-ad5e-5dbcff72aed3" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5bb606de-9be3-4c93-b2a8-b7bebb13c473" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMember_ecef149d-2b55-4f5a-818e-8e6e2db7d254" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5bb606de-9be3-4c93-b2a8-b7bebb13c473" xlink:to="loc_us-gaap_OtherAssetsMember_ecef149d-2b55-4f5a-818e-8e6e2db7d254" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="extended" id="iae2379ce84f5412c81cd5478b27a626e_FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASES" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASES" xlink:type="extended" id="i9d3cf720282549098b175673dbbb8e4f_LEASES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESTables" xlink:type="extended" id="i14fe97b29f6c4be894ae86f5d3d2dde4_LEASESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="extended" id="ifdc2760d51ce48c9b9e3b381fa9c8054_LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="extended" id="ic84613333c1e44c3a69bb2640b720cc5_LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="ia74803ce6854495a9ed76474b4d9925c_LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_b82ab694-03e2-4ddd-a432-b0f06806680b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_b82ab694-03e2-4ddd-a432-b0f06806680b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_ad97d912-83bc-44f6-b5de-49fe1ec208b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_ad97d912-83bc-44f6-b5de-49fe1ec208b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_FinanceLeaseRightOfUseAssetAccumulatedAmortization_d47fce31-b8b1-4ed5-911f-535878faef65" xlink:href="hsy-20200628.xsd#hsy_FinanceLeaseRightOfUseAssetAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_hsy_FinanceLeaseRightOfUseAssetAccumulatedAmortization_d47fce31-b8b1-4ed5-911f-535878faef65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseRightofUseAsset_be57003f-8fd7-43fd-8b5a-c44118d71030" xlink:href="hsy-20200628.xsd#hsy_LeaseRightofUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_hsy_LeaseRightofUseAsset_be57003f-8fd7-43fd-8b5a-c44118d71030" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_f6bda640-35ee-4051-ae45-47b6deaba46f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_f6bda640-35ee-4051-ae45-47b6deaba46f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_f66768c0-7a77-43c0-ab7b-b8d0a69b87c3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_f66768c0-7a77-43c0-ab7b-b8d0a69b87c3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f2f23368-ced5-4884-8b0e-2f2b57df4551" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_f2f23368-ced5-4884-8b0e-2f2b57df4551" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c16f8ed9-ae90-48fb-8bfb-f81376ccb356" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_c16f8ed9-ae90-48fb-8bfb-f81376ccb356" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseLiability_9649f4ce-4e5d-43bb-95eb-0e092f20d165" xlink:href="hsy-20200628.xsd#hsy_LeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_hsy_LeaseLiability_9649f4ce-4e5d-43bb-95eb-0e092f20d165" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_ead543e9-e3a7-4dfe-ab7d-f73b2521246f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_927db7f8-415a-4936-9231-251c6034b4cc" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_ead543e9-e3a7-4dfe-ab7d-f73b2521246f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_66545e66-5501-434a-85d5-23b25739de40" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_ead543e9-e3a7-4dfe-ab7d-f73b2521246f" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_66545e66-5501-434a-85d5-23b25739de40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_66545e66-5501-434a-85d5-23b25739de40_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_66545e66-5501-434a-85d5-23b25739de40" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_66545e66-5501-434a-85d5-23b25739de40_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_87bcd13a-d2ab-4d6a-8aed-16137ebbc581" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_66545e66-5501-434a-85d5-23b25739de40" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_87bcd13a-d2ab-4d6a-8aed-16137ebbc581" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PropertyPlantandEquipmentGrossMember_b05db0aa-6ec8-426d-b4e3-da0353e5ed3e" xlink:href="hsy-20200628.xsd#hsy_PropertyPlantandEquipmentGrossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_87bcd13a-d2ab-4d6a-8aed-16137ebbc581" xlink:to="loc_hsy_PropertyPlantandEquipmentGrossMember_b05db0aa-6ec8-426d-b4e3-da0353e5ed3e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_AccumulatedDepreciationMember_f6d964dd-ff8b-4ad1-bc1c-4f41a47392b4" xlink:href="hsy-20200628.xsd#hsy_AccumulatedDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_87bcd13a-d2ab-4d6a-8aed-16137ebbc581" xlink:to="loc_hsy_AccumulatedDepreciationMember_f6d964dd-ff8b-4ad1-bc1c-4f41a47392b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentMember_4120f017-b18d-45ca-aee4-3541a2af9892" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_87bcd13a-d2ab-4d6a-8aed-16137ebbc581" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentMember_4120f017-b18d-45ca-aee4-3541a2af9892" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="extended" id="i0a8edfa89bfc40ee84413cf0bc93ad7a_LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="ib3fb81d3aae14b6caa8efd3b30db7214_LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#LEASESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESNARRATIVEDetails" xlink:type="extended" id="ibc78e9100e0249b98c7130cd99cce21d_LEASESNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_cdea9cf2-77bb-435e-9a5c-bda7c8163577" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LesseeOperatingLeaseLeasesNotYetCommenced_3f1c702e-7abd-49f8-8bad-229bcf7334ea" xlink:href="hsy-20200628.xsd#hsy_LesseeOperatingLeaseLeasesNotYetCommenced"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_cdea9cf2-77bb-435e-9a5c-bda7c8163577" xlink:to="loc_hsy_LesseeOperatingLeaseLeasesNotYetCommenced_3f1c702e-7abd-49f8-8bad-229bcf7334ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_5b04797f-b218-47d4-94e1-ff8e12f9ee27" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_cdea9cf2-77bb-435e-9a5c-bda7c8163577" xlink:to="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_5b04797f-b218-47d4-94e1-ff8e12f9ee27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_72a52311-23ed-4168-8c1f-5d9231de0bc0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_cdea9cf2-77bb-435e-9a5c-bda7c8163577" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_72a52311-23ed-4168-8c1f-5d9231de0bc0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_ba0a4a7a-a523-4708-a448-b6b7dccefe70" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_72a52311-23ed-4168-8c1f-5d9231de0bc0" xlink:to="loc_srt_RangeAxis_ba0a4a7a-a523-4708-a448-b6b7dccefe70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_ba0a4a7a-a523-4708-a448-b6b7dccefe70_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_ba0a4a7a-a523-4708-a448-b6b7dccefe70" xlink:to="loc_srt_RangeMember_ba0a4a7a-a523-4708-a448-b6b7dccefe70_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_7d498a06-838f-4151-ab86-76d38c36935c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_ba0a4a7a-a523-4708-a448-b6b7dccefe70" xlink:to="loc_srt_RangeMember_7d498a06-838f-4151-ab86-76d38c36935c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_0a362174-844c-4448-aa11-b1513560bd3b" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7d498a06-838f-4151-ab86-76d38c36935c" xlink:to="loc_srt_MinimumMember_0a362174-844c-4448-aa11-b1513560bd3b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_fd32296a-7e86-45ee-abf3-a7475eebd59d" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_7d498a06-838f-4151-ab86-76d38c36935c" xlink:to="loc_srt_MaximumMember_fd32296a-7e86-45ee-abf3-a7475eebd59d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="extended" id="ie2fd95eea7c1427e8e52d4bf089dc5bb_ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALETables" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSANDLIABILITIESHELDFORSALETables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALETables" xlink:type="extended" id="if033a621f2b842b1b34528de2957f834_ASSETSANDLIABILITIESHELDFORSALETables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSHELDFORSALEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#ASSETSHELDFORSALEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ASSETSHELDFORSALEDetails" xlink:type="extended" id="id891a39a5be84839a9eec1155fcd57c6_ASSETSHELDFORSALEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="extended" id="ib00bf80863f54f389761dd03a87c325b_BUSINESSREALIGNMENTACTIVITIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="extended" id="i05548f041d08498180c8476095d4bfda_BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="extended" id="i817b768fbbaa47bbb9e8bfd158cc4ef2_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_10a4aa70-ddf8-4439-8a00-10e30aff1663" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_25abd69c-70ad-4fc1-9056-935aeeed7cec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_10a4aa70-ddf8-4439-8a00-10e30aff1663" xlink:to="loc_us-gaap_RestructuringCharges_25abd69c-70ad-4fc1-9056-935aeeed7cec" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d8c6316-e27d-4866-8182-43b8d9a51878" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_10a4aa70-ddf8-4439-8a00-10e30aff1663" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d8c6316-e27d-4866-8182-43b8d9a51878" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_b4fe5442-6b98-4e1c-9920-be350834aaf3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d8c6316-e27d-4866-8182-43b8d9a51878" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_b4fe5442-6b98-4e1c-9920-be350834aaf3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b4fe5442-6b98-4e1c-9920-be350834aaf3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b4fe5442-6b98-4e1c-9920-be350834aaf3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b4fe5442-6b98-4e1c-9920-be350834aaf3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_d276ba40-59de-4f23-b62f-8e65ea2070a2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_b4fe5442-6b98-4e1c-9920-be350834aaf3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_d276ba40-59de-4f23-b62f-8e65ea2070a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_927464b4-c5de-4dc1-aaa5-a2e5a6958d44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_d276ba40-59de-4f23-b62f-8e65ea2070a2" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_927464b4-c5de-4dc1-aaa5-a2e5a6958d44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_3ab4b9e3-a0c7-43b3-b50a-56a50bb89abd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_d276ba40-59de-4f23-b62f-8e65ea2070a2" xlink:to="loc_us-gaap_RestructuringChargesMember_3ab4b9e3-a0c7-43b3-b50a-56a50bb89abd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d8c6316-e27d-4866-8182-43b8d9a51878" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_7e213fe9-6a97-407c-b611-1a00f0dc0f08" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_2ee16fe8-2a7f-48ca-a4fd-59be8b3c0817" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_7e213fe9-6a97-407c-b611-1a00f0dc0f08" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeSeveranceMember_d876bfdd-111f-4461-a79a-5cb80f073176" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeSeveranceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_7e213fe9-6a97-407c-b611-1a00f0dc0f08" xlink:to="loc_us-gaap_EmployeeSeveranceMember_d876bfdd-111f-4461-a79a-5cb80f073176" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringMember_9b4e73f2-f366-406b-9071-e9a582b5de95" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherRestructuringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_7e213fe9-6a97-407c-b611-1a00f0dc0f08" xlink:to="loc_us-gaap_OtherRestructuringMember_9b4e73f2-f366-406b-9071-e9a582b5de95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_b8f699a5-89e4-4ed9-8012-eacd8922ffb7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_3d8c6316-e27d-4866-8182-43b8d9a51878" xlink:to="loc_us-gaap_RestructuringPlanAxis_b8f699a5-89e4-4ed9-8012-eacd8922ffb7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_b8f699a5-89e4-4ed9-8012-eacd8922ffb7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_b8f699a5-89e4-4ed9-8012-eacd8922ffb7" xlink:to="loc_us-gaap_RestructuringPlanDomain_b8f699a5-89e4-4ed9-8012-eacd8922ffb7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_89cfcfc6-8f91-47c8-ad0d-c7423ef5d377" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_b8f699a5-89e4-4ed9-8012-eacd8922ffb7" xlink:to="loc_us-gaap_RestructuringPlanDomain_89cfcfc6-8f91-47c8-ad0d-c7423ef5d377" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_582acbce-dd3f-4d0a-8ffa-10537cbe9788" xlink:href="hsy-20200628.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_89cfcfc6-8f91-47c8-ad0d-c7423ef5d377" xlink:to="loc_hsy_MarginforGrowthProgramMember_582acbce-dd3f-4d0a-8ffa-10537cbe9788" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="extended" id="i40e1d588ad2c46f792140b8e57823c25_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="extended" id="i5298c215dad44c388c87ea18e768bdfb_BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_8a7a0fac-96b9-47cb-89d6-efdfa996cff2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_8a7a0fac-96b9-47cb-89d6-efdfa996cff2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_b563f6aa-9fc7-45b0-ba53-a99532fb81b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringAndRelatedCostCostIncurredToDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_b563f6aa-9fc7-45b0-ba53-a99532fb81b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_f2af295a-3171-4c48-a104-25f6580666b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_us-gaap_AssetImpairmentCharges_f2af295a-3171-4c48-a104-25f6580666b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringAndRelatedCostCashPortion_7cbdc601-68d0-40c0-a6dc-126c98476800" xlink:href="hsy-20200628.xsd#hsy_RestructuringAndRelatedCostCashPortion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_hsy_RestructuringAndRelatedCostCashPortion_7cbdc601-68d0-40c0-a6dc-126c98476800" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringandRelatedCostExpectedNumberofPositionsEliminatedPercent_e35c3b44-e113-4dae-96bf-b917383a52e6" xlink:href="hsy-20200628.xsd#hsy_RestructuringandRelatedCostExpectedNumberofPositionsEliminatedPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_hsy_RestructuringandRelatedCostExpectedNumberofPositionsEliminatedPercent_e35c3b44-e113-4dae-96bf-b917383a52e6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_0dbd4f42-73ad-4f68-bcdf-d3d53c3ae6f9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_us-gaap_RestructuringCharges_0dbd4f42-73ad-4f68-bcdf-d3d53c3ae6f9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_f3e4145a-a2b5-4f6a-85d0-5ac63fa0f27b" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_502a780a-fa74-44e7-a9c9-8fb98cb664f3" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_srt_RangeAxis_502a780a-fa74-44e7-a9c9-8fb98cb664f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_502a780a-fa74-44e7-a9c9-8fb98cb664f3_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_502a780a-fa74-44e7-a9c9-8fb98cb664f3" xlink:to="loc_srt_RangeMember_502a780a-fa74-44e7-a9c9-8fb98cb664f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_6ddbab42-032b-4395-83de-42902a85f73c" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_502a780a-fa74-44e7-a9c9-8fb98cb664f3" xlink:to="loc_srt_RangeMember_6ddbab42-032b-4395-83de-42902a85f73c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_083c0bf2-5576-4119-9bfd-ac9c396b72ce" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6ddbab42-032b-4395-83de-42902a85f73c" xlink:to="loc_srt_MinimumMember_083c0bf2-5576-4119-9bfd-ac9c396b72ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_171cb893-f9e7-4505-97d1-4de5606a0eb7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_6ddbab42-032b-4395-83de-42902a85f73c" xlink:to="loc_srt_MaximumMember_171cb893-f9e7-4505-97d1-4de5606a0eb7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d0dc9767-53cf-4641-a63f-33aaa2987511" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d0dc9767-53cf-4641-a63f-33aaa2987511" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d0dc9767-53cf-4641-a63f-33aaa2987511_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d0dc9767-53cf-4641-a63f-33aaa2987511" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d0dc9767-53cf-4641-a63f-33aaa2987511_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6f3764d3-94f1-4d1e-b294-e07b70dcf8b8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_d0dc9767-53cf-4641-a63f-33aaa2987511" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6f3764d3-94f1-4d1e-b294-e07b70dcf8b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_d18e5097-ba57-4b3a-acda-be30dabacc15" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_6f3764d3-94f1-4d1e-b294-e07b70dcf8b8" xlink:to="loc_us-gaap_RestructuringChargesMember_d18e5097-ba57-4b3a-acda-be30dabacc15" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_4d0da919-eb75-402f-b026-e42d4f0ed9dc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_4d0da919-eb75-402f-b026-e42d4f0ed9dc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_4d0da919-eb75-402f-b026-e42d4f0ed9dc_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_4d0da919-eb75-402f-b026-e42d4f0ed9dc" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_4d0da919-eb75-402f-b026-e42d4f0ed9dc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_6b414018-6be5-4bec-b30a-2d2ae8247d3f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_4d0da919-eb75-402f-b026-e42d4f0ed9dc" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_6b414018-6be5-4bec-b30a-2d2ae8247d3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_c614dff2-e803-4036-a0f1-64c6c0559d0b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_6b414018-6be5-4bec-b30a-2d2ae8247d3f" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_c614dff2-e803-4036-a0f1-64c6c0559d0b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a52c0019-1ee5-431c-b6af-93116579e842" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a52c0019-1ee5-431c-b6af-93116579e842" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a52c0019-1ee5-431c-b6af-93116579e842_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a52c0019-1ee5-431c-b6af-93116579e842" xlink:to="loc_us-gaap_SegmentDomain_a52c0019-1ee5-431c-b6af-93116579e842_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_aa21175c-5d0c-448a-9d17-a7790ed07f90" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a52c0019-1ee5-431c-b6af-93116579e842" xlink:to="loc_us-gaap_SegmentDomain_aa21175c-5d0c-448a-9d17-a7790ed07f90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NorthAmericaMember_b5ceacb8-ee1f-4b0e-841a-562e44b409e3" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_NorthAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_aa21175c-5d0c-448a-9d17-a7790ed07f90" xlink:to="loc_srt_NorthAmericaMember_b5ceacb8-ee1f-4b0e-841a-562e44b409e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_6ba6ebf0-922c-4658-a8ca-ccb248edd137" xlink:href="hsy-20200628.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_aa21175c-5d0c-448a-9d17-a7790ed07f90" xlink:to="loc_hsy_InternationalandOtherSegmentMember_6ba6ebf0-922c-4658-a8ca-ccb248edd137" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_8d54828f-d333-4686-8fcd-153a95b53fb1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_us-gaap_RestructuringPlanAxis_8d54828f-d333-4686-8fcd-153a95b53fb1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_8d54828f-d333-4686-8fcd-153a95b53fb1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_8d54828f-d333-4686-8fcd-153a95b53fb1" xlink:to="loc_us-gaap_RestructuringPlanDomain_8d54828f-d333-4686-8fcd-153a95b53fb1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_e63b14d2-158c-4d99-a6de-a64dd8382eba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_8d54828f-d333-4686-8fcd-153a95b53fb1" xlink:to="loc_us-gaap_RestructuringPlanDomain_e63b14d2-158c-4d99-a6de-a64dd8382eba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_813161c6-69e4-403d-b7cc-3432c565702f" xlink:href="hsy-20200628.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_e63b14d2-158c-4d99-a6de-a64dd8382eba" xlink:to="loc_hsy_MarginforGrowthProgramMember_813161c6-69e4-403d-b7cc-3432c565702f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_54c41add-55b8-457c-a018-5a8fb6649927" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_2df4cf03-6151-4d51-b66d-2056bdf8fc86" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_54c41add-55b8-457c-a018-5a8fb6649927" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_54c41add-55b8-457c-a018-5a8fb6649927_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_54c41add-55b8-457c-a018-5a8fb6649927" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_54c41add-55b8-457c-a018-5a8fb6649927_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_8470f380-8571-4332-89fa-89579767a27a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_54c41add-55b8-457c-a018-5a8fb6649927" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_8470f380-8571-4332-89fa-89579767a27a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeSeveranceMember_736c8f80-1bde-47ca-ae1c-24c957bbd24b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeSeveranceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_8470f380-8571-4332-89fa-89579767a27a" xlink:to="loc_us-gaap_EmployeeSeveranceMember_736c8f80-1bde-47ca-ae1c-24c957bbd24b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringMember_411393a0-a113-4966-8a06-b35e26287711" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherRestructuringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_8470f380-8571-4332-89fa-89579767a27a" xlink:to="loc_us-gaap_OtherRestructuringMember_411393a0-a113-4966-8a06-b35e26287711" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXES" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXES" xlink:type="extended" id="iad4fc0383a5941c2a8e9b44f3adabf2c_INCOMETAXES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="extended" id="i9629fcbb232a4a87bb296f05ed6f4747_INCOMETAXESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#INCOMETAXESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="extended" id="i4d1e260ac5794229a5286fce637f8ecc_INCOMETAXESNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="extended" id="ic355794a673c4fcab25a893aec50af38_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="extended" id="ied3ce7cb120542fb9653b92620a2e55c_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="extended" id="i4119f1421b2e45838e3f6aeb8cca5274_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_c6ae2fa3-efc1-4740-8c80-745121b24bf5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_c6ae2fa3-efc1-4740-8c80-745121b24bf5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_1c5dbb06-6cdd-4c1b-a9c8-8bfb725b28fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_1c5dbb06-6cdd-4c1b-a9c8-8bfb725b28fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_842afc60-d910-4c41-84e6-ac6bd294e821" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_842afc60-d910-4c41-84e6-ac6bd294e821" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_c4769f6d-9f04-48f9-bff6-eb27f9019408" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_c4769f6d-9f04-48f9-bff6-eb27f9019408" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_ae0b4a3f-a20b-4c53-b95e-29b686d30ef0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_ae0b4a3f-a20b-4c53-b95e-29b686d30ef0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_72b690d8-2a08-432f-b1a8-423e067cf04d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_72b690d8-2a08-432f-b1a8-423e067cf04d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_ce409b71-0c07-4b44-8c35-76ac0e47e206" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_ce409b71-0c07-4b44-8c35-76ac0e47e206" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8ffc9655-ee48-4755-a55d-a5df89b38ea8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_df75ad81-ffa7-4e48-9048-1869f8718137" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8ffc9655-ee48-4755-a55d-a5df89b38ea8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_13eafdcc-0073-4484-9d2e-03d3431388c3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_8ffc9655-ee48-4755-a55d-a5df89b38ea8" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_13eafdcc-0073-4484-9d2e-03d3431388c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_13eafdcc-0073-4484-9d2e-03d3431388c3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_13eafdcc-0073-4484-9d2e-03d3431388c3" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_13eafdcc-0073-4484-9d2e-03d3431388c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_cce4e2ef-001e-4eac-b195-4c93f52c550d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_13eafdcc-0073-4484-9d2e-03d3431388c3" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_cce4e2ef-001e-4eac-b195-4c93f52c550d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_e78f4efb-145f-48cc-8ce5-28c9481384f4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_cce4e2ef-001e-4eac-b195-4c93f52c550d" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_e78f4efb-145f-48cc-8ce5-28c9481384f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_83e3981b-669e-41fd-9a43-9d05c7b0fa76" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_cce4e2ef-001e-4eac-b195-4c93f52c550d" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_83e3981b-669e-41fd-9a43-9d05c7b0fa76" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="extended" id="id00fc2627a0440efba271a3d5777863a_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_d2266b8d-d601-491e-8e4a-45fd60940abc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_a8d87394-f2d8-4e98-8c3b-e7d64a8bc5da" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_d2266b8d-d601-491e-8e4a-45fd60940abc" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_a8d87394-f2d8-4e98-8c3b-e7d64a8bc5da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_21f8dff8-017e-45f7-987c-3fb18ab4448c" xlink:href="hsy-20200628.xsd#hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_d2266b8d-d601-491e-8e4a-45fd60940abc" xlink:to="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_21f8dff8-017e-45f7-987c-3fb18ab4448c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_8f426c4f-a8c0-4178-9fff-bd13eb59d53c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_d2266b8d-d601-491e-8e4a-45fd60940abc" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_8f426c4f-a8c0-4178-9fff-bd13eb59d53c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dcd322d4-dd9c-43d5-ad16-02e2f6f52017" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_d2266b8d-d601-491e-8e4a-45fd60940abc" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dcd322d4-dd9c-43d5-ad16-02e2f6f52017" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_a4601ea2-e511-4679-82a4-5baf61d9667b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dcd322d4-dd9c-43d5-ad16-02e2f6f52017" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_a4601ea2-e511-4679-82a4-5baf61d9667b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_a4601ea2-e511-4679-82a4-5baf61d9667b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_a4601ea2-e511-4679-82a4-5baf61d9667b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_a4601ea2-e511-4679-82a4-5baf61d9667b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_63e44d55-c8f2-4b72-b9f5-5fd2679810f1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_a4601ea2-e511-4679-82a4-5baf61d9667b" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_63e44d55-c8f2-4b72-b9f5-5fd2679810f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_a1405961-263c-4a56-b5bf-ed70177b132e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_63e44d55-c8f2-4b72-b9f5-5fd2679810f1" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_a1405961-263c-4a56-b5bf-ed70177b132e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_f295d1e9-7954-4218-86d7-bee145c9134b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_63e44d55-c8f2-4b72-b9f5-5fd2679810f1" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_f295d1e9-7954-4218-86d7-bee145c9134b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_dcd322d4-dd9c-43d5-ad16-02e2f6f52017" xlink:to="loc_us-gaap_RetirementPlanNameAxis_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8" xlink:to="loc_us-gaap_RetirementPlanNameDomain_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_26e9d7e0-b085-430d-bc5d-1d06988eb23f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_86753ec7-0b51-49f1-81b9-8c0e91e8c6e8" xlink:to="loc_us-gaap_RetirementPlanNameDomain_26e9d7e0-b085-430d-bc5d-1d06988eb23f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="extended" id="i1ffc9fd85dac4ae2ba8704a0db46cba6_STOCKCOMPENSATIONPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="extended" id="i370d6dc082d343c98509e212c9098df8_STOCKCOMPENSATIONPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="extended" id="i61fa55727bcd4b828f412e92b4c7350d_STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="extended" id="ic24eedc4d9c04fc0a0a2390f36c46a5c_STOCKCOMPENSATIONPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0d79febe-aa9b-466a-b7b9-d320c4584702" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_0d79febe-aa9b-466a-b7b9-d320c4584702" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_11765f1f-d21e-4dbe-a85f-ed574ed37efa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_11765f1f-d21e-4dbe-a85f-ed574ed37efa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_19864e4a-1fa5-4118-bde1-ed45ceb15f05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_19864e4a-1fa5-4118-bde1-ed45ceb15f05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_4bd3f638-4245-461f-99be-c3331327d4fd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_4bd3f638-4245-461f-99be-c3331327d4fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_c8dba8af-56b0-40c2-a28c-09a49d6666ff" xlink:href="hsy-20200628.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_c8dba8af-56b0-40c2-a28c-09a49d6666ff" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_8e6afef7-6726-4950-b917-cc3642c2d7c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_8e6afef7-6726-4950-b917-cc3642c2d7c1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_b4fb2427-03c0-476a-ac00-d0c508170e8e" xlink:href="hsy-20200628.xsd#hsy_DeferredCompensationArrangementwithIndividualConversionBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_b4fb2427-03c0-476a-ac00-d0c508170e8e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_57964616-a46a-448c-a26f-31db1915d79b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_9d5f1621-9fdb-4af5-9f3a-f0b4d30afd17" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_57964616-a46a-448c-a26f-31db1915d79b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_94a62a99-212c-4063-871e-0a45647b6740" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_57964616-a46a-448c-a26f-31db1915d79b" xlink:to="loc_us-gaap_AwardTypeAxis_94a62a99-212c-4063-871e-0a45647b6740" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_94a62a99-212c-4063-871e-0a45647b6740_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_94a62a99-212c-4063-871e-0a45647b6740" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_94a62a99-212c-4063-871e-0a45647b6740_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9cadb0d4-42eb-4ed1-98fd-58bc5a06d6e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_94a62a99-212c-4063-871e-0a45647b6740" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9cadb0d4-42eb-4ed1-98fd-58bc5a06d6e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_a2f59bd4-fc75-4143-90d7-2312fb1c8e8a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9cadb0d4-42eb-4ed1-98fd-58bc5a06d6e7" xlink:to="loc_us-gaap_EmployeeStockOptionMember_a2f59bd4-fc75-4143-90d7-2312fb1c8e8a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_666cf8db-a7be-4274-a634-14cb30aeb71f" xlink:href="hsy-20200628.xsd#hsy_PerformanceStockUnitsandRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_9cadb0d4-42eb-4ed1-98fd-58bc5a06d6e7" xlink:to="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_666cf8db-a7be-4274-a634-14cb30aeb71f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="extended" id="if4f066ebe6ed4771922101071218bd1c_STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="i8f37b74255d34e588c146bb46d2529b2_STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="extended" id="ic0023379d1ba441891552e9e3ebe3fea_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e70e6c48-62cb-477d-8c07-50beb2ae568d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e70e6c48-62cb-477d-8c07-50beb2ae568d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_965b26f5-9104-4535-85f3-771f1184d22c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_965b26f5-9104-4535-85f3-771f1184d22c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_af0ed320-ba1e-4b75-8dbe-e8e01c2b4abb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_af0ed320-ba1e-4b75-8dbe-e8e01c2b4abb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_fc38751a-07d0-4fc0-86bc-2cc7625dd89d" xlink:href="hsy-20200628.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_fc38751a-07d0-4fc0-86bc-2cc7625dd89d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_5da40de8-8cc5-44e7-b5c9-0505b05929f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_5da40de8-8cc5-44e7-b5c9-0505b05929f8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_5ba1dfab-2472-4d9d-88f1-cfdf789779cb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_37d902c2-0d75-4f13-926a-0f58ccf484cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_5ba1dfab-2472-4d9d-88f1-cfdf789779cb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_302a8c03-d8f3-4f1e-9aab-179d8aff9c75" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e70e6c48-62cb-477d-8c07-50beb2ae568d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_9f6a30ff-ba8f-4536-952a-7160bd7ece09" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_9f6a30ff-ba8f-4536-952a-7160bd7ece09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_deab5adb-7f68-400e-bfdf-d6f8766f09cc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_deab5adb-7f68-400e-bfdf-d6f8766f09cc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_ab06927c-1407-41e7-8721-e31d1cf812c1" xlink:href="hsy-20200628.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_ab06927c-1407-41e7-8721-e31d1cf812c1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_c61edb6c-cd48-46e5-b29b-0debe67a4bba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_c61edb6c-cd48-46e5-b29b-0debe67a4bba" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_2be8feca-fb65-4306-91ec-9e694afc6591" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_322d7ce0-c7d4-451a-9528-41139d674fa7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_2be8feca-fb65-4306-91ec-9e694afc6591" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_6e7bef72-e1b5-4b30-9af8-b60e9271f941" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f3e443f8-f30a-4809-bf43-f7f2509744ce" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_e70e6c48-62cb-477d-8c07-50beb2ae568d" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f3e443f8-f30a-4809-bf43-f7f2509744ce" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_5c26b55d-3e92-4cf0-90af-d767e89b8aa8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_f3e443f8-f30a-4809-bf43-f7f2509744ce" xlink:to="loc_us-gaap_AwardTypeAxis_5c26b55d-3e92-4cf0-90af-d767e89b8aa8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5c26b55d-3e92-4cf0-90af-d767e89b8aa8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5c26b55d-3e92-4cf0-90af-d767e89b8aa8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5c26b55d-3e92-4cf0-90af-d767e89b8aa8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38208e27-3074-4b0f-9ff3-703c1ff3607e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5c26b55d-3e92-4cf0-90af-d767e89b8aa8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38208e27-3074-4b0f-9ff3-703c1ff3607e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_60774305-357a-4b2b-9f36-ba63fbd48f5c" xlink:href="hsy-20200628.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_38208e27-3074-4b0f-9ff3-703c1ff3607e" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_60774305-357a-4b2b-9f36-ba63fbd48f5c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="ib5c00a29895c4c38a222f1a7a49ec258_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8b4bc92b-ffea-449d-977d-7d739ad1f892" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_8b4bc92b-ffea-449d-977d-7d739ad1f892" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_5a47b67e-24c7-47a9-a526-a7cc14e92a6e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_5a47b67e-24c7-47a9-a526-a7cc14e92a6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_941834f2-5671-4ae6-b8bd-e775a5468f01" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_SharePrice_941834f2-5671-4ae6-b8bd-e775a5468f01" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_da4f90a5-b676-48d5-83b1-f8cd333a4b84" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_da4f90a5-b676-48d5-83b1-f8cd333a4b84" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_2eec8b58-99fb-47f6-96d1-c7cd000fd3ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_2eec8b58-99fb-47f6-96d1-c7cd000fd3ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2f0827ff-f80a-4537-819a-d253a14cefe5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_53a6f8a3-c5d9-4f7e-b23f-1483bb135170" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2f0827ff-f80a-4537-819a-d253a14cefe5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_2f0827ff-f80a-4537-819a-d253a14cefe5" xlink:to="loc_us-gaap_AwardTypeAxis_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cfd0616d-8981-499d-b1ec-f6a6a6c7edde" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_b3c62f3e-dd1e-4b1f-b8b2-8fd4bcf0b85e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cfd0616d-8981-499d-b1ec-f6a6a6c7edde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_88ed47a5-cc63-43e1-8bf0-ac20d6010046" xlink:href="hsy-20200628.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cfd0616d-8981-499d-b1ec-f6a6a6c7edde" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_88ed47a5-cc63-43e1-8bf0-ac20d6010046" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="extended" id="i81a51586a65b4ef4bc1586466d791bf4_SEGMENTINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="extended" id="i68fc72ea23df444eba473c47cd45137c_SEGMENTINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="extended" id="id2036c1ef1834361a44155ce7a4625d6_SEGMENTINFORMATIONNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_ff1f7e33-59d7-499b-9b79-7cd1faca8247" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_bf722de4-721f-4ace-a744-e0700fd444e0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_ff1f7e33-59d7-499b-9b79-7cd1faca8247" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_bf722de4-721f-4ace-a744-e0700fd444e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_0cdd6044-0ed5-41b8-9153-9844231d692a" xlink:href="hsy-20200628.xsd#hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_ff1f7e33-59d7-499b-9b79-7cd1faca8247" xlink:to="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_0cdd6044-0ed5-41b8-9153-9844231d692a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_0079044a-f459-4c3a-b0b1-cda7f7dfc0d3" xlink:href="hsy-20200628.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_ff1f7e33-59d7-499b-9b79-7cd1faca8247" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_0079044a-f459-4c3a-b0b1-cda7f7dfc0d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_ff1f7e33-59d7-499b-9b79-7cd1faca8247" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_3163df16-63e1-4296-a66e-d299a28bed39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_3163df16-63e1-4296-a66e-d299a28bed39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_3163df16-63e1-4296-a66e-d299a28bed39_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3163df16-63e1-4296-a66e-d299a28bed39" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_3163df16-63e1-4296-a66e-d299a28bed39_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_f4bb53a6-ccd8-4e1a-9b13-3916305bd57f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_3163df16-63e1-4296-a66e-d299a28bed39" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_f4bb53a6-ccd8-4e1a-9b13-3916305bd57f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_24f1b28f-a63b-4180-9757-310114ee180c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_f4bb53a6-ccd8-4e1a-9b13-3916305bd57f" xlink:to="loc_us-gaap_CostOfSalesMember_24f1b28f-a63b-4180-9757-310114ee180c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_19afebe8-0cc3-4123-803b-f75943a57186" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_srt_StatementScenarioAxis_19afebe8-0cc3-4123-803b-f75943a57186" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_19afebe8-0cc3-4123-803b-f75943a57186_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_19afebe8-0cc3-4123-803b-f75943a57186" xlink:to="loc_srt_ScenarioUnspecifiedDomain_19afebe8-0cc3-4123-803b-f75943a57186_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_b7b85e01-a218-45b5-ac01-7114fb4b79fa" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_19afebe8-0cc3-4123-803b-f75943a57186" xlink:to="loc_srt_ScenarioUnspecifiedDomain_b7b85e01-a218-45b5-ac01-7114fb4b79fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_1bb3c539-af25-4bcd-97e0-f52d6ef1fe49" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_b7b85e01-a218-45b5-ac01-7114fb4b79fa" xlink:to="loc_srt_ScenarioForecastMember_1bb3c539-af25-4bcd-97e0-f52d6ef1fe49" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_2566b4dc-0b20-4168-a631-7093db185f29" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_srt_ConsolidationItemsAxis_2566b4dc-0b20-4168-a631-7093db185f29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_2566b4dc-0b20-4168-a631-7093db185f29_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_2566b4dc-0b20-4168-a631-7093db185f29" xlink:to="loc_srt_ConsolidationItemsDomain_2566b4dc-0b20-4168-a631-7093db185f29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_bd3331a9-2046-425a-aeed-75edfbca18f7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_2566b4dc-0b20-4168-a631-7093db185f29" xlink:to="loc_srt_ConsolidationItemsDomain_bd3331a9-2046-425a-aeed-75edfbca18f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_63d3ea75-17b1-4694-9cdb-cb97330cb277" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_bd3331a9-2046-425a-aeed-75edfbca18f7" xlink:to="loc_us-gaap_OperatingSegmentsMember_63d3ea75-17b1-4694-9cdb-cb97330cb277" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_36173c36-c1c0-4e39-8c40-ecb3b4b37d99" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_36173c36-c1c0-4e39-8c40-ecb3b4b37d99" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_36173c36-c1c0-4e39-8c40-ecb3b4b37d99_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_36173c36-c1c0-4e39-8c40-ecb3b4b37d99" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_36173c36-c1c0-4e39-8c40-ecb3b4b37d99_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_24ca84b3-1a74-483a-9b07-d9894673d73b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_36173c36-c1c0-4e39-8c40-ecb3b4b37d99" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_24ca84b3-1a74-483a-9b07-d9894673d73b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_6b5029df-8f99-4b70-a4a7-15932a23842b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_24ca84b3-1a74-483a-9b07-d9894673d73b" xlink:to="loc_us-gaap_CommodityContractMember_6b5029df-8f99-4b70-a4a7-15932a23842b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_10c3598b-5688-40ac-b5eb-3a4c73a33640" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_10c3598b-5688-40ac-b5eb-3a4c73a33640" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_10c3598b-5688-40ac-b5eb-3a4c73a33640_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_10c3598b-5688-40ac-b5eb-3a4c73a33640" xlink:to="loc_us-gaap_SegmentDomain_10c3598b-5688-40ac-b5eb-3a4c73a33640_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f4b5ed00-e7bf-4af8-a13d-5473ddf3a12a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_10c3598b-5688-40ac-b5eb-3a4c73a33640" xlink:to="loc_us-gaap_SegmentDomain_f4b5ed00-e7bf-4af8-a13d-5473ddf3a12a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_1aaf9c47-efbb-4437-893b-daedae1f0b87" xlink:href="hsy-20200628.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f4b5ed00-e7bf-4af8-a13d-5473ddf3a12a" xlink:to="loc_hsy_NorthAmericaSegmentMember_1aaf9c47-efbb-4437-893b-daedae1f0b87" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_02c061b7-fc30-4497-aa64-18e30a9bff02" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_02c061b7-fc30-4497-aa64-18e30a9bff02" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_02c061b7-fc30-4497-aa64-18e30a9bff02_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_02c061b7-fc30-4497-aa64-18e30a9bff02" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_02c061b7-fc30-4497-aa64-18e30a9bff02_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_7abf335f-cd8b-48d0-9943-47dce70d6b21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_02c061b7-fc30-4497-aa64-18e30a9bff02" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_7abf335f-cd8b-48d0-9943-47dce70d6b21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_b13a49d2-b9e8-4b90-8cff-c7ee3050b5f0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_7abf335f-cd8b-48d0-9943-47dce70d6b21" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_b13a49d2-b9e8-4b90-8cff-c7ee3050b5f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_c906d2be-5924-4203-9617-90d9bbc3c05d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c56ca4c3-6c14-4a9f-9f5e-ed6d3440d95c" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_c906d2be-5924-4203-9617-90d9bbc3c05d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_c906d2be-5924-4203-9617-90d9bbc3c05d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_c906d2be-5924-4203-9617-90d9bbc3c05d" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_c906d2be-5924-4203-9617-90d9bbc3c05d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2b86a4fb-6c87-4d28-99ad-7e12abee2d04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_c906d2be-5924-4203-9617-90d9bbc3c05d" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2b86a4fb-6c87-4d28-99ad-7e12abee2d04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_361efb0c-8d2e-44c4-9e10-964d36756bd7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_2b86a4fb-6c87-4d28-99ad-7e12abee2d04" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_361efb0c-8d2e-44c4-9e10-964d36756bd7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="extended" id="icf3424e9bd59499ea5262b116a9f5cb1_SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8bd6f6c4-c35e-42ee-8025-715b7a970192" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_8bd6f6c4-c35e-42ee-8025-715b7a970192" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_534ef8a9-eb6a-4a90-a39f-0c0d0acf28f0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_OperatingIncomeLoss_534ef8a9-eb6a-4a90-a39f-0c0d0acf28f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_8927bc34-b9e2-4e53-b4a9-8e6ff8016da8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_8927bc34-b9e2-4e53-b4a9-8e6ff8016da8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_f53af095-e23b-4de5-90d9-2bb0e34d4f40" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_f53af095-e23b-4de5-90d9-2bb0e34d4f40" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_46895dcb-08da-483f-9117-eeb5f32c7d9d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_AssetImpairmentCharges_46895dcb-08da-483f-9117-eeb5f32c7d9d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_415217c9-99b2-42b4-8cfc-332250e88059" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_RestructuringCharges_415217c9-99b2-42b4-8cfc-332250e88059" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_52810a90-40ce-45f4-9172-7c8ddf9f3124" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_52810a90-40ce-45f4-9172-7c8ddf9f3124" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_c86b9361-119f-42f9-a513-0daa9c5ed3dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_c86b9361-119f-42f9-a513-0daa9c5ed3dd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7033862b-c000-4e11-87d3-6cbd0088dc4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_7033862b-c000-4e11-87d3-6cbd0088dc4b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_25d4321c-4bf0-42c5-8e73-94b45cad5325" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_c1dc9fc2-1d5c-4e7b-8551-d0f6bb1aa843" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_25d4321c-4bf0-42c5-8e73-94b45cad5325" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_8e9f33f9-bd01-49a3-86bd-547e26c18eb4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_25d4321c-4bf0-42c5-8e73-94b45cad5325" xlink:to="loc_srt_ConsolidationItemsAxis_8e9f33f9-bd01-49a3-86bd-547e26c18eb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8e9f33f9-bd01-49a3-86bd-547e26c18eb4_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_8e9f33f9-bd01-49a3-86bd-547e26c18eb4" xlink:to="loc_srt_ConsolidationItemsDomain_8e9f33f9-bd01-49a3-86bd-547e26c18eb4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b14c0053-5f2b-4c87-818f-51c1f2a5e832" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_8e9f33f9-bd01-49a3-86bd-547e26c18eb4" xlink:to="loc_srt_ConsolidationItemsDomain_b14c0053-5f2b-4c87-818f-51c1f2a5e832" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_40c0af7a-4ab6-4b63-b28e-7433afc06c2a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b14c0053-5f2b-4c87-818f-51c1f2a5e832" xlink:to="loc_us-gaap_OperatingSegmentsMember_40c0af7a-4ab6-4b63-b28e-7433afc06c2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_f1b5cf52-997f-47b2-8e4d-b313c20edd61" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b14c0053-5f2b-4c87-818f-51c1f2a5e832" xlink:to="loc_us-gaap_CorporateNonSegmentMember_f1b5cf52-997f-47b2-8e4d-b313c20edd61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_27343753-5ac1-4834-81a5-910ca722bc04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b14c0053-5f2b-4c87-818f-51c1f2a5e832" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_27343753-5ac1-4834-81a5-910ca722bc04" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_7c806db3-6a5a-4420-8f93-b41478c331bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_25d4321c-4bf0-42c5-8e73-94b45cad5325" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_7c806db3-6a5a-4420-8f93-b41478c331bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7c806db3-6a5a-4420-8f93-b41478c331bd_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7c806db3-6a5a-4420-8f93-b41478c331bd" xlink:to="loc_us-gaap_SegmentDomain_7c806db3-6a5a-4420-8f93-b41478c331bd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_26c5c446-39bd-4c36-a0a1-898d956a7942" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_7c806db3-6a5a-4420-8f93-b41478c331bd" xlink:to="loc_us-gaap_SegmentDomain_26c5c446-39bd-4c36-a0a1-898d956a7942" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_b87d9cf4-6002-40f1-9ee5-73e82a92dac1" xlink:href="hsy-20200628.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_26c5c446-39bd-4c36-a0a1-898d956a7942" xlink:to="loc_hsy_NorthAmericaSegmentMember_b87d9cf4-6002-40f1-9ee5-73e82a92dac1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_d6a8c86d-1971-4236-9fc2-8ec95a3b4598" xlink:href="hsy-20200628.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_26c5c446-39bd-4c36-a0a1-898d956a7942" xlink:to="loc_hsy_InternationalandOtherSegmentMember_d6a8c86d-1971-4236-9fc2-8ec95a3b4598" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_2a296394-ca7c-44d0-8ee1-a3f5768cec5f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_26c5c446-39bd-4c36-a0a1-898d956a7942" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_2a296394-ca7c-44d0-8ee1-a3f5768cec5f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="extended" id="ib06361ddd86746d0ad072b5853542047_SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_3d7640c4-7f88-4249-b6c1-6ed9b1634db9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_69eb4c28-7541-4f5c-b5d0-13bed4e8b254" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3d7640c4-7f88-4249-b6c1-6ed9b1634db9" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_69eb4c28-7541-4f5c-b5d0-13bed4e8b254" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_d08ae003-5551-4ffe-bd2e-c6584285cfbe" xlink:href="hsy-20200628.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3d7640c4-7f88-4249-b6c1-6ed9b1634db9" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_d08ae003-5551-4ffe-bd2e-c6584285cfbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_414c29b8-ab3c-4a95-bf7e-050e4ca49f41" xlink:href="hsy-20200628.xsd#hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3d7640c4-7f88-4249-b6c1-6ed9b1634db9" xlink:to="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_414c29b8-ab3c-4a95-bf7e-050e4ca49f41" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_3d7640c4-7f88-4249-b6c1-6ed9b1634db9" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_us-gaap_HedgingDesignationAxis_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b" xlink:to="loc_us-gaap_HedgingDesignationDomain_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ee46458f-43c4-4c2a-b86d-a2e118527562" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_ea5f96a2-e63a-4292-8563-2ff2bfbeb67b" xlink:to="loc_us-gaap_HedgingDesignationDomain_ee46458f-43c4-4c2a-b86d-a2e118527562" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_3792d5f8-a635-4a6b-9b74-55080be6be49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ee46458f-43c4-4c2a-b86d-a2e118527562" xlink:to="loc_us-gaap_NondesignatedMember_3792d5f8-a635-4a6b-9b74-55080be6be49" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_5d688b62-ad6c-4294-986b-3e5074007684" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_ffb6a208-7ccc-40ef-a6a1-d7edecb069d6" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_5d688b62-ad6c-4294-986b-3e5074007684" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_83ebe5cf-7a30-4621-aa7b-9c5ccd2fcbe9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_5d688b62-ad6c-4294-986b-3e5074007684" xlink:to="loc_us-gaap_CommodityContractMember_83ebe5cf-7a30-4621-aa7b-9c5ccd2fcbe9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_fb8da98f-2233-440a-9fdd-26c50359c319" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_srt_ConsolidationItemsAxis_fb8da98f-2233-440a-9fdd-26c50359c319" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_fb8da98f-2233-440a-9fdd-26c50359c319_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_fb8da98f-2233-440a-9fdd-26c50359c319" xlink:to="loc_srt_ConsolidationItemsDomain_fb8da98f-2233-440a-9fdd-26c50359c319_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ec7b97c4-a71f-4de3-9dc4-0a8349dcdbd7" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_fb8da98f-2233-440a-9fdd-26c50359c319" xlink:to="loc_srt_ConsolidationItemsDomain_ec7b97c4-a71f-4de3-9dc4-0a8349dcdbd7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_a38031ae-c2d3-4e2d-96a5-c3c910b3b439" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_ec7b97c4-a71f-4de3-9dc4-0a8349dcdbd7" xlink:to="loc_us-gaap_OperatingSegmentsMember_a38031ae-c2d3-4e2d-96a5-c3c910b3b439" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_e187e6f8-8a6a-4901-a96f-11c88d85f67c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_e187e6f8-8a6a-4901-a96f-11c88d85f67c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e187e6f8-8a6a-4901-a96f-11c88d85f67c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e187e6f8-8a6a-4901-a96f-11c88d85f67c" xlink:to="loc_us-gaap_SegmentDomain_e187e6f8-8a6a-4901-a96f-11c88d85f67c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9930e6b9-6f1f-4eb4-a836-d65486e4fbb2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e187e6f8-8a6a-4901-a96f-11c88d85f67c" xlink:to="loc_us-gaap_SegmentDomain_9930e6b9-6f1f-4eb4-a836-d65486e4fbb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_fd8543cc-7655-4b1b-b7fc-2e1edda45efa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9930e6b9-6f1f-4eb4-a836-d65486e4fbb2" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_fd8543cc-7655-4b1b-b7fc-2e1edda45efa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsAxis_bd66e3d6-52ca-451e-9a6e-9718f60dee72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_us-gaap_SubsegmentsAxis_bd66e3d6-52ca-451e-9a6e-9718f60dee72" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_bd66e3d6-52ca-451e-9a6e-9718f60dee72_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_bd66e3d6-52ca-451e-9a6e-9718f60dee72" xlink:to="loc_us-gaap_SubsegmentsDomain_bd66e3d6-52ca-451e-9a6e-9718f60dee72_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_c737b409-6b22-417b-8fa7-205bc167ed84" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_bd66e3d6-52ca-451e-9a6e-9718f60dee72" xlink:to="loc_us-gaap_SubsegmentsDomain_c737b409-6b22-417b-8fa7-205bc167ed84" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9a43a9d8-a0ef-461c-b5c1-3022c78d7229" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_d9877529-9dae-4e67-8ad5-574e43a885b7" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9a43a9d8-a0ef-461c-b5c1-3022c78d7229" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_9a43a9d8-a0ef-461c-b5c1-3022c78d7229_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9a43a9d8-a0ef-461c-b5c1-3022c78d7229" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_9a43a9d8-a0ef-461c-b5c1-3022c78d7229_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_6aee0e5c-fbbf-4e22-b78f-544ffc3e73f6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9a43a9d8-a0ef-461c-b5c1-3022c78d7229" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_6aee0e5c-fbbf-4e22-b78f-544ffc3e73f6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="extended" id="id5daa276428145ae9a901f5a3bc3b471_SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_eb19644b-fc85-4ea9-9340-d6a6511686e8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_4969cbfd-d84c-4c53-bb6c-777fd3da4ef9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_eb19644b-fc85-4ea9-9340-d6a6511686e8" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_4969cbfd-d84c-4c53-bb6c-777fd3da4ef9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_04d2798e-b3c2-4f1e-8176-19e659762910" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_eb19644b-fc85-4ea9-9340-d6a6511686e8" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_04d2798e-b3c2-4f1e-8176-19e659762910" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_af63b034-69b4-476e-a833-d6ec56ca9fa5" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_04d2798e-b3c2-4f1e-8176-19e659762910" xlink:to="loc_srt_ConsolidationItemsAxis_af63b034-69b4-476e-a833-d6ec56ca9fa5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_af63b034-69b4-476e-a833-d6ec56ca9fa5_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_af63b034-69b4-476e-a833-d6ec56ca9fa5" xlink:to="loc_srt_ConsolidationItemsDomain_af63b034-69b4-476e-a833-d6ec56ca9fa5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_045fe079-4b95-4435-9051-6202184bc483" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_af63b034-69b4-476e-a833-d6ec56ca9fa5" xlink:to="loc_srt_ConsolidationItemsDomain_045fe079-4b95-4435-9051-6202184bc483" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_86bd6333-d0c7-4dcf-a5e0-9a8f4c1b200a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_045fe079-4b95-4435-9051-6202184bc483" xlink:to="loc_us-gaap_OperatingSegmentsMember_86bd6333-d0c7-4dcf-a5e0-9a8f4c1b200a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_0883baa0-c5e3-41f6-8802-51383c192eba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_045fe079-4b95-4435-9051-6202184bc483" xlink:to="loc_us-gaap_CorporateNonSegmentMember_0883baa0-c5e3-41f6-8802-51383c192eba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_04d2798e-b3c2-4f1e-8176-19e659762910" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6" xlink:to="loc_us-gaap_SegmentDomain_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_94d424e6-727e-4d9d-b00b-820112f94e05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_cfd7ce0d-c30f-428c-8f8a-23a1dc3629d6" xlink:to="loc_us-gaap_SegmentDomain_94d424e6-727e-4d9d-b00b-820112f94e05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_2c196250-fa3f-4f90-a0fc-0bb260be9d71" xlink:href="hsy-20200628.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_94d424e6-727e-4d9d-b00b-820112f94e05" xlink:to="loc_hsy_NorthAmericaSegmentMember_2c196250-fa3f-4f90-a0fc-0bb260be9d71" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_ad7d8b30-ebd2-48fd-ae0b-c0ef40e3c4d1" xlink:href="hsy-20200628.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_94d424e6-727e-4d9d-b00b-820112f94e05" xlink:to="loc_hsy_InternationalandOtherSegmentMember_ad7d8b30-ebd2-48fd-ae0b-c0ef40e3c4d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_3baa228e-2f68-49d9-af3f-0f4e2499e572" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_94d424e6-727e-4d9d-b00b-820112f94e05" xlink:to="loc_us-gaap_CorporateMember_3baa228e-2f68-49d9-af3f-0f4e2499e572" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="extended" id="if068e7d1399145d687538d906d51e95e_SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_632fa8ee-bffa-47d7-9c57-18e3b0510a56" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_19d889c2-0641-45ff-aaeb-fb8f96b17b9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_632fa8ee-bffa-47d7-9c57-18e3b0510a56" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_19d889c2-0641-45ff-aaeb-fb8f96b17b9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_765f6d95-6708-4f2b-aac1-46599b989d93" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_632fa8ee-bffa-47d7-9c57-18e3b0510a56" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_765f6d95-6708-4f2b-aac1-46599b989d93" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_b83ee250-9268-4549-bc22-b07b5ddac0e4" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_765f6d95-6708-4f2b-aac1-46599b989d93" xlink:to="loc_srt_StatementGeographicalAxis_b83ee250-9268-4549-bc22-b07b5ddac0e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_b83ee250-9268-4549-bc22-b07b5ddac0e4_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_b83ee250-9268-4549-bc22-b07b5ddac0e4" xlink:to="loc_srt_SegmentGeographicalDomain_b83ee250-9268-4549-bc22-b07b5ddac0e4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_ff259515-4ede-4102-8127-7b4c543efd47" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_b83ee250-9268-4549-bc22-b07b5ddac0e4" xlink:to="loc_srt_SegmentGeographicalDomain_ff259515-4ede-4102-8127-7b4c543efd47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_3acbb9f1-c835-483a-8ff8-17c61ce76783" xlink:href="https://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ff259515-4ede-4102-8127-7b4c543efd47" xlink:to="loc_country_US_3acbb9f1-c835-483a-8ff8-17c61ce76783" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_b40e2e4f-9178-47e6-a1a2-3f2102090f6f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_ff259515-4ede-4102-8127-7b4c543efd47" xlink:to="loc_us-gaap_NonUsMember_b40e2e4f-9178-47e6-a1a2-3f2102090f6f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="extended" id="i98084c7edac341a5b5305a49267528b4_SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_0d9e656e-787b-4ca1-ac82-a23eee1ba0e0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_cb852c90-f3c2-4f4f-a38f-0f557b427368" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_0d9e656e-787b-4ca1-ac82-a23eee1ba0e0" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_cb852c90-f3c2-4f4f-a38f-0f557b427368" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c9ef9fa1-b5d5-4cbc-853c-0fd137410bc3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_0d9e656e-787b-4ca1-ac82-a23eee1ba0e0" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c9ef9fa1-b5d5-4cbc-853c-0fd137410bc3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_55317ace-ae3e-4466-9cb9-a9e6cabb1f40" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c9ef9fa1-b5d5-4cbc-853c-0fd137410bc3" xlink:to="loc_srt_ProductOrServiceAxis_55317ace-ae3e-4466-9cb9-a9e6cabb1f40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_55317ace-ae3e-4466-9cb9-a9e6cabb1f40_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_55317ace-ae3e-4466-9cb9-a9e6cabb1f40" xlink:to="loc_srt_ProductsAndServicesDomain_55317ace-ae3e-4466-9cb9-a9e6cabb1f40_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_2b41a853-5756-4583-b8ed-903cf7a65750" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_55317ace-ae3e-4466-9cb9-a9e6cabb1f40" xlink:to="loc_srt_ProductsAndServicesDomain_2b41a853-5756-4583-b8ed-903cf7a65750" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_2695fecf-59de-4f08-bacb-107265dd6b68" xlink:href="hsy-20200628.xsd#hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2b41a853-5756-4583-b8ed-903cf7a65750" xlink:to="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_2695fecf-59de-4f08-bacb-107265dd6b68" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_SnacksPortfolioDomain_10d8a3e7-0cb4-4e2f-a6c1-15ca68b3fc72" xlink:href="hsy-20200628.xsd#hsy_SnacksPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_2b41a853-5756-4583-b8ed-903cf7a65750" xlink:to="loc_hsy_SnacksPortfolioDomain_10d8a3e7-0cb4-4e2f-a6c1-15ca68b3fc72" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="extended" id="i642973a79dff400aadaf27c2d0d86888_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="extended" id="if7916cef23cb44898e8168e61963cb83_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="extended" id="i70fe88c671204313b56d57d6de140361_TREASURYSTOCKACTIVITYNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e3c08701-fc4a-42b7-9adb-2185c367018d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_7c696018-fc89-4914-a251-c94436ca9136" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e3c08701-fc4a-42b7-9adb-2185c367018d" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_7c696018-fc89-4914-a251-c94436ca9136" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_5fbd1110-c394-482e-91f2-fdf7ad506bf6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e3c08701-fc4a-42b7-9adb-2185c367018d" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_5fbd1110-c394-482e-91f2-fdf7ad506bf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_ef9d20a4-1a67-4526-acaf-23556bc39f48" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e3c08701-fc4a-42b7-9adb-2185c367018d" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_ef9d20a4-1a67-4526-acaf-23556bc39f48" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0bc93a8b-cc44-4551-bd29-306b5f9c39ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_ef9d20a4-1a67-4526-acaf-23556bc39f48" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0bc93a8b-cc44-4551-bd29-306b5f9c39ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0bc93a8b-cc44-4551-bd29-306b5f9c39ff_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0bc93a8b-cc44-4551-bd29-306b5f9c39ff" xlink:to="loc_us-gaap_ClassOfStockDomain_0bc93a8b-cc44-4551-bd29-306b5f9c39ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_22b0aa27-ca47-4ece-ba9b-28327d460523" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0bc93a8b-cc44-4551-bd29-306b5f9c39ff" xlink:to="loc_us-gaap_ClassOfStockDomain_22b0aa27-ca47-4ece-ba9b-28327d460523" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_8476439a-0d8c-49db-a033-a376fb6c492c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_ef9d20a4-1a67-4526-acaf-23556bc39f48" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_8476439a-0d8c-49db-a033-a376fb6c492c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_8476439a-0d8c-49db-a033-a376fb6c492c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_8476439a-0d8c-49db-a033-a376fb6c492c" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_8476439a-0d8c-49db-a033-a376fb6c492c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_72877be5-c01b-4ae4-8259-67ceab592315" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_8476439a-0d8c-49db-a033-a376fb6c492c" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_72877be5-c01b-4ae4-8259-67ceab592315" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_A2018ShareRepurchaseProgramMember_57e23688-7ab4-4325-958b-a89e17114a02" xlink:href="hsy-20200628.xsd#hsy_A2018ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_72877be5-c01b-4ae4-8259-67ceab592315" xlink:to="loc_hsy_A2018ShareRepurchaseProgramMember_57e23688-7ab4-4325-958b-a89e17114a02" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="extended" id="ia1d60771f1c64dac9430c871d27c0ebb_TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_26c1889f-2ff9-48be-8187-fbf059748b48" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_26c1889f-2ff9-48be-8187-fbf059748b48" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_6814b497-88b3-41f3-b430-9f22f8b576a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_6814b497-88b3-41f3-b430-9f22f8b576a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinShares_67ac4218-1f64-421d-90d2-1692118ff210" xlink:href="hsy-20200628.xsd#hsy_TreasuryStockChangeinShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_hsy_TreasuryStockChangeinShares_67ac4218-1f64-421d-90d2-1692118ff210" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_8c79f148-b342-4462-a887-0353f75cc669" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_8c79f148-b342-4462-a887-0353f75cc669" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_37e9023c-4258-4d6e-a18b-fb6fad9de56c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_37e9023c-4258-4d6e-a18b-fb6fad9de56c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinValue_35a2e537-de07-4121-88d2-19bd4f86cd8c" xlink:href="hsy-20200628.xsd#hsy_TreasuryStockChangeinValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_hsy_TreasuryStockChangeinValue_35a2e537-de07-4121-88d2-19bd4f86cd8c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_f80c2ffd-bae7-4c18-ad7d-407f7dfd6649" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_edbae141-2acd-4eec-a9ac-0df8bc2ba3a1" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_f80c2ffd-bae7-4c18-ad7d-407f7dfd6649" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_12b2ce64-20c3-4f02-a4ef-b8743dbdb263" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_f80c2ffd-bae7-4c18-ad7d-407f7dfd6649" xlink:to="loc_us-gaap_AwardTypeAxis_12b2ce64-20c3-4f02-a4ef-b8743dbdb263" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_12b2ce64-20c3-4f02-a4ef-b8743dbdb263_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_12b2ce64-20c3-4f02-a4ef-b8743dbdb263" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_12b2ce64-20c3-4f02-a4ef-b8743dbdb263_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f8c4a5b9-c975-46f4-9c14-3f189da935fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_12b2ce64-20c3-4f02-a4ef-b8743dbdb263" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f8c4a5b9-c975-46f4-9c14-3f189da935fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_7535c22c-bd9b-4972-a2a2-06a96cc29be6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f8c4a5b9-c975-46f4-9c14-3f189da935fb" xlink:to="loc_us-gaap_EmployeeStockOptionMember_7535c22c-bd9b-4972-a2a2-06a96cc29be6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_324c95bb-2958-48e9-8c7a-3450a1bea445" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_f80c2ffd-bae7-4c18-ad7d-407f7dfd6649" xlink:to="loc_us-gaap_StatementClassOfStockAxis_324c95bb-2958-48e9-8c7a-3450a1bea445" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_324c95bb-2958-48e9-8c7a-3450a1bea445_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_324c95bb-2958-48e9-8c7a-3450a1bea445" xlink:to="loc_us-gaap_ClassOfStockDomain_324c95bb-2958-48e9-8c7a-3450a1bea445_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_d8ce03eb-4396-4387-bd43-529699ba932a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_324c95bb-2958-48e9-8c7a-3450a1bea445" xlink:to="loc_us-gaap_ClassOfStockDomain_d8ce03eb-4396-4387-bd43-529699ba932a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_HersheyCommonStockMember_2b7a0e62-4f5f-40d1-b278-566eee3f88da" xlink:href="hsy-20200628.xsd#hsy_HersheyCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_d8ce03eb-4396-4387-bd43-529699ba932a" xlink:to="loc_hsy_HersheyCommonStockMember_2b7a0e62-4f5f-40d1-b278-566eee3f88da" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTEREST"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="extended" id="i0c032839ff964ed0adeb8a484ed325a0_NONCONTROLLINGINTEREST"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="extended" id="i7433a93f9a314536b78ecd1afc5a7e51_NONCONTROLLINGINTERESTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="extended" id="i66d6dc11751f45ac84d2fc35ab0ad05c_NONCONTROLLINGINTERESTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_e6787913-1dae-440c-ae42-d27c61915f8e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_9bcfc68c-2de0-4ed3-8b22-810374499776" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_e6787913-1dae-440c-ae42-d27c61915f8e" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_9bcfc68c-2de0-4ed3-8b22-810374499776" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_762743ba-ab70-43e9-9b8b-52918181fe85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_e6787913-1dae-440c-ae42-d27c61915f8e" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_762743ba-ab70-43e9-9b8b-52918181fe85" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_63e13d11-63c1-47d1-a12b-7527eea0c510" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_762743ba-ab70-43e9-9b8b-52918181fe85" xlink:to="loc_srt_OwnershipAxis_63e13d11-63c1-47d1-a12b-7527eea0c510" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_63e13d11-63c1-47d1-a12b-7527eea0c510_default" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_63e13d11-63c1-47d1-a12b-7527eea0c510" xlink:to="loc_srt_OwnershipDomain_63e13d11-63c1-47d1-a12b-7527eea0c510_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_a0cb733f-ed65-459d-a62f-da6423fd8682" xlink:href="http://xbrl.fasb.org/srt/2019/elts/srt-2019-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_63e13d11-63c1-47d1-a12b-7527eea0c510" xlink:to="loc_srt_OwnershipDomain_a0cb733f-ed65-459d-a62f-da6423fd8682" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_29dd4ea8-c555-4f44-b7bb-3ab284d79fc8" xlink:href="hsy-20200628.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_a0cb733f-ed65-459d-a62f-da6423fd8682" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_29dd4ea8-c555-4f44-b7bb-3ab284d79fc8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_762743ba-ab70-43e9-9b8b-52918181fe85" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7" xlink:to="loc_us-gaap_EquityComponentDomain_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_0475f58f-c310-4ef6-8f72-c6ff08767b92" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ff6a2ac3-ed73-48cf-b1ac-90a9001d3bc7" xlink:to="loc_us-gaap_EquityComponentDomain_0475f58f-c310-4ef6-8f72-c6ff08767b92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_5e8d0c28-1bdc-46a7-a987-0dae87fc38c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0475f58f-c310-4ef6-8f72-c6ff08767b92" xlink:to="loc_us-gaap_NoncontrollingInterestMember_5e8d0c28-1bdc-46a7-a987-0dae87fc38c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_88da327f-572d-40d3-94c6-cb2fcde53823" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_762743ba-ab70-43e9-9b8b-52918181fe85" xlink:to="loc_dei_LegalEntityAxis_88da327f-572d-40d3-94c6-cb2fcde53823" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_88da327f-572d-40d3-94c6-cb2fcde53823_default" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_88da327f-572d-40d3-94c6-cb2fcde53823" xlink:to="loc_dei_EntityDomain_88da327f-572d-40d3-94c6-cb2fcde53823_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_91f4f36d-a6ca-4683-ab19-4032230f85ee" xlink:href="https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_88da327f-572d-40d3-94c6-cb2fcde53823" xlink:to="loc_dei_EntityDomain_91f4f36d-a6ca-4683-ab19-4032230f85ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_094043c2-ecf6-4a5d-9217-0cbce21106f0" xlink:href="hsy-20200628.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_91f4f36d-a6ca-4683-ab19-4032230f85ee" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_094043c2-ecf6-4a5d-9217-0cbce21106f0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="extended" id="i3c76809527f8404087f27a1a3b5c5bd7_NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestLineItems_24a6d302-2c7f-4378-9bb7-638f7d19696f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MovementInMinorityInterestRollForward_95697f64-e57f-421c-9279-af2ec0b6077d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MovementInMinorityInterestRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_24a6d302-2c7f-4378-9bb7-638f7d19696f" xlink:to="loc_us-gaap_MovementInMinorityInterestRollForward_95697f64-e57f-421c-9279-af2ec0b6077d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_0fcac6b8-9b7b-44e4-88ae-0670d4ac74dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_95697f64-e57f-421c-9279-af2ec0b6077d" xlink:to="loc_us-gaap_MinorityInterest_0fcac6b8-9b7b-44e4-88ae-0670d4ac74dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8259374b-5da6-4e64-ab1d-742c732697a0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_95697f64-e57f-421c-9279-af2ec0b6077d" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8259374b-5da6-4e64-ab1d-742c732697a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_840e2f7e-6b4f-4ab0-88af-6814a7bb85a5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_95697f64-e57f-421c-9279-af2ec0b6077d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_840e2f7e-6b4f-4ab0-88af-6814a7bb85a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_686c3fe9-cf23-438e-a544-03f1ec546c67" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestTable_16b162e8-cbfd-40a4-bff6-c54fe3c32a7f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_MinorityInterestTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_24a6d302-2c7f-4378-9bb7-638f7d19696f" xlink:to="loc_us-gaap_MinorityInterestTable_16b162e8-cbfd-40a4-bff6-c54fe3c32a7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_061bf4f6-1e0a-4fe9-8207-7ff999869cea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_16b162e8-cbfd-40a4-bff6-c54fe3c32a7f" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_061bf4f6-1e0a-4fe9-8207-7ff999869cea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_061bf4f6-1e0a-4fe9-8207-7ff999869cea_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_061bf4f6-1e0a-4fe9-8207-7ff999869cea" xlink:to="loc_us-gaap_EquityComponentDomain_061bf4f6-1e0a-4fe9-8207-7ff999869cea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e1430d96-e285-494f-a174-1e9f192c09b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_061bf4f6-1e0a-4fe9-8207-7ff999869cea" xlink:to="loc_us-gaap_EquityComponentDomain_e1430d96-e285-494f-a174-1e9f192c09b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_9f45bdaf-6014-4f09-9721-e5beb19a8048" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_e1430d96-e285-494f-a174-1e9f192c09b5" xlink:to="loc_us-gaap_NoncontrollingInterestMember_9f45bdaf-6014-4f09-9721-e5beb19a8048" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="extended" id="i720259ec6fb24e24afc1a38db5ea173f_CONTINGENCIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="extended" id="ie01bb66b7d0b4361b8f6bad094d08d1a_CONTINGENCIESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#CONTINGENCIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="extended" id="i04b55ab47932459e833bb669d5c0d3fb_CONTINGENCIESNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="extended" id="i55e2828bdd9c4083bd6ae92a07f0129b_EARNINGSPERSHARE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARETables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="extended" id="iaaa75718eef24b4ba71952237421b890_EARNINGSPERSHARETables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="extended" id="i85dec3fec7974ca19e58c8800f1b85eb_EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_17aace00-dfea-4dc7-937c-3b4617b86a72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasicTwoClassMethodAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_17aace00-dfea-4dc7-937c-3b4617b86a72" xlink:to="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Dividends_e2dc6226-e24c-4889-83d0-bcca3a0b3973" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Dividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:to="loc_us-gaap_Dividends_e2dc6226-e24c-4889-83d0-bcca3a0b3973" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_229dea91-8be4-4cb0-80e7-01627cb1d9bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_229dea91-8be4-4cb0-80e7-01627cb1d9bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_cb1c3c1e-45b5-4169-bd14-d04977351c42" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_cb1c3c1e-45b5-4169-bd14-d04977351c42" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_cdac0a75-e303-43bc-8c01-2c321cd9cdf8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_cdac0a75-e303-43bc-8c01-2c321cd9cdf8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_2b799bbc-e029-4b44-908d-a4730562d95d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_02799ff3-56cd-4ec8-af57-c6594b8c581a" xlink:to="loc_us-gaap_EarningsPerShareBasic_2b799bbc-e029-4b44-908d-a4730562d95d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_17aace00-dfea-4dc7-937c-3b4617b86a72" xlink:to="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_e245d1ee-c6fe-4c29-88bf-a824c341cb0f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributedEarnings_3d8ecf65-c62f-4b41-9402-68dbbd3b9a55" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DistributedEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_DistributedEarnings_3d8ecf65-c62f-4b41-9402-68dbbd3b9a55" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_7cf0f20d-0fe2-4301-b10c-53cf64da41ff" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_7cf0f20d-0fe2-4301-b10c-53cf64da41ff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_53eabfdd-8d57-4f92-bfbd-a1d84aa386f0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_53eabfdd-8d57-4f92-bfbd-a1d84aa386f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_82bd9556-5221-4060-aecf-a53b507387fd" xlink:href="hsy-20200628.xsd#hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_82bd9556-5221-4060-aecf-a53b507387fd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_a85bbabd-f6b0-4847-a4cd-f3c0bc168fe0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_a85bbabd-f6b0-4847-a4cd-f3c0bc168fe0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_9727fa59-635e-4de2-b5cc-49173d22ecee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_9727fa59-635e-4de2-b5cc-49173d22ecee" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_3bcd1e21-d355-4fec-b0e3-fd3925eb4e28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_a08f4e71-4f41-49a1-bc83-288e8b91e9d3" xlink:to="loc_us-gaap_EarningsPerShareDiluted_3bcd1e21-d355-4fec-b0e3-fd3925eb4e28" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_8bf64e0d-d611-496c-b2f8-6c83846f4d1a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_17aace00-dfea-4dc7-937c-3b4617b86a72" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_8bf64e0d-d611-496c-b2f8-6c83846f4d1a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_a89e3604-cfe2-468b-b1ae-415a3d072712" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_8bf64e0d-d611-496c-b2f8-6c83846f4d1a" xlink:to="loc_us-gaap_StatementClassOfStockAxis_a89e3604-cfe2-468b-b1ae-415a3d072712" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_a89e3604-cfe2-468b-b1ae-415a3d072712_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a89e3604-cfe2-468b-b1ae-415a3d072712" xlink:to="loc_us-gaap_ClassOfStockDomain_a89e3604-cfe2-468b-b1ae-415a3d072712_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_6267b506-0810-4c06-9a88-df0ef2ac042f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a89e3604-cfe2-468b-b1ae-415a3d072712" xlink:to="loc_us-gaap_ClassOfStockDomain_6267b506-0810-4c06-9a88-df0ef2ac042f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_45d6e7b4-75c7-42fb-83e2-42ccbf5132fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_6267b506-0810-4c06-9a88-df0ef2ac042f" xlink:to="loc_us-gaap_CommonStockMember_45d6e7b4-75c7-42fb-83e2-42ccbf5132fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_27868c36-753d-4b56-8889-89afa0414e04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_6267b506-0810-4c06-9a88-df0ef2ac042f" xlink:to="loc_us-gaap_CommonClassBMember_27868c36-753d-4b56-8889-89afa0414e04" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_08cb7cfe-a643-45cc-9157-404a9f0334b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_8bf64e0d-d611-496c-b2f8-6c83846f4d1a" xlink:to="loc_us-gaap_AwardTypeAxis_08cb7cfe-a643-45cc-9157-404a9f0334b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_08cb7cfe-a643-45cc-9157-404a9f0334b0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_08cb7cfe-a643-45cc-9157-404a9f0334b0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_08cb7cfe-a643-45cc-9157-404a9f0334b0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dca4bd1f-c861-4351-9324-53dade8b1e49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_08cb7cfe-a643-45cc-9157-404a9f0334b0" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dca4bd1f-c861-4351-9324-53dade8b1e49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_e64d7468-ec53-4f70-a9ff-f85c0c50a05a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dca4bd1f-c861-4351-9324-53dade8b1e49" xlink:to="loc_us-gaap_EmployeeStockOptionMember_e64d7468-ec53-4f70-a9ff-f85c0c50a05a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_d4a4af76-6531-42f2-bdd1-8e5d92c2d591" xlink:href="hsy-20200628.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dca4bd1f-c861-4351-9324-53dade8b1e49" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_d4a4af76-6531-42f2-bdd1-8e5d92c2d591" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#EARNINGSPERSHARENARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="extended" id="icca7f1ba969f4f4fab6f16d3aa24c0ee_EARNINGSPERSHARENARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1c1e5b0d-5e0a-4209-a9d7-13ce3f6f5d76" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_3b877746-10c9-4a43-bf3e-f92676f0d201" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1c1e5b0d-5e0a-4209-a9d7-13ce3f6f5d76" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_3b877746-10c9-4a43-bf3e-f92676f0d201" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d9473332-4ad9-46de-a524-1fbd95fb3c9e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_1c1e5b0d-5e0a-4209-a9d7-13ce3f6f5d76" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d9473332-4ad9-46de-a524-1fbd95fb3c9e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_975879e7-5dce-431c-851f-e7a03c1b92b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_d9473332-4ad9-46de-a524-1fbd95fb3c9e" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_975879e7-5dce-431c-851f-e7a03c1b92b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_975879e7-5dce-431c-851f-e7a03c1b92b4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_975879e7-5dce-431c-851f-e7a03c1b92b4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_975879e7-5dce-431c-851f-e7a03c1b92b4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_994562f6-5d65-458a-bddf-4dd8c9cdd477" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_975879e7-5dce-431c-851f-e7a03c1b92b4" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_994562f6-5d65-458a-bddf-4dd8c9cdd477" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_f826b7f1-507b-4c60-a6b4-b962083b2620" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_994562f6-5d65-458a-bddf-4dd8c9cdd477" xlink:to="loc_us-gaap_EmployeeStockOptionMember_f826b7f1-507b-4c60-a6b4-b962083b2620" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="extended" id="i7f9f90d168274cc4b55bec36403606c6_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="extended" id="i5ddcfebbb1474d7cacc8b52327bed21c_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="extended" id="i4c38b355e6d64b0a875ac8f04e6b2bf6_OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="extended" id="i71fb841088754df6bbeb4ace235480ed_SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="extended" id="ifaa861f6b27148b7ae01fe864e10988d_SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="simple" xlink:href="hsy-20200628.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="extended" id="i827fdb0d2679477091609273fdcee9c6_SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
</link:linkbase>
