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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:05f28b91-a9e2-4f26-8f10-9e02dcece5f0,g:4082b929-6e2b-4240-852a-f0479c6b950a-->
<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/DOCUMENTANDENTITYINFORMATION" xlink:type="simple" xlink:href="hsy-20210404.xsd#DOCUMENTANDENTITYINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATION" xlink:type="extended" id="id2135fd806be450abc3854a9013f06a6_DOCUMENTANDENTITYINFORMATION">
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_f6a3133d-9aea-4f9c-90e6-ba2bb4a3f281" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentType_f6a3133d-9aea-4f9c-90e6-ba2bb4a3f281" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_7145164b-9225-4183-a98e-02b2d7a82795" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentQuarterlyReport_7145164b-9225-4183-a98e-02b2d7a82795" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_ddd855c6-e99d-478e-964f-948154a9c654" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentPeriodEndDate_ddd855c6-e99d-478e-964f-948154a9c654" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_b993b912-5c0e-48a1-b95e-7074b1e0b8ed" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentTransitionReport_b993b912-5c0e-48a1-b95e-7074b1e0b8ed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_1396a262-1509-41bd-8b93-8c00b72122b7" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityFileNumber_1396a262-1509-41bd-8b93-8c00b72122b7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_d790c8ee-c0df-4a07-b43a-fd2181c72152" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityRegistrantName_d790c8ee-c0df-4a07-b43a-fd2181c72152" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_c116800e-bdf0-4e30-b1cd-4bb34f6744a6" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityIncorporationStateCountryCode_c116800e-bdf0-4e30-b1cd-4bb34f6744a6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_5808d313-9137-49d1-8660-b202ba147245" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityTaxIdentificationNumber_5808d313-9137-49d1-8660-b202ba147245" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_6cad4313-bae0-4a9e-8a87-453270c7aa65" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityAddressAddressLine1_6cad4313-bae0-4a9e-8a87-453270c7aa65" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_515e0658-59df-4713-8685-18e9d793ac7b" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityAddressCityOrTown_515e0658-59df-4713-8685-18e9d793ac7b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_1706cf61-6b5e-4ef9-9c8b-5d89cc255dcf" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityAddressStateOrProvince_1706cf61-6b5e-4ef9-9c8b-5d89cc255dcf" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_ec336271-fd79-4399-8e57-9d91e45ac1fc" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityAddressPostalZipCode_ec336271-fd79-4399-8e57-9d91e45ac1fc" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_0f29d27f-67d6-463a-bca6-6ca3f92d94cd" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_CityAreaCode_0f29d27f-67d6-463a-bca6-6ca3f92d94cd" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_8a261762-9caa-4a7f-98aa-fb659737f0e3" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_LocalPhoneNumber_8a261762-9caa-4a7f-98aa-fb659737f0e3" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_2a569cdd-ef09-4c57-ba25-d6227f298bd4" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_Security12bTitle_2a569cdd-ef09-4c57-ba25-d6227f298bd4" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_f0a5bf87-e956-43df-b1b2-1f843fdcde4a" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_TradingSymbol_f0a5bf87-e956-43df-b1b2-1f843fdcde4a" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_da111eab-9a5b-4ce4-81d0-22a4c9c8e2d9" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_SecurityExchangeName_da111eab-9a5b-4ce4-81d0-22a4c9c8e2d9" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_7ca3c072-dbb7-4b2c-97bb-b0e2639006b1" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityCurrentReportingStatus_7ca3c072-dbb7-4b2c-97bb-b0e2639006b1" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_aa5c26b1-0613-4089-ba99-52b4c614060b" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityInteractiveDataCurrent_aa5c26b1-0613-4089-ba99-52b4c614060b" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_1f5c0f29-5016-4583-bc40-0be13fae5a24" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityFilerCategory_1f5c0f29-5016-4583-bc40-0be13fae5a24" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_baa38267-48db-4d39-86f0-a1574f9aa813" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntitySmallBusiness_baa38267-48db-4d39-86f0-a1574f9aa813" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_99a4c6cd-e1a1-48e5-af53-882d6ca51f6a" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityEmergingGrowthCompany_99a4c6cd-e1a1-48e5-af53-882d6ca51f6a" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_86e75b4c-c292-4741-8e90-c30d28625cc8" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityShellCompany_86e75b4c-c292-4741-8e90-c30d28625cc8" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_d4cc4088-b35d-4c44-80b8-be9b70466a05" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_d4cc4088-b35d-4c44-80b8-be9b70466a05" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_36a7c1c4-8cf4-45bd-ac42-04aab04516ee" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntityCentralIndexKey_36a7c1c4-8cf4-45bd-ac42-04aab04516ee" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_2587f443-b47e-4c01-a900-795deac19736" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentFiscalYearFocus_2587f443-b47e-4c01-a900-795deac19736" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_d9eff80b-413d-4568-ae24-b087e134fc69" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_CurrentFiscalYearEndDate_d9eff80b-413d-4568-ae24-b087e134fc69" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_21cb3ed3-5c98-4c2e-a290-c20bb24b200c" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_DocumentFiscalPeriodFocus_21cb3ed3-5c98-4c2e-a290-c20bb24b200c" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_ea9d42c0-42c1-44f9-b43d-23e04027f5d7" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_AmendmentFlag_ea9d42c0-42c1-44f9-b43d-23e04027f5d7" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitiesTable_50424ed8-2469-4830-9f18-98f82777aca6" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_EntityInformationLineItems_9d697a54-0115-4714-bb59-f3183e54824c" xlink:to="loc_dei_EntitiesTable_50424ed8-2469-4830-9f18-98f82777aca6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_fcb3b785-406c-4872-b86f-d0a9988dd587" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_EntitiesTable_50424ed8-2469-4830-9f18-98f82777aca6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_fcb3b785-406c-4872-b86f-d0a9988dd587" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_fcb3b785-406c-4872-b86f-d0a9988dd587_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_fcb3b785-406c-4872-b86f-d0a9988dd587" xlink:to="loc_us-gaap_ClassOfStockDomain_fcb3b785-406c-4872-b86f-d0a9988dd587_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b309ce3b-d5b9-4e1f-a571-a64db8712590" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_fcb3b785-406c-4872-b86f-d0a9988dd587" xlink:to="loc_us-gaap_ClassOfStockDomain_b309ce3b-d5b9-4e1f-a571-a64db8712590" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_3f7c20fb-21f6-44ee-9fda-120cb64c5e8b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b309ce3b-d5b9-4e1f-a571-a64db8712590" xlink:to="loc_us-gaap_CommonStockMember_3f7c20fb-21f6-44ee-9fda-120cb64c5e8b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_bf301d9c-0d87-45ce-b3dd-47e47747e0f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b309ce3b-d5b9-4e1f-a571-a64db8712590" xlink:to="loc_us-gaap_CommonClassBMember_bf301d9c-0d87-45ce-b3dd-47e47747e0f7" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended" id="i1586bd939f0a4e44ae65c39cacad2510_CONSOLIDATEDSTATEMENTSOFINCOME">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_3310da12-e1a2-4b08-9f33-f981e9c08f2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_3310da12-e1a2-4b08-9f33-f981e9c08f2c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_63a4a431-325a-4589-a6a1-f5f9cbdbe0b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_63a4a431-325a-4589-a6a1-f5f9cbdbe0b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_1aaeb5b5-2b51-4477-a55e-aa6d2f69331c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GrossProfit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_GrossProfit_1aaeb5b5-2b51-4477-a55e-aa6d2f69331c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_a7a54cc2-d40d-4a31-84b0-fbcfb869fff8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_a7a54cc2-d40d-4a31-84b0-fbcfb869fff8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_9bd995ff-b0ba-4bfc-af35-3ad09dfbb09c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_AssetImpairmentCharges_9bd995ff-b0ba-4bfc-af35-3ad09dfbb09c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_a8640d62-4fd3-4e20-9e4f-d0643484312d" xlink:href="hsy-20210404.xsd#hsy_RestructuringChargesBusinessRealignment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_a8640d62-4fd3-4e20-9e4f-d0643484312d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c6b92cfc-5715-46d0-b534-93459557d8a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_OperatingIncomeLoss_c6b92cfc-5715-46d0-b534-93459557d8a9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_023de6e6-91c9-4bad-8d57-3e535d0268bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_023de6e6-91c9-4bad-8d57-3e535d0268bb" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_78b54486-61b9-439a-8bb6-822a94a8e32e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_78b54486-61b9-439a-8bb6-822a94a8e32e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a4452dde-d1aa-473f-a67e-a2c33c1da286" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a4452dde-d1aa-473f-a67e-a2c33c1da286" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9bd8ab22-43b7-488f-a25c-4b7e65f1f826" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9bd8ab22-43b7-488f-a25c-4b7e65f1f826" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_a06cfb84-3d95-48ec-bc7a-e36dd86c6437" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_ProfitLoss_a06cfb84-3d95-48ec-bc7a-e36dd86c6437" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f3f40acd-faf8-4686-bea5-869d6f24c081" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_f3f40acd-faf8-4686-bea5-869d6f24c081" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_84ac755d-7dca-4422-bade-3fb590975c50" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_NetIncomeLoss_84ac755d-7dca-4422-bade-3fb590975c50" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_3bad7d25-f10c-424f-9518-5734f67ae123" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_3bad7d25-f10c-424f-9518-5734f67ae123" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_3b3d2699-06f1-4ed4-8642-63d6731b10cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_3bad7d25-f10c-424f-9518-5734f67ae123" xlink:to="loc_us-gaap_EarningsPerShareBasic_3b3d2699-06f1-4ed4-8642-63d6731b10cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_faaece65-066d-48c3-b800-096f7202f240" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_faaece65-066d-48c3-b800-096f7202f240" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_84629a86-37fa-40ee-a711-8e85bb4e261b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_faaece65-066d-48c3-b800-096f7202f240" xlink:to="loc_us-gaap_EarningsPerShareDiluted_84629a86-37fa-40ee-a711-8e85bb4e261b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_a32da5c0-a4cc-4a69-bf9c-a1ece8ea0607" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsCommonStockAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_a32da5c0-a4cc-4a69-bf9c-a1ece8ea0607" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_c33fae33-9eb2-4e68-b8f3-4a447e2a3287" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_a32da5c0-a4cc-4a69-bf9c-a1ece8ea0607" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_c33fae33-9eb2-4e68-b8f3-4a447e2a3287" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_e96f4150-9c2f-4c5c-9bbb-8624f28e95e7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_acdf79df-93a0-495e-aa90-97f9b40e2c90" xlink:to="loc_us-gaap_StatementTable_e96f4150-9c2f-4c5c-9bbb-8624f28e95e7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_028b2e99-3909-48a6-8626-25932b3e9b16" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_e96f4150-9c2f-4c5c-9bbb-8624f28e95e7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_028b2e99-3909-48a6-8626-25932b3e9b16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_028b2e99-3909-48a6-8626-25932b3e9b16_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_028b2e99-3909-48a6-8626-25932b3e9b16" xlink:to="loc_us-gaap_ClassOfStockDomain_028b2e99-3909-48a6-8626-25932b3e9b16_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_983d27c0-d22f-45e6-8b9d-a2a09aff1542" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_028b2e99-3909-48a6-8626-25932b3e9b16" xlink:to="loc_us-gaap_ClassOfStockDomain_983d27c0-d22f-45e6-8b9d-a2a09aff1542" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_dfd83375-3cd4-4b54-88b7-7a59d661062d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_983d27c0-d22f-45e6-8b9d-a2a09aff1542" xlink:to="loc_us-gaap_CommonStockMember_dfd83375-3cd4-4b54-88b7-7a59d661062d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_09f2192b-98a5-42df-90f7-70e4c58340c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_983d27c0-d22f-45e6-8b9d-a2a09aff1542" xlink:to="loc_us-gaap_CommonClassBMember_09f2192b-98a5-42df-90f7-70e4c58340c3" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended" id="i42075320e1be43929aea87d5a4b299c4_CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="ic3ff568e7bfe4c4b921a97d18eaa44eb_CONSOLIDATEDBALANCESHEETS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_f64dc1c1-a257-4b7c-b961-93321ed3db3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_f64dc1c1-a257-4b7c-b961-93321ed3db3f" xlink:to="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_5d2942b7-e71d-4377-99a2-128e7b5df136" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_5d2942b7-e71d-4377-99a2-128e7b5df136" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_109b7da1-e5f5-43d1-b135-32979e85fc44" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_109b7da1-e5f5-43d1-b135-32979e85fc44" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_0a9c77a7-0b26-42e2-9334-57abf4624412" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:to="loc_us-gaap_InventoryNet_0a9c77a7-0b26-42e2-9334-57abf4624412" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_4be4fd49-084d-40af-8222-df9952990ffd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_4be4fd49-084d-40af-8222-df9952990ffd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_704b556a-073b-4503-a7d4-2c62652ea3eb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a2d7e23f-9224-4423-9caf-8ec30e196033" xlink:to="loc_us-gaap_AssetsCurrent_704b556a-073b-4503-a7d4-2c62652ea3eb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_dd64f84b-2822-4991-ac1c-dceb3ea11acd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_dd64f84b-2822-4991-ac1c-dceb3ea11acd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_bb1cb18b-ba14-47d6-bfce-b2113b523ec4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_Goodwill_bb1cb18b-ba14-47d6-bfce-b2113b523ec4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d6cb5c7c-fea5-4c06-afac-0c07ad28db2c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_d6cb5c7c-fea5-4c06-afac-0c07ad28db2c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_46f75405-a823-46ad-a767-e39eb2f7cc1c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_46f75405-a823-46ad-a767-e39eb2f7cc1c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_925991f6-2200-4f0e-9c22-e832d79f080e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_925991f6-2200-4f0e-9c22-e832d79f080e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_1643e7a2-0398-4e71-84dc-96a3925b99c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4802b463-9daf-41fe-b9b4-72f495821b51" xlink:to="loc_us-gaap_Assets_1643e7a2-0398-4e71-84dc-96a3925b99c9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_f64dc1c1-a257-4b7c-b961-93321ed3db3f" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_183aed3d-0d35-4ee8-a3a0-2571c6970183" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_AccountsPayableCurrent_183aed3d-0d35-4ee8-a3a0-2571c6970183" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_ca74319f-ee87-4fb5-9d2b-3e0296ec2d32" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_ca74319f-ee87-4fb5-9d2b-3e0296ec2d32" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_d87fb721-239d-4266-8f72-a21fe9b4a380" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_d87fb721-239d-4266-8f72-a21fe9b4a380" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_8e8a5ef5-3c82-4b2e-a388-ebd7064704f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_ShortTermBorrowings_8e8a5ef5-3c82-4b2e-a388-ebd7064704f7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_694d8afb-d151-4621-8d04-c26d5074c7ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_LongTermDebtCurrent_694d8afb-d151-4621-8d04-c26d5074c7ee" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_1668546f-a8da-479f-ae14-cc7b0c7968ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_87b50056-ae64-4e4b-9d38-758fb259b1bb" xlink:to="loc_us-gaap_LiabilitiesCurrent_1668546f-a8da-479f-ae14-cc7b0c7968ee" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_1b9dfea3-2d01-48d9-b0d0-6d0425a23910" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_1b9dfea3-2d01-48d9-b0d0-6d0425a23910" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_44df82f1-0f13-40c8-bae0-de4800cb36dd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_44df82f1-0f13-40c8-bae0-de4800cb36dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_a7e69d12-342d-45f2-8c49-5db51291b0d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_a7e69d12-342d-45f2-8c49-5db51291b0d3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_0009d7cc-c021-4fb8-b8e6-7c00bde4e858" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_Liabilities_0009d7cc-c021-4fb8-b8e6-7c00bde4e858" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_1c3fe33a-1a85-485b-a931-cdfbc9822365" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_PreferredStockValue_1c3fe33a-1a85-485b-a931-cdfbc9822365" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_6406c25b-1742-4868-8f29-05253b93dcfd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_CommonStockValue_6406c25b-1742-4868-8f29-05253b93dcfd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_cc4dc105-bacb-40da-99a5-51b57d7559e2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_AdditionalPaidInCapital_cc4dc105-bacb-40da-99a5-51b57d7559e2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_75d3a5d4-dbf5-4d00-803a-f2aa356325a5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_75d3a5d4-dbf5-4d00-803a-f2aa356325a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_d366f9b4-3a3b-4da5-b350-31ea2843206d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_TreasuryStockValue_d366f9b4-3a3b-4da5-b350-31ea2843206d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_954eb95d-e2a2-472b-80b0-f188ca79f1d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_954eb95d-e2a2-472b-80b0-f188ca79f1d1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_3ddd8f67-f8ba-43a5-a397-bf05cb56d498" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_StockholdersEquity_3ddd8f67-f8ba-43a5-a397-bf05cb56d498" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_d30faebe-5abe-4403-8e7c-32405824ca7f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_MinorityInterest_d30faebe-5abe-4403-8e7c-32405824ca7f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f1686cf7-5d23-4a5b-bcce-7b202c9b6833" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_71179c0f-3eb6-445d-9a1a-d9c814d30dde" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f1686cf7-5d23-4a5b-bcce-7b202c9b6833" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_b7eef7d7-a18d-4ed6-93ea-07be62cde5cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_1a85fa1d-a53b-4fd1-b78f-05f9f3da1216" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_b7eef7d7-a18d-4ed6-93ea-07be62cde5cf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_e0486d40-433e-44b7-827d-4a71b9bb9ce4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_f64dc1c1-a257-4b7c-b961-93321ed3db3f" xlink:to="loc_us-gaap_StatementTable_e0486d40-433e-44b7-827d-4a71b9bb9ce4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_59421fae-99ef-4a17-8a6b-703e5636314e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_e0486d40-433e-44b7-827d-4a71b9bb9ce4" xlink:to="loc_us-gaap_StatementClassOfStockAxis_59421fae-99ef-4a17-8a6b-703e5636314e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_59421fae-99ef-4a17-8a6b-703e5636314e_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_59421fae-99ef-4a17-8a6b-703e5636314e" xlink:to="loc_us-gaap_ClassOfStockDomain_59421fae-99ef-4a17-8a6b-703e5636314e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2757153c-403c-460b-9a48-a20290c0c7d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_59421fae-99ef-4a17-8a6b-703e5636314e" xlink:to="loc_us-gaap_ClassOfStockDomain_2757153c-403c-460b-9a48-a20290c0c7d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_52e8515e-46c8-4a1c-a65e-7fb699018ee2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2757153c-403c-460b-9a48-a20290c0c7d7" xlink:to="loc_us-gaap_CommonStockMember_52e8515e-46c8-4a1c-a65e-7fb699018ee2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_7db3f0b4-4130-4973-8319-1f27fae77a81" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_2757153c-403c-460b-9a48-a20290c0c7d7" xlink:to="loc_us-gaap_CommonClassBMember_7db3f0b4-4130-4973-8319-1f27fae77a81" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="ie7dbf2883b7d483da8bdc6acb6827c5e_CONSOLIDATEDBALANCESHEETSParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_fb8dbbb2-5499-4c05-9154-e8d417d0739c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_b5524ca3-ae0e-40cd-aa42-524bf10559b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fb8dbbb2-5499-4c05-9154-e8d417d0739c" xlink:to="loc_us-gaap_PreferredStockSharesIssued_b5524ca3-ae0e-40cd-aa42-524bf10559b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_fe19084e-b35e-4213-8d59-df7736497317" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fb8dbbb2-5499-4c05-9154-e8d417d0739c" xlink:to="loc_us-gaap_CommonStockSharesIssued_fe19084e-b35e-4213-8d59-df7736497317" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockShares_de6b65dd-70f1-46a3-9b81-d1bfb8c3c668" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fb8dbbb2-5499-4c05-9154-e8d417d0739c" xlink:to="loc_us-gaap_TreasuryStockShares_de6b65dd-70f1-46a3-9b81-d1bfb8c3c668" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_54f37b91-a221-4317-895d-b0f7b68708a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_fb8dbbb2-5499-4c05-9154-e8d417d0739c" xlink:to="loc_us-gaap_StatementTable_54f37b91-a221-4317-895d-b0f7b68708a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_6ec4964e-9bb4-45ec-87cf-bcf637b03111" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_54f37b91-a221-4317-895d-b0f7b68708a6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_6ec4964e-9bb4-45ec-87cf-bcf637b03111" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_6ec4964e-9bb4-45ec-87cf-bcf637b03111_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6ec4964e-9bb4-45ec-87cf-bcf637b03111" xlink:to="loc_us-gaap_ClassOfStockDomain_6ec4964e-9bb4-45ec-87cf-bcf637b03111_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_45c33d9c-ab9b-48e6-9a37-3796daf25c63" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_6ec4964e-9bb4-45ec-87cf-bcf637b03111" xlink:to="loc_us-gaap_ClassOfStockDomain_45c33d9c-ab9b-48e6-9a37-3796daf25c63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_bd4128e8-55f9-4cc2-9c66-330dd5ef22f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_45c33d9c-ab9b-48e6-9a37-3796daf25c63" xlink:to="loc_us-gaap_CommonStockMember_bd4128e8-55f9-4cc2-9c66-330dd5ef22f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_41434e13-c820-4ad3-aad3-d0367dd819a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_45c33d9c-ab9b-48e6-9a37-3796daf25c63" xlink:to="loc_us-gaap_CommonClassBMember_41434e13-c820-4ad3-aad3-d0367dd819a1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="ic67cbfdbcb8748d7a56a5eb5370294dd_CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended" id="i370b193fa5ef442a976d76710efb7706_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_9706c6b2-7468-4e16-8ddb-9aa0ce1cf30a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_9706c6b2-7468-4e16-8ddb-9aa0ce1cf30a" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e58b2f2b-f7e1-4edb-a89e-7be89b472212" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_e58b2f2b-f7e1-4edb-a89e-7be89b472212" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9a790b6e-5dab-4663-84d9-74cf74fdc093" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_NetIncomeLoss_9a790b6e-5dab-4663-84d9-74cf74fdc093" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_2e3901db-1661-427d-bcfa-9516cd70c413" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_2e3901db-1661-427d-bcfa-9516cd70c413" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_dee46d25-4b53-4124-b279-1ecbb16a7b80" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_ProfitLoss_dee46d25-4b53-4124-b279-1ecbb16a7b80" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_1ad3c968-42dd-47ce-a680-4c3b70118511" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_1ad3c968-42dd-47ce-a680-4c3b70118511" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_30e97b6a-b294-4eb4-9750-eb08189ff9fa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsCommonStockAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_30e97b6a-b294-4eb4-9750-eb08189ff9fa" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_c106cb22-a5c3-476f-8fe3-d74c5b32901b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DividendsCommonStockCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsCommonStockAbstract_30e97b6a-b294-4eb4-9750-eb08189ff9fa" xlink:to="loc_us-gaap_DividendsCommonStockCash_c106cb22-a5c3-476f-8fe3-d74c5b32901b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_134b44f9-e72c-4aa6-8c4f-b395696b956a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_134b44f9-e72c-4aa6-8c4f-b395696b956a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_f0306fb1-931e-417a-a608-3ded5c5cccb5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_f0306fb1-931e-417a-a608-3ded5c5cccb5" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_791d0339-c798-4f3c-bf18-bf2eb2659923" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_791d0339-c798-4f3c-bf18-bf2eb2659923" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation_dbbb9f5a-77db-425e-b11d-5adc93e92bd7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_19526cd5-bb94-4d23-a87c-2cbf3884fe87" xlink:to="loc_us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation_dbbb9f5a-77db-425e-b11d-5adc93e92bd7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_620a0b21-53fb-4d81-b9ca-f27cacd7f3f3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_a0ac890f-cb63-4268-ac88-dd55bcc5976a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_9706c6b2-7468-4e16-8ddb-9aa0ce1cf30a" xlink:to="loc_us-gaap_StatementTable_a0ac890f-cb63-4268-ac88-dd55bcc5976a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_434b76ef-9740-4b35-a88c-6d48b791a326" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_a0ac890f-cb63-4268-ac88-dd55bcc5976a" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_434b76ef-9740-4b35-a88c-6d48b791a326" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_434b76ef-9740-4b35-a88c-6d48b791a326_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_434b76ef-9740-4b35-a88c-6d48b791a326" xlink:to="loc_us-gaap_EquityComponentDomain_434b76ef-9740-4b35-a88c-6d48b791a326_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_434b76ef-9740-4b35-a88c-6d48b791a326" xlink:to="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_62921845-4960-4bdd-9faf-dcdc97c3848f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_PreferredStockMember_62921845-4960-4bdd-9faf-dcdc97c3848f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_98582680-e381-4cf6-9f38-c489a426e8b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_CommonStockMember_98582680-e381-4cf6-9f38-c489a426e8b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_632016c2-88d5-468e-b34d-1dc33be9af02" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_632016c2-88d5-468e-b34d-1dc33be9af02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_02464002-6b3d-45b9-92ac-bcd6877feed6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_RetainedEarningsMember_02464002-6b3d-45b9-92ac-bcd6877feed6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_ab4bdb27-cb04-4a11-b404-c323bc650d13" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_TreasuryStockMember_ab4bdb27-cb04-4a11-b404-c323bc650d13" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a26d420b-8280-48a7-a688-c35e19636a03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_a26d420b-8280-48a7-a688-c35e19636a03" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_406a92f0-a0c4-4278-a04e-7dbf4979a149" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b7f51abd-ee33-4489-9e27-3de22d108b3c" xlink:to="loc_us-gaap_NoncontrollingInterestMember_406a92f0-a0c4-4278-a04e-7dbf4979a149" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_a6c5a642-e595-4ade-9e66-dab65a701e8c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_a0ac890f-cb63-4268-ac88-dd55bcc5976a" xlink:to="loc_us-gaap_StatementClassOfStockAxis_a6c5a642-e595-4ade-9e66-dab65a701e8c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_a6c5a642-e595-4ade-9e66-dab65a701e8c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a6c5a642-e595-4ade-9e66-dab65a701e8c" xlink:to="loc_us-gaap_ClassOfStockDomain_a6c5a642-e595-4ade-9e66-dab65a701e8c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_1fbf92ae-e3cc-4fa5-bd3a-93514750c1a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_a6c5a642-e595-4ade-9e66-dab65a701e8c" xlink:to="loc_us-gaap_ClassOfStockDomain_1fbf92ae-e3cc-4fa5-bd3a-93514750c1a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_84a5ef3e-02d7-498a-8eb5-25f0edee2034" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_1fbf92ae-e3cc-4fa5-bd3a-93514750c1a3" xlink:to="loc_us-gaap_CommonStockMember_84a5ef3e-02d7-498a-8eb5-25f0edee2034" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_e181c79b-51f4-4840-9299-1cdbdb8c4c33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_1fbf92ae-e3cc-4fa5-bd3a-93514750c1a3" xlink:to="loc_us-gaap_CommonClassBMember_e181c79b-51f4-4840-9299-1cdbdb8c4c33" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="extended" id="i4e1a769b14224c5291a0044bbef674f5_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_81d99b1b-b14b-45e8-8b5f-8f029763a09c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_fb68c98d-7117-4887-8242-407f512602e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_81d99b1b-b14b-45e8-8b5f-8f029763a09c" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_fb68c98d-7117-4887-8242-407f512602e1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_3b91663f-8164-4cbc-bfec-6cb73181664f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_81d99b1b-b14b-45e8-8b5f-8f029763a09c" xlink:to="loc_us-gaap_StatementTable_3b91663f-8164-4cbc-bfec-6cb73181664f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0fa39741-a0fe-4930-8ef1-f639d1c608a1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_3b91663f-8164-4cbc-bfec-6cb73181664f" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0fa39741-a0fe-4930-8ef1-f639d1c608a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0fa39741-a0fe-4930-8ef1-f639d1c608a1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0fa39741-a0fe-4930-8ef1-f639d1c608a1" xlink:to="loc_us-gaap_ClassOfStockDomain_0fa39741-a0fe-4930-8ef1-f639d1c608a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_330a9d66-1098-4806-96fd-6254d5f4c1b8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0fa39741-a0fe-4930-8ef1-f639d1c608a1" xlink:to="loc_us-gaap_ClassOfStockDomain_330a9d66-1098-4806-96fd-6254d5f4c1b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_6ccae39b-8ba9-4241-b23a-70ce0e4db241" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_330a9d66-1098-4806-96fd-6254d5f4c1b8" xlink:to="loc_us-gaap_CommonStockMember_6ccae39b-8ba9-4241-b23a-70ce0e4db241" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_c9b93615-480c-4821-9f79-48240b4876ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_330a9d66-1098-4806-96fd-6254d5f4c1b8" xlink:to="loc_us-gaap_CommonClassBMember_c9b93615-480c-4821-9f79-48240b4876ea" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="simple" xlink:href="hsy-20210404.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="extended" id="i7a862b9a9fc24701aa7e23756f31f9fa_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="simple" xlink:href="hsy-20210404.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="extended" id="ib8dbc173176b439db70b216b079de5fe_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSDIVESTITURE" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSDIVESTITURE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSDIVESTITURE" xlink:type="extended" id="i13275f75dcff49ea9bd4f124d07a98e5_BUSINESSDIVESTITURE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="simple" xlink:href="hsy-20210404.xsd#GOODWILLANDINTANGIBLEASSETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="extended" id="i24e220c04d1a4f3aae62b8670684648d_GOODWILLANDINTANGIBLEASSETS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="extended" id="if33b7b849c264c109ec2d2057fa065c8_GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="extended" id="i3ad2650acc954708b3ef194d197f080a_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_0aa96cea-9609-426d-a85a-84c46627b8b9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_5b1ceaaf-6b08-45fd-b808-39904a0cb65d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillLineItems_0aa96cea-9609-426d-a85a-84c46627b8b9" xlink:to="loc_us-gaap_GoodwillRollForward_5b1ceaaf-6b08-45fd-b808-39904a0cb65d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_d7da5e73-3a42-4a05-bc11-67deffbfe907" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5b1ceaaf-6b08-45fd-b808-39904a0cb65d" xlink:to="loc_us-gaap_Goodwill_d7da5e73-3a42-4a05-bc11-67deffbfe907" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_9fd7d96d-66b5-43bf-9b5c-5685f338b8df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillForeignCurrencyTranslationGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_5b1ceaaf-6b08-45fd-b808-39904a0cb65d" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_9fd7d96d-66b5-43bf-9b5c-5685f338b8df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_5d2469da-eb1d-47ba-a386-117f015160b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfGoodwillTable_c2e512a2-8e9e-425f-a0e3-070f2391cbf1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfGoodwillTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GoodwillLineItems_0aa96cea-9609-426d-a85a-84c46627b8b9" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_c2e512a2-8e9e-425f-a0e3-070f2391cbf1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_ed12c4b6-ec4d-47a4-a355-c163cdf1293a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_c2e512a2-8e9e-425f-a0e3-070f2391cbf1" xlink:to="loc_srt_ConsolidationItemsAxis_ed12c4b6-ec4d-47a4-a355-c163cdf1293a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ed12c4b6-ec4d-47a4-a355-c163cdf1293a_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_ed12c4b6-ec4d-47a4-a355-c163cdf1293a" xlink:to="loc_srt_ConsolidationItemsDomain_ed12c4b6-ec4d-47a4-a355-c163cdf1293a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4f812281-cac7-4bdf-8d63-fcb0b9f77a97" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_ed12c4b6-ec4d-47a4-a355-c163cdf1293a" xlink:to="loc_srt_ConsolidationItemsDomain_4f812281-cac7-4bdf-8d63-fcb0b9f77a97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_60f08129-1916-45f6-b172-095511f4c128" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_4f812281-cac7-4bdf-8d63-fcb0b9f77a97" xlink:to="loc_us-gaap_OperatingSegmentsMember_60f08129-1916-45f6-b172-095511f4c128" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3738f4e8-5f1f-4068-84d2-163a35431851" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfGoodwillTable_c2e512a2-8e9e-425f-a0e3-070f2391cbf1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3738f4e8-5f1f-4068-84d2-163a35431851" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3738f4e8-5f1f-4068-84d2-163a35431851_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3738f4e8-5f1f-4068-84d2-163a35431851" xlink:to="loc_us-gaap_SegmentDomain_3738f4e8-5f1f-4068-84d2-163a35431851_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a851b5d3-732f-4e7d-a34a-1bd135af6790" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3738f4e8-5f1f-4068-84d2-163a35431851" xlink:to="loc_us-gaap_SegmentDomain_a851b5d3-732f-4e7d-a34a-1bd135af6790" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_e76c5c0f-76ef-4716-b64f-873108becd6a" xlink:href="hsy-20210404.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a851b5d3-732f-4e7d-a34a-1bd135af6790" xlink:to="loc_hsy_NorthAmericaSegmentMember_e76c5c0f-76ef-4716-b64f-873108becd6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_163f084c-7eea-4d7a-a3bd-64d4aa9cca75" xlink:href="hsy-20210404.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a851b5d3-732f-4e7d-a34a-1bd135af6790" xlink:to="loc_hsy_InternationalandOtherSegmentMember_163f084c-7eea-4d7a-a3bd-64d4aa9cca75" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="extended" id="i0e8b51c94b8e47129056ac61d06b9ddf_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d05931c3-de30-47ba-a102-4c71e40569cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_d05931c3-de30-47ba-a102-4c71e40569cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_fc30d044-d47b-40bf-b081-bf130a814ccd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_fc30d044-d47b-40bf-b081-bf130a814ccd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_cf2255ea-10ce-48b5-9bcc-6753297fdd87" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_cf2255ea-10ce-48b5-9bcc-6753297fdd87" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0a788170-230f-4b28-93de-b571bc50730e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0a788170-230f-4b28-93de-b571bc50730e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_373e3f32-c6d8-4a2a-b899-51444f3be363" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_f57fae10-9d7e-4688-987f-5f2649d664ca" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_373e3f32-c6d8-4a2a-b899-51444f3be363" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_80d15aeb-bf99-440b-9187-00b1829aab95" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_373e3f32-c6d8-4a2a-b899-51444f3be363" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_80d15aeb-bf99-440b-9187-00b1829aab95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_80d15aeb-bf99-440b-9187-00b1829aab95_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_80d15aeb-bf99-440b-9187-00b1829aab95" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_80d15aeb-bf99-440b-9187-00b1829aab95_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_969d4c78-b970-4b38-9c69-b785f394255a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_80d15aeb-bf99-440b-9187-00b1829aab95" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_969d4c78-b970-4b38-9c69-b785f394255a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_01778087-b07a-4efc-b8bb-2859cf859246" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_969d4c78-b970-4b38-9c69-b785f394255a" xlink:to="loc_us-gaap_TrademarksMember_01778087-b07a-4efc-b8bb-2859cf859246" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_89448ef8-6723-424a-a279-da2a7be2e9b1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerRelatedIntangibleAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_969d4c78-b970-4b38-9c69-b785f394255a" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_89448ef8-6723-424a-a279-da2a7be2e9b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PatentsMember_e75a6c13-a87c-4151-bcca-58e8429ffb3a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PatentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_969d4c78-b970-4b38-9c69-b785f394255a" xlink:to="loc_us-gaap_PatentsMember_e75a6c13-a87c-4151-bcca-58e8429ffb3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_c14e58c4-872a-4428-859a-2bf4b541e54d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_373e3f32-c6d8-4a2a-b899-51444f3be363" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_c14e58c4-872a-4428-859a-2bf4b541e54d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c14e58c4-872a-4428-859a-2bf4b541e54d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_c14e58c4-872a-4428-859a-2bf4b541e54d" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c14e58c4-872a-4428-859a-2bf4b541e54d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c53e15fc-a38d-449f-a11c-7114a836a977" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_c14e58c4-872a-4428-859a-2bf4b541e54d" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c53e15fc-a38d-449f-a11c-7114a836a977" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_a205fa36-66b3-4f16-8e5a-ade0c4038948" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TrademarksMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_c53e15fc-a38d-449f-a11c-7114a836a977" xlink:to="loc_us-gaap_TrademarksMember_a205fa36-66b3-4f16-8e5a-ade0c4038948" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="extended" id="i6518d82eb5f24aaf9a5e548644c1c059_GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBT"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="extended" id="i236afac8ffbe47c6a8437bb73eba5393_SHORTANDLONGTERMDEBT"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="extended" id="i1cfae354c6504d99ba5fdab72549d1e7_SHORTANDLONGTERMDEBTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="extended" id="i907cf2ce10854782be56a238b1e2e5f3_SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_97b90b66-ed28-4626-a1e3-47624b823b0a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_97b90b66-ed28-4626-a1e3-47624b823b0a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_cfca43c0-7c35-4d76-9857-c4080c394d43" xlink:href="hsy-20210404.xsd#hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:to="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_cfca43c0-7c35-4d76-9857-c4080c394d43" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditCurrent_f6d524fe-4154-4295-bf77-3c4b95d60237" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LinesOfCreditCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:to="loc_us-gaap_LinesOfCreditCurrent_f6d524fe-4154-4295-bf77-3c4b95d60237" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_c4c06254-3119-47e9-89a1-bbe5aae38bc5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:to="loc_us-gaap_ShortTermBorrowings_c4c06254-3119-47e9-89a1-bbe5aae38bc5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_fa7577dc-a805-4588-acfc-14f47b3a60da" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_c4163245-883f-48f9-b0f3-713ee100d8c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:to="loc_us-gaap_DebtInstrumentAxis_c4163245-883f-48f9-b0f3-713ee100d8c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c4163245-883f-48f9-b0f3-713ee100d8c4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_c4163245-883f-48f9-b0f3-713ee100d8c4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c4163245-883f-48f9-b0f3-713ee100d8c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1c302eff-dbc4-4218-b234-46d109bee719" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_c4163245-883f-48f9-b0f3-713ee100d8c4" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1c302eff-dbc4-4218-b234-46d109bee719" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_3c609ad4-6ba5-4772-868f-b5931700c2fa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1c302eff-dbc4-4218-b234-46d109bee719" xlink:to="loc_us-gaap_LineOfCreditMember_3c609ad4-6ba5-4772-868f-b5931700c2fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:to="loc_us-gaap_CreditFacilityAxis_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0" xlink:to="loc_us-gaap_CreditFacilityDomain_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_936591b6-70d6-4cc5-b44a-9a99844cfdad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_b1189416-ae8e-4f1e-9de5-2e2cd8350ef0" xlink:to="loc_us-gaap_CreditFacilityDomain_936591b6-70d6-4cc5-b44a-9a99844cfdad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f79de0d9-fac9-4b8d-bb3a-d857ca1ad082" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_936591b6-70d6-4cc5-b44a-9a99844cfdad" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f79de0d9-fac9-4b8d-bb3a-d857ca1ad082" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_8653b271-a56a-4e9e-b189-edceb2752624" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_8653b271-a56a-4e9e-b189-edceb2752624" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_8653b271-a56a-4e9e-b189-edceb2752624_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8653b271-a56a-4e9e-b189-edceb2752624" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_8653b271-a56a-4e9e-b189-edceb2752624_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_83a0505b-b6fd-4bcc-a744-b6d6180b03a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_8653b271-a56a-4e9e-b189-edceb2752624" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_83a0505b-b6fd-4bcc-a744-b6d6180b03a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_9861753e-ae45-445b-8f86-d2d843e098ea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_83a0505b-b6fd-4bcc-a744-b6d6180b03a2" xlink:to="loc_us-gaap_LineOfCreditMember_9861753e-ae45-445b-8f86-d2d843e098ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignLineOfCreditMember_fc0dbb3d-061f-4686-bded-6a8dfbb6c947" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_83a0505b-b6fd-4bcc-a744-b6d6180b03a2" xlink:to="loc_us-gaap_ForeignLineOfCreditMember_fc0dbb3d-061f-4686-bded-6a8dfbb6c947" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_bedd99e2-ec88-414a-b778-ae52a32875a4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_0e540c34-ee25-418c-934e-d55ed6298898" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_bedd99e2-ec88-414a-b778-ae52a32875a4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_bedd99e2-ec88-414a-b778-ae52a32875a4_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_bedd99e2-ec88-414a-b778-ae52a32875a4" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_bedd99e2-ec88-414a-b778-ae52a32875a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_120eda05-e176-4dcf-8cf2-96a3a18da7bc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShortTermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShortTermDebtTypeAxis_bedd99e2-ec88-414a-b778-ae52a32875a4" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_120eda05-e176-4dcf-8cf2-96a3a18da7bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_2668491f-17b6-4869-a2c1-16012332e42b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShortTermDebtTypeDomain_120eda05-e176-4dcf-8cf2-96a3a18da7bc" xlink:to="loc_us-gaap_CommercialPaperMember_2668491f-17b6-4869-a2c1-16012332e42b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="extended" id="id9b6264cee8a4825b6b82c6b16e73fa0_SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_bae93a05-f30f-4b56-81ca-498c2b9b6b3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_FinanceLeaseLiability_bae93a05-f30f-4b56-81ca-498c2b9b6b3f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_2d9cc059-fd31-4f42-a682-f566907bb4b2" xlink:href="hsy-20210404.xsd#hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_2d9cc059-fd31-4f42-a682-f566907bb4b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_3fac4172-f626-4a06-9daf-40e80901b587" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_LongTermDebt_3fac4172-f626-4a06-9daf-40e80901b587" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_ca594783-75a5-4ab5-aba8-11615f96cdbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_LongTermDebtCurrent_ca594783-75a5-4ab5-aba8-11615f96cdbe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_45d0ce9c-cf38-4f2a-9a61-1b6aa8c8a722" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_45d0ce9c-cf38-4f2a-9a61-1b6aa8c8a722" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c9ecaa7e-3409-40a7-bc97-5ec79ba7561c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c9ecaa7e-3409-40a7-bc97-5ec79ba7561c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_6ad3f50b-2b5f-40d9-bba5-fc3c692f0754" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_RepaymentsOfDebt_6ad3f50b-2b5f-40d9-bba5-fc3c692f0754" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_5a7c5f2a-bef5-4462-8f50-fae00cfaba68" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_50983439-453c-4ec8-bfb9-eba68203d2f6" xlink:to="loc_us-gaap_DebtInstrumentTable_5a7c5f2a-bef5-4462-8f50-fae00cfaba68" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_3dcb7c83-5556-4e31-a355-cabfed34ca31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5a7c5f2a-bef5-4462-8f50-fae00cfaba68" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_3dcb7c83-5556-4e31-a355-cabfed34ca31" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_3dcb7c83-5556-4e31-a355-cabfed34ca31_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3dcb7c83-5556-4e31-a355-cabfed34ca31" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_3dcb7c83-5556-4e31-a355-cabfed34ca31_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a97640a6-86b3-4152-b802-ea2a1a9ec022" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_3dcb7c83-5556-4e31-a355-cabfed34ca31" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a97640a6-86b3-4152-b802-ea2a1a9ec022" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_8a04b95b-6314-4203-b385-8cb6c614bd65" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a97640a6-86b3-4152-b802-ea2a1a9ec022" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_8a04b95b-6314-4203-b385-8cb6c614bd65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_163234fc-9a4b-4c6c-9178-822807db160c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5a7c5f2a-bef5-4462-8f50-fae00cfaba68" xlink:to="loc_us-gaap_DebtInstrumentAxis_163234fc-9a4b-4c6c-9178-822807db160c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_163234fc-9a4b-4c6c-9178-822807db160c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_163234fc-9a4b-4c6c-9178-822807db160c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_163234fc-9a4b-4c6c-9178-822807db160c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_163234fc-9a4b-4c6c-9178-822807db160c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_32636d43-b399-4795-9a4e-742bbce89fd2" xlink:href="hsy-20210404.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Debentures8.8Due2021Member_32636d43-b399-4795-9a4e-742bbce89fd2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_fb06a1c0-5afd-4d51-8b0e-12b782ce89cd" xlink:href="hsy-20210404.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes3.10Due2021Domain_fb06a1c0-5afd-4d51-8b0e-12b782ce89cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_edc7558b-cd04-4f99-af64-00c1ac6c6063" xlink:href="hsy-20210404.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes2.625Due2023Member_edc7558b-cd04-4f99-af64-00c1ac6c6063" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_e33a182f-f1d0-472e-a3b5-5ef1c620090f" xlink:href="hsy-20210404.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes3.375Due2023Domain_e33a182f-f1d0-472e-a3b5-5ef1c620090f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_f2e365cd-e597-4024-ab57-66d7cce8bd36" xlink:href="hsy-20210404.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes2.050Due2024Member_f2e365cd-e597-4024-ab57-66d7cce8bd36" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_9a846ad5-f931-416f-9208-c274a16972f6" xlink:href="hsy-20210404.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes0900NotesDue2025Member_9a846ad5-f931-416f-9208-c274a16972f6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_79620487-2da9-475e-a50c-48a5b6f72f7d" xlink:href="hsy-20210404.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes3.20Due2025Member_79620487-2da9-475e-a50c-48a5b6f72f7d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_1f9689dd-bb1b-42ab-8e50-74d66ba87170" xlink:href="hsy-20210404.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes2.30Due2026Member_1f9689dd-bb1b-42ab-8e50-74d66ba87170" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_5860c8d9-6a05-4de8-89d9-0f32ccd548bd" xlink:href="hsy-20210404.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Debentures7.2Due2027Member_5860c8d9-6a05-4de8-89d9-0f32ccd548bd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_11fe5b1e-484e-4df4-bc90-9b6a6dcf551c" xlink:href="hsy-20210404.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes2.450Due2029Member_11fe5b1e-484e-4df4-bc90-9b6a6dcf551c" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_fece4843-3539-42d0-8839-65f0eb374efb" xlink:href="hsy-20210404.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes1700Due2030Member_fece4843-3539-42d0-8839-65f0eb374efb" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_4e2745ed-2bd4-4b99-9c6a-a70688de7fc0" xlink:href="hsy-20210404.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes3.375Due2046Member_4e2745ed-2bd4-4b99-9c6a-a70688de7fc0" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_c78a638d-9f5c-4182-b1f5-76528202333b" xlink:href="hsy-20210404.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes3.125Due2049Member_c78a638d-9f5c-4182-b1f5-76528202333b" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_f3452886-b803-4654-831a-8d012928f9ac" xlink:href="hsy-20210404.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_fa9a45bf-ca04-4ed1-9ae6-b83903ea7332" xlink:to="loc_hsy_Notes2650NotesDue2050Member_f3452886-b803-4654-831a-8d012928f9ac" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="extended" id="i2c95abf2f9504433b55eb32135b8fd20_SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6c015e74-cd14-47ba-901e-92d7c666b989" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_87340985-fb29-4db6-bef4-cdefcd7178fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6c015e74-cd14-47ba-901e-92d7c666b989" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_87340985-fb29-4db6-bef4-cdefcd7178fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_a0a4ea5a-5bf5-45b6-8da8-f4c1a0f4153d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6c015e74-cd14-47ba-901e-92d7c666b989" xlink:to="loc_us-gaap_DebtInstrumentTable_a0a4ea5a-5bf5-45b6-8da8-f4c1a0f4153d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_c345f886-b17c-45ed-9f1b-efad249c687a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a0a4ea5a-5bf5-45b6-8da8-f4c1a0f4153d" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_c345f886-b17c-45ed-9f1b-efad249c687a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c345f886-b17c-45ed-9f1b-efad249c687a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c345f886-b17c-45ed-9f1b-efad249c687a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c345f886-b17c-45ed-9f1b-efad249c687a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_22d5d139-d073-4f75-a82f-bfe03b0cfb62" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c345f886-b17c-45ed-9f1b-efad249c687a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_22d5d139-d073-4f75-a82f-bfe03b0cfb62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_23e3a369-c55f-46ac-b1da-c9a0e24f3632" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DomesticCorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_22d5d139-d073-4f75-a82f-bfe03b0cfb62" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_23e3a369-c55f-46ac-b1da-c9a0e24f3632" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_d344c0c9-aa72-4520-874a-b2e7d43b12ca" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_a0a4ea5a-5bf5-45b6-8da8-f4c1a0f4153d" xlink:to="loc_us-gaap_DebtInstrumentAxis_d344c0c9-aa72-4520-874a-b2e7d43b12ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d344c0c9-aa72-4520-874a-b2e7d43b12ca_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_d344c0c9-aa72-4520-874a-b2e7d43b12ca" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d344c0c9-aa72-4520-874a-b2e7d43b12ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_d344c0c9-aa72-4520-874a-b2e7d43b12ca" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_9c45cd24-e73f-4bc6-885d-b47857506e5f" xlink:href="hsy-20210404.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Debentures8.8Due2021Member_9c45cd24-e73f-4bc6-885d-b47857506e5f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_16f65103-de70-45f3-9962-f1c88d8b11f9" xlink:href="hsy-20210404.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes3.10Due2021Domain_16f65103-de70-45f3-9962-f1c88d8b11f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_cf6d70fa-b085-4853-8350-41d9067718b7" xlink:href="hsy-20210404.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes2.625Due2023Member_cf6d70fa-b085-4853-8350-41d9067718b7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_07320085-27d2-4135-8e01-af6daa13631b" xlink:href="hsy-20210404.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes3.375Due2023Domain_07320085-27d2-4135-8e01-af6daa13631b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_c508f17d-cabc-4b7e-8ef0-40767a02f3c1" xlink:href="hsy-20210404.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes2.050Due2024Member_c508f17d-cabc-4b7e-8ef0-40767a02f3c1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_7a1bad5d-f0ba-4376-87d8-429101abba41" xlink:href="hsy-20210404.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes0900NotesDue2025Member_7a1bad5d-f0ba-4376-87d8-429101abba41" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_27c2e272-a881-4531-8377-685cc9f5b1b0" xlink:href="hsy-20210404.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes3.20Due2025Member_27c2e272-a881-4531-8377-685cc9f5b1b0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_31c5758b-3846-47ca-ad54-7c67095f4cee" xlink:href="hsy-20210404.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes2.30Due2026Member_31c5758b-3846-47ca-ad54-7c67095f4cee" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_1bd8ffbd-b67b-4f4a-bd40-56160d142a04" xlink:href="hsy-20210404.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Debentures7.2Due2027Member_1bd8ffbd-b67b-4f4a-bd40-56160d142a04" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_75aeaf13-78f3-4aea-abaf-2d009f1dbfbb" xlink:href="hsy-20210404.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes2.450Due2029Member_75aeaf13-78f3-4aea-abaf-2d009f1dbfbb" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_1bceb3d7-e8ac-4540-b9ec-165a50f2724c" xlink:href="hsy-20210404.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes1700Due2030Member_1bceb3d7-e8ac-4540-b9ec-165a50f2724c" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_f630baa1-79ea-41ae-b4f4-a5bf0ac9ce44" xlink:href="hsy-20210404.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes3.375Due2046Member_f630baa1-79ea-41ae-b4f4-a5bf0ac9ce44" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_82995971-5229-4122-a0dc-3fca981e36b0" xlink:href="hsy-20210404.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes3.125Due2049Member_82995971-5229-4122-a0dc-3fca981e36b0" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_8a939d90-19c1-464e-9d28-36a24a6e8f95" xlink:href="hsy-20210404.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_03a4f6f3-cd84-4461-9a6d-34dc36ad22e0" xlink:to="loc_hsy_Notes2650NotesDue2050Member_8a939d90-19c1-464e-9d28-36a24a6e8f95" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="extended" id="ie550973757f741a98e7a3125921c42be_SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="simple" xlink:href="hsy-20210404.xsd#DERIVATIVEINSTRUMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="extended" id="ie36f76713ffc47ccaa02e06497ec4f95_DERIVATIVEINSTRUMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#DERIVATIVEINSTRUMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="extended" id="i10817bcac3944cc6ad45b64af4b2e84e_DERIVATIVEINSTRUMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#DERIVATIVEINSTRUMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="extended" id="i4c2d5940b9194ad0ae6207d39d8b4cfd_DERIVATIVEINSTRUMENTSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTermOfContract_6eff9465-4fb4-48f2-800d-b689f5ed7e36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeTermOfContract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_DerivativeTermOfContract_6eff9465-4fb4-48f2-800d-b689f5ed7e36" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_2878dbe9-d5a8-429d-9dff-e46c2c02f914" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_DerivativeNotionalAmount_2878dbe9-d5a8-429d-9dff-e46c2c02f914" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_b58a9e34-f470-403d-8b04-fe3ccf36e3bb" xlink:href="hsy-20210404.xsd#hsy_MinimumLengthofTimeHedgedinCashFlowHedge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_b58a9e34-f470-403d-8b04-fe3ccf36e3bb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_35f46203-17c4-4f3a-ac12-b9547fdaf3cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_35f46203-17c4-4f3a-ac12-b9547fdaf3cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_c55a36d1-e463-40c6-9141-22410dd5e801" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_c55a36d1-e463-40c6-9141-22410dd5e801" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_80927fc1-e5ce-4d86-867c-e79a4329ed1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_80927fc1-e5ce-4d86-867c-e79a4329ed1f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_95ddd8ce-e009-4981-bafa-04bfc7da0e0f" xlink:to="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_ae5646b1-60c5-4feb-b687-23b58f496602" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_ae5646b1-60c5-4feb-b687-23b58f496602" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ae5646b1-60c5-4feb-b687-23b58f496602_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_ae5646b1-60c5-4feb-b687-23b58f496602" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ae5646b1-60c5-4feb-b687-23b58f496602_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_ae5646b1-60c5-4feb-b687-23b58f496602" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_ff88072a-4839-42fe-9ac3-be8630086e09" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:to="loc_us-gaap_CommodityContractMember_ff88072a-4839-42fe-9ac3-be8630086e09" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_d8bc0a05-8df9-46f3-8f36-273093e4a130" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:to="loc_us-gaap_ForeignExchangeContractMember_d8bc0a05-8df9-46f3-8f36-273093e4a130" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_a94f10b1-126c-4dca-86af-e4347f0f6b9b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:to="loc_us-gaap_InterestRateContractMember_a94f10b1-126c-4dca-86af-e4347f0f6b9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_986e7e90-67de-4d5d-af5d-f208b1b07ddf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:to="loc_us-gaap_EquitySwapMember_986e7e90-67de-4d5d-af5d-f208b1b07ddf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_ae49f32b-9b98-4e9b-bc3c-f7769a8554ac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9e43b32-6d92-4c56-95d4-1374ec3304b0" xlink:to="loc_us-gaap_InterestRateSwapMember_ae49f32b-9b98-4e9b-bc3c-f7769a8554ac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_dcc847bf-1aed-4ada-8df5-b871197e1f4a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:to="loc_us-gaap_HedgingDesignationAxis_dcc847bf-1aed-4ada-8df5-b871197e1f4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_dcc847bf-1aed-4ada-8df5-b871197e1f4a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_dcc847bf-1aed-4ada-8df5-b871197e1f4a" xlink:to="loc_us-gaap_HedgingDesignationDomain_dcc847bf-1aed-4ada-8df5-b871197e1f4a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ff233fbb-8e5d-485c-92d3-252b8ded33e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_dcc847bf-1aed-4ada-8df5-b871197e1f4a" xlink:to="loc_us-gaap_HedgingDesignationDomain_ff233fbb-8e5d-485c-92d3-252b8ded33e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_22476bb9-9f44-448d-8351-45100c8287c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ff233fbb-8e5d-485c-92d3-252b8ded33e9" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_22476bb9-9f44-448d-8351-45100c8287c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_1e7b7098-95b4-4971-a9af-fb44511339dd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_ff233fbb-8e5d-485c-92d3-252b8ded33e9" xlink:to="loc_us-gaap_NondesignatedMember_1e7b7098-95b4-4971-a9af-fb44511339dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1b0d3b0f-e4b0-4710-949d-c206c8f14da6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1b0d3b0f-e4b0-4710-949d-c206c8f14da6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_1b0d3b0f-e4b0-4710-949d-c206c8f14da6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1b0d3b0f-e4b0-4710-949d-c206c8f14da6" xlink:to="loc_us-gaap_HedgingRelationshipDomain_1b0d3b0f-e4b0-4710-949d-c206c8f14da6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_13a7f2f0-19ea-4d5e-b127-7675c2a3974f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1b0d3b0f-e4b0-4710-949d-c206c8f14da6" xlink:to="loc_us-gaap_HedgingRelationshipDomain_13a7f2f0-19ea-4d5e-b127-7675c2a3974f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_44439e9d-e5e9-4f56-a461-28e3e7632670" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_13a7f2f0-19ea-4d5e-b127-7675c2a3974f" xlink:to="loc_us-gaap_CashFlowHedgingMember_44439e9d-e5e9-4f56-a461-28e3e7632670" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_d162bfd6-44a8-45f4-9efc-c01771c719af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_13a7f2f0-19ea-4d5e-b127-7675c2a3974f" xlink:to="loc_us-gaap_FairValueHedgingMember_d162bfd6-44a8-45f4-9efc-c01771c719af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:to="loc_srt_RangeAxis_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7" xlink:to="loc_srt_RangeMember_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_62b37629-81e4-4741-9f91-c7f5e403fa79" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_3a4e2da8-fd5a-4fc7-b54e-cbacaec24ea7" xlink:to="loc_srt_RangeMember_62b37629-81e4-4741-9f91-c7f5e403fa79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_6983c059-9a84-4e17-9ee0-cb617747f08f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_62b37629-81e4-4741-9f91-c7f5e403fa79" xlink:to="loc_srt_MinimumMember_6983c059-9a84-4e17-9ee0-cb617747f08f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_a2206e4a-a379-486a-b761-1215994b4293" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_62b37629-81e4-4741-9f91-c7f5e403fa79" xlink:to="loc_srt_MaximumMember_a2206e4a-a379-486a-b761-1215994b4293" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_02e90d44-f7a5-4948-9eb8-6be7ca98186a" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_2dfae129-9add-4ceb-9979-2d3a6fe23656" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_cd6662d7-ad50-4a72-8cf0-aa90c4213c4b" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_2dfae129-9add-4ceb-9979-2d3a6fe23656" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_3fda2658-c6b0-46ce-8d3e-81c35010a5de" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_2dfae129-9add-4ceb-9979-2d3a6fe23656" xlink:to="loc_us-gaap_InterestExpenseMember_3fda2658-c6b0-46ce-8d3e-81c35010a5de" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="extended" id="ic6755f4140fb4eba9629401d9431554d_DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_dd21371e-4238-462d-b123-ee384f3af992" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:to="loc_us-gaap_DerivativeAssets_dd21371e-4238-462d-b123-ee384f3af992" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_73fb0719-462d-492c-90d5-0cda24368983" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:to="loc_us-gaap_DerivativeLiabilities_73fb0719-462d-492c-90d5-0cda24368983" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_189705d4-59d0-4f21-8c31-9ed1be069d4b" xlink:href="hsy-20210404.xsd#hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:to="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_189705d4-59d0-4f21-8c31-9ed1be069d4b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_725a630b-319c-4d95-bbd1-0739bb6ba95e" xlink:href="hsy-20210404.xsd#hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:to="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_725a630b-319c-4d95-bbd1-0739bb6ba95e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_2944a9bb-0d72-4b3b-84a3-b8d699a43026" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_a422866a-3952-4d65-8953-2544e2538791" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_2944a9bb-0d72-4b3b-84a3-b8d699a43026" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_c0525119-776f-4634-8a08-80ce4ffff41a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_2944a9bb-0d72-4b3b-84a3-b8d699a43026" xlink:to="loc_us-gaap_HedgingDesignationAxis_c0525119-776f-4634-8a08-80ce4ffff41a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c0525119-776f-4634-8a08-80ce4ffff41a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_c0525119-776f-4634-8a08-80ce4ffff41a" xlink:to="loc_us-gaap_HedgingDesignationDomain_c0525119-776f-4634-8a08-80ce4ffff41a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_b51f52ca-9b3a-4ff8-b2f1-f4813e4fe42e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_c0525119-776f-4634-8a08-80ce4ffff41a" xlink:to="loc_us-gaap_HedgingDesignationDomain_b51f52ca-9b3a-4ff8-b2f1-f4813e4fe42e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_7f2f4528-f790-46ff-818c-8cd5685a2d65" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_b51f52ca-9b3a-4ff8-b2f1-f4813e4fe42e" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_7f2f4528-f790-46ff-818c-8cd5685a2d65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_2fc7ce2c-424a-4af7-9a0d-6bfcb544a786" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_b51f52ca-9b3a-4ff8-b2f1-f4813e4fe42e" xlink:to="loc_us-gaap_NondesignatedMember_2fc7ce2c-424a-4af7-9a0d-6bfcb544a786" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d3dd0a39-ecb4-49a7-b227-6b43720faf49" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_2944a9bb-0d72-4b3b-84a3-b8d699a43026" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d3dd0a39-ecb4-49a7-b227-6b43720faf49" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_d3dd0a39-ecb4-49a7-b227-6b43720faf49_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d3dd0a39-ecb4-49a7-b227-6b43720faf49" xlink:to="loc_us-gaap_HedgingRelationshipDomain_d3dd0a39-ecb4-49a7-b227-6b43720faf49_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_aef4a250-5e88-4a1f-9b3b-2c63dabf16d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d3dd0a39-ecb4-49a7-b227-6b43720faf49" xlink:to="loc_us-gaap_HedgingRelationshipDomain_aef4a250-5e88-4a1f-9b3b-2c63dabf16d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_83f55c22-d91f-4d37-8125-68913418a1c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_aef4a250-5e88-4a1f-9b3b-2c63dabf16d9" xlink:to="loc_us-gaap_CashFlowHedgingMember_83f55c22-d91f-4d37-8125-68913418a1c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_bb74f37e-7603-4177-87ee-38b726884b29" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_2944a9bb-0d72-4b3b-84a3-b8d699a43026" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_bb74f37e-7603-4177-87ee-38b726884b29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_bb74f37e-7603-4177-87ee-38b726884b29_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_bb74f37e-7603-4177-87ee-38b726884b29" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_bb74f37e-7603-4177-87ee-38b726884b29_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d2e46b94-8953-42f0-91f0-286fb5941ff2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_bb74f37e-7603-4177-87ee-38b726884b29" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d2e46b94-8953-42f0-91f0-286fb5941ff2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_1a8b8c1b-e269-43cd-b203-b3f46251a15f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d2e46b94-8953-42f0-91f0-286fb5941ff2" xlink:to="loc_us-gaap_CommodityContractMember_1a8b8c1b-e269-43cd-b203-b3f46251a15f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_654361c6-06d3-4b53-9081-183f3d4ed268" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d2e46b94-8953-42f0-91f0-286fb5941ff2" xlink:to="loc_us-gaap_ForeignExchangeContractMember_654361c6-06d3-4b53-9081-183f3d4ed268" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_c3ed5e08-c481-4fcd-bb8e-3c1013ba4e42" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d2e46b94-8953-42f0-91f0-286fb5941ff2" xlink:to="loc_us-gaap_EquitySwapMember_c3ed5e08-c481-4fcd-bb8e-3c1013ba4e42" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="extended" id="ib424742f5b5b4f8fa20bd7044e9f1a99_DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_43b31263-cfbd-402d-893c-d5b9a3570c20" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_1e0c60bd-3239-4156-8c71-2a1c9baa59b3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_43b31263-cfbd-402d-893c-d5b9a3570c20" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_1e0c60bd-3239-4156-8c71-2a1c9baa59b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_db6722c2-af9c-4eff-be0c-3d37f9411055" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_43b31263-cfbd-402d-893c-d5b9a3570c20" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_db6722c2-af9c-4eff-be0c-3d37f9411055" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_aaf00ed3-cc32-4e70-82e4-145b06034bd9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_43b31263-cfbd-402d-893c-d5b9a3570c20" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_aaf00ed3-cc32-4e70-82e4-145b06034bd9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_3c3ccd68-7c6d-4ed7-88d0-44f214eafa15" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_43b31263-cfbd-402d-893c-d5b9a3570c20" xlink:to="loc_us-gaap_DerivativeTable_3c3ccd68-7c6d-4ed7-88d0-44f214eafa15" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_5e392b81-96a1-43b2-94dd-649817bb6111" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_3c3ccd68-7c6d-4ed7-88d0-44f214eafa15" xlink:to="loc_us-gaap_HedgingDesignationAxis_5e392b81-96a1-43b2-94dd-649817bb6111" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_5e392b81-96a1-43b2-94dd-649817bb6111_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_5e392b81-96a1-43b2-94dd-649817bb6111" xlink:to="loc_us-gaap_HedgingDesignationDomain_5e392b81-96a1-43b2-94dd-649817bb6111_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_4702a2ed-9e12-4173-8ec9-55dee514604e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_5e392b81-96a1-43b2-94dd-649817bb6111" xlink:to="loc_us-gaap_HedgingDesignationDomain_4702a2ed-9e12-4173-8ec9-55dee514604e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_818c61e8-4747-47da-a0a2-d6f0119de827" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_4702a2ed-9e12-4173-8ec9-55dee514604e" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_818c61e8-4747-47da-a0a2-d6f0119de827" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d872a009-c83c-4ab1-b51e-77a494c166a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_3c3ccd68-7c6d-4ed7-88d0-44f214eafa15" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d872a009-c83c-4ab1-b51e-77a494c166a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_d872a009-c83c-4ab1-b51e-77a494c166a3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d872a009-c83c-4ab1-b51e-77a494c166a3" xlink:to="loc_us-gaap_HedgingRelationshipDomain_d872a009-c83c-4ab1-b51e-77a494c166a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_ccec5e3e-e459-450f-a9b8-5e9b6a19c17e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_d872a009-c83c-4ab1-b51e-77a494c166a3" xlink:to="loc_us-gaap_HedgingRelationshipDomain_ccec5e3e-e459-450f-a9b8-5e9b6a19c17e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_abe05bb3-ef07-4c03-bb1e-5eb66ecaf011" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_ccec5e3e-e459-450f-a9b8-5e9b6a19c17e" xlink:to="loc_us-gaap_CashFlowHedgingMember_abe05bb3-ef07-4c03-bb1e-5eb66ecaf011" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_e3d50591-d4b4-426d-907f-3b78500f2e9c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_3c3ccd68-7c6d-4ed7-88d0-44f214eafa15" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_e3d50591-d4b4-426d-907f-3b78500f2e9c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_e3d50591-d4b4-426d-907f-3b78500f2e9c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e3d50591-d4b4-426d-907f-3b78500f2e9c" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_e3d50591-d4b4-426d-907f-3b78500f2e9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_e3d50591-d4b4-426d-907f-3b78500f2e9c" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_8353c023-d1d3-43a4-8d42-ab9e5d2d678f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:to="loc_us-gaap_CommodityContractMember_8353c023-d1d3-43a4-8d42-ab9e5d2d678f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_ebf0d7e0-e340-4b51-8ad3-59c96576ed26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:to="loc_us-gaap_ForeignExchangeContractMember_ebf0d7e0-e340-4b51-8ad3-59c96576ed26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_504c8e46-3b49-493c-af07-f61ceaec329e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:to="loc_us-gaap_InterestRateContractMember_504c8e46-3b49-493c-af07-f61ceaec329e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_883ba6bb-e6c7-448e-b3ab-56197a3825f4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_2abe9582-82a6-4da1-ba93-2b72e3a4fdc3" xlink:to="loc_us-gaap_EquitySwapMember_883ba6bb-e6c7-448e-b3ab-56197a3825f4" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="extended" id="i54e5410d5b73433da46d3a57b2151a18_FAIRVALUEMEASUREMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="extended" id="i7f3b629cc296489a8aa8a7d3b5458549_FAIRVALUEMEASUREMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="extended" id="i0e6f0ce3cd6d42b6acb7a8ca5bd044b8_FAIRVALUEMEASUREMENTSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ad822c96-29e7-4679-9646-f42a1a7e4e67" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetAssetLiability_30b2d097-d377-41f9-9c77-0a2bf0a533c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueNetAssetLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ad822c96-29e7-4679-9646-f42a1a7e4e67" xlink:to="loc_us-gaap_FairValueNetAssetLiability_30b2d097-d377-41f9-9c77-0a2bf0a533c1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3d77ba91-e5e3-4268-92f5-d3f7aaad138f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ad822c96-29e7-4679-9646-f42a1a7e4e67" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3d77ba91-e5e3-4268-92f5-d3f7aaad138f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_273ef9d7-aa13-4337-a002-b0bf610804cb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_3d77ba91-e5e3-4268-92f5-d3f7aaad138f" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_273ef9d7-aa13-4337-a002-b0bf610804cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_273ef9d7-aa13-4337-a002-b0bf610804cb_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_273ef9d7-aa13-4337-a002-b0bf610804cb" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_273ef9d7-aa13-4337-a002-b0bf610804cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a5b80228-5336-4999-8039-7570a4c21859" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_273ef9d7-aa13-4337-a002-b0bf610804cb" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a5b80228-5336-4999-8039-7570a4c21859" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_143e446c-95d5-4541-bafe-eaebc202ae96" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a5b80228-5336-4999-8039-7570a4c21859" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_143e446c-95d5-4541-bafe-eaebc202ae96" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="extended" id="i62087df161fd49d984655825cebb9ca8_FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4e62f6b0-3d3d-4d9c-891e-369a88c07d44" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_985c120a-4c0a-408e-b0be-c4922f5a9c2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4e62f6b0-3d3d-4d9c-891e-369a88c07d44" xlink:to="loc_us-gaap_DerivativeAssets_985c120a-4c0a-408e-b0be-c4922f5a9c2e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_009efcfe-5aa1-440a-b3b4-20a172757331" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4e62f6b0-3d3d-4d9c-891e-369a88c07d44" xlink:to="loc_us-gaap_DerivativeLiabilities_009efcfe-5aa1-440a-b3b4-20a172757331" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_1838b8e4-7bf5-42ac-9c0b-abf8db4768ae" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_4e62f6b0-3d3d-4d9c-891e-369a88c07d44" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_1838b8e4-7bf5-42ac-9c0b-abf8db4768ae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_1838b8e4-7bf5-42ac-9c0b-abf8db4768ae" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_eae6beea-4715-45c8-98c4-44e4381edfcc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_f1b1c5e0-f03a-4ceb-bc56-1ca46802e5f1" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_eae6beea-4715-45c8-98c4-44e4381edfcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_8519880a-6562-4fce-89a1-4a93d8302e1b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_eae6beea-4715-45c8-98c4-44e4381edfcc" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_8519880a-6562-4fce-89a1-4a93d8302e1b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_3d013339-f0c5-47df-a836-c02bcde0a7ce" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_1838b8e4-7bf5-42ac-9c0b-abf8db4768ae" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_3d013339-f0c5-47df-a836-c02bcde0a7ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3d013339-f0c5-47df-a836-c02bcde0a7ce_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3d013339-f0c5-47df-a836-c02bcde0a7ce" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3d013339-f0c5-47df-a836-c02bcde0a7ce_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_086ac64c-87ae-4352-b566-b14da0c7ed3d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3d013339-f0c5-47df-a836-c02bcde0a7ce" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_086ac64c-87ae-4352-b566-b14da0c7ed3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_977f9e6e-7b92-4dd8-ad92-0dfa0f88edd7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_086ac64c-87ae-4352-b566-b14da0c7ed3d" xlink:to="loc_us-gaap_ForeignExchangeContractMember_977f9e6e-7b92-4dd8-ad92-0dfa0f88edd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_be725231-71af-4d31-b452-9ad233a1cd81" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquitySwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_086ac64c-87ae-4352-b566-b14da0c7ed3d" xlink:to="loc_us-gaap_EquitySwapMember_be725231-71af-4d31-b452-9ad233a1cd81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_43cbaa08-4389-44b6-b16c-7f6f8f833443" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_086ac64c-87ae-4352-b566-b14da0c7ed3d" xlink:to="loc_us-gaap_CommodityContractMember_43cbaa08-4389-44b6-b16c-7f6f8f833443" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b50a62e0-7051-4ad3-8445-7fba6f189d68" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_1838b8e4-7bf5-42ac-9c0b-abf8db4768ae" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b50a62e0-7051-4ad3-8445-7fba6f189d68" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b50a62e0-7051-4ad3-8445-7fba6f189d68_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b50a62e0-7051-4ad3-8445-7fba6f189d68" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b50a62e0-7051-4ad3-8445-7fba6f189d68_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_36193b64-75d3-454a-b220-9e054e167f22" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b50a62e0-7051-4ad3-8445-7fba6f189d68" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_36193b64-75d3-454a-b220-9e054e167f22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_972c4ade-a0fc-4de3-9542-4e2822a1208e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_36193b64-75d3-454a-b220-9e054e167f22" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_972c4ade-a0fc-4de3-9542-4e2822a1208e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_3ec9c8ec-cae7-450d-baa1-b1985c16a952" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_36193b64-75d3-454a-b220-9e054e167f22" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_3ec9c8ec-cae7-450d-baa1-b1985c16a952" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_5e752d85-bc31-4d59-b528-37bfc5b9bc6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_36193b64-75d3-454a-b220-9e054e167f22" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_5e752d85-bc31-4d59-b528-37bfc5b9bc6d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="extended" id="ida74dfe7be4548c897ebeddff14b6cd2_FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_47d235fb-c5a1-43cb-b8c9-6fde0732a403" xlink:href="hsy-20210404.xsd#hsy_LongtermDebtCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_47d235fb-c5a1-43cb-b8c9-6fde0732a403" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_6538a1b9-28f9-4310-bd08-d5c250024a23" xlink:href="hsy-20210404.xsd#hsy_LongtermDebtExcludingCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_6538a1b9-28f9-4310-bd08-d5c250024a23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_a31829ed-d574-428f-b81c-975cf06ca1ba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_us-gaap_LongTermDebtFairValue_a31829ed-d574-428f-b81c-975cf06ca1ba" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_59a17645-e278-4bdf-83fc-a0d41af82e2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_us-gaap_LongTermDebtCurrent_59a17645-e278-4bdf-83fc-a0d41af82e2e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_2fda5176-e69b-4d38-8414-4014bdc1635d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_2fda5176-e69b-4d38-8414-4014bdc1635d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_8c17aa27-1774-4d5c-934e-85c855ed9bcf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_us-gaap_LongTermDebt_8c17aa27-1774-4d5c-934e-85c855ed9bcf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4015e0b3-6397-4861-9d36-b175501340ba" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_a4770a2b-dc88-44f1-bcc3-7923306d3393" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4015e0b3-6397-4861-9d36-b175501340ba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8b3a1384-e2f9-4ace-811f-428a1a04595c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_4015e0b3-6397-4861-9d36-b175501340ba" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8b3a1384-e2f9-4ace-811f-428a1a04595c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8b3a1384-e2f9-4ace-811f-428a1a04595c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8b3a1384-e2f9-4ace-811f-428a1a04595c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_8b3a1384-e2f9-4ace-811f-428a1a04595c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a9a56728-feb8-46d9-a392-30727401403b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_8b3a1384-e2f9-4ace-811f-428a1a04595c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a9a56728-feb8-46d9-a392-30727401403b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_a891b0eb-a286-4491-a9bd-e43dca630aa2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a9a56728-feb8-46d9-a392-30727401403b" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_a891b0eb-a286-4491-a9bd-e43dca630aa2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="extended" id="i01f8747e4170401f8b634bb67b1eff23_FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b388f496-d0eb-4a8d-969b-b06b126c4863" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ImpairmentChargeOnReclassifiedAssets_26c4a90f-9964-486a-8262-2d5ca2176df4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ImpairmentChargeOnReclassifiedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b388f496-d0eb-4a8d-969b-b06b126c4863" xlink:to="loc_us-gaap_ImpairmentChargeOnReclassifiedAssets_26c4a90f-9964-486a-8262-2d5ca2176df4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_6bc70bc1-dce6-4fd7-a7dd-6248cdc5638d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b388f496-d0eb-4a8d-969b-b06b126c4863" xlink:to="loc_us-gaap_AssetImpairmentCharges_6bc70bc1-dce6-4fd7-a7dd-6248cdc5638d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0417ce74-be68-4df3-93c0-c2d97c13d038" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_b388f496-d0eb-4a8d-969b-b06b126c4863" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0417ce74-be68-4df3-93c0-c2d97c13d038" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_50aa3671-4379-41ba-8a2e-9333b24d766c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_0417ce74-be68-4df3-93c0-c2d97c13d038" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_50aa3671-4379-41ba-8a2e-9333b24d766c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50aa3671-4379-41ba-8a2e-9333b24d766c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_50aa3671-4379-41ba-8a2e-9333b24d766c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_50aa3671-4379-41ba-8a2e-9333b24d766c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7d7a32d9-b80f-4240-9059-2ffe682bda7b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_50aa3671-4379-41ba-8a2e-9333b24d766c" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7d7a32d9-b80f-4240-9059-2ffe682bda7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMember_da9eb07e-1f3d-4a93-9bc4-e301af25ec03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_7d7a32d9-b80f-4240-9059-2ffe682bda7b" xlink:to="loc_us-gaap_OtherAssetsMember_da9eb07e-1f3d-4a93-9bc4-e301af25ec03" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASES" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASES" xlink:type="extended" id="i50e39b4227eb4459b402f8e676322b2f_LEASES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESTables" xlink:type="extended" id="idb4173c477074dfe8bb2feec7d974923_LEASESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="extended" id="i5c186a47032140f094a7a81733aff2c4_LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="extended" id="i5ee0453e66fc47d2953987b4affdc3f9_LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="i27e45883b0844c32b2f67469a5012f0a_LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_4019695d-7f44-4de5-98a9-6e1769c4072e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_4019695d-7f44-4de5-98a9-6e1769c4072e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_9a998c9d-c4c3-4828-a3db-1751b8ab2b86" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_9a998c9d-c4c3-4828-a3db-1751b8ab2b86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_d5a87cbb-deb5-4038-81e4-5e9aa9260160" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_d5a87cbb-deb5-4038-81e4-5e9aa9260160" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseRightofUseAsset_a10e3d9d-498c-4e51-9ec5-0676cd93b3b8" xlink:href="hsy-20210404.xsd#hsy_LeaseRightofUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_hsy_LeaseRightofUseAsset_a10e3d9d-498c-4e51-9ec5-0676cd93b3b8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_e3bfb0d8-7fd4-492b-bcef-8b70c1af8af4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_e3bfb0d8-7fd4-492b-bcef-8b70c1af8af4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_5c55ee69-df58-40bf-a180-41a445b937a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_5c55ee69-df58-40bf-a180-41a445b937a2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c3ce27da-f200-4888-b8bf-ca7783d54784" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_c3ce27da-f200-4888-b8bf-ca7783d54784" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_7a295903-47eb-4ba2-babb-6070f87f1a54" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_7a295903-47eb-4ba2-babb-6070f87f1a54" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseLiability_b7ed1ef9-c950-4840-a838-d52844cc181e" xlink:href="hsy-20210404.xsd#hsy_LeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_hsy_LeaseLiability_b7ed1ef9-c950-4840-a838-d52844cc181e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_b7de99bd-ded7-4fbf-96b1-3fcd8560ce4d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_2beefa31-5a10-4e68-9626-801698a9c05a" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_b7de99bd-ded7-4fbf-96b1-3fcd8560ce4d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_b7de99bd-ded7-4fbf-96b1-3fcd8560ce4d" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_55d3b64e-a8b8-41da-a9ee-677cb989aaa6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_3d9f3ae3-ccc2-4493-9d00-f21778ace2d1" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_55d3b64e-a8b8-41da-a9ee-677cb989aaa6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PropertyPlantandEquipmentGrossMember_bff1bf0f-391d-4759-9fd6-1ef859eaea39" xlink:href="hsy-20210404.xsd#hsy_PropertyPlantandEquipmentGrossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_55d3b64e-a8b8-41da-a9ee-677cb989aaa6" xlink:to="loc_hsy_PropertyPlantandEquipmentGrossMember_bff1bf0f-391d-4759-9fd6-1ef859eaea39" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_AccumulatedDepreciationMember_710cc452-8f8d-47c9-a65a-eb8a2710137b" xlink:href="hsy-20210404.xsd#hsy_AccumulatedDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_55d3b64e-a8b8-41da-a9ee-677cb989aaa6" xlink:to="loc_hsy_AccumulatedDepreciationMember_710cc452-8f8d-47c9-a65a-eb8a2710137b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentMember_f67b2caf-4ed2-45de-bcec-c1aeac2db655" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_55d3b64e-a8b8-41da-a9ee-677cb989aaa6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentMember_f67b2caf-4ed2-45de-bcec-c1aeac2db655" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="extended" id="i8abfa2b49e9a481f8e309d6d6e21fb8f_LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="ieee293b08ea84fd2b94bd4c3f9e10a36_LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/InvestmentsinUnconsolidatedAffiliates" xlink:type="simple" xlink:href="hsy-20210404.xsd#InvestmentsinUnconsolidatedAffiliates"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/InvestmentsinUnconsolidatedAffiliates" xlink:type="extended" id="icfc900551d0f49058071dad455cc7203_InvestmentsinUnconsolidatedAffiliates"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/InvestmentsinUnconsolidatedAffiliatesDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#InvestmentsinUnconsolidatedAffiliatesDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/InvestmentsinUnconsolidatedAffiliatesDetails" xlink:type="extended" id="i8423fa6972f743d98a65aa87845204e7_InvestmentsinUnconsolidatedAffiliatesDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_a705fee0-53c6-4a73-920a-4542f618b728" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure_e101bc2d-cc8f-4a19-9b58-a33a296d5a90" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a705fee0-53c6-4a73-920a-4542f618b728" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVenturesFairValueDisclosure_e101bc2d-cc8f-4a19-9b58-a33a296d5a90" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_74d224cd-28b9-42a0-980d-ac8348022b03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_a705fee0-53c6-4a73-920a-4542f618b728" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_74d224cd-28b9-42a0-980d-ac8348022b03" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_8577477f-6058-4b08-8fff-330b6d0ddb7c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_74d224cd-28b9-42a0-980d-ac8348022b03" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_8577477f-6058-4b08-8fff-330b6d0ddb7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_8577477f-6058-4b08-8fff-330b6d0ddb7c_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8577477f-6058-4b08-8fff-330b6d0ddb7c" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_8577477f-6058-4b08-8fff-330b6d0ddb7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_6f57ad91-cbbd-4736-b2b2-10444fb5a279" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8577477f-6058-4b08-8fff-330b6d0ddb7c" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_6f57ad91-cbbd-4736-b2b2-10444fb5a279" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_d63d24c3-1887-4360-84f6-54929c1a5b34" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_6f57ad91-cbbd-4736-b2b2-10444fb5a279" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_d63d24c3-1887-4360-84f6-54929c1a5b34" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSREALIGNMENTACTIVITIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="extended" id="id29e1087aa804b7f9bb4841822771c26_BUSINESSREALIGNMENTACTIVITIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="extended" id="ie62fbc85cc50407891dedf708be37809_BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="extended" id="ica67e3af3b144ad4b670ea3b541d1967_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_7c8a3242-8ed1-4a6e-81ec-4a09c64e526c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_030e981b-47d2-4b26-aff6-dc1d0b3b87f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_7c8a3242-8ed1-4a6e-81ec-4a09c64e526c" xlink:to="loc_us-gaap_RestructuringCharges_030e981b-47d2-4b26-aff6-dc1d0b3b87f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_16b2ace6-4897-47b5-a6c7-11887bf335d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_7c8a3242-8ed1-4a6e-81ec-4a09c64e526c" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_16b2ace6-4897-47b5-a6c7-11887bf335d6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_969389b5-9e62-4750-8319-24132e395772" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_16b2ace6-4897-47b5-a6c7-11887bf335d6" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_969389b5-9e62-4750-8319-24132e395772" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_969389b5-9e62-4750-8319-24132e395772_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_969389b5-9e62-4750-8319-24132e395772" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_969389b5-9e62-4750-8319-24132e395772_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_71761357-7800-490a-8193-718e9de1e3dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TypeOfRestructuringDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringCostAndReserveAxis_969389b5-9e62-4750-8319-24132e395772" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_71761357-7800-490a-8193-718e9de1e3dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeSeveranceMember_dd97afac-a759-4c39-a688-a339dcdb9407" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeSeveranceMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_71761357-7800-490a-8193-718e9de1e3dc" xlink:to="loc_us-gaap_EmployeeSeveranceMember_dd97afac-a759-4c39-a688-a339dcdb9407" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringMember_33e867b6-2f7b-47b3-a1c2-60549a515526" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherRestructuringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TypeOfRestructuringDomain_71761357-7800-490a-8193-718e9de1e3dc" xlink:to="loc_us-gaap_OtherRestructuringMember_33e867b6-2f7b-47b3-a1c2-60549a515526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_c029b068-d0a8-44db-ab1f-ec1fcca2388a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_16b2ace6-4897-47b5-a6c7-11887bf335d6" xlink:to="loc_us-gaap_RestructuringPlanAxis_c029b068-d0a8-44db-ab1f-ec1fcca2388a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_c029b068-d0a8-44db-ab1f-ec1fcca2388a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_c029b068-d0a8-44db-ab1f-ec1fcca2388a" xlink:to="loc_us-gaap_RestructuringPlanDomain_c029b068-d0a8-44db-ab1f-ec1fcca2388a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_e1cb2e18-78ee-4927-8b41-b0b3e55d9532" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_c029b068-d0a8-44db-ab1f-ec1fcca2388a" xlink:to="loc_us-gaap_RestructuringPlanDomain_e1cb2e18-78ee-4927-8b41-b0b3e55d9532" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalOptimizationProgramMember_ae306a8d-8723-4122-9770-c5707a74a597" xlink:href="hsy-20210404.xsd#hsy_InternationalOptimizationProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_e1cb2e18-78ee-4927-8b41-b0b3e55d9532" xlink:to="loc_hsy_InternationalOptimizationProgramMember_ae306a8d-8723-4122-9770-c5707a74a597" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_4b7dc029-d285-4422-913b-b7a52cb2e328" xlink:href="hsy-20210404.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_e1cb2e18-78ee-4927-8b41-b0b3e55d9532" xlink:to="loc_hsy_MarginforGrowthProgramMember_4b7dc029-d285-4422-913b-b7a52cb2e328" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_ceaa68c8-6c8b-417e-b8c1-51427020be04" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_16b2ace6-4897-47b5-a6c7-11887bf335d6" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_ceaa68c8-6c8b-417e-b8c1-51427020be04" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_ceaa68c8-6c8b-417e-b8c1-51427020be04_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_ceaa68c8-6c8b-417e-b8c1-51427020be04" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_ceaa68c8-6c8b-417e-b8c1-51427020be04_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_9f8ed6ae-2c11-4890-a9fb-a159731d0db3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_ceaa68c8-6c8b-417e-b8c1-51427020be04" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_9f8ed6ae-2c11-4890-a9fb-a159731d0db3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_23645886-284d-40dd-bdaa-4938675dcb2a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9f8ed6ae-2c11-4890-a9fb-a159731d0db3" xlink:to="loc_us-gaap_CostOfSalesMember_23645886-284d-40dd-bdaa-4938675dcb2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_97a3f4c6-1ba2-4c47-bca0-861350364c39" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpensesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9f8ed6ae-2c11-4890-a9fb-a159731d0db3" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_97a3f4c6-1ba2-4c47-bca0-861350364c39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_c2312bf0-465c-45fe-a2b9-e23abfa773a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9f8ed6ae-2c11-4890-a9fb-a159731d0db3" xlink:to="loc_us-gaap_RestructuringChargesMember_c2312bf0-465c-45fe-a2b9-e23abfa773a3" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="extended" id="i3d4b7dbac63544cdabff158c7ce5dfe9_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="extended" id="i3ba2cc8d2d2d4adda0c8b8d92b6d3f7f_BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCostAndReserveLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_4dc520f3-248c-449a-917a-3356d4afbc9e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringAndRelatedCostExpectedCost1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_us-gaap_RestructuringAndRelatedCostExpectedCost1_4dc520f3-248c-449a-917a-3356d4afbc9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringandRelatedCostExpectedCostCashPortion_5171959d-2243-4b02-8f11-1c6173e0c16e" xlink:href="hsy-20210404.xsd#hsy_RestructuringandRelatedCostExpectedCostCashPortion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_hsy_RestructuringandRelatedCostExpectedCostCashPortion_5171959d-2243-4b02-8f11-1c6173e0c16e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_42eba59a-67aa-4322-8885-8625888d4186" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_us-gaap_RestructuringCharges_42eba59a-67aa-4322-8885-8625888d4186" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_35f7b877-3d61-4b3e-9eed-b8ed8c15f60c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_35f7b877-3d61-4b3e-9eed-b8ed8c15f60c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_9535d160-a1ff-41b4-b7fd-19d27cd39794" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringAndRelatedCostCostIncurredToDate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_us-gaap_RestructuringAndRelatedCostCostIncurredToDate1_9535d160-a1ff-41b4-b7fd-19d27cd39794" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRestructuringAndRelatedCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RestructuringCostAndReserveLineItems_fe35a9d0-04ca-4a4a-9a03-4dfcf0012c47" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_bf18337f-d2b2-4184-9958-e44152ed5e2a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_bf18337f-d2b2-4184-9958-e44152ed5e2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_bf18337f-d2b2-4184-9958-e44152ed5e2a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_bf18337f-d2b2-4184-9958-e44152ed5e2a" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_bf18337f-d2b2-4184-9958-e44152ed5e2a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d9f3da10-512b-4276-bd4e-7e0b6c60c361" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_bf18337f-d2b2-4184-9958-e44152ed5e2a" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d9f3da10-512b-4276-bd4e-7e0b6c60c361" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_b0b57264-a25d-403f-9b4b-f19e13474dd1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d9f3da10-512b-4276-bd4e-7e0b6c60c361" xlink:to="loc_us-gaap_RestructuringChargesMember_b0b57264-a25d-403f-9b4b-f19e13474dd1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_f49f86f1-fcb7-480a-9063-d149d7eedaa7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_f49f86f1-fcb7-480a-9063-d149d7eedaa7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_f49f86f1-fcb7-480a-9063-d149d7eedaa7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_f49f86f1-fcb7-480a-9063-d149d7eedaa7" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_f49f86f1-fcb7-480a-9063-d149d7eedaa7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_8c73d816-e5d4-4325-b181-cbc1b2d0468a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_f49f86f1-fcb7-480a-9063-d149d7eedaa7" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_8c73d816-e5d4-4325-b181-cbc1b2d0468a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_682c3ab5-507b-43a0-8dfd-cc679f92d0f8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_8c73d816-e5d4-4325-b181-cbc1b2d0468a" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_682c3ab5-507b-43a0-8dfd-cc679f92d0f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_16496035-9679-4acb-b95b-03ecc643c7da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_16496035-9679-4acb-b95b-03ecc643c7da" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_16496035-9679-4acb-b95b-03ecc643c7da_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_16496035-9679-4acb-b95b-03ecc643c7da" xlink:to="loc_us-gaap_SegmentDomain_16496035-9679-4acb-b95b-03ecc643c7da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_7eb18832-4581-4319-b139-a9f5a1c18ce4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_16496035-9679-4acb-b95b-03ecc643c7da" xlink:to="loc_us-gaap_SegmentDomain_7eb18832-4581-4319-b139-a9f5a1c18ce4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_1e08295c-0287-40f4-9cec-cde665080b6d" xlink:href="hsy-20210404.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7eb18832-4581-4319-b139-a9f5a1c18ce4" xlink:to="loc_hsy_InternationalandOtherSegmentMember_1e08295c-0287-40f4-9cec-cde665080b6d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_44e4ad7e-77e3-4c8f-a14b-ae9bc791c321" xlink:href="hsy-20210404.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_7eb18832-4581-4319-b139-a9f5a1c18ce4" xlink:to="loc_hsy_NorthAmericaSegmentMember_44e4ad7e-77e3-4c8f-a14b-ae9bc791c321" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_98668aac-9580-44d3-9e82-b0d58a4bd64a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:to="loc_us-gaap_RestructuringPlanAxis_98668aac-9580-44d3-9e82-b0d58a4bd64a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_98668aac-9580-44d3-9e82-b0d58a4bd64a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RestructuringPlanAxis_98668aac-9580-44d3-9e82-b0d58a4bd64a" xlink:to="loc_us-gaap_RestructuringPlanDomain_98668aac-9580-44d3-9e82-b0d58a4bd64a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_ffa6f847-bb4d-47fd-9e0e-ddfa5e65d2bb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringPlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RestructuringPlanAxis_98668aac-9580-44d3-9e82-b0d58a4bd64a" xlink:to="loc_us-gaap_RestructuringPlanDomain_ffa6f847-bb4d-47fd-9e0e-ddfa5e65d2bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalOptimizationProgramMember_58eb951a-5482-4849-951e-c43366dc8def" xlink:href="hsy-20210404.xsd#hsy_InternationalOptimizationProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_ffa6f847-bb4d-47fd-9e0e-ddfa5e65d2bb" xlink:to="loc_hsy_InternationalOptimizationProgramMember_58eb951a-5482-4849-951e-c43366dc8def" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_855b6763-d072-4e24-b3ce-ed2cbb916ae3" xlink:href="hsy-20210404.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_ffa6f847-bb4d-47fd-9e0e-ddfa5e65d2bb" xlink:to="loc_hsy_MarginforGrowthProgramMember_855b6763-d072-4e24-b3ce-ed2cbb916ae3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_d078e7f9-2718-4a07-96c2-318035836825" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_8e832eaa-d1bd-4f6e-957e-9acbb7dbbf0c" xlink:to="loc_srt_RangeAxis_d078e7f9-2718-4a07-96c2-318035836825" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_d078e7f9-2718-4a07-96c2-318035836825_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_d078e7f9-2718-4a07-96c2-318035836825" xlink:to="loc_srt_RangeMember_d078e7f9-2718-4a07-96c2-318035836825_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_1633742e-789b-42d4-a6ec-78f41be8aae1" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_d078e7f9-2718-4a07-96c2-318035836825" xlink:to="loc_srt_RangeMember_1633742e-789b-42d4-a6ec-78f41be8aae1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_48293bc3-13a8-4950-b6e4-1a52997b8cef" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1633742e-789b-42d4-a6ec-78f41be8aae1" xlink:to="loc_srt_MinimumMember_48293bc3-13a8-4950-b6e4-1a52997b8cef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_40e5e956-2e46-4133-bcb4-b34e01449839" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_1633742e-789b-42d4-a6ec-78f41be8aae1" xlink:to="loc_srt_MaximumMember_40e5e956-2e46-4133-bcb4-b34e01449839" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXES" xlink:type="simple" xlink:href="hsy-20210404.xsd#INCOMETAXES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXES" xlink:type="extended" id="ice1b01cedcc346a99e784eed31cc4d5e_INCOMETAXES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#INCOMETAXESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="extended" id="ic28273d010214a4cbe09e20f9c1d4845_INCOMETAXESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#INCOMETAXESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="extended" id="i2363e70e9aab463fb652a1cf31274289_INCOMETAXESNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="simple" xlink:href="hsy-20210404.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="extended" id="i9a0882ef2ffa462e86bbd3aa13c21c89_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="extended" id="ia3845d0c17c14a9f8807a4635b2aaacb_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="extended" id="iea4226b5a1fe4360a33bd9ccc5ed3828_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_0d094235-4eff-49f1-8053-63c4525a5e94" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_0d094235-4eff-49f1-8053-63c4525a5e94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_1d5053ac-9380-4e7c-bf22-a810727fbe77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_1d5053ac-9380-4e7c-bf22-a810727fbe77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_be9e399e-7b6a-4bf3-af38-eb24ab6bee0e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_be9e399e-7b6a-4bf3-af38-eb24ab6bee0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_1d9105df-4654-44f5-9857-5ac0121e8d31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_1d9105df-4654-44f5-9857-5ac0121e8d31" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_cd156246-a673-4a1c-b345-72a4e14fff46" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_cd156246-a673-4a1c-b345-72a4e14fff46" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f26ff864-a03a-4472-aa1b-09dc3b86a2f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_f26ff864-a03a-4472-aa1b-09dc3b86a2f6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_257063bb-e2c2-4b07-a2b9-5ccdaa09e267" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_257063bb-e2c2-4b07-a2b9-5ccdaa09e267" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f44c4392-3905-4b37-bbb3-7654762fce70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_0e3b614c-407c-4b81-9c14-9a6d50695102" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f44c4392-3905-4b37-bbb3-7654762fce70" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_557fc47b-3552-4d52-913d-05c2cc0dbcab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_f44c4392-3905-4b37-bbb3-7654762fce70" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_557fc47b-3552-4d52-913d-05c2cc0dbcab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_557fc47b-3552-4d52-913d-05c2cc0dbcab_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_557fc47b-3552-4d52-913d-05c2cc0dbcab" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_557fc47b-3552-4d52-913d-05c2cc0dbcab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_57db9a4d-fb87-4208-a33f-227f7beda09a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_557fc47b-3552-4d52-913d-05c2cc0dbcab" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_57db9a4d-fb87-4208-a33f-227f7beda09a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_b5120009-ecee-4362-98c5-00a47a66bedd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_57db9a4d-fb87-4208-a33f-227f7beda09a" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_b5120009-ecee-4362-98c5-00a47a66bedd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_03794831-02da-4e0a-bd70-9713f6d4aeaf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_57db9a4d-fb87-4208-a33f-227f7beda09a" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_03794831-02da-4e0a-bd70-9713f6d4aeaf" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="extended" id="i5b9a6e3af16c4cd99eab4d49ab085f87_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_06352176-8cea-436f-aca8-4daec2819269" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_2ee44463-bd44-491a-aede-618009ccfed5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_06352176-8cea-436f-aca8-4daec2819269" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_2ee44463-bd44-491a-aede-618009ccfed5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_e8b83a67-d210-48b7-8cd5-a64474cb8b63" xlink:href="hsy-20210404.xsd#hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_06352176-8cea-436f-aca8-4daec2819269" xlink:to="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_e8b83a67-d210-48b7-8cd5-a64474cb8b63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_ace92db5-1572-405c-b5d4-99f4f7096201" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_06352176-8cea-436f-aca8-4daec2819269" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_ace92db5-1572-405c-b5d4-99f4f7096201" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_e7b69f66-efb8-4116-be4b-6baa4940f52d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_06352176-8cea-436f-aca8-4daec2819269" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_e7b69f66-efb8-4116-be4b-6baa4940f52d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_e7b69f66-efb8-4116-be4b-6baa4940f52d" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_d3a8427a-459b-402d-acc9-5b9e46f2a488" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_dcc9ed3c-de5d-4748-bef7-ef03a1ba5493" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_d3a8427a-459b-402d-acc9-5b9e46f2a488" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_c36aa2b9-b04f-474e-880e-55b5e5875e37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_d3a8427a-459b-402d-acc9-5b9e46f2a488" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_c36aa2b9-b04f-474e-880e-55b5e5875e37" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0743722a-a656-4242-9bf4-4ad2e2d26062" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_d3a8427a-459b-402d-acc9-5b9e46f2a488" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_0743722a-a656-4242-9bf4-4ad2e2d26062" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_66bd8363-d7ea-4153-9e6d-174cc9a70de8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_e7b69f66-efb8-4116-be4b-6baa4940f52d" xlink:to="loc_us-gaap_RetirementPlanNameAxis_66bd8363-d7ea-4153-9e6d-174cc9a70de8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_66bd8363-d7ea-4153-9e6d-174cc9a70de8_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanNameAxis_66bd8363-d7ea-4153-9e6d-174cc9a70de8" xlink:to="loc_us-gaap_RetirementPlanNameDomain_66bd8363-d7ea-4153-9e6d-174cc9a70de8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_b5e3ddc8-42a1-4115-ae95-dfa9fcdeee83" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RetirementPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanNameAxis_66bd8363-d7ea-4153-9e6d-174cc9a70de8" xlink:to="loc_us-gaap_RetirementPlanNameDomain_b5e3ddc8-42a1-4115-ae95-dfa9fcdeee83" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="extended" id="i666ff500a61a4a04a3e0f6ad964b2031_STOCKCOMPENSATIONPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="extended" id="iaca6d129537f405183d3227f3b3fb189_STOCKCOMPENSATIONPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="extended" id="iba7f6d9e62534d3bb420e20c88bc81f7_STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="extended" id="i49fdc0e3874c4ea59d8b5bf42a6b3761_STOCKCOMPENSATIONPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6416d143-47f5-4a30-a19a-1540bfe8d183" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_6416d143-47f5-4a30-a19a-1540bfe8d183" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_2b03424f-553e-480f-9533-9345a3fb1f33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_2b03424f-553e-480f-9533-9345a3fb1f33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9b3e2192-39ec-4e89-b7fa-9a1145706e09" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_9b3e2192-39ec-4e89-b7fa-9a1145706e09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1c6bd497-a6e9-465c-82d6-863cca9fde0b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_1c6bd497-a6e9-465c-82d6-863cca9fde0b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_998482ec-7098-4978-bdc7-88d03eaf6570" xlink:href="hsy-20210404.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_998482ec-7098-4978-bdc7-88d03eaf6570" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_a524d96d-8094-4e13-b5b8-cafa94f3df24" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_a524d96d-8094-4e13-b5b8-cafa94f3df24" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_af54b0d5-e13c-47f6-ab51-24098b4efdaf" xlink:href="hsy-20210404.xsd#hsy_DeferredCompensationArrangementwithIndividualConversionBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_af54b0d5-e13c-47f6-ab51-24098b4efdaf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_cde44e42-8b73-4795-8903-9b7698852fea" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_7492cb1c-fd3b-4039-90de-2de560b9f10e" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_cde44e42-8b73-4795-8903-9b7698852fea" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_e5578b3b-abc4-4bed-a110-826450afe2f7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_cde44e42-8b73-4795-8903-9b7698852fea" xlink:to="loc_us-gaap_AwardTypeAxis_e5578b3b-abc4-4bed-a110-826450afe2f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e5578b3b-abc4-4bed-a110-826450afe2f7_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_e5578b3b-abc4-4bed-a110-826450afe2f7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e5578b3b-abc4-4bed-a110-826450afe2f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a2297ef-20cc-467b-9df1-a04013ed352a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_e5578b3b-abc4-4bed-a110-826450afe2f7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a2297ef-20cc-467b-9df1-a04013ed352a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_d0315892-a8aa-4157-b235-ef496e9ce8f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a2297ef-20cc-467b-9df1-a04013ed352a" xlink:to="loc_us-gaap_EmployeeStockOptionMember_d0315892-a8aa-4157-b235-ef496e9ce8f6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_1b65982b-888e-4de0-92ff-3f2b6910a346" xlink:href="hsy-20210404.xsd#hsy_PerformanceStockUnitsandRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_4a2297ef-20cc-467b-9df1-a04013ed352a" xlink:to="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_1b65982b-888e-4de0-92ff-3f2b6910a346" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="extended" id="i086583ea18eb4381926774d6ebbf3af8_STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="i2a6ed757a6574d10818170f243074973_STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="extended" id="id956b128d43b4b5293bb1b6c628c9c65_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b6230fc1-2aab-4ecb-bf70-f120a6fe61cb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b6230fc1-2aab-4ecb-bf70-f120a6fe61cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_2a0bc43b-83cd-4fa1-91a1-9911716f72e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_2a0bc43b-83cd-4fa1-91a1-9911716f72e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_71bd5077-3bb6-486c-a94b-c53b7ee7c423" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_71bd5077-3bb6-486c-a94b-c53b7ee7c423" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_7c1b29d6-af82-4073-a045-7ded90e3e851" xlink:href="hsy-20210404.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_7c1b29d6-af82-4073-a045-7ded90e3e851" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_ed1956ab-c5b1-4d89-8753-942eb195fca2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_ed1956ab-c5b1-4d89-8753-942eb195fca2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_16791a4e-df3c-4d8c-9bfa-f1dd7bf51253" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_455bddbc-9f8a-4e42-a853-30b698a2fee4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_16791a4e-df3c-4d8c-9bfa-f1dd7bf51253" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_0a6c5762-b174-4d9d-a4a5-55381dd3e731" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b6230fc1-2aab-4ecb-bf70-f120a6fe61cb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_b146dd8d-00d4-4752-9cfb-13c39c204a07" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_b146dd8d-00d4-4752-9cfb-13c39c204a07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_14d481f8-476f-4265-b5ea-c3a996d402d7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_14d481f8-476f-4265-b5ea-c3a996d402d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_d71d6d07-30f4-4d63-b243-c860885e8d14" xlink:href="hsy-20210404.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_d71d6d07-30f4-4d63-b243-c860885e8d14" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_97ee14a0-1bec-4172-a9c2-2e9500c2562f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_97ee14a0-1bec-4172-a9c2-2e9500c2562f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_531e9200-854a-4f98-936a-75c07902fa5c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_e2fdb4a2-e32a-4df8-aef7-1aeaea5bec05" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_531e9200-854a-4f98-936a-75c07902fa5c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_a8d03564-74f7-4405-8858-d01ea282a84e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e5d46f31-2fc9-4884-806b-64ccfb0a2f00" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_b6230fc1-2aab-4ecb-bf70-f120a6fe61cb" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e5d46f31-2fc9-4884-806b-64ccfb0a2f00" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_92af0d0e-fbf9-42c2-96a8-24a41945d4ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_e5d46f31-2fc9-4884-806b-64ccfb0a2f00" xlink:to="loc_us-gaap_AwardTypeAxis_92af0d0e-fbf9-42c2-96a8-24a41945d4ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92af0d0e-fbf9-42c2-96a8-24a41945d4ef_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_92af0d0e-fbf9-42c2-96a8-24a41945d4ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_92af0d0e-fbf9-42c2-96a8-24a41945d4ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b299dd30-39dc-4b07-a123-4651b7f19766" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_92af0d0e-fbf9-42c2-96a8-24a41945d4ef" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b299dd30-39dc-4b07-a123-4651b7f19766" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_b9b6afb6-e153-4443-b08c-32f4082ff7a8" xlink:href="hsy-20210404.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b299dd30-39dc-4b07-a123-4651b7f19766" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_b9b6afb6-e153-4443-b08c-32f4082ff7a8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="i11a466b6686c4136b98c0413b4ab82fa_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_40436c85-c0e5-415e-b152-52a556ef1f62" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_40436c85-c0e5-415e-b152-52a556ef1f62" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_a0d8146c-1802-4782-927d-c6fb274571d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_a0d8146c-1802-4782-927d-c6fb274571d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_8fe3b6eb-c5e7-42d2-83aa-ba1da034994f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SharePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_SharePrice_8fe3b6eb-c5e7-42d2-83aa-ba1da034994f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8454cb19-0696-49a2-ad51-93cb51267006" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_8454cb19-0696-49a2-ad51-93cb51267006" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_48767323-af16-413d-8cdd-2ea4e09a07d8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_48767323-af16-413d-8cdd-2ea4e09a07d8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee2ec72f-cb60-4f93-9862-dc0a1afa84b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_8a765575-9402-4222-aeb3-f6416e34da37" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee2ec72f-cb60-4f93-9862-dc0a1afa84b0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee2ec72f-cb60-4f93-9862-dc0a1afa84b0" xlink:to="loc_us-gaap_AwardTypeAxis_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0212cf0d-0500-47e7-8669-1210c0334909" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_8abd597b-56f4-4230-b1a2-bf3aff2bc0fe" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0212cf0d-0500-47e7-8669-1210c0334909" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_2be6d0f0-f438-434e-b965-5f22bceb2dac" xlink:href="hsy-20210404.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0212cf0d-0500-47e7-8669-1210c0334909" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_2be6d0f0-f438-434e-b965-5f22bceb2dac" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="extended" id="i96db897b732540d38522abe17b226777_SEGMENTINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="extended" id="i7509222482c8449bbc61355395cfb290_SEGMENTINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="extended" id="i2e8dd947e9664813ac9acf1589c9a597_SEGMENTINFORMATIONNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_24b1a788-0ef9-450d-9b4a-a9126d171474" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_0f209065-11e5-4cb3-9e54-6ad371db5212" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_24b1a788-0ef9-450d-9b4a-a9126d171474" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_0f209065-11e5-4cb3-9e54-6ad371db5212" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_422d4a12-c2a6-4e08-88ef-9ea337981280" xlink:href="hsy-20210404.xsd#hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_24b1a788-0ef9-450d-9b4a-a9126d171474" xlink:to="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_422d4a12-c2a6-4e08-88ef-9ea337981280" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_8c6b1eb1-3cc8-46ff-9586-1a15bb3253c0" xlink:href="hsy-20210404.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_24b1a788-0ef9-450d-9b4a-a9126d171474" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_8c6b1eb1-3cc8-46ff-9586-1a15bb3253c0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_24b1a788-0ef9-450d-9b4a-a9126d171474" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_f09d2aed-bddb-4315-a1fc-bfb8c085d43b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_f09d2aed-bddb-4315-a1fc-bfb8c085d43b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_f09d2aed-bddb-4315-a1fc-bfb8c085d43b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_f09d2aed-bddb-4315-a1fc-bfb8c085d43b" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_f09d2aed-bddb-4315-a1fc-bfb8c085d43b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_fbb489f0-815f-4838-8613-44d115fafa6b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_f09d2aed-bddb-4315-a1fc-bfb8c085d43b" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_fbb489f0-815f-4838-8613-44d115fafa6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_746ed74f-f64b-4521-bea7-a1fb8998a33a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_fbb489f0-815f-4838-8613-44d115fafa6b" xlink:to="loc_us-gaap_CostOfSalesMember_746ed74f-f64b-4521-bea7-a1fb8998a33a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_3c87a868-d715-4238-9f11-3987b1c24f6f" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_srt_StatementScenarioAxis_3c87a868-d715-4238-9f11-3987b1c24f6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_3c87a868-d715-4238-9f11-3987b1c24f6f_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_3c87a868-d715-4238-9f11-3987b1c24f6f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_3c87a868-d715-4238-9f11-3987b1c24f6f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_66431697-163d-4439-a993-a704de54185a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_3c87a868-d715-4238-9f11-3987b1c24f6f" xlink:to="loc_srt_ScenarioUnspecifiedDomain_66431697-163d-4439-a993-a704de54185a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_ed437c66-1b94-41b4-b0b7-ab9633cc7fde" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_66431697-163d-4439-a993-a704de54185a" xlink:to="loc_srt_ScenarioForecastMember_ed437c66-1b94-41b4-b0b7-ab9633cc7fde" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_213ffa1a-1c9f-48af-a97d-4b2933794850" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_srt_ConsolidationItemsAxis_213ffa1a-1c9f-48af-a97d-4b2933794850" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_213ffa1a-1c9f-48af-a97d-4b2933794850_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_213ffa1a-1c9f-48af-a97d-4b2933794850" xlink:to="loc_srt_ConsolidationItemsDomain_213ffa1a-1c9f-48af-a97d-4b2933794850_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b2ee1f54-fde6-4548-b9bc-aa6a75bbc858" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_213ffa1a-1c9f-48af-a97d-4b2933794850" xlink:to="loc_srt_ConsolidationItemsDomain_b2ee1f54-fde6-4548-b9bc-aa6a75bbc858" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_c61d4dec-3528-4102-a6d8-e878555d6a2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_b2ee1f54-fde6-4548-b9bc-aa6a75bbc858" xlink:to="loc_us-gaap_OperatingSegmentsMember_c61d4dec-3528-4102-a6d8-e878555d6a2e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_8ddc1920-780f-490e-85fb-6b8f121d1c70" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_8ddc1920-780f-490e-85fb-6b8f121d1c70" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_8ddc1920-780f-490e-85fb-6b8f121d1c70_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ddc1920-780f-490e-85fb-6b8f121d1c70" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_8ddc1920-780f-490e-85fb-6b8f121d1c70_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_90afa5db-e9c6-4f53-8e69-a77b0e836151" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_8ddc1920-780f-490e-85fb-6b8f121d1c70" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_90afa5db-e9c6-4f53-8e69-a77b0e836151" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_495b27c2-91ac-42bd-9294-7da3ba2f63ef" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_90afa5db-e9c6-4f53-8e69-a77b0e836151" xlink:to="loc_us-gaap_CommodityContractMember_495b27c2-91ac-42bd-9294-7da3ba2f63ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_847513fe-bc66-4778-8084-6e3199bff152" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_847513fe-bc66-4778-8084-6e3199bff152" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_847513fe-bc66-4778-8084-6e3199bff152_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_847513fe-bc66-4778-8084-6e3199bff152" xlink:to="loc_us-gaap_SegmentDomain_847513fe-bc66-4778-8084-6e3199bff152_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e03b6e17-bd46-4b39-9ab1-cd1b53149c0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_847513fe-bc66-4778-8084-6e3199bff152" xlink:to="loc_us-gaap_SegmentDomain_e03b6e17-bd46-4b39-9ab1-cd1b53149c0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_f6b2f9b2-24ff-41cf-95b5-62712bcee040" xlink:href="hsy-20210404.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e03b6e17-bd46-4b39-9ab1-cd1b53149c0c" xlink:to="loc_hsy_NorthAmericaSegmentMember_f6b2f9b2-24ff-41cf-95b5-62712bcee040" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_96b82034-d884-4b5f-8638-8f395a975d6d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_96b82034-d884-4b5f-8638-8f395a975d6d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_96b82034-d884-4b5f-8638-8f395a975d6d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_96b82034-d884-4b5f-8638-8f395a975d6d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_96b82034-d884-4b5f-8638-8f395a975d6d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_adbd5397-9706-4abb-862e-294550e77418" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_96b82034-d884-4b5f-8638-8f395a975d6d" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_adbd5397-9706-4abb-862e-294550e77418" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_be78be02-fabb-4e7a-928a-08333b0f62f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GeographicConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_adbd5397-9706-4abb-862e-294550e77418" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_be78be02-fabb-4e7a-928a-08333b0f62f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c15ad58-1d26-4587-968a-92167b7e2c81" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_c9a9e3f4-043e-492c-89e1-82b9c770da86" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c15ad58-1d26-4587-968a-92167b7e2c81" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9c15ad58-1d26-4587-968a-92167b7e2c81_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c15ad58-1d26-4587-968a-92167b7e2c81" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_9c15ad58-1d26-4587-968a-92167b7e2c81_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7ab68034-f1c6-49ad-aa7c-62e6d85caeb4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_9c15ad58-1d26-4587-968a-92167b7e2c81" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7ab68034-f1c6-49ad-aa7c-62e6d85caeb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_abd43d3d-70ad-4228-867c-da1dc2c24389" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_7ab68034-f1c6-49ad-aa7c-62e6d85caeb4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_abd43d3d-70ad-4228-867c-da1dc2c24389" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="extended" id="iba705468ed09429e806d2a1c48f2c93f_SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_57c07c7d-b7c0-4404-ba38-2f798d31cdac" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_57c07c7d-b7c0-4404-ba38-2f798d31cdac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_ad44df8d-4ecc-463a-933d-b1a98a07e39d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_OperatingIncomeLoss_ad44df8d-4ecc-463a-933d-b1a98a07e39d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_463d7d9f-0143-4896-839b-ba023162208a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_463d7d9f-0143-4896-839b-ba023162208a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_3e58b0ce-0a77-4e63-847a-754fa03f8b77" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_3e58b0ce-0a77-4e63-847a-754fa03f8b77" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_24ceef79-f30a-4d05-ae9d-f3687f6e0cd9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_AssetImpairmentCharges_24ceef79-f30a-4d05-ae9d-f3687f6e0cd9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_0ed2d010-c81f-4db5-9e70-d252eb6d202b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RestructuringCharges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_RestructuringCharges_0ed2d010-c81f-4db5-9e70-d252eb6d202b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b39dc60e-7ffd-4f06-be2b-23d282f8e9df" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b39dc60e-7ffd-4f06-be2b-23d282f8e9df" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_880144be-f564-4cea-9634-2cf52017f8b2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_880144be-f564-4cea-9634-2cf52017f8b2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_8d44ee11-3c6a-41e2-b04c-b95da1d491cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_8d44ee11-3c6a-41e2-b04c-b95da1d491cd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1d338987-495c-40ff-80b1-9e736422cff2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_279ad7c1-5120-44d5-89f5-b189533dc740" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1d338987-495c-40ff-80b1-9e736422cff2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e73e4f82-371a-4940-b9f2-8c3e32782188" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1d338987-495c-40ff-80b1-9e736422cff2" xlink:to="loc_srt_ConsolidationItemsAxis_e73e4f82-371a-4940-b9f2-8c3e32782188" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e73e4f82-371a-4940-b9f2-8c3e32782188_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e73e4f82-371a-4940-b9f2-8c3e32782188" xlink:to="loc_srt_ConsolidationItemsDomain_e73e4f82-371a-4940-b9f2-8c3e32782188_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_9524ef2c-cdfa-4435-b96a-515a05170bfa" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e73e4f82-371a-4940-b9f2-8c3e32782188" xlink:to="loc_srt_ConsolidationItemsDomain_9524ef2c-cdfa-4435-b96a-515a05170bfa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_da59a1c4-50f8-4204-abdf-9153f185c3e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9524ef2c-cdfa-4435-b96a-515a05170bfa" xlink:to="loc_us-gaap_OperatingSegmentsMember_da59a1c4-50f8-4204-abdf-9153f185c3e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_f4c0c674-ca22-4626-8bd0-8ab10b1c105e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9524ef2c-cdfa-4435-b96a-515a05170bfa" xlink:to="loc_us-gaap_CorporateNonSegmentMember_f4c0c674-ca22-4626-8bd0-8ab10b1c105e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_919d0f5d-ee79-41c5-8d23-364a5bca55f0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_9524ef2c-cdfa-4435-b96a-515a05170bfa" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_919d0f5d-ee79-41c5-8d23-364a5bca55f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0ec8a529-f654-4ca7-9791-2168440b2792" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_1d338987-495c-40ff-80b1-9e736422cff2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0ec8a529-f654-4ca7-9791-2168440b2792" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0ec8a529-f654-4ca7-9791-2168440b2792_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0ec8a529-f654-4ca7-9791-2168440b2792" xlink:to="loc_us-gaap_SegmentDomain_0ec8a529-f654-4ca7-9791-2168440b2792_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ac23574a-e4bc-40a0-bc9a-6584db03b4a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0ec8a529-f654-4ca7-9791-2168440b2792" xlink:to="loc_us-gaap_SegmentDomain_ac23574a-e4bc-40a0-bc9a-6584db03b4a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_ad28ec87-4890-4ff6-941f-518f48bd22f7" xlink:href="hsy-20210404.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ac23574a-e4bc-40a0-bc9a-6584db03b4a2" xlink:to="loc_hsy_NorthAmericaSegmentMember_ad28ec87-4890-4ff6-941f-518f48bd22f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_44c4d730-76ff-404a-bf75-f2bb714c4d55" xlink:href="hsy-20210404.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ac23574a-e4bc-40a0-bc9a-6584db03b4a2" xlink:to="loc_hsy_InternationalandOtherSegmentMember_44c4d730-76ff-404a-bf75-f2bb714c4d55" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="extended" id="i7264ff694b124d608c2e5e74411b7bc9_SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_a9af5104-917c-4f4c-8e36-90f78d79cd26" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_5775299f-f339-44c6-953f-81290282c42c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a9af5104-917c-4f4c-8e36-90f78d79cd26" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_5775299f-f339-44c6-953f-81290282c42c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_fb3adc18-12fe-4894-a64d-8f5962e0ea37" xlink:href="hsy-20210404.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a9af5104-917c-4f4c-8e36-90f78d79cd26" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_fb3adc18-12fe-4894-a64d-8f5962e0ea37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_dc6ea09a-5fc4-4fc0-b29e-60d92a366371" xlink:href="hsy-20210404.xsd#hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a9af5104-917c-4f4c-8e36-90f78d79cd26" xlink:to="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_dc6ea09a-5fc4-4fc0-b29e-60d92a366371" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e2f5b7fb-a960-48a5-8b86-82f87c269152" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a9af5104-917c-4f4c-8e36-90f78d79cd26" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e2f5b7fb-a960-48a5-8b86-82f87c269152" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_6bded353-d867-4ad1-a77b-0f7b5e78b16b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e2f5b7fb-a960-48a5-8b86-82f87c269152" xlink:to="loc_us-gaap_HedgingDesignationAxis_6bded353-d867-4ad1-a77b-0f7b5e78b16b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_6bded353-d867-4ad1-a77b-0f7b5e78b16b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_6bded353-d867-4ad1-a77b-0f7b5e78b16b" xlink:to="loc_us-gaap_HedgingDesignationDomain_6bded353-d867-4ad1-a77b-0f7b5e78b16b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_1c2ced4b-ca1f-4a80-86f2-1eae5c3853cc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_6bded353-d867-4ad1-a77b-0f7b5e78b16b" xlink:to="loc_us-gaap_HedgingDesignationDomain_1c2ced4b-ca1f-4a80-86f2-1eae5c3853cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_575379c2-3e21-4889-838a-461b41cff095" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_1c2ced4b-ca1f-4a80-86f2-1eae5c3853cc" xlink:to="loc_us-gaap_NondesignatedMember_575379c2-3e21-4889-838a-461b41cff095" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_85693066-1c1e-48c2-855a-4fab21c77056" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e2f5b7fb-a960-48a5-8b86-82f87c269152" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_85693066-1c1e-48c2-855a-4fab21c77056" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_85693066-1c1e-48c2-855a-4fab21c77056_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_85693066-1c1e-48c2-855a-4fab21c77056" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_85693066-1c1e-48c2-855a-4fab21c77056_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_1dbee804-964e-45bc-8ee5-0f31cbf9afdd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_85693066-1c1e-48c2-855a-4fab21c77056" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_1dbee804-964e-45bc-8ee5-0f31cbf9afdd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_770fcd48-4c39-41d9-9849-829428d5221e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_1dbee804-964e-45bc-8ee5-0f31cbf9afdd" xlink:to="loc_us-gaap_CommodityContractMember_770fcd48-4c39-41d9-9849-829428d5221e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e36e37e7-48de-4a76-9657-7c685819c159" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_e2f5b7fb-a960-48a5-8b86-82f87c269152" xlink:to="loc_srt_ConsolidationItemsAxis_e36e37e7-48de-4a76-9657-7c685819c159" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e36e37e7-48de-4a76-9657-7c685819c159_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e36e37e7-48de-4a76-9657-7c685819c159" xlink:to="loc_srt_ConsolidationItemsDomain_e36e37e7-48de-4a76-9657-7c685819c159_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_8f52a31f-0bbe-46e3-b9fd-5621c9dbd12c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e36e37e7-48de-4a76-9657-7c685819c159" xlink:to="loc_srt_ConsolidationItemsDomain_8f52a31f-0bbe-46e3-b9fd-5621c9dbd12c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_9a0810dd-3724-4cc8-a64c-77675017661f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_8f52a31f-0bbe-46e3-b9fd-5621c9dbd12c" xlink:to="loc_us-gaap_OperatingSegmentsMember_9a0810dd-3724-4cc8-a64c-77675017661f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="extended" id="ie0f553bd202b48eaa5f508943fe19452_SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_6f8b946b-5bc3-4bcf-a012-3de2d8ae7fb2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_3ac41d7e-88a0-4b44-82e3-22fd951ae26b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6f8b946b-5bc3-4bcf-a012-3de2d8ae7fb2" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_3ac41d7e-88a0-4b44-82e3-22fd951ae26b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c6968ab1-82dc-46cf-8802-2aa0c20c4ce2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6f8b946b-5bc3-4bcf-a012-3de2d8ae7fb2" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c6968ab1-82dc-46cf-8802-2aa0c20c4ce2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_205b4931-7442-4609-be85-b41641ebe96e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c6968ab1-82dc-46cf-8802-2aa0c20c4ce2" xlink:to="loc_srt_ConsolidationItemsAxis_205b4931-7442-4609-be85-b41641ebe96e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_205b4931-7442-4609-be85-b41641ebe96e_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_205b4931-7442-4609-be85-b41641ebe96e" xlink:to="loc_srt_ConsolidationItemsDomain_205b4931-7442-4609-be85-b41641ebe96e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_d66a8506-f538-47ed-ba11-87f49374901a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_205b4931-7442-4609-be85-b41641ebe96e" xlink:to="loc_srt_ConsolidationItemsDomain_d66a8506-f538-47ed-ba11-87f49374901a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_058b70d9-4112-4abf-ad4f-79d393f749dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_d66a8506-f538-47ed-ba11-87f49374901a" xlink:to="loc_us-gaap_OperatingSegmentsMember_058b70d9-4112-4abf-ad4f-79d393f749dc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_91afc56e-4602-451f-bdf8-11b04418254a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_d66a8506-f538-47ed-ba11-87f49374901a" xlink:to="loc_us-gaap_CorporateNonSegmentMember_91afc56e-4602-451f-bdf8-11b04418254a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_48dab4b2-3577-4a25-824f-ce0733ed65c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_c6968ab1-82dc-46cf-8802-2aa0c20c4ce2" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_48dab4b2-3577-4a25-824f-ce0733ed65c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_48dab4b2-3577-4a25-824f-ce0733ed65c3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_48dab4b2-3577-4a25-824f-ce0733ed65c3" xlink:to="loc_us-gaap_SegmentDomain_48dab4b2-3577-4a25-824f-ce0733ed65c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_4a41b0c8-2ea6-498e-bd06-a79e00a6985b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_48dab4b2-3577-4a25-824f-ce0733ed65c3" xlink:to="loc_us-gaap_SegmentDomain_4a41b0c8-2ea6-498e-bd06-a79e00a6985b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_72368a36-fb08-4d66-8677-13f2090a3d20" xlink:href="hsy-20210404.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4a41b0c8-2ea6-498e-bd06-a79e00a6985b" xlink:to="loc_hsy_NorthAmericaSegmentMember_72368a36-fb08-4d66-8677-13f2090a3d20" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_730b8faf-31a1-462a-a2c4-2e9b42bd69ca" xlink:href="hsy-20210404.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4a41b0c8-2ea6-498e-bd06-a79e00a6985b" xlink:to="loc_hsy_InternationalandOtherSegmentMember_730b8faf-31a1-462a-a2c4-2e9b42bd69ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_1a9faf60-4d0a-420d-a65f-3657824b9e0a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CorporateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_4a41b0c8-2ea6-498e-bd06-a79e00a6985b" xlink:to="loc_us-gaap_CorporateMember_1a9faf60-4d0a-420d-a65f-3657824b9e0a" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="extended" id="i1c31eeeca7794b38b7cdafffbcbd67b7_SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_4a89e6c1-4a76-429f-b230-c1d08d4926c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EntityWideRevenueMajorCustomerLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ccf280ae-6ad5-4d88-85af-3ce3bf8bcd18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_4a89e6c1-4a76-429f-b230-c1d08d4926c1" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ccf280ae-6ad5-4d88-85af-3ce3bf8bcd18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_be0f5b44-9f0a-49df-a67d-29dd7fa9182e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_4a89e6c1-4a76-429f-b230-c1d08d4926c1" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_be0f5b44-9f0a-49df-a67d-29dd7fa9182e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_7e616fc7-dc86-47d5-b0e3-691446c52287" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_be0f5b44-9f0a-49df-a67d-29dd7fa9182e" xlink:to="loc_srt_StatementGeographicalAxis_7e616fc7-dc86-47d5-b0e3-691446c52287" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_7e616fc7-dc86-47d5-b0e3-691446c52287_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_7e616fc7-dc86-47d5-b0e3-691446c52287" xlink:to="loc_srt_SegmentGeographicalDomain_7e616fc7-dc86-47d5-b0e3-691446c52287_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_8bd960d9-bb21-400b-bfeb-f0963a28522e" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_7e616fc7-dc86-47d5-b0e3-691446c52287" xlink:to="loc_srt_SegmentGeographicalDomain_8bd960d9-bb21-400b-bfeb-f0963a28522e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_f7684aaa-b5c3-49b3-8595-469d4f6dc792" xlink:href="https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_8bd960d9-bb21-400b-bfeb-f0963a28522e" xlink:to="loc_country_US_f7684aaa-b5c3-49b3-8595-469d4f6dc792" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_c994fc3f-8a81-4c6d-b5de-755eb00e4d03" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_8bd960d9-bb21-400b-bfeb-f0963a28522e" xlink:to="loc_us-gaap_NonUsMember_c994fc3f-8a81-4c6d-b5de-755eb00e4d03" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="extended" id="i0d44b824b43e40c882a979d9ea2e9053_SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_f55969f7-3c98-4fb0-95a0-dc78080a0dbf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_09a5add6-9733-48e4-b834-da411867303e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_f55969f7-3c98-4fb0-95a0-dc78080a0dbf" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_09a5add6-9733-48e4-b834-da411867303e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a6ced697-2232-4066-8760-2d46a4bbcab3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_f55969f7-3c98-4fb0-95a0-dc78080a0dbf" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a6ced697-2232-4066-8760-2d46a4bbcab3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_4778925e-8f17-42c5-9f00-b87aa7aa5581" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_a6ced697-2232-4066-8760-2d46a4bbcab3" xlink:to="loc_srt_ProductOrServiceAxis_4778925e-8f17-42c5-9f00-b87aa7aa5581" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_4778925e-8f17-42c5-9f00-b87aa7aa5581_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_4778925e-8f17-42c5-9f00-b87aa7aa5581" xlink:to="loc_srt_ProductsAndServicesDomain_4778925e-8f17-42c5-9f00-b87aa7aa5581_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_48282477-2680-408e-a960-fd900bdea1ef" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_4778925e-8f17-42c5-9f00-b87aa7aa5581" xlink:to="loc_srt_ProductsAndServicesDomain_48282477-2680-408e-a960-fd900bdea1ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_899f0a30-8a2e-4022-bd48-b6a116838eca" xlink:href="hsy-20210404.xsd#hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_48282477-2680-408e-a960-fd900bdea1ef" xlink:to="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_899f0a30-8a2e-4022-bd48-b6a116838eca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_SnacksPortfolioDomain_3c18e7f5-43ec-4008-ac45-424a17c4afb7" xlink:href="hsy-20210404.xsd#hsy_SnacksPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_48282477-2680-408e-a960-fd900bdea1ef" xlink:to="loc_hsy_SnacksPortfolioDomain_3c18e7f5-43ec-4008-ac45-424a17c4afb7" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="simple" xlink:href="hsy-20210404.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="extended" id="if3ff90fa7892479096cb3ebbdbe3b2e3_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="extended" id="i4beca118074047dca4bbac74262c3225_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="extended" id="i74b8db6f0e224bcc8ca7406ec62e6d69_TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_38551334-7ae4-474a-bdef-917d0d19407f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_38551334-7ae4-474a-bdef-917d0d19407f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_790cbb74-f625-420e-b5c7-ffe0a667ecd6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_790cbb74-f625-420e-b5c7-ffe0a667ecd6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinShares_7bf3200f-f5b2-4c96-a5d0-4f1f665422cc" xlink:href="hsy-20210404.xsd#hsy_TreasuryStockChangeinShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_hsy_TreasuryStockChangeinShares_7bf3200f-f5b2-4c96-a5d0-4f1f665422cc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_bd064208-b5eb-4e81-85b8-2ee33332ad18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_bd064208-b5eb-4e81-85b8-2ee33332ad18" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_a20d25aa-a04a-477e-b7d7-43b69479cae1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_a20d25aa-a04a-477e-b7d7-43b69479cae1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinValue_65873737-c70d-40a5-acc0-5c24a5cd4ee2" xlink:href="hsy-20210404.xsd#hsy_TreasuryStockChangeinValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_hsy_TreasuryStockChangeinValue_65873737-c70d-40a5-acc0-5c24a5cd4ee2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_3f4e0688-30da-40d1-a2c9-517725bcb4e6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_f5aabb7e-5644-4379-9093-a0587d2d1569" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_3f4e0688-30da-40d1-a2c9-517725bcb4e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_b24511d5-ed90-4e6f-b608-cc96a9d975ad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_3f4e0688-30da-40d1-a2c9-517725bcb4e6" xlink:to="loc_us-gaap_AwardTypeAxis_b24511d5-ed90-4e6f-b608-cc96a9d975ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b24511d5-ed90-4e6f-b608-cc96a9d975ad_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_b24511d5-ed90-4e6f-b608-cc96a9d975ad" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b24511d5-ed90-4e6f-b608-cc96a9d975ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d417a154-9b3f-408d-8ed6-36abd50d136c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_b24511d5-ed90-4e6f-b608-cc96a9d975ad" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d417a154-9b3f-408d-8ed6-36abd50d136c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_af091b9b-efc4-45d8-9adc-c7461a80e8af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_d417a154-9b3f-408d-8ed6-36abd50d136c" xlink:to="loc_us-gaap_EmployeeStockOptionMember_af091b9b-efc4-45d8-9adc-c7461a80e8af" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#TREASURYSTOCKACTIVITYNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="extended" id="i200092dc33fa4933a21dcb254cce2caa_TREASURYSTOCKACTIVITYNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_de1c5824-0e36-43ba-94d9-a5d982a40f1d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_6cab9ff7-2412-4bc6-aba2-86a7ec406142" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_de1c5824-0e36-43ba-94d9-a5d982a40f1d" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_6cab9ff7-2412-4bc6-aba2-86a7ec406142" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_803bfd78-986d-4241-9f0d-8ceb92363f5a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_de1c5824-0e36-43ba-94d9-a5d982a40f1d" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_803bfd78-986d-4241-9f0d-8ceb92363f5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_a5b0f9d6-31c6-4c52-ad3c-c3461b2a5be3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_de1c5824-0e36-43ba-94d9-a5d982a40f1d" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_a5b0f9d6-31c6-4c52-ad3c-c3461b2a5be3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_31e33030-dbbc-44c1-8b54-f070b53fdf12" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_a5b0f9d6-31c6-4c52-ad3c-c3461b2a5be3" xlink:to="loc_us-gaap_StatementClassOfStockAxis_31e33030-dbbc-44c1-8b54-f070b53fdf12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_31e33030-dbbc-44c1-8b54-f070b53fdf12_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_31e33030-dbbc-44c1-8b54-f070b53fdf12" xlink:to="loc_us-gaap_ClassOfStockDomain_31e33030-dbbc-44c1-8b54-f070b53fdf12_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_230da8e6-74e1-44ee-badb-bb4c6adff6d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_31e33030-dbbc-44c1-8b54-f070b53fdf12" xlink:to="loc_us-gaap_ClassOfStockDomain_230da8e6-74e1-44ee-badb-bb4c6adff6d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_73031a1f-d32b-47d8-8513-6376931add37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_a5b0f9d6-31c6-4c52-ad3c-c3461b2a5be3" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_73031a1f-d32b-47d8-8513-6376931add37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_73031a1f-d32b-47d8-8513-6376931add37_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_73031a1f-d32b-47d8-8513-6376931add37" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_73031a1f-d32b-47d8-8513-6376931add37_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_80edef5c-fb1d-489c-95dc-280ca530fcad" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ShareRepurchaseProgramAxis_73031a1f-d32b-47d8-8513-6376931add37" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_80edef5c-fb1d-489c-95dc-280ca530fcad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_A2018ShareRepurchaseProgramMember_355b676c-06d2-4a8d-8756-05e4a1d6a575" xlink:href="hsy-20210404.xsd#hsy_A2018ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_80edef5c-fb1d-489c-95dc-280ca530fcad" xlink:to="loc_hsy_A2018ShareRepurchaseProgramMember_355b676c-06d2-4a8d-8756-05e4a1d6a575" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="simple" xlink:href="hsy-20210404.xsd#NONCONTROLLINGINTEREST"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="extended" id="i53e429e9a8ac42e8adf6f6095c34e7c0_NONCONTROLLINGINTEREST"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#NONCONTROLLINGINTERESTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="extended" id="i3b8ccd1c5a2848efb86fa0c89b17a54b_NONCONTROLLINGINTERESTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#NONCONTROLLINGINTERESTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="extended" id="i231997fc8cbb477a8da24e36ac963b2c_NONCONTROLLINGINTERESTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_ea23c8e4-03aa-4d84-9720-54aeca9531bd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_357e5dbb-60bf-4789-be63-d1f3b6751d4c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea23c8e4-03aa-4d84-9720-54aeca9531bd" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_357e5dbb-60bf-4789-be63-d1f3b6751d4c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_b1481a9f-d680-4dde-827c-38268af60659" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_ea23c8e4-03aa-4d84-9720-54aeca9531bd" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_b1481a9f-d680-4dde-827c-38268af60659" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_45ee926a-f427-443c-b748-e73e7f7eda7c" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_b1481a9f-d680-4dde-827c-38268af60659" xlink:to="loc_srt_OwnershipAxis_45ee926a-f427-443c-b748-e73e7f7eda7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_45ee926a-f427-443c-b748-e73e7f7eda7c_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_45ee926a-f427-443c-b748-e73e7f7eda7c" xlink:to="loc_srt_OwnershipDomain_45ee926a-f427-443c-b748-e73e7f7eda7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_c507f368-9443-4b47-8d54-259b5e1defab" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_45ee926a-f427-443c-b748-e73e7f7eda7c" xlink:to="loc_srt_OwnershipDomain_c507f368-9443-4b47-8d54-259b5e1defab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_6c3a28ec-f796-4998-a39a-64e80a23b64a" xlink:href="hsy-20210404.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_c507f368-9443-4b47-8d54-259b5e1defab" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_6c3a28ec-f796-4998-a39a-64e80a23b64a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_b1481a9f-d680-4dde-827c-38268af60659" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab" xlink:to="loc_us-gaap_EquityComponentDomain_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_6a241d05-7387-4d2d-97de-fa955df89b42" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_ddd8253b-4815-4fe0-96d8-248ce6d7d7ab" xlink:to="loc_us-gaap_EquityComponentDomain_6a241d05-7387-4d2d-97de-fa955df89b42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_721e5846-556e-487b-b239-25cf74276497" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_6a241d05-7387-4d2d-97de-fa955df89b42" xlink:to="loc_us-gaap_NoncontrollingInterestMember_721e5846-556e-487b-b239-25cf74276497" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_21b629a5-0c4d-4907-8bdb-c6ec5a390f82" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_b1481a9f-d680-4dde-827c-38268af60659" xlink:to="loc_dei_LegalEntityAxis_21b629a5-0c4d-4907-8bdb-c6ec5a390f82" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_21b629a5-0c4d-4907-8bdb-c6ec5a390f82_default" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_21b629a5-0c4d-4907-8bdb-c6ec5a390f82" xlink:to="loc_dei_EntityDomain_21b629a5-0c4d-4907-8bdb-c6ec5a390f82_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_86f70dfc-5232-4065-bc8a-0988c6191f76" xlink:href="https://xbrl.sec.gov/dei/2020/dei-2020-01-31.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_21b629a5-0c4d-4907-8bdb-c6ec5a390f82" xlink:to="loc_dei_EntityDomain_86f70dfc-5232-4065-bc8a-0988c6191f76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_6f0043ef-0723-4862-a93b-e82b87466bd1" xlink:href="hsy-20210404.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_86f70dfc-5232-4065-bc8a-0988c6191f76" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_6f0043ef-0723-4862-a93b-e82b87466bd1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="extended" id="ieb5cc39ecea243c289970facad9dca7f_NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestLineItems_fc428079-0916-46cf-af68-cca91ab4a59b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MovementInMinorityInterestRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_fc428079-0916-46cf-af68-cca91ab4a59b" xlink:to="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_0ac72e66-729a-487e-a479-825f6f926a27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:to="loc_us-gaap_MinorityInterest_0ac72e66-729a-487e-a479-825f6f926a27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8656423e-68e6-4d89-9c5e-04fd1b14f1c4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_8656423e-68e6-4d89-9c5e-04fd1b14f1c4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation_8cdbcf71-9387-4243-b8cd-0ac71701af82" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:to="loc_us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation_8cdbcf71-9387-4243-b8cd-0ac71701af82" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_e9016623-a069-45ab-95d8-395dead107d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MovementInMinorityInterestRollForward_9d3ec8b6-2383-4c48-9b7d-6aa677069811" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_e9016623-a069-45ab-95d8-395dead107d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_f7a214bd-ab30-480b-8fce-b38ad410597b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestTable_addb1e92-033c-40ce-9312-f20b60a6e2cd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_MinorityInterestTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_fc428079-0916-46cf-af68-cca91ab4a59b" xlink:to="loc_us-gaap_MinorityInterestTable_addb1e92-033c-40ce-9312-f20b60a6e2cd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_209a2991-6728-425c-ad7d-756078a2254a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_addb1e92-033c-40ce-9312-f20b60a6e2cd" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_209a2991-6728-425c-ad7d-756078a2254a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_209a2991-6728-425c-ad7d-756078a2254a_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_209a2991-6728-425c-ad7d-756078a2254a" xlink:to="loc_us-gaap_EquityComponentDomain_209a2991-6728-425c-ad7d-756078a2254a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_31d9000b-1394-4410-ad14-c301c95cb4da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_209a2991-6728-425c-ad7d-756078a2254a" xlink:to="loc_us-gaap_EquityComponentDomain_31d9000b-1394-4410-ad14-c301c95cb4da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_6ee65c21-5bfd-4f84-9b35-2eded1e65613" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_31d9000b-1394-4410-ad14-c301c95cb4da" xlink:to="loc_us-gaap_NoncontrollingInterestMember_6ee65c21-5bfd-4f84-9b35-2eded1e65613" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="simple" xlink:href="hsy-20210404.xsd#CONTINGENCIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="extended" id="i77118b49431c4231ad1c04e1dfbf88b9_CONTINGENCIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="simple" xlink:href="hsy-20210404.xsd#EARNINGSPERSHARE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="extended" id="ibcfd7f2f00124c9faa61615460049d1a_EARNINGSPERSHARE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="simple" xlink:href="hsy-20210404.xsd#EARNINGSPERSHARETables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="extended" id="i9d7a28db290947159ba3bad2c6bd6d23_EARNINGSPERSHARETables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="extended" id="ida987f8c50bc44388a3ddda3e619c339_EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_912afe75-2987-4787-8532-f5a9fd0e3dde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasicTwoClassMethodAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_912afe75-2987-4787-8532-f5a9fd0e3dde" xlink:to="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Dividends_d0381b40-611a-4920-a185-1258f175a159" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Dividends"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:to="loc_us-gaap_Dividends_d0381b40-611a-4920-a185-1258f175a159" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_0645ba24-4bbb-4d24-9de7-6830a02d4fdf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_0645ba24-4bbb-4d24-9de7-6830a02d4fdf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_8fba892e-251f-4d4a-be0c-0b7f1968796e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_8fba892e-251f-4d4a-be0c-0b7f1968796e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_bcd44b9d-77d8-48e3-9aa0-8f799ed3b772" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_bcd44b9d-77d8-48e3-9aa0-8f799ed3b772" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_0f98a275-4b53-4763-83b6-365a8d2d597f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_2a2562e6-acf6-4700-a5a4-f30e445feca6" xlink:to="loc_us-gaap_EarningsPerShareBasic_0f98a275-4b53-4763-83b6-365a8d2d597f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_912afe75-2987-4787-8532-f5a9fd0e3dde" xlink:to="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_e3345cdf-7c7a-4bc9-b564-6c377b5146ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DistributedEarnings_1f068813-d103-4d74-8862-ce2a0249b03f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DistributedEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_DistributedEarnings_1f068813-d103-4d74-8862-ce2a0249b03f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_c40a67ef-d93c-4043-938e-834cb302ed8f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_c40a67ef-d93c-4043-938e-834cb302ed8f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_902ea598-daed-4f87-818c-29c614b9b63e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_902ea598-daed-4f87-818c-29c614b9b63e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_a52f5520-ba61-474c-8046-25988b83c191" xlink:href="hsy-20210404.xsd#hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_a52f5520-ba61-474c-8046-25988b83c191" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_22d6a61b-f6cd-4a62-8825-ab9a8a8b6a4f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_22d6a61b-f6cd-4a62-8825-ab9a8a8b6a4f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_47d9ba89-bf3d-4169-bc83-b58d44605456" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_47d9ba89-bf3d-4169-bc83-b58d44605456" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_6e09bff9-b8c3-4b7b-b9d1-8eda29afce73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_dbdd4e1a-c5e0-4bd0-a7dc-1d10023c9a35" xlink:to="loc_us-gaap_EarningsPerShareDiluted_6e09bff9-b8c3-4b7b-b9d1-8eda29afce73" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_6fb5443c-c861-4e08-bf56-24f885a4929a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_912afe75-2987-4787-8532-f5a9fd0e3dde" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_6fb5443c-c861-4e08-bf56-24f885a4929a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_63995a72-c906-413d-8f42-078710a339a5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_6fb5443c-c861-4e08-bf56-24f885a4929a" xlink:to="loc_us-gaap_StatementClassOfStockAxis_63995a72-c906-413d-8f42-078710a339a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_63995a72-c906-413d-8f42-078710a339a5_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_63995a72-c906-413d-8f42-078710a339a5" xlink:to="loc_us-gaap_ClassOfStockDomain_63995a72-c906-413d-8f42-078710a339a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_eeaa3184-298f-4888-b89d-eb46dd6b4452" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_63995a72-c906-413d-8f42-078710a339a5" xlink:to="loc_us-gaap_ClassOfStockDomain_eeaa3184-298f-4888-b89d-eb46dd6b4452" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_94fe3710-808f-4950-93dc-78042709dfa9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_eeaa3184-298f-4888-b89d-eb46dd6b4452" xlink:to="loc_us-gaap_CommonStockMember_94fe3710-808f-4950-93dc-78042709dfa9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_424b3e56-3a57-4667-86b3-c2328ffe9e72" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_eeaa3184-298f-4888-b89d-eb46dd6b4452" xlink:to="loc_us-gaap_CommonClassBMember_424b3e56-3a57-4667-86b3-c2328ffe9e72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_5b593e52-f484-4b82-806a-e5e1f4e225a3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_6fb5443c-c861-4e08-bf56-24f885a4929a" xlink:to="loc_us-gaap_AwardTypeAxis_5b593e52-f484-4b82-806a-e5e1f4e225a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5b593e52-f484-4b82-806a-e5e1f4e225a3_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_5b593e52-f484-4b82-806a-e5e1f4e225a3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5b593e52-f484-4b82-806a-e5e1f4e225a3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8b41053d-aa02-4305-bc17-f6c288fdd99f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_5b593e52-f484-4b82-806a-e5e1f4e225a3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8b41053d-aa02-4305-bc17-f6c288fdd99f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_3b7ee9f7-0159-46b7-a8d5-706ecb002883" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8b41053d-aa02-4305-bc17-f6c288fdd99f" xlink:to="loc_us-gaap_EmployeeStockOptionMember_3b7ee9f7-0159-46b7-a8d5-706ecb002883" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_e3a57552-06a2-4de0-8a66-b1fb72d2ffb8" xlink:href="hsy-20210404.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_8b41053d-aa02-4305-bc17-f6c288fdd99f" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_e3a57552-06a2-4de0-8a66-b1fb72d2ffb8" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#EARNINGSPERSHARENARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="extended" id="i1e4aedad60ce45f19990654138cf07c7_EARNINGSPERSHARENARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e588be9b-63df-472d-a627-50532a3e4541" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_69b712fe-35bd-4e74-b91d-04f452f19d88" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e588be9b-63df-472d-a627-50532a3e4541" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_69b712fe-35bd-4e74-b91d-04f452f19d88" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_ab5c7cd4-6998-4960-9ee6-4dc4cc0309a9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_e588be9b-63df-472d-a627-50532a3e4541" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_ab5c7cd4-6998-4960-9ee6-4dc4cc0309a9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_d4ea76e6-2736-48a1-b7ae-36ce1147a02f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_ab5c7cd4-6998-4960-9ee6-4dc4cc0309a9" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_d4ea76e6-2736-48a1-b7ae-36ce1147a02f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_d4ea76e6-2736-48a1-b7ae-36ce1147a02f_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_d4ea76e6-2736-48a1-b7ae-36ce1147a02f" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_d4ea76e6-2736-48a1-b7ae-36ce1147a02f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f87d3f30-1717-416f-ba69-2ecdff2e9146" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_d4ea76e6-2736-48a1-b7ae-36ce1147a02f" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f87d3f30-1717-416f-ba69-2ecdff2e9146" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_3fe926e7-c987-4bf2-83bf-4af9c1f52d33" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f87d3f30-1717-416f-ba69-2ecdff2e9146" xlink:to="loc_us-gaap_EmployeeStockOptionMember_3fe926e7-c987-4bf2-83bf-4af9c1f52d33" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="simple" xlink:href="hsy-20210404.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="extended" id="i8fe8cfee1aca4ee49459012dd2f48599_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="extended" id="ifc3983ccde1e4f04ba1cf41ec27f182c_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="extended" id="i7d2858a32b5047bea22ccc6da18d7d2a_OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="simple" xlink:href="hsy-20210404.xsd#SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="extended" id="ie0b9d14344f14b71b68ff6fd021468ab_SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20210404.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="extended" id="i82d20463a6864b3dbdf415141a314754_SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="simple" xlink:href="hsy-20210404.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="extended" id="icf874ad563bb4bb093be82a628a2292f_SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
</link:linkbase>
