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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2020 Workiva-->
<!--r:4da2676a-8e17-4b06-960c-e0d161e0c771,g:96d2dad4-a5e6-4312-aa82-908cc51ef6fb-->
<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-20200927.xsd#DOCUMENTANDENTITYINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DOCUMENTANDENTITYINFORMATION" xlink:type="extended" id="ic69f647314c34086a3cf504d4ee84b15_DOCUMENTANDENTITYINFORMATION">
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInformationLineItems_0ce2330c-d845-4293-a44d-dcb202724cc4" 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_25855bb4-f9f0-4e5d-8f2f-cdd346fa1f9c" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentType_25855bb4-f9f0-4e5d-8f2f-cdd346fa1f9c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_24dc223b-8fad-465e-8e46-34443c741e00" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentQuarterlyReport_24dc223b-8fad-465e-8e46-34443c741e00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_a33d6588-0b9c-4d1c-a6d7-d3d43c19294d" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentPeriodEndDate_a33d6588-0b9c-4d1c-a6d7-d3d43c19294d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_0eb4cc33-862a-4c97-aa76-5fc99c74c265" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentTransitionReport_0eb4cc33-862a-4c97-aa76-5fc99c74c265" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_f5d6ea95-264a-44b7-8afa-68362b90ce32" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityFileNumber_f5d6ea95-264a-44b7-8afa-68362b90ce32" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_b2aca82e-2eb8-4f73-bde3-4c7b96dde47c" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityRegistrantName_b2aca82e-2eb8-4f73-bde3-4c7b96dde47c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_46f37f96-cf3c-45f6-9a4d-ac7bd9597d06" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityIncorporationStateCountryCode_46f37f96-cf3c-45f6-9a4d-ac7bd9597d06" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_03d25a1f-934c-4257-8844-8336eb9a9cd5" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityTaxIdentificationNumber_03d25a1f-934c-4257-8844-8336eb9a9cd5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_605d234e-6443-433b-976b-eb88892cc31d" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityAddressAddressLine1_605d234e-6443-433b-976b-eb88892cc31d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_28d7b3e7-7a26-41c5-8478-a12858c5653a" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityAddressCityOrTown_28d7b3e7-7a26-41c5-8478-a12858c5653a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_6090a400-ae0c-468f-9d75-eca82fd08e38" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityAddressStateOrProvince_6090a400-ae0c-468f-9d75-eca82fd08e38" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_f6c2f004-ac5c-4136-b2ae-e8bad13b8e2e" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityAddressPostalZipCode_f6c2f004-ac5c-4136-b2ae-e8bad13b8e2e" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_18b22af7-c419-432d-a954-46ff3d262769" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_CityAreaCode_18b22af7-c419-432d-a954-46ff3d262769" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_087c33b8-4020-49b8-8d8e-2cf6b21bb45e" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_LocalPhoneNumber_087c33b8-4020-49b8-8d8e-2cf6b21bb45e" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_9be9721a-363d-4eb3-8328-82157b0e7f5e" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_Security12bTitle_9be9721a-363d-4eb3-8328-82157b0e7f5e" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_04f08616-02f3-4a11-9ad6-84b7d8938ffa" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_TradingSymbol_04f08616-02f3-4a11-9ad6-84b7d8938ffa" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_08499cde-956b-4704-a535-ed44b82a9b43" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_SecurityExchangeName_08499cde-956b-4704-a535-ed44b82a9b43" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_0ab99430-a31b-48d9-b40d-5b6ac4dad0e0" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityCurrentReportingStatus_0ab99430-a31b-48d9-b40d-5b6ac4dad0e0" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_f6280e91-c69c-4b77-895b-21f92e6cec3e" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityInteractiveDataCurrent_f6280e91-c69c-4b77-895b-21f92e6cec3e" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_dca07a4d-3857-4cdc-8588-2ddf9edcff69" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityFilerCategory_dca07a4d-3857-4cdc-8588-2ddf9edcff69" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_7b52a9eb-f68d-4ed2-8274-8c824b5dde2e" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntitySmallBusiness_7b52a9eb-f68d-4ed2-8274-8c824b5dde2e" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_0c39738a-9225-4127-8d31-9b160ea4c2bf" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityEmergingGrowthCompany_0c39738a-9225-4127-8d31-9b160ea4c2bf" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_c3ab116d-d4b0-4fe2-9361-35627625d412" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityShellCompany_c3ab116d-d4b0-4fe2-9361-35627625d412" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_8df0d239-7dc2-46a2-880f-a0f1543df209" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_8df0d239-7dc2-46a2-880f-a0f1543df209" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_e9028a26-dd1b-4c2a-bf50-67e81a6efeef" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntityCentralIndexKey_e9028a26-dd1b-4c2a-bf50-67e81a6efeef" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_3ce817dd-123b-483e-a5ab-a948f23da76f" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentFiscalYearFocus_3ce817dd-123b-483e-a5ab-a948f23da76f" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_7d423e1b-7f1a-477a-9db6-99e2bb780a23" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_CurrentFiscalYearEndDate_7d423e1b-7f1a-477a-9db6-99e2bb780a23" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_1e827fd2-d949-4dea-a7cc-a633f1b4f24b" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_DocumentFiscalPeriodFocus_1e827fd2-d949-4dea-a7cc-a633f1b4f24b" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_fb7ed6b0-aa32-47e0-a5cf-7a7bc1f4803a" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_AmendmentFlag_fb7ed6b0-aa32-47e0-a5cf-7a7bc1f4803a" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitiesTable_df3e7f19-43dd-484a-8a15-5edbe29737a6" 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_0ce2330c-d845-4293-a44d-dcb202724cc4" xlink:to="loc_dei_EntitiesTable_df3e7f19-43dd-484a-8a15-5edbe29737a6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_88f8fe83-5e0e-49c3-a9f0-caadc98c039b" 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_df3e7f19-43dd-484a-8a15-5edbe29737a6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_88f8fe83-5e0e-49c3-a9f0-caadc98c039b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_88f8fe83-5e0e-49c3-a9f0-caadc98c039b_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_88f8fe83-5e0e-49c3-a9f0-caadc98c039b" xlink:to="loc_us-gaap_ClassOfStockDomain_88f8fe83-5e0e-49c3-a9f0-caadc98c039b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_fe7c385b-7f45-43e4-a680-8fc9f88db1b2" 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_88f8fe83-5e0e-49c3-a9f0-caadc98c039b" xlink:to="loc_us-gaap_ClassOfStockDomain_fe7c385b-7f45-43e4-a680-8fc9f88db1b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_1aa846a1-765a-4948-9162-482ed4f380bc" 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_fe7c385b-7f45-43e4-a680-8fc9f88db1b2" xlink:to="loc_us-gaap_CommonStockMember_1aa846a1-765a-4948-9162-482ed4f380bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_700f773f-d886-4716-876a-9ccb9cd19a1e" 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_fe7c385b-7f45-43e4-a680-8fc9f88db1b2" xlink:to="loc_us-gaap_CommonClassBMember_700f773f-d886-4716-876a-9ccb9cd19a1e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDSTATEMENTSOFINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFINCOME" xlink:type="extended" id="i2233a157bc3a408998d979651c168c3f_CONSOLIDATEDSTATEMENTSOFINCOME">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" 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_a05587e7-5005-4f20-85d1-f2dfb0922396" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_a05587e7-5005-4f20-85d1-f2dfb0922396" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_aca6a485-9973-4b4d-9165-cc4b85285189" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_aca6a485-9973-4b4d-9165-cc4b85285189" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossProfit_f0f72242-b1b0-4553-a461-92ec6191a25b" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_GrossProfit_f0f72242-b1b0-4553-a461-92ec6191a25b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_3bf08812-49d7-4be2-8a99-3e16729273eb" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_3bf08812-49d7-4be2-8a99-3e16729273eb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_a95c4533-3d47-49f8-876f-f205b91a75d5" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_AssetImpairmentCharges_a95c4533-3d47-49f8-876f-f205b91a75d5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_RestructuringChargesBusinessRealignment_9a312d08-e345-4e1d-a94c-8c4d7ea975e8" xlink:href="hsy-20200927.xsd#hsy_RestructuringChargesBusinessRealignment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_hsy_RestructuringChargesBusinessRealignment_9a312d08-e345-4e1d-a94c-8c4d7ea975e8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_bf445bae-8e41-40ef-80ff-ba057d293b1c" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_OperatingIncomeLoss_bf445bae-8e41-40ef-80ff-ba057d293b1c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_1d52c3b6-f5f8-4879-964e-58fdb524c9da" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_1d52c3b6-f5f8-4879-964e-58fdb524c9da" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_0a2a5002-180d-468a-bd69-071f1fbedaee" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_0a2a5002-180d-468a-bd69-071f1fbedaee" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cc0d7a01-9156-4974-a765-12036405dc41" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_cc0d7a01-9156-4974-a765-12036405dc41" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2fdf4fc4-25f6-4ff8-9e08-b691b2077c0d" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_2fdf4fc4-25f6-4ff8-9e08-b691b2077c0d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_faf29610-bf5e-45c4-ad2c-a4b2485a3dca" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_ProfitLoss_faf29610-bf5e-45c4-ad2c-a4b2485a3dca" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_50697d86-40e6-4a23-90f1-3f5f9a061ab5" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_50697d86-40e6-4a23-90f1-3f5f9a061ab5" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_6b38439a-6d1c-476d-8546-9cb01549f3d7" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_NetIncomeLoss_6b38439a-6d1c-476d-8546-9cb01549f3d7" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_dee8be77-4f97-4956-8219-28676ea8b397" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_dee8be77-4f97-4956-8219-28676ea8b397" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_02976e50-1149-4d58-9d97-e262f52a585b" 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_dee8be77-4f97-4956-8219-28676ea8b397" xlink:to="loc_us-gaap_EarningsPerShareBasic_02976e50-1149-4d58-9d97-e262f52a585b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_e9f49bae-e578-4e3c-b052-967fc343b835" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_e9f49bae-e578-4e3c-b052-967fc343b835" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_a2c2bc17-91b9-46fd-86d3-f6178788ce54" 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_e9f49bae-e578-4e3c-b052-967fc343b835" xlink:to="loc_us-gaap_EarningsPerShareDiluted_a2c2bc17-91b9-46fd-86d3-f6178788ce54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_7b9c84f0-8392-4923-aed7-85ca7b7081c1" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_7b9c84f0-8392-4923-aed7-85ca7b7081c1" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_4b2052ca-e8d1-4282-b37f-0356a6cef5a4" 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_7b9c84f0-8392-4923-aed7-85ca7b7081c1" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_4b2052ca-e8d1-4282-b37f-0356a6cef5a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_b591dbb9-6f0c-41f8-b42b-44800e02f9bf" 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_98ed2080-8c68-4ec2-8b69-8bcd7d1b27ab" xlink:to="loc_us-gaap_StatementTable_b591dbb9-6f0c-41f8-b42b-44800e02f9bf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_166e7d21-58b9-4f6b-914e-11dff02d3211" 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_b591dbb9-6f0c-41f8-b42b-44800e02f9bf" xlink:to="loc_us-gaap_StatementClassOfStockAxis_166e7d21-58b9-4f6b-914e-11dff02d3211" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_166e7d21-58b9-4f6b-914e-11dff02d3211_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_166e7d21-58b9-4f6b-914e-11dff02d3211" xlink:to="loc_us-gaap_ClassOfStockDomain_166e7d21-58b9-4f6b-914e-11dff02d3211_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_72fc060f-2fe0-4a9e-86bc-64b969640282" 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_166e7d21-58b9-4f6b-914e-11dff02d3211" xlink:to="loc_us-gaap_ClassOfStockDomain_72fc060f-2fe0-4a9e-86bc-64b969640282" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_1f63657a-ff90-488e-ba56-a3ccf2b540af" 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_72fc060f-2fe0-4a9e-86bc-64b969640282" xlink:to="loc_us-gaap_CommonStockMember_1f63657a-ff90-488e-ba56-a3ccf2b540af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_a901ba42-be9e-4345-97f7-d0f870a804fc" 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_72fc060f-2fe0-4a9e-86bc-64b969640282" xlink:to="loc_us-gaap_CommonClassBMember_a901ba42-be9e-4345-97f7-d0f870a804fc" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended" id="ie5976b83491c4ff796c487246d14996f_CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended" id="i7e603ce90e684fcbb79524d846874618_CONSOLIDATEDBALANCESHEETS">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_9c0073d3-7ad3-4416-b0e7-e59e36887961" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" 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_9c0073d3-7ad3-4416-b0e7-e59e36887961" xlink:to="loc_us-gaap_AssetsAbstract_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_9a9b091a-69c3-44b7-9eba-231e423c828b" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_AssetsCurrentAbstract_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_3d4d2b51-baf8-4e73-994c-315268dfa25e" 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_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_3d4d2b51-baf8-4e73-994c-315268dfa25e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_9a17bec4-1774-4627-82eb-41f287de4c18" 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_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_9a17bec4-1774-4627-82eb-41f287de4c18" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_c4126622-3bb2-48fd-82b3-4b9afddccd42" 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_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:to="loc_us-gaap_InventoryNet_c4126622-3bb2-48fd-82b3-4b9afddccd42" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_e47e3001-7f54-47ba-9372-0d6f25e22c5f" 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_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_e47e3001-7f54-47ba-9372-0d6f25e22c5f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_66d3d9a4-ecec-4f79-bf4e-dcede9f18426" 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_9a9b091a-69c3-44b7-9eba-231e423c828b" xlink:to="loc_us-gaap_AssetsCurrent_66d3d9a4-ecec-4f79-bf4e-dcede9f18426" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_99948e4b-edf4-4b44-a2d4-c3dcc59ea1fa" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_99948e4b-edf4-4b44-a2d4-c3dcc59ea1fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_88a7dd19-a330-4a53-b54c-aec16f5f8db7" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_Goodwill_88a7dd19-a330-4a53-b54c-aec16f5f8db7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0e54b786-f310-40b0-9aef-14381642a865" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_0e54b786-f310-40b0-9aef-14381642a865" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_eb3260a8-c2a1-4863-ad68-daf3d974b38b" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_eb3260a8-c2a1-4863-ad68-daf3d974b38b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_0b2c720b-a815-4f17-adfd-416dcaad1877" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_0b2c720b-a815-4f17-adfd-416dcaad1877" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_9e9b8fe0-03fb-4573-9884-8263109678d3" 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_0e26bb7f-6bbf-4085-b273-e589a96386fe" xlink:to="loc_us-gaap_Assets_9e9b8fe0-03fb-4573-9884-8263109678d3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" 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_9c0073d3-7ad3-4416-b0e7-e59e36887961" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_74109443-407f-4095-b2bc-b6ef566a9358" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_74109443-407f-4095-b2bc-b6ef566a9358" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_d9fbd699-f060-46eb-b7fc-bd986f41cffa" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_AccountsPayableCurrent_d9fbd699-f060-46eb-b7fc-bd986f41cffa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_6f501c28-c08b-48c0-8672-bbd59329f910" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_6f501c28-c08b-48c0-8672-bbd59329f910" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_814d841d-083b-4c25-b0e3-4f1a7e30edb9" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_814d841d-083b-4c25-b0e3-4f1a7e30edb9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_50cd5866-dd06-4cf2-b877-c087bbaa35a6" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_ShortTermBorrowings_50cd5866-dd06-4cf2-b877-c087bbaa35a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_66bad12d-1498-4abc-88d0-128efae6f576" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_LongTermDebtCurrent_66bad12d-1498-4abc-88d0-128efae6f576" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_850ec6f0-ddfd-4297-a949-a07742276447" 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_74109443-407f-4095-b2bc-b6ef566a9358" xlink:to="loc_us-gaap_LiabilitiesCurrent_850ec6f0-ddfd-4297-a949-a07742276447" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_42325ba5-bed3-42de-a57f-5a2b7239580b" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_42325ba5-bed3-42de-a57f-5a2b7239580b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_79657017-24e0-47c6-abb7-4e0e93c8f07e" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_79657017-24e0-47c6-abb7-4e0e93c8f07e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_605fb892-187d-43c7-b5e1-3793ecbc9628" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_605fb892-187d-43c7-b5e1-3793ecbc9628" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_ce7e95ef-4509-43c9-9d9e-ccc761c57564" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_Liabilities_ce7e95ef-4509-43c9-9d9e-ccc761c57564" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_05320bb2-5040-4e09-80d1-253d033d76a8" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_cacdb021-95ea-4536-ba69-afb2132b4e83" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_PreferredStockValue_cacdb021-95ea-4536-ba69-afb2132b4e83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_e930bf25-eceb-4178-a51a-0816aa76ed69" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_CommonStockValue_e930bf25-eceb-4178-a51a-0816aa76ed69" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_b65d3392-5cf8-44bb-baf9-eedb8eb510db" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_AdditionalPaidInCapital_b65d3392-5cf8-44bb-baf9-eedb8eb510db" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a9d6a24c-cf38-419a-a18f-f006062299c8" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a9d6a24c-cf38-419a-a18f-f006062299c8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_64190b8b-5bdf-406a-9096-4f64ff955992" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_TreasuryStockValue_64190b8b-5bdf-406a-9096-4f64ff955992" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_83b1bbd2-7d1a-4fe3-92ea-24c07adbca34" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_83b1bbd2-7d1a-4fe3-92ea-24c07adbca34" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_c12f24a4-2c01-42d0-8c73-135cc7303611" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_StockholdersEquity_c12f24a4-2c01-42d0-8c73-135cc7303611" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_d4d5dbe2-0b8a-4042-95b7-d167d66f490b" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_MinorityInterest_d4d5dbe2-0b8a-4042-95b7-d167d66f490b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0bde2d9d-de41-4cb1-8e9a-13ab156c6dcf" 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_05320bb2-5040-4e09-80d1-253d033d76a8" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_0bde2d9d-de41-4cb1-8e9a-13ab156c6dcf" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_179d2ba7-694c-4e42-8959-35f562429856" 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_bf1a9057-f4ef-4c5b-a22f-4f9ef6874c2a" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_179d2ba7-694c-4e42-8959-35f562429856" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_720dcae8-88f6-4325-ad29-7c4714fb4bbc" 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_9c0073d3-7ad3-4416-b0e7-e59e36887961" xlink:to="loc_us-gaap_PreferredStockSharesIssued_720dcae8-88f6-4325-ad29-7c4714fb4bbc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_19df2519-e153-4f22-aeb9-c824a505aacf" 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_9c0073d3-7ad3-4416-b0e7-e59e36887961" xlink:to="loc_us-gaap_StatementTable_19df2519-e153-4f22-aeb9-c824a505aacf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_82e3a999-28a8-4783-bbb9-eebbd77da224" 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_19df2519-e153-4f22-aeb9-c824a505aacf" xlink:to="loc_us-gaap_StatementClassOfStockAxis_82e3a999-28a8-4783-bbb9-eebbd77da224" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_82e3a999-28a8-4783-bbb9-eebbd77da224_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_82e3a999-28a8-4783-bbb9-eebbd77da224" xlink:to="loc_us-gaap_ClassOfStockDomain_82e3a999-28a8-4783-bbb9-eebbd77da224_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_83af9b9a-e501-4a42-bd8e-5a760c79c553" 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_82e3a999-28a8-4783-bbb9-eebbd77da224" xlink:to="loc_us-gaap_ClassOfStockDomain_83af9b9a-e501-4a42-bd8e-5a760c79c553" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_5d635909-0031-4698-87c7-bdf95cc333b4" 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_83af9b9a-e501-4a42-bd8e-5a760c79c553" xlink:to="loc_us-gaap_CommonStockMember_5d635909-0031-4698-87c7-bdf95cc333b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_727e0154-0935-41a0-9189-eac1a47ab225" 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_83af9b9a-e501-4a42-bd8e-5a760c79c553" xlink:to="loc_us-gaap_CommonClassBMember_727e0154-0935-41a0-9189-eac1a47ab225" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended" id="i9006547e0b60481abcae94650f0f4156_CONSOLIDATEDBALANCESHEETSParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_55d491ea-5cb1-404a-a616-712cc3bee7b6" 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_c1754636-9f87-4723-a318-73c69add8780" 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_55d491ea-5cb1-404a-a616-712cc3bee7b6" xlink:to="loc_us-gaap_PreferredStockSharesIssued_c1754636-9f87-4723-a318-73c69add8780" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_46730987-c516-40d5-9bd0-057046f60d27" 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_55d491ea-5cb1-404a-a616-712cc3bee7b6" xlink:to="loc_us-gaap_CommonStockSharesIssued_46730987-c516-40d5-9bd0-057046f60d27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockShares_1195a31e-a325-4bed-b431-7407c3f087fd" 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_55d491ea-5cb1-404a-a616-712cc3bee7b6" xlink:to="loc_us-gaap_TreasuryStockShares_1195a31e-a325-4bed-b431-7407c3f087fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_8a3901db-7e15-4975-b5e6-9ec62e0e5f96" 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_55d491ea-5cb1-404a-a616-712cc3bee7b6" xlink:to="loc_us-gaap_StatementTable_8a3901db-7e15-4975-b5e6-9ec62e0e5f96" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_ddcb0531-0836-428c-8109-9bdc59482e38" 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_8a3901db-7e15-4975-b5e6-9ec62e0e5f96" xlink:to="loc_us-gaap_StatementClassOfStockAxis_ddcb0531-0836-428c-8109-9bdc59482e38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_ddcb0531-0836-428c-8109-9bdc59482e38_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_ddcb0531-0836-428c-8109-9bdc59482e38" xlink:to="loc_us-gaap_ClassOfStockDomain_ddcb0531-0836-428c-8109-9bdc59482e38_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b692b184-3ca1-4191-ae76-6eff180f6588" 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_ddcb0531-0836-428c-8109-9bdc59482e38" xlink:to="loc_us-gaap_ClassOfStockDomain_b692b184-3ca1-4191-ae76-6eff180f6588" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_79cf6c49-76f6-4993-a0a2-55b252c05e74" 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_b692b184-3ca1-4191-ae76-6eff180f6588" xlink:to="loc_us-gaap_CommonStockMember_79cf6c49-76f6-4993-a0a2-55b252c05e74" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_788264e1-1151-4519-927a-e8ab87dfda7f" 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_b692b184-3ca1-4191-ae76-6eff180f6588" xlink:to="loc_us-gaap_CommonClassBMember_788264e1-1151-4519-927a-e8ab87dfda7f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended" id="i7603a89409d449b2bd30e19030f87857_CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended" id="icd076285895847018ce71ff7dc516aab_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_c138338a-d0e4-4e29-9701-0a69464c2c44" 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_AccountingStandardsUpdateExtensibleList_4d73021b-0fa7-4756-88f2-6dbeaa1221e5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c138338a-d0e4-4e29-9701-0a69464c2c44" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_4d73021b-0fa7-4756-88f2-6dbeaa1221e5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" 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_c138338a-d0e4-4e29-9701-0a69464c2c44" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_85cb004f-ba7d-46a9-b7a0-cb2f816d07ea" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_85cb004f-ba7d-46a9-b7a0-cb2f816d07ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ee449d49-71cd-460a-ac0c-a37085344a9d" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_NetIncomeLoss_ee449d49-71cd-460a-ac0c-a37085344a9d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ead81cd9-1ee5-439e-b218-5e797b6f590b" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_ead81cd9-1ee5-439e-b218-5e797b6f590b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_2030427c-2215-4eea-acd2-bbec4fc5003c" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_ProfitLoss_2030427c-2215-4eea-acd2-bbec4fc5003c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_44c6b239-5e7d-4b13-8b57-fedee8f4001c" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_44c6b239-5e7d-4b13-8b57-fedee8f4001c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockAbstract_b3f5d103-7e5f-4730-9ad7-59f001b26b22" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_DividendsCommonStockAbstract_b3f5d103-7e5f-4730-9ad7-59f001b26b22" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockCash_6bec9a08-082d-49e5-b010-ac13aca6a936" 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_b3f5d103-7e5f-4730-9ad7-59f001b26b22" xlink:to="loc_us-gaap_DividendsCommonStockCash_6bec9a08-082d-49e5-b010-ac13aca6a936" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_4592a95c-4c9f-4915-b4ee-0494bac8ee39" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_4592a95c-4c9f-4915-b4ee-0494bac8ee39" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_0e662c31-0ef2-4d8c-acf4-0c8c5411d990" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_0e662c31-0ef2-4d8c-acf4-0c8c5411d990" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_c93b76f5-a31f-471c-ad68-744daddc2dfb" 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_76e0e7e9-7f36-4d47-a968-46e83c8ffbe5" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_c93b76f5-a31f-471c-ad68-744daddc2dfb" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_1063b24f-eadc-4efc-bf10-d570f31b2aaa" 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_cbc9c3c3-9471-4191-8cda-86685465cdce" 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_c138338a-d0e4-4e29-9701-0a69464c2c44" xlink:to="loc_us-gaap_StatementTable_cbc9c3c3-9471-4191-8cda-86685465cdce" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_637d412e-34cf-449b-96dd-70f2752acfdf" 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_cbc9c3c3-9471-4191-8cda-86685465cdce" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_637d412e-34cf-449b-96dd-70f2752acfdf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_637d412e-34cf-449b-96dd-70f2752acfdf_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_637d412e-34cf-449b-96dd-70f2752acfdf" xlink:to="loc_us-gaap_EquityComponentDomain_637d412e-34cf-449b-96dd-70f2752acfdf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_53c1897c-880c-4008-b570-de0774edde2c" 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_637d412e-34cf-449b-96dd-70f2752acfdf" xlink:to="loc_us-gaap_EquityComponentDomain_53c1897c-880c-4008-b570-de0774edde2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_69dcfe7b-864a-44c7-b9ed-69c13b020f8f" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_PreferredStockMember_69dcfe7b-864a-44c7-b9ed-69c13b020f8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_6b7b2d41-bc92-4563-92a1-758c8f00b56e" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_CommonStockMember_6b7b2d41-bc92-4563-92a1-758c8f00b56e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_e0a686c8-5f2f-491f-af71-a762cef194ea" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_e0a686c8-5f2f-491f-af71-a762cef194ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_4e8a3706-ea27-42fc-af6b-9fb83780e0bc" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_RetainedEarningsMember_4e8a3706-ea27-42fc-af6b-9fb83780e0bc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockMember_b5883e07-47e4-4cff-8049-5ed5310691a1" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_TreasuryStockMember_b5883e07-47e4-4cff-8049-5ed5310691a1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_7c3ee1c6-6561-4f04-aed1-c0a1a0e78725" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_7c3ee1c6-6561-4f04-aed1-c0a1a0e78725" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_6cbd54fd-5888-4f77-a143-3717a1cf1dc5" 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_53c1897c-880c-4008-b570-de0774edde2c" xlink:to="loc_us-gaap_NoncontrollingInterestMember_6cbd54fd-5888-4f77-a143-3717a1cf1dc5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_8764e8a8-9fb5-4a1d-ba1e-158605dc578e" 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_cbc9c3c3-9471-4191-8cda-86685465cdce" xlink:to="loc_us-gaap_StatementClassOfStockAxis_8764e8a8-9fb5-4a1d-ba1e-158605dc578e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_8764e8a8-9fb5-4a1d-ba1e-158605dc578e_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_8764e8a8-9fb5-4a1d-ba1e-158605dc578e" xlink:to="loc_us-gaap_ClassOfStockDomain_8764e8a8-9fb5-4a1d-ba1e-158605dc578e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_d363aec9-ee7c-4cae-b1a2-152bf317f100" 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_8764e8a8-9fb5-4a1d-ba1e-158605dc578e" xlink:to="loc_us-gaap_ClassOfStockDomain_d363aec9-ee7c-4cae-b1a2-152bf317f100" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_87c56a87-d05c-4bb2-a82a-e021cfce8912" 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_d363aec9-ee7c-4cae-b1a2-152bf317f100" xlink:to="loc_us-gaap_CommonStockMember_87c56a87-d05c-4bb2-a82a-e021cfce8912" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_3e48620f-008c-452b-b7d9-5dea892b0280" 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_d363aec9-ee7c-4cae-b1a2-152bf317f100" xlink:to="loc_us-gaap_CommonClassBMember_3e48620f-008c-452b-b7d9-5dea892b0280" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_39faa871-5efc-4906-b8f3-7cf88adb569d" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_cbc9c3c3-9471-4191-8cda-86685465cdce" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_39faa871-5efc-4906-b8f3-7cf88adb569d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_39faa871-5efc-4906-b8f3-7cf88adb569d_default" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_39faa871-5efc-4906-b8f3-7cf88adb569d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_39faa871-5efc-4906-b8f3-7cf88adb569d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6ed5b1a0-48e1-4366-81ac-b8ae1c26de2a" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_39faa871-5efc-4906-b8f3-7cf88adb569d" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6ed5b1a0-48e1-4366-81ac-b8ae1c26de2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_8632fac3-e1b0-420f-b3f5-f2ebc63212e7" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6ed5b1a0-48e1-4366-81ac-b8ae1c26de2a" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_8632fac3-e1b0-420f-b3f5-f2ebc63212e7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical" xlink:type="extended" id="i2d646655c406408d96a67ba20308bcc6_CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYParenthetical">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_f6d13b5a-0a13-4f6a-951c-be02a803c8ca" 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_beed4b7d-acba-4743-9e81-16e129f809d9" 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_f6d13b5a-0a13-4f6a-951c-be02a803c8ca" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_beed4b7d-acba-4743-9e81-16e129f809d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_aba6d49b-54b1-4caa-9a02-6eece0ff5d41" 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_f6d13b5a-0a13-4f6a-951c-be02a803c8ca" xlink:to="loc_us-gaap_StatementTable_aba6d49b-54b1-4caa-9a02-6eece0ff5d41" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_2ee564e0-150f-4136-819b-15d8e4a717b2" 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_aba6d49b-54b1-4caa-9a02-6eece0ff5d41" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2ee564e0-150f-4136-819b-15d8e4a717b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2ee564e0-150f-4136-819b-15d8e4a717b2_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_2ee564e0-150f-4136-819b-15d8e4a717b2" xlink:to="loc_us-gaap_ClassOfStockDomain_2ee564e0-150f-4136-819b-15d8e4a717b2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_ef0364d9-8f79-4168-93af-753abfabcb1b" 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_2ee564e0-150f-4136-819b-15d8e4a717b2" xlink:to="loc_us-gaap_ClassOfStockDomain_ef0364d9-8f79-4168-93af-753abfabcb1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_0a6455d0-6b25-4b9c-8285-37b79ff244cd" 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_ef0364d9-8f79-4168-93af-753abfabcb1b" xlink:to="loc_us-gaap_CommonStockMember_0a6455d0-6b25-4b9c-8285-37b79ff244cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_eac7d5a9-dd18-4657-9e56-bafcf5f9d60f" 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_ef0364d9-8f79-4168-93af-753abfabcb1b" xlink:to="loc_us-gaap_CommonClassBMember_eac7d5a9-dd18-4657-9e56-bafcf5f9d60f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES" xlink:type="extended" id="ib708113a0e48422f9488a21c710e1d2a_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies" xlink:type="extended" id="i8fadc1aba92a48a99e348ada3c46a35f_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESPolicies"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails" xlink:type="extended" id="ie188832ef8dd4cfdb8930570e28d0002_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESBASISOFPRESENTATIONDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails" xlink:type="extended" id="iefa22e50d56645c18de1113dfd20c857_SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESRECENTACCOUNTINGPRONOUNCEMENTSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSACQUISITIONANDDIVESTITURES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURES" xlink:type="extended" id="i3706540e8ee747f0950d9e954bb68662_BUSINESSACQUISITIONANDDIVESTITURES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSACQUISITIONANDDIVESTITURESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESTables" xlink:type="extended" id="i3046f2700dec4b06b095f4149db154f3_BUSINESSACQUISITIONANDDIVESTITURESTables">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_2f6e6b30-33f4-414c-9692-da44a911a68c" 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_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_516fe8a5-09e0-4741-810d-48570fd56831" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_2f6e6b30-33f4-414c-9692-da44a911a68c" xlink:to="loc_us-gaap_ScheduleOfRecognizedIdentifiedAssetsAcquiredAndLiabilitiesAssumedTableTextBlock_516fe8a5-09e0-4741-810d-48570fd56831" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_60326587-11de-416a-a548-25bf1a082375" 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_2f6e6b30-33f4-414c-9692-da44a911a68c" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_60326587-11de-416a-a548-25bf1a082375" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_579b8338-0e94-4121-a009-1caa831e607d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_60326587-11de-416a-a548-25bf1a082375" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_579b8338-0e94-4121-a009-1caa831e607d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_579b8338-0e94-4121-a009-1caa831e607d_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_579b8338-0e94-4121-a009-1caa831e607d" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_579b8338-0e94-4121-a009-1caa831e607d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_d49a9c1a-a158-487f-94a6-1a51b6d9011e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_579b8338-0e94-4121-a009-1caa831e607d" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_d49a9c1a-a158-487f-94a6-1a51b6d9011e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_9bee43e0-0ff4-4b02-a647-0e6430eef790" xlink:href="hsy-20200927.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_d49a9c1a-a158-487f-94a6-1a51b6d9011e" xlink:to="loc_hsy_ONEBrandsLLCMember_9bee43e0-0ff4-4b02-a647-0e6430eef790" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails" xlink:type="extended" id="ie0b116f6b33f4138aa0297049574c2b1_BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" 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_BusinessCombinationConsiderationTransferred1_5ae47abd-1369-4804-b119-ee97167a865e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_5ae47abd-1369-4804-b119-ee97167a865e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedTrademarksGross_2c6d0b40-4460-4deb-a7ba-6d103f5b3f89" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedTrademarksGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_FiniteLivedTrademarksGross_2c6d0b40-4460-4deb-a7ba-6d103f5b3f89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_f01cf233-f567-4555-9125-603807a7f747" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedCustomerRelationshipsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_FiniteLivedCustomerRelationshipsGross_f01cf233-f567-4555-9125-603807a7f747" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_e02bcab6-50a1-4857-bad8-11572d5c883a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedNoncompeteAgreementsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_FiniteLivedNoncompeteAgreementsGross_e02bcab6-50a1-4857-bad8-11572d5c883a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_35648aec-9c1a-431f-b412-bd9244f58fc6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_35648aec-9c1a-431f-b412-bd9244f58fc6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a32fdd18-2211-468e-8736-4c968579f7fd" 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_8cde9cfe-e319-4d65-b5f1-5493ba2aeaa0" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a32fdd18-2211-468e-8736-4c968579f7fd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723" 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_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a32fdd18-2211-468e-8736-4c968579f7fd" xlink:to="loc_srt_RangeAxis_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723_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_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723" xlink:to="loc_srt_RangeMember_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_85737d02-8de9-4566-b3af-0c077c92c4fe" 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_43c4f7bd-75d3-4e8f-a2a6-5f755f6d7723" xlink:to="loc_srt_RangeMember_85737d02-8de9-4566-b3af-0c077c92c4fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_d39eadd9-cdde-4e1f-b2b6-9bffabd54a76" 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_85737d02-8de9-4566-b3af-0c077c92c4fe" xlink:to="loc_srt_MinimumMember_d39eadd9-cdde-4e1f-b2b6-9bffabd54a76" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_09db5537-5aa3-408c-91e6-23c925065379" 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_85737d02-8de9-4566-b3af-0c077c92c4fe" xlink:to="loc_srt_MaximumMember_09db5537-5aa3-408c-91e6-23c925065379" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_2e100b85-c7ce-43f0-bbf3-0a46993d13f0" 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_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a32fdd18-2211-468e-8736-4c968579f7fd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_2e100b85-c7ce-43f0-bbf3-0a46993d13f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2e100b85-c7ce-43f0-bbf3-0a46993d13f0_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_2e100b85-c7ce-43f0-bbf3-0a46993d13f0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2e100b85-c7ce-43f0-bbf3-0a46993d13f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_790c1f57-fd0c-437e-aeac-4b8288c8fe53" 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_2e100b85-c7ce-43f0-bbf3-0a46993d13f0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_790c1f57-fd0c-437e-aeac-4b8288c8fe53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_4a88dd93-b616-410a-9d7f-6ef430c4aa4c" 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_790c1f57-fd0c-437e-aeac-4b8288c8fe53" xlink:to="loc_us-gaap_TrademarksMember_4a88dd93-b616-410a-9d7f-6ef430c4aa4c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_cc7e05a0-9de3-4633-84d3-71e7f6c5ffaa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_790c1f57-fd0c-437e-aeac-4b8288c8fe53" xlink:to="loc_us-gaap_CustomerRelationshipsMember_cc7e05a0-9de3-4633-84d3-71e7f6c5ffaa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_4bc50394-913d-4c0c-ad00-fbe3638330d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NoncompeteAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_790c1f57-fd0c-437e-aeac-4b8288c8fe53" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_4bc50394-913d-4c0c-ad00-fbe3638330d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_c9753c95-ddfb-4393-9d90-ceb4c16031f6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a32fdd18-2211-468e-8736-4c968579f7fd" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_c9753c95-ddfb-4393-9d90-ceb4c16031f6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c9753c95-ddfb-4393-9d90-ceb4c16031f6_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_c9753c95-ddfb-4393-9d90-ceb4c16031f6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c9753c95-ddfb-4393-9d90-ceb4c16031f6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c4d81042-7156-43b9-83c9-4e9c7754c265" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_c9753c95-ddfb-4393-9d90-ceb4c16031f6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c4d81042-7156-43b9-83c9-4e9c7754c265" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_d87987bd-0604-4be0-a3d4-f2ce83eb0405" xlink:href="hsy-20200927.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_c4d81042-7156-43b9-83c9-4e9c7754c265" xlink:to="loc_hsy_ONEBrandsLLCMember_d87987bd-0604-4be0-a3d4-f2ce83eb0405" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails" xlink:type="extended" id="i31c3ede8957842cc95605958be223048_BUSINESSACQUISITIONANDDIVESTITURESONEBRANDSLLCASSETSACQUIREDANDLIABILITIESASSUMEDALLOCATIONDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" 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_Goodwill_f516b916-9cd3-41a4-9329-0f0e994ec7d9" 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_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_Goodwill_f516b916-9cd3-41a4-9329-0f0e994ec7d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_b393d555-f4d5-4b7a-a451-a3d8a90fad49" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_b393d555-f4d5-4b7a-a451-a3d8a90fad49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_2782be85-610a-4777-b152-4fc1cd14723c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_2782be85-610a-4777-b152-4fc1cd14723c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_acb925a4-11ee-4824-95e8-ad2ec471d5a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsPurchaseAccountingAdjustments_acb925a4-11ee-4824-95e8-ad2ec471d5a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_d37fbd1e-8e4b-4c91-b5e3-b494e4079fe5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsOther_d37fbd1e-8e4b-4c91-b5e3-b494e4079fe5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_978b9d4c-8937-4a5c-93b8-9dee318e1585" xlink:href="hsy-20200927.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentAssetsOther_978b9d4c-8937-4a5c-93b8-9dee318e1585" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_b65d8567-0bd6-4ade-8ee2-2effec061cdb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesOther_b65d8567-0bd6-4ade-8ee2-2effec061cdb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_a4df2a0c-696a-46f4-854a-d0fa5db97e89" xlink:href="hsy-20200927.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteCurrentLiabilitiesOther_a4df2a0c-696a-46f4-854a-d0fa5db97e89" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_8eee42d4-42ae-412c-9928-126152a10bdd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet_8eee42d4-42ae-412c-9928-126152a10bdd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_70a91aeb-0424-4b7b-9014-6094f18a318a" xlink:href="hsy-20200927.xsd#hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_hsy_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentNet_70a91aeb-0424-4b7b-9014-6094f18a318a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_672ecb81-cf6d-4f14-8565-3bf7104abb4a" 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_7dee7799-ee04-4698-8ed1-00acc62844be" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_672ecb81-cf6d-4f14-8565-3bf7104abb4a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_672ecb81-cf6d-4f14-8565-3bf7104abb4a" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0457bca9-05e9-4773-91aa-28b1b8d50504" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_6f52dc54-b0ee-4c39-bb03-a75f7d8288fe" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0457bca9-05e9-4773-91aa-28b1b8d50504" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ONEBrandsLLCMember_e60eb6b9-a3ca-4e58-abd5-7e4224b80840" xlink:href="hsy-20200927.xsd#hsy_ONEBrandsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_0457bca9-05e9-4773-91aa-28b1b8d50504" xlink:to="loc_hsy_ONEBrandsLLCMember_e60eb6b9-a3ca-4e58-abd5-7e4224b80840" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="simple" xlink:href="hsy-20200927.xsd#GOODWILLANDINTANGIBLEASSETS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETS" xlink:type="extended" id="i299ad0fbc5d849a59b4d15628978dfa7_GOODWILLANDINTANGIBLEASSETS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSTables" xlink:type="extended" id="i21f6041155f142cc9a61f0b341936ba8_GOODWILLANDINTANGIBLEASSETSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails" xlink:type="extended" id="i738a0c4e9a804ed7a6d4d843455a3019_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFCHANGESINCARRYINGVALUEOFGOODWILLBYREPORTABLESEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillLineItems_d565b0e9-2ba6-461e-855f-f42467e402a3" 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_7edd6f6d-fc48-4d76-becf-1714f0566737" 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_d565b0e9-2ba6-461e-855f-f42467e402a3" xlink:to="loc_us-gaap_GoodwillRollForward_7edd6f6d-fc48-4d76-becf-1714f0566737" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_e3e164ca-5089-45fa-acb2-ebe4110d0dfd" 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_7edd6f6d-fc48-4d76-becf-1714f0566737" xlink:to="loc_us-gaap_Goodwill_e3e164ca-5089-45fa-acb2-ebe4110d0dfd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_cd3fc0a0-759a-4805-a628-22b3d067a86f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_7edd6f6d-fc48-4d76-becf-1714f0566737" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_cd3fc0a0-759a-4805-a628-22b3d067a86f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_3220b6c1-a0f2-4521-852c-4ee850c5940f" 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_7edd6f6d-fc48-4d76-becf-1714f0566737" xlink:to="loc_us-gaap_GoodwillForeignCurrencyTranslationGainLoss_3220b6c1-a0f2-4521-852c-4ee850c5940f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_a0c928c8-f40d-4d33-a784-a7b14613f0a1" 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_ee632f0c-8dbb-44da-8cc4-69c181b5c1b5" 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_d565b0e9-2ba6-461e-855f-f42467e402a3" xlink:to="loc_us-gaap_ScheduleOfGoodwillTable_ee632f0c-8dbb-44da-8cc4-69c181b5c1b5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_65391169-2952-4f86-8290-995fe673b28b" 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_ee632f0c-8dbb-44da-8cc4-69c181b5c1b5" xlink:to="loc_srt_ConsolidationItemsAxis_65391169-2952-4f86-8290-995fe673b28b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_65391169-2952-4f86-8290-995fe673b28b_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_65391169-2952-4f86-8290-995fe673b28b" xlink:to="loc_srt_ConsolidationItemsDomain_65391169-2952-4f86-8290-995fe673b28b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ac945f08-eb4f-4de1-b161-c67ffb932b0c" 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_65391169-2952-4f86-8290-995fe673b28b" xlink:to="loc_srt_ConsolidationItemsDomain_ac945f08-eb4f-4de1-b161-c67ffb932b0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_f65dee90-7b2e-47cf-be97-ca9c23933a78" 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_ac945f08-eb4f-4de1-b161-c67ffb932b0c" xlink:to="loc_us-gaap_OperatingSegmentsMember_f65dee90-7b2e-47cf-be97-ca9c23933a78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_2b70c7f6-576e-4172-8e42-d7c6bfd713b5" 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_ee632f0c-8dbb-44da-8cc4-69c181b5c1b5" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_2b70c7f6-576e-4172-8e42-d7c6bfd713b5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_2b70c7f6-576e-4172-8e42-d7c6bfd713b5_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_2b70c7f6-576e-4172-8e42-d7c6bfd713b5" xlink:to="loc_us-gaap_SegmentDomain_2b70c7f6-576e-4172-8e42-d7c6bfd713b5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_84903eab-5d73-4304-ad2e-ceb948478215" 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_2b70c7f6-576e-4172-8e42-d7c6bfd713b5" xlink:to="loc_us-gaap_SegmentDomain_84903eab-5d73-4304-ad2e-ceb948478215" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_5ab57916-cc29-4807-b54a-59158d01f0a4" xlink:href="hsy-20200927.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_84903eab-5d73-4304-ad2e-ceb948478215" xlink:to="loc_hsy_NorthAmericaSegmentMember_5ab57916-cc29-4807-b54a-59158d01f0a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_9e697030-9adb-4a23-a3b1-171e997e71c9" xlink:href="hsy-20200927.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_84903eab-5d73-4304-ad2e-ceb948478215" xlink:to="loc_hsy_InternationalandOtherSegmentMember_9e697030-9adb-4a23-a3b1-171e997e71c9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails" xlink:type="extended" id="iad28000356154af399bb2da74bb028d2_GOODWILLANDINTANGIBLEASSETSSCHEDULEOFGROSSCARRYINGAMOUNTANDACCUMULATEDAMORTIZATIONFOREACHMAJORCLASSOFINTANGIBLEASSETDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_48f689fe-a3fe-4c13-b78f-17f795a248e1" 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_94b0a7ff-f15c-47be-881c-adfe592784cc" 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_48f689fe-a3fe-4c13-b78f-17f795a248e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_94b0a7ff-f15c-47be-881c-adfe592784cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8038247b-f9a2-4e5b-856b-784c797cc50f" 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_48f689fe-a3fe-4c13-b78f-17f795a248e1" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_8038247b-f9a2-4e5b-856b-784c797cc50f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_496fdaa4-9b8c-4e87-a52a-d63fc0a335bc" 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_48f689fe-a3fe-4c13-b78f-17f795a248e1" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsExcludingGoodwill_496fdaa4-9b8c-4e87-a52a-d63fc0a335bc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_8dd7e780-4bca-4afc-bf18-a7d1e01ff8b3" 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_48f689fe-a3fe-4c13-b78f-17f795a248e1" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_8dd7e780-4bca-4afc-bf18-a7d1e01ff8b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c1484044-ccf7-4d07-8a92-8fd2ceb9fc31" 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_48f689fe-a3fe-4c13-b78f-17f795a248e1" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_c1484044-ccf7-4d07-8a92-8fd2ceb9fc31" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_a78cd16a-6378-4620-93ec-334dfa3b9388" 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_c1484044-ccf7-4d07-8a92-8fd2ceb9fc31" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_a78cd16a-6378-4620-93ec-334dfa3b9388" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_a78cd16a-6378-4620-93ec-334dfa3b9388_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_a78cd16a-6378-4620-93ec-334dfa3b9388" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_a78cd16a-6378-4620-93ec-334dfa3b9388_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_970f4d41-041e-46a9-8164-617e75b7191b" 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_a78cd16a-6378-4620-93ec-334dfa3b9388" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_970f4d41-041e-46a9-8164-617e75b7191b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_1c411440-a4c3-4b57-a44a-1b47de3552a4" 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_970f4d41-041e-46a9-8164-617e75b7191b" xlink:to="loc_us-gaap_TrademarksMember_1c411440-a4c3-4b57-a44a-1b47de3552a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_339aee8c-036e-4a39-9b06-8ea4d85b6fb8" 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_970f4d41-041e-46a9-8164-617e75b7191b" xlink:to="loc_us-gaap_CustomerRelatedIntangibleAssetsMember_339aee8c-036e-4a39-9b06-8ea4d85b6fb8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PatentsMember_b8ac11c0-e480-42aa-85c3-02b9590eceab" 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_970f4d41-041e-46a9-8164-617e75b7191b" xlink:to="loc_us-gaap_PatentsMember_b8ac11c0-e480-42aa-85c3-02b9590eceab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_0fe3cbdf-2289-4235-8503-a4aa9fc70f61" 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_c1484044-ccf7-4d07-8a92-8fd2ceb9fc31" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsByMajorClassAxis_0fe3cbdf-2289-4235-8503-a4aa9fc70f61" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_0fe3cbdf-2289-4235-8503-a4aa9fc70f61_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_0fe3cbdf-2289-4235-8503-a4aa9fc70f61" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_0fe3cbdf-2289-4235-8503-a4aa9fc70f61_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_d124ea42-a2a9-48bb-8dc0-845dd8a0cc47" 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_0fe3cbdf-2289-4235-8503-a4aa9fc70f61" xlink:to="loc_us-gaap_IndefiniteLivedIntangibleAssetsMajorClassNameDomain_d124ea42-a2a9-48bb-8dc0-845dd8a0cc47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TrademarksMember_61d45495-c42b-434c-a79d-7fe9b5d884ae" 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_d124ea42-a2a9-48bb-8dc0-845dd8a0cc47" xlink:to="loc_us-gaap_TrademarksMember_61d45495-c42b-434c-a79d-7fe9b5d884ae" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails" xlink:type="extended" id="i20de2b4b4e67440097bdbc2f58c79869_GOODWILLANDINTANGIBLEASSETSNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBT"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBT" xlink:type="extended" id="i2d15de74b3394332940300d936b79f35_SHORTANDLONGTERMDEBT"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTTables" xlink:type="extended" id="i8b6e4c1bb8f54e8999f85e15cca84e30_SHORTANDLONGTERMDEBTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails" xlink:type="extended" id="ia13be9ddbe904929912a2f3076608e3c_SHORTANDLONGTERMDEBTSHORTTERMDEBTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_e8182b34-d5e3-4243-ad14-f00a7f09e539" 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_072729c2-9ec8-4390-92ea-93b017bfc05d" 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_e8182b34-d5e3-4243-ad14-f00a7f09e539" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_072729c2-9ec8-4390-92ea-93b017bfc05d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_a0243243-502d-464a-82d7-43900a2f4dee" xlink:href="hsy-20200927.xsd#hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_e8182b34-d5e3-4243-ad14-f00a7f09e539" xlink:to="loc_hsy_LineOfCreditFacilityAccordionFeatureIncreaseLimit_a0243243-502d-464a-82d7-43900a2f4dee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditCurrent_0cfc9b58-1bf8-484c-a459-c5b5aea0c288" 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_e8182b34-d5e3-4243-ad14-f00a7f09e539" xlink:to="loc_us-gaap_LinesOfCreditCurrent_0cfc9b58-1bf8-484c-a459-c5b5aea0c288" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_1502a41b-c1c5-45e6-8e0f-eb26466cf813" 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_e8182b34-d5e3-4243-ad14-f00a7f09e539" xlink:to="loc_us-gaap_ShortTermBorrowings_1502a41b-c1c5-45e6-8e0f-eb26466cf813" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" 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_e8182b34-d5e3-4243-ad14-f00a7f09e539" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_85deeca3-8d08-4716-9c75-fd95c5f04961" 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_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" xlink:to="loc_us-gaap_DebtInstrumentAxis_85deeca3-8d08-4716-9c75-fd95c5f04961" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_85deeca3-8d08-4716-9c75-fd95c5f04961_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_85deeca3-8d08-4716-9c75-fd95c5f04961" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_85deeca3-8d08-4716-9c75-fd95c5f04961_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_689760f6-c21e-48d0-b319-1074e595e6c1" 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_85deeca3-8d08-4716-9c75-fd95c5f04961" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_689760f6-c21e-48d0-b319-1074e595e6c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_80531b72-8189-4423-bc63-af93127c2065" 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_689760f6-c21e-48d0-b319-1074e595e6c1" xlink:to="loc_us-gaap_LineOfCreditMember_80531b72-8189-4423-bc63-af93127c2065" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_fe0343dd-1230-443b-acd7-86ac7420a069" 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_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" xlink:to="loc_us-gaap_CreditFacilityAxis_fe0343dd-1230-443b-acd7-86ac7420a069" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_fe0343dd-1230-443b-acd7-86ac7420a069_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_fe0343dd-1230-443b-acd7-86ac7420a069" xlink:to="loc_us-gaap_CreditFacilityDomain_fe0343dd-1230-443b-acd7-86ac7420a069_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_54abfedd-cb57-4c4d-b97b-edf6d3097439" 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_fe0343dd-1230-443b-acd7-86ac7420a069" xlink:to="loc_us-gaap_CreditFacilityDomain_54abfedd-cb57-4c4d-b97b-edf6d3097439" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f6f64bba-1ea0-4013-aad3-bb059189981d" 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_54abfedd-cb57-4c4d-b97b-edf6d3097439" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f6f64bba-1ea0-4013-aad3-bb059189981d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b5934ad7-165c-4bcd-9412-f15d324876d7" 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_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b5934ad7-165c-4bcd-9412-f15d324876d7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b5934ad7-165c-4bcd-9412-f15d324876d7_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_b5934ad7-165c-4bcd-9412-f15d324876d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b5934ad7-165c-4bcd-9412-f15d324876d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_e408dc31-44a4-494d-b90f-536aab902810" 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_b5934ad7-165c-4bcd-9412-f15d324876d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_e408dc31-44a4-494d-b90f-536aab902810" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_8ef66212-cb99-4fde-a5f9-b333506e5cbb" 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_e408dc31-44a4-494d-b90f-536aab902810" xlink:to="loc_us-gaap_LineOfCreditMember_8ef66212-cb99-4fde-a5f9-b333506e5cbb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignLineOfCreditMember_fbb2fcd2-8d8d-4cb0-a244-3b0234bf824e" 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_e408dc31-44a4-494d-b90f-536aab902810" xlink:to="loc_us-gaap_ForeignLineOfCreditMember_fbb2fcd2-8d8d-4cb0-a244-3b0234bf824e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeAxis_ecfa5bc3-b0e9-4df6-b11f-914a453e310c" 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_2b769436-0cb3-49c6-9ca3-8a3573dc1feb" xlink:to="loc_us-gaap_ShortTermDebtTypeAxis_ecfa5bc3-b0e9-4df6-b11f-914a453e310c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_ecfa5bc3-b0e9-4df6-b11f-914a453e310c_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_ecfa5bc3-b0e9-4df6-b11f-914a453e310c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_ecfa5bc3-b0e9-4df6-b11f-914a453e310c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtTypeDomain_3e8f564c-dffd-4cca-ae26-d57dfa66473a" 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_ecfa5bc3-b0e9-4df6-b11f-914a453e310c" xlink:to="loc_us-gaap_ShortTermDebtTypeDomain_3e8f564c-dffd-4cca-ae26-d57dfa66473a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_cf595170-b289-47ea-9a3c-457a0f03735f" 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_3e8f564c-dffd-4cca-ae26-d57dfa66473a" xlink:to="loc_us-gaap_CommercialPaperMember_cf595170-b289-47ea-9a3c-457a0f03735f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails" xlink:type="extended" id="i723e5962c8e64f92bc3850a03b65bfea_SHORTANDLONGTERMDEBTSCHEDULEOFLONGTERMDEBTINSTRUMENTSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_d53ed93c-9303-47de-9bbc-b258729862fc" 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_LongTermDebt_6d85da0a-6a2f-40a7-ba23-68a9978f9c1d" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_LongTermDebt_6d85da0a-6a2f-40a7-ba23-68a9978f9c1d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_0c1f3092-29a6-42b8-b6ae-770bb58b0ad9" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_FinanceLeaseLiability_0c1f3092-29a6-42b8-b6ae-770bb58b0ad9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_0e2879d5-b05c-4c41-827b-aa07adeb9c25" xlink:href="hsy-20200927.xsd#hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_hsy_DebtInstrumentImpactofDerivativesUnamortizedDiscountPremiumandDebtIssuanceCostsNet_0e2879d5-b05c-4c41-827b-aa07adeb9c25" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_fd04c9ad-19d1-4473-be5c-bd4359ac2b0c" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_LongTermDebtCurrent_fd04c9ad-19d1-4473-be5c-bd4359ac2b0c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_51b436f9-5246-4097-9abe-8a04cdea5cea" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_51b436f9-5246-4097-9abe-8a04cdea5cea" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_235d8014-9e7c-4924-9215-db02bb27d922" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_235d8014-9e7c-4924-9215-db02bb27d922" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_fb885df2-b639-4c5e-93df-32bbe1dd047d" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_RepaymentsOfDebt_fb885df2-b639-4c5e-93df-32bbe1dd047d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_385e7a14-9b30-4aab-b44c-67e081e32d37" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfOtherLongTermDebt_385e7a14-9b30-4aab-b44c-67e081e32d37" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_f59a9a63-3099-4e06-80ef-fee6f5b6f11a" 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_d53ed93c-9303-47de-9bbc-b258729862fc" xlink:to="loc_us-gaap_DebtInstrumentTable_f59a9a63-3099-4e06-80ef-fee6f5b6f11a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_bfc90932-b077-41d9-a637-0ea8e3e62053" 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_f59a9a63-3099-4e06-80ef-fee6f5b6f11a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_bfc90932-b077-41d9-a637-0ea8e3e62053" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_bfc90932-b077-41d9-a637-0ea8e3e62053_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_bfc90932-b077-41d9-a637-0ea8e3e62053" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_bfc90932-b077-41d9-a637-0ea8e3e62053_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_cacc2ed1-ddb6-49fa-9086-4695fe406b29" 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_bfc90932-b077-41d9-a637-0ea8e3e62053" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_cacc2ed1-ddb6-49fa-9086-4695fe406b29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_58451b3d-8ed4-4e01-a501-6b2ec0d058bb" 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_cacc2ed1-ddb6-49fa-9086-4695fe406b29" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_58451b3d-8ed4-4e01-a501-6b2ec0d058bb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_b2dab3c2-cbde-4ddb-addb-400a026b3c6f" 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_f59a9a63-3099-4e06-80ef-fee6f5b6f11a" xlink:to="loc_us-gaap_DebtInstrumentAxis_b2dab3c2-cbde-4ddb-addb-400a026b3c6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_b2dab3c2-cbde-4ddb-addb-400a026b3c6f_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_b2dab3c2-cbde-4ddb-addb-400a026b3c6f" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_b2dab3c2-cbde-4ddb-addb-400a026b3c6f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" 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_b2dab3c2-cbde-4ddb-addb-400a026b3c6f" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.90Due2020Domain_e81025b0-d251-4e89-b7fe-00b9b4f6bdcb" xlink:href="hsy-20200927.xsd#hsy_Notes2.90Due2020Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2.90Due2020Domain_e81025b0-d251-4e89-b7fe-00b9b4f6bdcb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes4.125Due2020Member_73eb36af-1f89-4565-931c-326c3f97dfbe" xlink:href="hsy-20200927.xsd#hsy_Notes4.125Due2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes4.125Due2020Member_73eb36af-1f89-4565-931c-326c3f97dfbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_d9ce5384-a38d-4532-ae4b-60e23721895c" xlink:href="hsy-20200927.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Debentures8.8Due2021Member_d9ce5384-a38d-4532-ae4b-60e23721895c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_ff1fe850-4226-413d-86b4-f7ffe1c9fdb3" xlink:href="hsy-20200927.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes3.10Due2021Domain_ff1fe850-4226-413d-86b4-f7ffe1c9fdb3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_7a93acf7-9450-4799-ad58-a2b07f9ea0f0" xlink:href="hsy-20200927.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2.625Due2023Member_7a93acf7-9450-4799-ad58-a2b07f9ea0f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_d86c63ea-6e2d-436b-be39-dcac631bc83c" xlink:href="hsy-20200927.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes3.375Due2023Domain_d86c63ea-6e2d-436b-be39-dcac631bc83c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_5eb4254b-5bf0-4b43-b7f2-a7774c0156c4" xlink:href="hsy-20200927.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2.050Due2024Member_5eb4254b-5bf0-4b43-b7f2-a7774c0156c4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_2a99bbde-3e95-4f14-b50a-f41af4456d05" xlink:href="hsy-20200927.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes0900NotesDue2025Member_2a99bbde-3e95-4f14-b50a-f41af4456d05" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_f62dea31-0355-4b2b-8c48-d784c77ef429" xlink:href="hsy-20200927.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes3.20Due2025Member_f62dea31-0355-4b2b-8c48-d784c77ef429" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_6a18c800-470f-4bd1-acb5-72b5c52b1a2d" xlink:href="hsy-20200927.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2.30Due2026Member_6a18c800-470f-4bd1-acb5-72b5c52b1a2d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_0ce70ede-2118-44f4-931b-b499696def8a" xlink:href="hsy-20200927.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Debentures7.2Due2027Member_0ce70ede-2118-44f4-931b-b499696def8a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_8d89f318-7be8-49f6-afb2-38806247347d" xlink:href="hsy-20200927.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2.450Due2029Member_8d89f318-7be8-49f6-afb2-38806247347d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_db08a89b-8394-441e-92d6-b33240d96c88" xlink:href="hsy-20200927.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes1700Due2030Member_db08a89b-8394-441e-92d6-b33240d96c88" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_76ea06c5-d10f-49f5-b9bc-c54cc231662b" xlink:href="hsy-20200927.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes3.375Due2046Member_76ea06c5-d10f-49f5-b9bc-c54cc231662b" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_77bdf33a-9e13-494a-bb77-c38d72be3f31" xlink:href="hsy-20200927.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes3.125Due2049Member_77bdf33a-9e13-494a-bb77-c38d72be3f31" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_8ceda9be-fc9c-4694-87f2-fd94e875cd02" xlink:href="hsy-20200927.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_863cedd1-affc-4117-9400-b1a74c8b9de3" xlink:to="loc_hsy_Notes2650NotesDue2050Member_8ceda9be-fc9c-4694-87f2-fd94e875cd02" xlink:type="arc" order="15"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails" xlink:type="extended" id="i2c83c2b9903d4a419f0b2d1d5a0cbd40_SHORTANDLONGTERMDEBTLONGTERMDEBTINTERESTRATESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6343f958-7492-4741-9b50-88351c21f744" 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_8e8158aa-92df-480b-8a32-c5a3a0c2599f" 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_6343f958-7492-4741-9b50-88351c21f744" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_8e8158aa-92df-480b-8a32-c5a3a0c2599f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_97ec7146-d54d-47d6-a78e-f374020b43c6" 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_6343f958-7492-4741-9b50-88351c21f744" xlink:to="loc_us-gaap_DebtInstrumentTable_97ec7146-d54d-47d6-a78e-f374020b43c6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_411f53c5-5156-4abc-9b01-7fe2d254ab01" 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_97ec7146-d54d-47d6-a78e-f374020b43c6" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_411f53c5-5156-4abc-9b01-7fe2d254ab01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_411f53c5-5156-4abc-9b01-7fe2d254ab01_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_411f53c5-5156-4abc-9b01-7fe2d254ab01" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_411f53c5-5156-4abc-9b01-7fe2d254ab01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a8268bb2-0d82-4317-99cc-a741a869c30c" 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_411f53c5-5156-4abc-9b01-7fe2d254ab01" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a8268bb2-0d82-4317-99cc-a741a869c30c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_ebe8e74f-aed0-4b39-a658-4fa9c3b687a5" 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_a8268bb2-0d82-4317-99cc-a741a869c30c" xlink:to="loc_us-gaap_DomesticCorporateDebtSecuritiesMember_ebe8e74f-aed0-4b39-a658-4fa9c3b687a5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_4501b572-2f66-4c06-b87e-f9da7b7cc640" 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_97ec7146-d54d-47d6-a78e-f374020b43c6" xlink:to="loc_us-gaap_DebtInstrumentAxis_4501b572-2f66-4c06-b87e-f9da7b7cc640" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_4501b572-2f66-4c06-b87e-f9da7b7cc640_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_4501b572-2f66-4c06-b87e-f9da7b7cc640" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_4501b572-2f66-4c06-b87e-f9da7b7cc640_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" 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_4501b572-2f66-4c06-b87e-f9da7b7cc640" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.90Due2020Domain_563370a2-599b-4e85-a726-958045179f07" xlink:href="hsy-20200927.xsd#hsy_Notes2.90Due2020Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2.90Due2020Domain_563370a2-599b-4e85-a726-958045179f07" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes4.125Due2020Member_19c07a52-1a10-4d9c-8d83-dfbe533f16a1" xlink:href="hsy-20200927.xsd#hsy_Notes4.125Due2020Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes4.125Due2020Member_19c07a52-1a10-4d9c-8d83-dfbe533f16a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures8.8Due2021Member_ca261fb8-1284-44c8-b851-f692894cac51" xlink:href="hsy-20200927.xsd#hsy_Debentures8.8Due2021Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Debentures8.8Due2021Member_ca261fb8-1284-44c8-b851-f692894cac51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.10Due2021Domain_f30f6ac1-1e9c-4d35-8d60-9bf11c37e214" xlink:href="hsy-20200927.xsd#hsy_Notes3.10Due2021Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes3.10Due2021Domain_f30f6ac1-1e9c-4d35-8d60-9bf11c37e214" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.625Due2023Member_a1092e96-70e9-41b0-8850-d92e6a4d6b60" xlink:href="hsy-20200927.xsd#hsy_Notes2.625Due2023Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2.625Due2023Member_a1092e96-70e9-41b0-8850-d92e6a4d6b60" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2023Domain_0f07671d-e677-4a22-bf16-3ed5b4dfa75f" xlink:href="hsy-20200927.xsd#hsy_Notes3.375Due2023Domain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes3.375Due2023Domain_0f07671d-e677-4a22-bf16-3ed5b4dfa75f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.050Due2024Member_8106d8ae-7315-4cd9-954f-65908a7272f0" xlink:href="hsy-20200927.xsd#hsy_Notes2.050Due2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2.050Due2024Member_8106d8ae-7315-4cd9-954f-65908a7272f0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes0900NotesDue2025Member_e5dda0f9-2727-43e8-9d3e-a58e58661225" xlink:href="hsy-20200927.xsd#hsy_Notes0900NotesDue2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes0900NotesDue2025Member_e5dda0f9-2727-43e8-9d3e-a58e58661225" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.20Due2025Member_b00ccf6c-5589-4342-a55b-0a6573f89dd4" xlink:href="hsy-20200927.xsd#hsy_Notes3.20Due2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes3.20Due2025Member_b00ccf6c-5589-4342-a55b-0a6573f89dd4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.30Due2026Member_94b09274-ea2b-4ea6-bfba-1c17008021a8" xlink:href="hsy-20200927.xsd#hsy_Notes2.30Due2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2.30Due2026Member_94b09274-ea2b-4ea6-bfba-1c17008021a8" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Debentures7.2Due2027Member_afa9a100-a4eb-4bf0-b957-e74763726d3f" xlink:href="hsy-20200927.xsd#hsy_Debentures7.2Due2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Debentures7.2Due2027Member_afa9a100-a4eb-4bf0-b957-e74763726d3f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2.450Due2029Member_014bd0db-df8c-4fc3-8eae-0548c3145190" xlink:href="hsy-20200927.xsd#hsy_Notes2.450Due2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2.450Due2029Member_014bd0db-df8c-4fc3-8eae-0548c3145190" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes1700Due2030Member_dcfa764b-4784-4055-b8e7-deba9d39f4e8" xlink:href="hsy-20200927.xsd#hsy_Notes1700Due2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes1700Due2030Member_dcfa764b-4784-4055-b8e7-deba9d39f4e8" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.375Due2046Member_0b0260e8-c70c-4b0d-8d09-42f5d904f81a" xlink:href="hsy-20200927.xsd#hsy_Notes3.375Due2046Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes3.375Due2046Member_0b0260e8-c70c-4b0d-8d09-42f5d904f81a" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes3.125Due2049Member_f1b0a6df-9e5c-4d94-ae85-6c0f0dc1cdc9" xlink:href="hsy-20200927.xsd#hsy_Notes3.125Due2049Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes3.125Due2049Member_f1b0a6df-9e5c-4d94-ae85-6c0f0dc1cdc9" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_Notes2650NotesDue2050Member_a2ecad60-6b25-44a9-b99a-48d5e309c3f7" xlink:href="hsy-20200927.xsd#hsy_Notes2650NotesDue2050Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_bac11e3a-1159-4169-a08f-bc810f0b3caf" xlink:to="loc_hsy_Notes2650NotesDue2050Member_a2ecad60-6b25-44a9-b99a-48d5e309c3f7" xlink:type="arc" order="15"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails" xlink:type="extended" id="i9b60cf048c2c4c6aadb58c1e6f6a7468_SHORTANDLONGTERMDEBTSCHEDULEOFNETINTERESTEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTS" xlink:type="extended" id="ibb89f39eb7cf4002a484da5339dccedd_DERIVATIVEINSTRUMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSTables" xlink:type="extended" id="i34df6e560b88433a9dbc6f60a22b0e72_DERIVATIVEINSTRUMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSNARRATIVEDetails" xlink:type="extended" id="i0216d9fe461b4a13a1ad81c4f408bb8f_DERIVATIVEINSTRUMENTSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_815c040e-8978-446e-bad2-6fe3752dd640" 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_03f93666-6642-4320-b03f-92417bda8287" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_DerivativeTermOfContract_03f93666-6642-4320-b03f-92417bda8287" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_019f3176-83c4-4d0a-b4b3-5d43dc841364" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_DerivativeNotionalAmount_019f3176-83c4-4d0a-b4b3-5d43dc841364" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_2c44485c-c89f-4900-b9b4-6ae38cd8013d" xlink:href="hsy-20200927.xsd#hsy_MinimumLengthofTimeHedgedinCashFlowHedge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_hsy_MinimumLengthofTimeHedgedinCashFlowHedge_2c44485c-c89f-4900-b9b4-6ae38cd8013d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_75ed9a0b-614c-4749-ac4c-221a0ea6ae4e" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInCashFlowHedge1_75ed9a0b-614c-4749-ac4c-221a0ea6ae4e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_a395f8c8-7acc-4352-8fdc-7d3943c76f07" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_a395f8c8-7acc-4352-8fdc-7d3943c76f07" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_3d3ae345-14a8-46f7-98d1-4d87e2fc3677" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_IncreaseDecreaseInFairValueOfHedgedItemInInterestRateFairValueHedge1_3d3ae345-14a8-46f7-98d1-4d87e2fc3677" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_9b107e65-42f3-4a7c-b4c8-fff28507be17" 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_815c040e-8978-446e-bad2-6fe3752dd640" xlink:to="loc_us-gaap_DerivativeTable_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_b73afadb-cd08-44db-b135-79130c84fe53" 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_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_b73afadb-cd08-44db-b135-79130c84fe53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_b73afadb-cd08-44db-b135-79130c84fe53_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_b73afadb-cd08-44db-b135-79130c84fe53" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_b73afadb-cd08-44db-b135-79130c84fe53_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_6bdc7032-3714-4761-8dd4-3c57c9e957b1" 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_b73afadb-cd08-44db-b135-79130c84fe53" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_a82629d9-ef74-4ee0-acf9-46297827c942" 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_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:to="loc_us-gaap_CommodityContractMember_a82629d9-ef74-4ee0-acf9-46297827c942" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_b1e40bb8-bd89-40da-a59c-64bb9d35af9d" 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_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:to="loc_us-gaap_ForeignExchangeContractMember_b1e40bb8-bd89-40da-a59c-64bb9d35af9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_3247a422-a501-4d61-8c7f-b59fac5a96df" 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_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:to="loc_us-gaap_InterestRateContractMember_3247a422-a501-4d61-8c7f-b59fac5a96df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_25879048-b51a-4b9d-952c-c80d2343fbfd" 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_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:to="loc_us-gaap_EquitySwapMember_25879048-b51a-4b9d-952c-c80d2343fbfd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_d7373828-de87-4d07-ac87-69c9f41e0153" 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_6bdc7032-3714-4761-8dd4-3c57c9e957b1" xlink:to="loc_us-gaap_InterestRateSwapMember_d7373828-de87-4d07-ac87-69c9f41e0153" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_1972a181-de65-4fea-bfd1-79105625d240" 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_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:to="loc_us-gaap_HedgingDesignationAxis_1972a181-de65-4fea-bfd1-79105625d240" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_1972a181-de65-4fea-bfd1-79105625d240_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_1972a181-de65-4fea-bfd1-79105625d240" xlink:to="loc_us-gaap_HedgingDesignationDomain_1972a181-de65-4fea-bfd1-79105625d240_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_4c6df1ad-3a9e-4891-8134-d2aef986e914" 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_1972a181-de65-4fea-bfd1-79105625d240" xlink:to="loc_us-gaap_HedgingDesignationDomain_4c6df1ad-3a9e-4891-8134-d2aef986e914" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_a5772fca-4c3f-44fa-b133-ac6246399f16" 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_4c6df1ad-3a9e-4891-8134-d2aef986e914" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_a5772fca-4c3f-44fa-b133-ac6246399f16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_34ff5b69-8052-4e0f-94b8-00916749e2b5" 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_4c6df1ad-3a9e-4891-8134-d2aef986e914" xlink:to="loc_us-gaap_NondesignatedMember_34ff5b69-8052-4e0f-94b8-00916749e2b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3586811f-0ae6-453f-8205-1ebd1d490fc3" 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_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_3586811f-0ae6-453f-8205-1ebd1d490fc3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_3586811f-0ae6-453f-8205-1ebd1d490fc3_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_3586811f-0ae6-453f-8205-1ebd1d490fc3" xlink:to="loc_us-gaap_HedgingRelationshipDomain_3586811f-0ae6-453f-8205-1ebd1d490fc3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_2639e242-cba3-437e-b7f1-e0bdaadecf0d" 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_3586811f-0ae6-453f-8205-1ebd1d490fc3" xlink:to="loc_us-gaap_HedgingRelationshipDomain_2639e242-cba3-437e-b7f1-e0bdaadecf0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_1903c207-6325-48d4-b25e-f45cf419e8da" 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_2639e242-cba3-437e-b7f1-e0bdaadecf0d" xlink:to="loc_us-gaap_CashFlowHedgingMember_1903c207-6325-48d4-b25e-f45cf419e8da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_e812667c-ac9f-4bba-9dd2-a8040759a767" 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_2639e242-cba3-437e-b7f1-e0bdaadecf0d" xlink:to="loc_us-gaap_FairValueHedgingMember_e812667c-ac9f-4bba-9dd2-a8040759a767" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_fb64b0c3-c2a0-4903-8881-b149cc20f0fe" 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_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:to="loc_srt_RangeAxis_fb64b0c3-c2a0-4903-8881-b149cc20f0fe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fb64b0c3-c2a0-4903-8881-b149cc20f0fe_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_fb64b0c3-c2a0-4903-8881-b149cc20f0fe" xlink:to="loc_srt_RangeMember_fb64b0c3-c2a0-4903-8881-b149cc20f0fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c184b339-bff8-4f72-976f-9b2b676c4800" 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_fb64b0c3-c2a0-4903-8881-b149cc20f0fe" xlink:to="loc_srt_RangeMember_c184b339-bff8-4f72-976f-9b2b676c4800" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_989ce5c5-0517-4448-af2a-16528db40b81" 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_c184b339-bff8-4f72-976f-9b2b676c4800" xlink:to="loc_srt_MinimumMember_989ce5c5-0517-4448-af2a-16528db40b81" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_1ea693d3-3800-4bad-8269-82e35429ad05" 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_c184b339-bff8-4f72-976f-9b2b676c4800" xlink:to="loc_srt_MaximumMember_1ea693d3-3800-4bad-8269-82e35429ad05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd" 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_9b107e65-42f3-4a7c-b4c8-fff28507be17" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd_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_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_13422af2-434c-4720-b624-ee44e22cbd23" 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_b3ef6f93-7522-4ff4-b1df-5cc4f8afc0cd" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_13422af2-434c-4720-b624-ee44e22cbd23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_573ee88f-17d0-4ef3-9e03-4c391852bcd8" 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_13422af2-434c-4720-b624-ee44e22cbd23" xlink:to="loc_us-gaap_InterestExpenseMember_573ee88f-17d0-4ef3-9e03-4c391852bcd8" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails" xlink:type="extended" id="if337edb735794f3d9fd87e33335e6bfe_DERIVATIVEINSTRUMENTSSCHEDULEOFTHECLASSIFICATIONOFDERIVATIVEASSETSANDLIABILITIESWITHINTHECONSOLIDATEDBALANCESHEETSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" 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_f1a57a5a-db60-4ffc-8666-41cce6c59417" 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_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" xlink:to="loc_us-gaap_DerivativeAssets_f1a57a5a-db60-4ffc-8666-41cce6c59417" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_72b6586f-6840-431c-8242-97089cd99641" 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_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" xlink:to="loc_us-gaap_DerivativeLiabilities_72b6586f-6840-431c-8242-97089cd99641" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_8046536a-012c-4f27-8e1a-979920f13824" xlink:href="hsy-20200927.xsd#hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" xlink:to="loc_hsy_DerivativeAssetCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_8046536a-012c-4f27-8e1a-979920f13824" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_10b5a794-49fd-42ee-8d05-41423f20163a" xlink:href="hsy-20200927.xsd#hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" xlink:to="loc_hsy_DerivativeLiabilityCashTransfersReceivablePayableChangeInQuotedMarketPricesOnTheLastDayOfTrading_10b5a794-49fd-42ee-8d05-41423f20163a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_582903bd-8539-458b-bd87-d60150d50bfb" 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_cdb8d322-0e1e-4de4-bb32-3d25304bdf7e" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_582903bd-8539-458b-bd87-d60150d50bfb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_775aed12-7666-4544-8ba4-30e61f05771b" 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_582903bd-8539-458b-bd87-d60150d50bfb" xlink:to="loc_us-gaap_HedgingDesignationAxis_775aed12-7666-4544-8ba4-30e61f05771b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_775aed12-7666-4544-8ba4-30e61f05771b_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_775aed12-7666-4544-8ba4-30e61f05771b" xlink:to="loc_us-gaap_HedgingDesignationDomain_775aed12-7666-4544-8ba4-30e61f05771b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_da81e9e0-318c-4276-b779-d9b0f1e0fe94" 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_775aed12-7666-4544-8ba4-30e61f05771b" xlink:to="loc_us-gaap_HedgingDesignationDomain_da81e9e0-318c-4276-b779-d9b0f1e0fe94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_ce40c5fd-3d48-4be9-986c-aa00545f8775" 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_da81e9e0-318c-4276-b779-d9b0f1e0fe94" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_ce40c5fd-3d48-4be9-986c-aa00545f8775" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_c824c9f5-92c5-40bf-b460-47c99b2aa7f9" 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_da81e9e0-318c-4276-b779-d9b0f1e0fe94" xlink:to="loc_us-gaap_NondesignatedMember_c824c9f5-92c5-40bf-b460-47c99b2aa7f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87" 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_582903bd-8539-458b-bd87-d60150d50bfb" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87_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_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87" xlink:to="loc_us-gaap_HedgingRelationshipDomain_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_5f2ab3f5-4596-471c-8ace-ffd7a3e6e9da" 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_0b98bb7d-14dc-4cd0-9b7d-52db1660eb87" xlink:to="loc_us-gaap_HedgingRelationshipDomain_5f2ab3f5-4596-471c-8ace-ffd7a3e6e9da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_04268f73-ae16-4a40-bf9b-90bed0209ae9" 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_5f2ab3f5-4596-471c-8ace-ffd7a3e6e9da" xlink:to="loc_us-gaap_CashFlowHedgingMember_04268f73-ae16-4a40-bf9b-90bed0209ae9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_06b20edb-1b19-4b1d-a18a-995180a0c931" 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_5f2ab3f5-4596-471c-8ace-ffd7a3e6e9da" xlink:to="loc_us-gaap_FairValueHedgingMember_06b20edb-1b19-4b1d-a18a-995180a0c931" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d" 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_582903bd-8539-458b-bd87-d60150d50bfb" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d_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_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_766efb59-08fc-4c78-9574-fca3711f9035" 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_05df0e1d-2e1c-49e7-8e52-4fd13df1c48d" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_766efb59-08fc-4c78-9574-fca3711f9035" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_dc2000d0-aa27-4a7e-9f84-f2bf68f17c73" 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_766efb59-08fc-4c78-9574-fca3711f9035" xlink:to="loc_us-gaap_CommodityContractMember_dc2000d0-aa27-4a7e-9f84-f2bf68f17c73" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_68096b9e-b4db-4d68-b72f-4fbe70c6a278" 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_766efb59-08fc-4c78-9574-fca3711f9035" xlink:to="loc_us-gaap_ForeignExchangeContractMember_68096b9e-b4db-4d68-b72f-4fbe70c6a278" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_e9075570-3075-4d71-8efa-f902f9317c65" 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_766efb59-08fc-4c78-9574-fca3711f9035" xlink:to="loc_us-gaap_InterestRateContractMember_e9075570-3075-4d71-8efa-f902f9317c65" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_78eac315-af6d-4dc5-a6d9-db1670c910cb" 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_766efb59-08fc-4c78-9574-fca3711f9035" xlink:to="loc_us-gaap_EquitySwapMember_78eac315-af6d-4dc5-a6d9-db1670c910cb" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails" xlink:type="extended" id="i4b6d8a81106b4f9bb24e6298d4f651d3_DERIVATIVEINSTRUMENTSSCHEDULEOFTHEEFFECTOFDERIVATIVEINSTRUMENTSONTHECONSOLIDATEDSTATEMENTSOFINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_8df921f2-317a-42af-ad75-1617164c410a" 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_78e46b25-d76a-48af-9cad-84db1f1d952c" 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_8df921f2-317a-42af-ad75-1617164c410a" xlink:to="loc_us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet_78e46b25-d76a-48af-9cad-84db1f1d952c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_b520070d-ab80-44ca-b6ce-309bfaaa6371" 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_8df921f2-317a-42af-ad75-1617164c410a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_b520070d-ab80-44ca-b6ce-309bfaaa6371" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_b0845d98-c2fb-40cb-8079-b5fda80154ea" 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_8df921f2-317a-42af-ad75-1617164c410a" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_b0845d98-c2fb-40cb-8079-b5fda80154ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_4f101ab7-2630-4d2f-8f9f-f51e45f91d88" 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_8df921f2-317a-42af-ad75-1617164c410a" xlink:to="loc_us-gaap_DerivativeTable_4f101ab7-2630-4d2f-8f9f-f51e45f91d88" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_3d6363a0-b931-4f4c-91d0-d0247f29f008" 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_4f101ab7-2630-4d2f-8f9f-f51e45f91d88" xlink:to="loc_us-gaap_HedgingDesignationAxis_3d6363a0-b931-4f4c-91d0-d0247f29f008" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_3d6363a0-b931-4f4c-91d0-d0247f29f008_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_3d6363a0-b931-4f4c-91d0-d0247f29f008" xlink:to="loc_us-gaap_HedgingDesignationDomain_3d6363a0-b931-4f4c-91d0-d0247f29f008_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_ab215657-faf6-4d2b-b399-103d67702e27" 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_3d6363a0-b931-4f4c-91d0-d0247f29f008" xlink:to="loc_us-gaap_HedgingDesignationDomain_ab215657-faf6-4d2b-b399-103d67702e27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_953ac0ff-0f19-4871-8198-2b8625f1b057" 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_ab215657-faf6-4d2b-b399-103d67702e27" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_953ac0ff-0f19-4871-8198-2b8625f1b057" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_53562dcc-2f4b-4620-b66d-93bb0a819d37" 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_4f101ab7-2630-4d2f-8f9f-f51e45f91d88" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_53562dcc-2f4b-4620-b66d-93bb0a819d37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_53562dcc-2f4b-4620-b66d-93bb0a819d37_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_53562dcc-2f4b-4620-b66d-93bb0a819d37" xlink:to="loc_us-gaap_HedgingRelationshipDomain_53562dcc-2f4b-4620-b66d-93bb0a819d37_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_2f68537b-baf8-4a37-90f1-82bc1094fc95" 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_53562dcc-2f4b-4620-b66d-93bb0a819d37" xlink:to="loc_us-gaap_HedgingRelationshipDomain_2f68537b-baf8-4a37-90f1-82bc1094fc95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_9cc70a89-0b3b-43c3-b118-9b421f9eb069" 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_2f68537b-baf8-4a37-90f1-82bc1094fc95" xlink:to="loc_us-gaap_CashFlowHedgingMember_9cc70a89-0b3b-43c3-b118-9b421f9eb069" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_4a84b6a0-c270-4106-99f7-2cb4a67f35f3" 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_4f101ab7-2630-4d2f-8f9f-f51e45f91d88" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_4a84b6a0-c270-4106-99f7-2cb4a67f35f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4a84b6a0-c270-4106-99f7-2cb4a67f35f3_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_4a84b6a0-c270-4106-99f7-2cb4a67f35f3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4a84b6a0-c270-4106-99f7-2cb4a67f35f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_eace72dd-882a-4d97-804d-729b8f354994" 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_4a84b6a0-c270-4106-99f7-2cb4a67f35f3" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_eace72dd-882a-4d97-804d-729b8f354994" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_ca598be3-eac8-4d70-9590-5d9c77d4b0b6" 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_eace72dd-882a-4d97-804d-729b8f354994" xlink:to="loc_us-gaap_CommodityContractMember_ca598be3-eac8-4d70-9590-5d9c77d4b0b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_cd7cf66f-d004-4c7d-93eb-aa8cd9bc1c07" 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_eace72dd-882a-4d97-804d-729b8f354994" xlink:to="loc_us-gaap_ForeignExchangeContractMember_cd7cf66f-d004-4c7d-93eb-aa8cd9bc1c07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_ec275401-ee7c-42d5-bbe2-0c82bc745992" 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_eace72dd-882a-4d97-804d-729b8f354994" xlink:to="loc_us-gaap_InterestRateContractMember_ec275401-ee7c-42d5-bbe2-0c82bc745992" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_ac671bb7-22d7-4c91-bb0b-556ab37309f5" 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_eace72dd-882a-4d97-804d-729b8f354994" xlink:to="loc_us-gaap_EquitySwapMember_ac671bb7-22d7-4c91-bb0b-556ab37309f5" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails" xlink:type="extended" id="ie1214166d4e24a49b608a10e6ebc64e1_DERIVATIVEINSTRUMENTSSCHEDULEOFCUMULATIVEBASISADJUSTMENTSFORINTERESTRATESWAPDERIVATIVESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_c1773622-9da8-4cbf-b9f5-3839d459b260" 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_DerivativeFairValueOfDerivativeNet_bd852da4-88ff-4cb6-a435-5ef7bc66fc6e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_c1773622-9da8-4cbf-b9f5-3839d459b260" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeNet_bd852da4-88ff-4cb6-a435-5ef7bc66fc6e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_542eb026-b115-4d15-9d5d-875ccbf38858" 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_DerivativeLineItems_c1773622-9da8-4cbf-b9f5-3839d459b260" xlink:to="loc_us-gaap_DerivativeAssets_542eb026-b115-4d15-9d5d-875ccbf38858" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_bb5147b3-ed9b-4eae-bb9c-3b1a0fe73e84" 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_c1773622-9da8-4cbf-b9f5-3839d459b260" xlink:to="loc_us-gaap_DerivativeTable_bb5147b3-ed9b-4eae-bb9c-3b1a0fe73e84" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_77765aab-9659-4a74-92db-f6eb049e89b1" 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_bb5147b3-ed9b-4eae-bb9c-3b1a0fe73e84" xlink:to="loc_us-gaap_HedgingDesignationAxis_77765aab-9659-4a74-92db-f6eb049e89b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_77765aab-9659-4a74-92db-f6eb049e89b1_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_77765aab-9659-4a74-92db-f6eb049e89b1" xlink:to="loc_us-gaap_HedgingDesignationDomain_77765aab-9659-4a74-92db-f6eb049e89b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_5a6e12d5-7ae9-4646-9c77-cec4cd0ff496" 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_77765aab-9659-4a74-92db-f6eb049e89b1" xlink:to="loc_us-gaap_HedgingDesignationDomain_5a6e12d5-7ae9-4646-9c77-cec4cd0ff496" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_3d304d26-8cbe-446f-a569-20f1f84ac1bd" 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_5a6e12d5-7ae9-4646-9c77-cec4cd0ff496" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_3d304d26-8cbe-446f-a569-20f1f84ac1bd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1549eb1d-c0b1-4bda-8d4b-f166a017b80d" 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_bb5147b3-ed9b-4eae-bb9c-3b1a0fe73e84" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_1549eb1d-c0b1-4bda-8d4b-f166a017b80d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_1549eb1d-c0b1-4bda-8d4b-f166a017b80d_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_1549eb1d-c0b1-4bda-8d4b-f166a017b80d" xlink:to="loc_us-gaap_HedgingRelationshipDomain_1549eb1d-c0b1-4bda-8d4b-f166a017b80d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_9622bc0a-48af-4e7a-bfa0-b2e9575cc950" 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_1549eb1d-c0b1-4bda-8d4b-f166a017b80d" xlink:to="loc_us-gaap_HedgingRelationshipDomain_9622bc0a-48af-4e7a-bfa0-b2e9575cc950" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_a8dfd67c-ac21-4491-91d5-30bd46cd2a52" 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_9622bc0a-48af-4e7a-bfa0-b2e9575cc950" xlink:to="loc_us-gaap_FairValueHedgingMember_a8dfd67c-ac21-4491-91d5-30bd46cd2a52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_ee84649c-d68a-4707-89c5-e051d2237fbe" 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_bb5147b3-ed9b-4eae-bb9c-3b1a0fe73e84" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_ee84649c-d68a-4707-89c5-e051d2237fbe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_ee84649c-d68a-4707-89c5-e051d2237fbe_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_ee84649c-d68a-4707-89c5-e051d2237fbe" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_ee84649c-d68a-4707-89c5-e051d2237fbe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d19365b4-f2be-485e-acea-c3d9162a6ed3" 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_ee84649c-d68a-4707-89c5-e051d2237fbe" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d19365b4-f2be-485e-acea-c3d9162a6ed3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_c6951ace-a29a-4074-8931-a6bffb74845c" 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_d19365b4-f2be-485e-acea-c3d9162a6ed3" xlink:to="loc_us-gaap_InterestRateSwapMember_c6951ace-a29a-4074-8931-a6bffb74845c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTS" xlink:type="extended" id="i4590170464444fa88824e39d9dc4ff16_FAIRVALUEMEASUREMENTS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSTables" xlink:type="extended" id="i2a2e15e6ee364313b36e68dff9fbf056_FAIRVALUEMEASUREMENTSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSNARRATIVEDetails" xlink:type="extended" id="if84bc156008e4393a5da23d0838786f3_FAIRVALUEMEASUREMENTSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_f5393a18-5c1e-4e91-83ed-926ed6981c49" 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_aa9938b7-4c3d-40fb-a4a2-4f3c5db6af0c" 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_f5393a18-5c1e-4e91-83ed-926ed6981c49" xlink:to="loc_us-gaap_FairValueNetAssetLiability_aa9938b7-4c3d-40fb-a4a2-4f3c5db6af0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_cd97454d-9c02-48c3-82f4-ef4c5862812b" 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_f5393a18-5c1e-4e91-83ed-926ed6981c49" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_cd97454d-9c02-48c3-82f4-ef4c5862812b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f67c9f17-beef-4d17-9076-17656d2d4c5b" 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_cd97454d-9c02-48c3-82f4-ef4c5862812b" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_f67c9f17-beef-4d17-9076-17656d2d4c5b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f67c9f17-beef-4d17-9076-17656d2d4c5b_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_f67c9f17-beef-4d17-9076-17656d2d4c5b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_f67c9f17-beef-4d17-9076-17656d2d4c5b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2268c1e5-8036-49cd-bc7a-5c82b9710f70" 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_f67c9f17-beef-4d17-9076-17656d2d4c5b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2268c1e5-8036-49cd-bc7a-5c82b9710f70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_dc5c2e8a-2750-4be1-8810-56be187b42b5" 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_2268c1e5-8036-49cd-bc7a-5c82b9710f70" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_dc5c2e8a-2750-4be1-8810-56be187b42b5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails" xlink:type="extended" id="i8a2d1969e25c4aa9bba0d9033996b992_FAIRVALUEMEASUREMENTSSCHEDULEOFASSETSANDLIABILITIESMEASUREDATFAIRVALUEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_1669f5c5-65bd-4e86-b055-d34cf73740e7" 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_828772e1-24d6-4ebe-8ab8-5aafd34894b3" 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_1669f5c5-65bd-4e86-b055-d34cf73740e7" xlink:to="loc_us-gaap_DerivativeAssets_828772e1-24d6-4ebe-8ab8-5aafd34894b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_c35f9be3-e582-40c9-a386-f2674b54d61d" 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_1669f5c5-65bd-4e86-b055-d34cf73740e7" xlink:to="loc_us-gaap_DerivativeLiabilities_c35f9be3-e582-40c9-a386-f2674b54d61d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_e6b90da9-f10d-433d-810f-a60fe95ef235" 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_1669f5c5-65bd-4e86-b055-d34cf73740e7" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_e6b90da9-f10d-433d-810f-a60fe95ef235" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4c1df4f5-f358-42b6-a373-cbe473326f10" 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_e6b90da9-f10d-433d-810f-a60fe95ef235" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_4c1df4f5-f358-42b6-a373-cbe473326f10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_4c1df4f5-f358-42b6-a373-cbe473326f10_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_4c1df4f5-f358-42b6-a373-cbe473326f10" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_4c1df4f5-f358-42b6-a373-cbe473326f10_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_acd69596-363a-424f-9a34-4ae374e94909" 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_4c1df4f5-f358-42b6-a373-cbe473326f10" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_acd69596-363a-424f-9a34-4ae374e94909" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_b7b8c135-44aa-4aa7-b034-e81f55c1adbc" 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_acd69596-363a-424f-9a34-4ae374e94909" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_b7b8c135-44aa-4aa7-b034-e81f55c1adbc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_987d3485-03b2-4bcc-a50f-2f5637dcae0e" 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_e6b90da9-f10d-433d-810f-a60fe95ef235" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_987d3485-03b2-4bcc-a50f-2f5637dcae0e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_987d3485-03b2-4bcc-a50f-2f5637dcae0e_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_987d3485-03b2-4bcc-a50f-2f5637dcae0e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_987d3485-03b2-4bcc-a50f-2f5637dcae0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d077d976-2619-4581-b9f4-eb32f95ed0f9" 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_987d3485-03b2-4bcc-a50f-2f5637dcae0e" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d077d976-2619-4581-b9f4-eb32f95ed0f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_d3add0d3-710a-46cd-8b67-c6a8eaf9f9ff" 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_d077d976-2619-4581-b9f4-eb32f95ed0f9" xlink:to="loc_us-gaap_ForeignExchangeContractMember_d3add0d3-710a-46cd-8b67-c6a8eaf9f9ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_304be2ec-d999-409e-991e-86d379218373" 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_d077d976-2619-4581-b9f4-eb32f95ed0f9" xlink:to="loc_us-gaap_InterestRateContractMember_304be2ec-d999-409e-991e-86d379218373" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySwapMember_cf91e114-c49a-4a0b-a8ef-8194f190c065" 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_d077d976-2619-4581-b9f4-eb32f95ed0f9" xlink:to="loc_us-gaap_EquitySwapMember_cf91e114-c49a-4a0b-a8ef-8194f190c065" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_43df1966-b302-44ee-b0ca-583eee628221" 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_d077d976-2619-4581-b9f4-eb32f95ed0f9" xlink:to="loc_us-gaap_CommodityContractMember_43df1966-b302-44ee-b0ca-583eee628221" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4a577e7-a208-494f-bcf3-50ae472fbd8d" 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_e6b90da9-f10d-433d-810f-a60fe95ef235" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_e4a577e7-a208-494f-bcf3-50ae472fbd8d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_e4a577e7-a208-494f-bcf3-50ae472fbd8d_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_e4a577e7-a208-494f-bcf3-50ae472fbd8d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_e4a577e7-a208-494f-bcf3-50ae472fbd8d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5c2bcd39-0148-4ae3-8622-2a070ff094b9" 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_e4a577e7-a208-494f-bcf3-50ae472fbd8d" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_5c2bcd39-0148-4ae3-8622-2a070ff094b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_31775774-4c47-4f19-bd99-a0846468dbfb" 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_5c2bcd39-0148-4ae3-8622-2a070ff094b9" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_31775774-4c47-4f19-bd99-a0846468dbfb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_fc430de5-f690-4af5-bb95-0ca49cbe1ac4" 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_5c2bcd39-0148-4ae3-8622-2a070ff094b9" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_fc430de5-f690-4af5-bb95-0ca49cbe1ac4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_92d7565d-02f7-4ad4-ac80-7e047e786414" 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_5c2bcd39-0148-4ae3-8622-2a070ff094b9" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_92d7565d-02f7-4ad4-ac80-7e047e786414" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails" xlink:type="extended" id="i54c254f7e0e543b080fc1d0cd7ebb968_FAIRVALUEMEASUREMENTSSCHEDULEOFFAIRVALUESANDCARRYINGVALUESOFLONGTERMDEBTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f953e612-0680-429e-90a3-f399ff8df488" 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_d48aa959-8e05-4ab1-a9ef-d8368585da6f" xlink:href="hsy-20200927.xsd#hsy_LongtermDebtCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_hsy_LongtermDebtCurrentMaturitiesFairValue_d48aa959-8e05-4ab1-a9ef-d8368585da6f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_ff9a8be9-97cf-4232-83fa-114d96877b62" xlink:href="hsy-20200927.xsd#hsy_LongtermDebtExcludingCurrentMaturitiesFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_hsy_LongtermDebtExcludingCurrentMaturitiesFairValue_ff9a8be9-97cf-4232-83fa-114d96877b62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_14df39dd-9096-4270-b209-8c9fdadfe3a9" 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_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_us-gaap_LongTermDebtFairValue_14df39dd-9096-4270-b209-8c9fdadfe3a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_6a375eea-aad9-4c1c-8c1d-e88c0992fb66" 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_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_us-gaap_LongTermDebtCurrent_6a375eea-aad9-4c1c-8c1d-e88c0992fb66" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_e8376fbf-da01-4259-87e4-fc69a7f6d03e" 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_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_e8376fbf-da01-4259-87e4-fc69a7f6d03e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_7c903ec2-6575-4a1d-ab72-fd20f3e8c7af" 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_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_us-gaap_LongTermDebt_7c903ec2-6575-4a1d-ab72-fd20f3e8c7af" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_94c5e2dc-b65c-4753-96ff-2ba6389b2892" 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_f953e612-0680-429e-90a3-f399ff8df488" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_94c5e2dc-b65c-4753-96ff-2ba6389b2892" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_98dcb441-b96e-4bdf-93d5-91d8e102c31c" 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_94c5e2dc-b65c-4753-96ff-2ba6389b2892" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_98dcb441-b96e-4bdf-93d5-91d8e102c31c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_98dcb441-b96e-4bdf-93d5-91d8e102c31c_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_98dcb441-b96e-4bdf-93d5-91d8e102c31c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_98dcb441-b96e-4bdf-93d5-91d8e102c31c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_71f81b64-1967-45a3-bcb4-ad1e64507cb6" 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_98dcb441-b96e-4bdf-93d5-91d8e102c31c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_71f81b64-1967-45a3-bcb4-ad1e64507cb6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_55f0bc70-1660-4ecd-bd94-dedad6f825d6" 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_71f81b64-1967-45a3-bcb4-ad1e64507cb6" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_55f0bc70-1660-4ecd-bd94-dedad6f825d6" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails" xlink:type="extended" id="i539e5bdd6dbd42fea32bbe70ad3db880_FAIRVALUEMEASUREMENTSSCHEDULEOFIMPAIRMENTCHARGESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0a94ce98-b23f-440a-8c87-8d8c6368e08b" 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_e947df4b-a9ca-478f-91a0-edad700f6ca3" 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_0a94ce98-b23f-440a-8c87-8d8c6368e08b" xlink:to="loc_us-gaap_ImpairmentChargeOnReclassifiedAssets_e947df4b-a9ca-478f-91a0-edad700f6ca3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_b35a9491-5bcb-4a9c-b238-ea44c882f61a" 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_0a94ce98-b23f-440a-8c87-8d8c6368e08b" xlink:to="loc_us-gaap_AssetImpairmentCharges_b35a9491-5bcb-4a9c-b238-ea44c882f61a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_21c49d1c-b441-43e1-a1ba-dc375b4576ef" 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_0a94ce98-b23f-440a-8c87-8d8c6368e08b" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_21c49d1c-b441-43e1-a1ba-dc375b4576ef" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_5be4117f-08d6-4d3c-acf1-9936af30a8e9" 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_21c49d1c-b441-43e1-a1ba-dc375b4576ef" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_5be4117f-08d6-4d3c-acf1-9936af30a8e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5be4117f-08d6-4d3c-acf1-9936af30a8e9_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_5be4117f-08d6-4d3c-acf1-9936af30a8e9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_5be4117f-08d6-4d3c-acf1-9936af30a8e9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05c0f802-3a02-4652-9c71-dee45ee57b9a" 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_5be4117f-08d6-4d3c-acf1-9936af30a8e9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_05c0f802-3a02-4652-9c71-dee45ee57b9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMember_4369c858-e9ff-476a-9848-46dfee07275a" 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_05c0f802-3a02-4652-9c71-dee45ee57b9a" xlink:to="loc_us-gaap_OtherAssetsMember_4369c858-e9ff-476a-9848-46dfee07275a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASES" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASES" xlink:type="extended" id="i77f3464e80794af68daf2e6b4abcea90_LEASES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESTables" xlink:type="extended" id="ie7b0539cf47149d1b6e83590baa1716b_LEASESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails" xlink:type="extended" id="i73da7917f682469ab190a2a00e06b4a1_LEASESSCHEDULEOFCOMPONENETSOFLEASEEXPENSEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails" xlink:type="extended" id="i75378dd85a8f46b9b770f1f1467cbf5e_LEASESSCHEDULEOFINFORMATIONREGARDINGOURLEASETERMSANDDISCOUNTRATESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="i04beb40247e2430e8ba0abc753facd36_LEASESSUPPLEMENTALBALANCESHEETINFORMATIONRELATEDTOLEASESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_b93b987a-5b63-4bc5-b6c2-4113629575cf" 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_b555f855-2624-478f-b19f-7eff8537da00" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_b555f855-2624-478f-b19f-7eff8537da00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAsset_9b16d9d1-bab6-40ed-830c-ac4a00b749c4" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAsset_9b16d9d1-bab6-40ed-830c-ac4a00b749c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_0ade4934-baa3-48c3-9af0-1b461d5086a6" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAccumulatedAmortization_0ade4934-baa3-48c3-9af0-1b461d5086a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseRightofUseAsset_b27fe664-429f-4b05-a8e2-cceee28af0e4" xlink:href="hsy-20200927.xsd#hsy_LeaseRightofUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_hsy_LeaseRightofUseAsset_b27fe664-429f-4b05-a8e2-cceee28af0e4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_bddac827-57d9-40cd-aa29-745d9a5b2cdf" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_bddac827-57d9-40cd-aa29-745d9a5b2cdf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_f1c4feb9-f8e3-431c-942b-d6827470cb55" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_f1c4feb9-f8e3-431c-942b-d6827470cb55" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d7fd5f48-9b58-47a3-adf0-6f4e28a4bcd7" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_d7fd5f48-9b58-47a3-adf0-6f4e28a4bcd7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b6ce80da-440e-4834-adfe-54313a6e99c4" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_b6ce80da-440e-4834-adfe-54313a6e99c4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LeaseLiability_755fa08c-f30a-4840-9c7e-a31a46e22dfd" xlink:href="hsy-20200927.xsd#hsy_LeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_hsy_LeaseLiability_755fa08c-f30a-4840-9c7e-a31a46e22dfd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_0fc835a7-d715-47ef-a6a5-0d3143b711b8" 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_b93b987a-5b63-4bc5-b6c2-4113629575cf" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_0fc835a7-d715-47ef-a6a5-0d3143b711b8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_617e0e2a-7925-4e64-92cf-a643ff1a67dc" 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_0fc835a7-d715-47ef-a6a5-0d3143b711b8" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_617e0e2a-7925-4e64-92cf-a643ff1a67dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_617e0e2a-7925-4e64-92cf-a643ff1a67dc_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_617e0e2a-7925-4e64-92cf-a643ff1a67dc" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_617e0e2a-7925-4e64-92cf-a643ff1a67dc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_ccb7d68b-69d4-4607-957b-ddd85330823d" 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_617e0e2a-7925-4e64-92cf-a643ff1a67dc" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_ccb7d68b-69d4-4607-957b-ddd85330823d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PropertyPlantandEquipmentGrossMember_b19d61a8-5ab7-4bf7-b072-b5ff05c3713b" xlink:href="hsy-20200927.xsd#hsy_PropertyPlantandEquipmentGrossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_ccb7d68b-69d4-4607-957b-ddd85330823d" xlink:to="loc_hsy_PropertyPlantandEquipmentGrossMember_b19d61a8-5ab7-4bf7-b072-b5ff05c3713b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_AccumulatedDepreciationMember_8c1efc79-e113-45a3-adc3-ede68dcb333e" xlink:href="hsy-20200927.xsd#hsy_AccumulatedDepreciationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_ccb7d68b-69d4-4607-957b-ddd85330823d" xlink:to="loc_hsy_AccumulatedDepreciationMember_8c1efc79-e113-45a3-adc3-ede68dcb333e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentMember_1bcb117f-2df6-4a8e-9d55-3e248e2872c3" 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_ccb7d68b-69d4-4607-957b-ddd85330823d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentMember_1bcb117f-2df6-4a8e-9d55-3e248e2872c3" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails" xlink:type="extended" id="i13c401e1b1af48be83a4cc281219166a_LEASESSCHEDULEOFMATURITIESOFLEASELIABILITIESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails" xlink:type="extended" id="i502bf8a10ab54b41b18388d6d7fb1cfd_LEASESSCHEDULEOFSUPPLEMENTALCASHFLOWINFORMATIONRELATEDTOLEASESDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="simple" xlink:href="hsy-20200927.xsd#ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/ASSETSANDLIABILITIESHELDFORSALE" xlink:type="extended" id="i327da21f3db44772ad695e1c2369df04_ASSETSANDLIABILITIESHELDFORSALE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSREALIGNMENTACTIVITIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIES" xlink:type="extended" id="i4c4d14d4005a4f8a9d477e95b68c1235_BUSINESSREALIGNMENTACTIVITIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESTables" xlink:type="extended" id="ide27cdfcb3824824bd94b8944b83c5a0_BUSINESSREALIGNMENTACTIVITIESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails" xlink:type="extended" id="i6cceb04af03042dc83d2282eb0e3f3c1_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFBUSINESSREALIGNMENTACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_0aa5ab07-7993-449c-917c-44f0b3325833" 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_4673f55d-bc94-4a00-b499-fb32c8a247eb" 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_0aa5ab07-7993-449c-917c-44f0b3325833" xlink:to="loc_us-gaap_RestructuringCharges_4673f55d-bc94-4a00-b499-fb32c8a247eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_21ef379a-7708-4b7b-b350-471659d14ecc" 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_0aa5ab07-7993-449c-917c-44f0b3325833" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_21ef379a-7708-4b7b-b350-471659d14ecc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_bca60afd-807c-48ba-8977-df481e8a5dff" 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_21ef379a-7708-4b7b-b350-471659d14ecc" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_bca60afd-807c-48ba-8977-df481e8a5dff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_bca60afd-807c-48ba-8977-df481e8a5dff_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_bca60afd-807c-48ba-8977-df481e8a5dff" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_bca60afd-807c-48ba-8977-df481e8a5dff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_d4a1a5ce-f787-4569-965e-4841322e0641" 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_bca60afd-807c-48ba-8977-df481e8a5dff" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_d4a1a5ce-f787-4569-965e-4841322e0641" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_64f200f8-f75d-4176-b8bf-7aa2bfb3d074" 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_d4a1a5ce-f787-4569-965e-4841322e0641" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpensesMember_64f200f8-f75d-4176-b8bf-7aa2bfb3d074" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_9e003fa8-d7e5-4140-b1ab-3582d99bf073" 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_d4a1a5ce-f787-4569-965e-4841322e0641" xlink:to="loc_us-gaap_RestructuringChargesMember_9e003fa8-d7e5-4140-b1ab-3582d99bf073" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveAxis_051ee9fc-42e4-4701-a90b-d9dd8668b2fc" 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_21ef379a-7708-4b7b-b350-471659d14ecc" xlink:to="loc_us-gaap_RestructuringCostAndReserveAxis_051ee9fc-42e4-4701-a90b-d9dd8668b2fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_051ee9fc-42e4-4701-a90b-d9dd8668b2fc_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_051ee9fc-42e4-4701-a90b-d9dd8668b2fc" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_051ee9fc-42e4-4701-a90b-d9dd8668b2fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TypeOfRestructuringDomain_dba176a7-7172-42d9-8046-2909d13b8879" 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_051ee9fc-42e4-4701-a90b-d9dd8668b2fc" xlink:to="loc_us-gaap_TypeOfRestructuringDomain_dba176a7-7172-42d9-8046-2909d13b8879" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeSeveranceMember_6263977c-a522-4059-a5bd-13a04e2337d5" 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_dba176a7-7172-42d9-8046-2909d13b8879" xlink:to="loc_us-gaap_EmployeeSeveranceMember_6263977c-a522-4059-a5bd-13a04e2337d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringMember_f9d18f84-046a-4bb7-9115-224f7c47bd9d" 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_dba176a7-7172-42d9-8046-2909d13b8879" xlink:to="loc_us-gaap_OtherRestructuringMember_f9d18f84-046a-4bb7-9115-224f7c47bd9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_bf6d224f-1b20-4da6-b96c-9959c2149207" 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_21ef379a-7708-4b7b-b350-471659d14ecc" xlink:to="loc_us-gaap_RestructuringPlanAxis_bf6d224f-1b20-4da6-b96c-9959c2149207" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_bf6d224f-1b20-4da6-b96c-9959c2149207_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_bf6d224f-1b20-4da6-b96c-9959c2149207" xlink:to="loc_us-gaap_RestructuringPlanDomain_bf6d224f-1b20-4da6-b96c-9959c2149207_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_00e7187b-e3e5-409a-b3b0-58c16b8963ce" 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_bf6d224f-1b20-4da6-b96c-9959c2149207" xlink:to="loc_us-gaap_RestructuringPlanDomain_00e7187b-e3e5-409a-b3b0-58c16b8963ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_b38610c6-be4c-4dcc-ada0-c2dd57b2834b" xlink:href="hsy-20200927.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_00e7187b-e3e5-409a-b3b0-58c16b8963ce" xlink:to="loc_hsy_MarginforGrowthProgramMember_b38610c6-be4c-4dcc-ada0-c2dd57b2834b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails" xlink:type="extended" id="i7759f248026e41d1976c0b3c6bf4a352_BUSINESSREALIGNMENTACTIVITIESSCHEDULEOFLIABILITYACTIVITYFORCOSTSQUALIFYINGASEXITANDDISPOSALCOSTSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails" xlink:type="extended" id="i2ba07e42a82f4a1caff5d602254c3977_BUSINESSREALIGNMENTACTIVITIESNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostAndReserveLineItems_a8e2e449-08a1-4e19-a98c-35c05b43be15" 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_ConcentrationRiskPercentage1_b21b7ea4-e7ea-441a-a251-3e7016dafcde" 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_a8e2e449-08a1-4e19-a98c-35c05b43be15" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_b21b7ea4-e7ea-441a-a251-3e7016dafcde" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_586c14c9-756e-4b16-af86-3be587ede61e" 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_a8e2e449-08a1-4e19-a98c-35c05b43be15" xlink:to="loc_us-gaap_RestructuringCharges_586c14c9-756e-4b16-af86-3be587ede61e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" 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_a8e2e449-08a1-4e19-a98c-35c05b43be15" xlink:to="loc_us-gaap_ScheduleOfRestructuringAndRelatedCostsTable_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1b83644f-a432-424d-aeb6-91dea3414510" 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_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_1b83644f-a432-424d-aeb6-91dea3414510" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1b83644f-a432-424d-aeb6-91dea3414510_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_1b83644f-a432-424d-aeb6-91dea3414510" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_1b83644f-a432-424d-aeb6-91dea3414510_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_988e8c0a-c3d2-41b0-a8b8-16f82d9c80c7" 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_1b83644f-a432-424d-aeb6-91dea3414510" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_988e8c0a-c3d2-41b0-a8b8-16f82d9c80c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringChargesMember_ec5813e4-1afa-4897-bc35-38681c7f3478" 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_988e8c0a-c3d2-41b0-a8b8-16f82d9c80c7" xlink:to="loc_us-gaap_RestructuringChargesMember_ec5813e4-1afa-4897-bc35-38681c7f3478" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_af6e129b-54c6-4537-bf05-ede62d0a9331" 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_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_af6e129b-54c6-4537-bf05-ede62d0a9331" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_af6e129b-54c6-4537-bf05-ede62d0a9331_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_af6e129b-54c6-4537-bf05-ede62d0a9331" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_af6e129b-54c6-4537-bf05-ede62d0a9331_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_0f7edaf2-894c-4383-9af6-56fa1678027c" 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_af6e129b-54c6-4537-bf05-ede62d0a9331" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_0f7edaf2-894c-4383-9af6-56fa1678027c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_fbf44d8e-4544-4815-9ab9-106fd0ea00a0" 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_0f7edaf2-894c-4383-9af6-56fa1678027c" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_fbf44d8e-4544-4815-9ab9-106fd0ea00a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_c010b774-e19a-4401-96f0-b7c6db1cfff8" 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_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_c010b774-e19a-4401-96f0-b7c6db1cfff8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_c010b774-e19a-4401-96f0-b7c6db1cfff8_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_c010b774-e19a-4401-96f0-b7c6db1cfff8" xlink:to="loc_us-gaap_SegmentDomain_c010b774-e19a-4401-96f0-b7c6db1cfff8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5b7651ff-f029-4145-80af-112f36e8b2b9" 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_c010b774-e19a-4401-96f0-b7c6db1cfff8" xlink:to="loc_us-gaap_SegmentDomain_5b7651ff-f029-4145-80af-112f36e8b2b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NorthAmericaMember_b6cf2fed-f0c0-4306-98aa-d2071dac9340" xlink:href="http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd#srt_NorthAmericaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5b7651ff-f029-4145-80af-112f36e8b2b9" xlink:to="loc_srt_NorthAmericaMember_b6cf2fed-f0c0-4306-98aa-d2071dac9340" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_17534cb0-e35a-4b15-ac8c-b132b2a273f4" xlink:href="hsy-20200927.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5b7651ff-f029-4145-80af-112f36e8b2b9" xlink:to="loc_hsy_InternationalandOtherSegmentMember_17534cb0-e35a-4b15-ac8c-b132b2a273f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanAxis_8db7dda8-e585-49f2-8d5c-b769c1dfa331" 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_5b6cbb9a-8792-40ab-8f78-9e49edcc11c7" xlink:to="loc_us-gaap_RestructuringPlanAxis_8db7dda8-e585-49f2-8d5c-b769c1dfa331" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_8db7dda8-e585-49f2-8d5c-b769c1dfa331_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_8db7dda8-e585-49f2-8d5c-b769c1dfa331" xlink:to="loc_us-gaap_RestructuringPlanDomain_8db7dda8-e585-49f2-8d5c-b769c1dfa331_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringPlanDomain_09bad717-c1ad-466c-aad7-26874236993c" 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_8db7dda8-e585-49f2-8d5c-b769c1dfa331" xlink:to="loc_us-gaap_RestructuringPlanDomain_09bad717-c1ad-466c-aad7-26874236993c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_MarginforGrowthProgramMember_d0e54184-5322-4ce4-be54-334715d50c4c" xlink:href="hsy-20200927.xsd#hsy_MarginforGrowthProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestructuringPlanDomain_09bad717-c1ad-466c-aad7-26874236993c" xlink:to="loc_hsy_MarginforGrowthProgramMember_d0e54184-5322-4ce4-be54-334715d50c4c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXES" xlink:type="simple" xlink:href="hsy-20200927.xsd#INCOMETAXES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXES" xlink:type="extended" id="i0551c6f359a4495b80f7761616f52dd2_INCOMETAXES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#INCOMETAXESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESTables" xlink:type="extended" id="i76374fe662aa4e559f11bd1524c16af2_INCOMETAXESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#INCOMETAXESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/INCOMETAXESNARRATIVEDetails" xlink:type="extended" id="i3ef6ccbd2aea43dfa5e0e92ba7edc085_INCOMETAXESNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="simple" xlink:href="hsy-20200927.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS" xlink:type="extended" id="i96178d233df147e5b722c5c03a7d13bb_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables" xlink:type="extended" id="i56e7aac7747f4e18b87473316620a96d_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails" xlink:type="extended" id="i688dd0706ac847379a7ffdc9aa0c2b5b_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSSCHEDULEOFCOMPONENTSOFNETPERIODICBENEFITCOSTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" 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_1efd60e1-b5ac-473d-a047-bcb77be08106" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_1efd60e1-b5ac-473d-a047-bcb77be08106" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_4421bb58-432a-4ce3-94f6-1e42b4a4302d" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_4421bb58-432a-4ce3-94f6-1e42b4a4302d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_66ecfc51-650c-43d5-a05e-e99cc9901bb7" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_66ecfc51-650c-43d5-a05e-e99cc9901bb7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7ec32664-6f6b-41c2-b9ed-040fa2765bd4" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_7ec32664-6f6b-41c2-b9ed-040fa2765bd4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_e9a29334-5801-4d57-9e2e-b978a0eca3b1" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_e9a29334-5801-4d57-9e2e-b978a0eca3b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_78296651-a0fe-49b6-ae5f-c8775fb36095" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlements1_78296651-a0fe-49b6-ae5f-c8775fb36095" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_44faa17b-fe8d-4d9a-8cc7-0eba49f302c7" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_44faa17b-fe8d-4d9a-8cc7-0eba49f302c7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_c803bb0c-cdfc-43c8-8572-f85007664907" 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_db9a8cf0-f852-491d-a9df-bfc9ca339ea4" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_c803bb0c-cdfc-43c8-8572-f85007664907" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_2eb0a59b-5678-4ac4-a522-234560adb882" 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_c803bb0c-cdfc-43c8-8572-f85007664907" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_2eb0a59b-5678-4ac4-a522-234560adb882" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_2eb0a59b-5678-4ac4-a522-234560adb882_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_2eb0a59b-5678-4ac4-a522-234560adb882" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_2eb0a59b-5678-4ac4-a522-234560adb882_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_ac072819-5dd8-4819-be9e-d8d342b36963" 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_2eb0a59b-5678-4ac4-a522-234560adb882" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_ac072819-5dd8-4819-be9e-d8d342b36963" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_da89a32f-1f44-4828-8e93-0491d7579c27" 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_ac072819-5dd8-4819-be9e-d8d342b36963" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_da89a32f-1f44-4828-8e93-0491d7579c27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_53f3eff6-dfa4-455d-bd40-490d7a810a2d" 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_ac072819-5dd8-4819-be9e-d8d342b36963" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_53f3eff6-dfa4-455d-bd40-490d7a810a2d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails" xlink:type="extended" id="i03763e7d89754c14a38ef47a3047a35d_PENSIONANDOTHERPOSTRETIREMENTBENEFITPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_89afa089-31b3-44b5-8bc1-a62bbe667d3a" 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_42e506ec-6d34-4d04-af7b-aee6635c6739" 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_89afa089-31b3-44b5-8bc1-a62bbe667d3a" xlink:to="loc_us-gaap_DefinedBenefitPlanContributionsByEmployer_42e506ec-6d34-4d04-af7b-aee6635c6739" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_5828f919-5a34-4b29-9ca0-585b3afe355c" xlink:href="hsy-20200927.xsd#hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_89afa089-31b3-44b5-8bc1-a62bbe667d3a" xlink:to="loc_hsy_DefinedBenefitPlanRemeasurementBasisSpreadOnDiscountRate_5828f919-5a34-4b29-9ca0-585b3afe355c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_b0c5faaa-3380-4591-a103-c81d86619dc8" 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_89afa089-31b3-44b5-8bc1-a62bbe667d3a" xlink:to="loc_us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets_b0c5faaa-3380-4591-a103-c81d86619dc8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7218822e-b913-40b7-9daa-126243e1359a" 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_89afa089-31b3-44b5-8bc1-a62bbe667d3a" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_7218822e-b913-40b7-9daa-126243e1359a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_8a10d04d-a721-42b0-8a3c-5998b70da34a" 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_7218822e-b913-40b7-9daa-126243e1359a" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_8a10d04d-a721-42b0-8a3c-5998b70da34a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_8a10d04d-a721-42b0-8a3c-5998b70da34a_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_8a10d04d-a721-42b0-8a3c-5998b70da34a" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_8a10d04d-a721-42b0-8a3c-5998b70da34a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_45243a13-0127-453b-8871-7a78f7bdfda0" 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_8a10d04d-a721-42b0-8a3c-5998b70da34a" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_45243a13-0127-453b-8871-7a78f7bdfda0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_da65427f-2a4e-448c-8351-dbcfea377aae" 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_45243a13-0127-453b-8871-7a78f7bdfda0" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_da65427f-2a4e-448c-8351-dbcfea377aae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_2e9a9193-288a-4c15-9c12-20433ab8aea5" 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_45243a13-0127-453b-8871-7a78f7bdfda0" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_2e9a9193-288a-4c15-9c12-20433ab8aea5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameAxis_291df02c-14f9-48ae-b446-632c29d8f1d9" 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_7218822e-b913-40b7-9daa-126243e1359a" xlink:to="loc_us-gaap_RetirementPlanNameAxis_291df02c-14f9-48ae-b446-632c29d8f1d9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_291df02c-14f9-48ae-b446-632c29d8f1d9_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_291df02c-14f9-48ae-b446-632c29d8f1d9" xlink:to="loc_us-gaap_RetirementPlanNameDomain_291df02c-14f9-48ae-b446-632c29d8f1d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanNameDomain_3b72ae26-a500-43de-84a8-e060fa14f71c" 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_291df02c-14f9-48ae-b446-632c29d8f1d9" xlink:to="loc_us-gaap_RetirementPlanNameDomain_3b72ae26-a500-43de-84a8-e060fa14f71c" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANS"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANS" xlink:type="extended" id="i846934f703694fa3a695dfb5756cce8c_STOCKCOMPENSATIONPLANS"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSTables" xlink:type="extended" id="i2d372a2c973f4c59b70dd888bb038fc6_STOCKCOMPENSATIONPLANSTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails" xlink:type="extended" id="i99649f8963fa4d0a9167b4f7eb09b089_STOCKCOMPENSATIONPLANSSCHEDULEOFCOMPENSATIONEXPENSEANDINCOMETAXBENEFITSFORSTOCKBASEDCOMPENSATIONPROGRAMSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSNARRATIVEDetails" xlink:type="extended" id="if97a09c098a4499588398cc30eaf19a2_STOCKCOMPENSATIONPLANSNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_df99f2e7-2cf4-4496-9f3c-b7722811f17c" 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_364bd192-c095-422c-ad0f-876927665a7d" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_364bd192-c095-422c-ad0f-876927665a7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_ea174e66-5802-4ecc-9aaa-772a59ebb15a" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_ea174e66-5802-4ecc-9aaa-772a59ebb15a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_21456cf2-55f5-47c9-a126-8042e24b4744" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_21456cf2-55f5-47c9-a126-8042e24b4744" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_21ef9b53-e633-4bbc-b932-af3b2597a7f3" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_21ef9b53-e633-4bbc-b932-af3b2597a7f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_6eb9a1ab-6eef-4242-baea-bd7c2c4d37ed" xlink:href="hsy-20200927.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardIntrinsicValueOfShareBasedLiabilitiesPaidCombinedWithFairValueOfSharesVested_6eb9a1ab-6eef-4242-baea-bd7c2c4d37ed" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_3edc5639-917d-47bd-b02d-ba35b53a25e2" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_DeferredCompensationArrangementWithIndividualSharesIssued_3edc5639-917d-47bd-b02d-ba35b53a25e2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_f7290bcc-61a3-45c7-9ddb-fd13fd1e1fd5" xlink:href="hsy-20200927.xsd#hsy_DeferredCompensationArrangementwithIndividualConversionBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_hsy_DeferredCompensationArrangementwithIndividualConversionBasis_f7290bcc-61a3-45c7-9ddb-fd13fd1e1fd5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0b8cc680-b174-4c64-8cde-9abb74fa96f3" 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_df99f2e7-2cf4-4496-9f3c-b7722811f17c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_0b8cc680-b174-4c64-8cde-9abb74fa96f3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_348fea7f-41cc-436a-abdc-fd84efdb63d5" 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_0b8cc680-b174-4c64-8cde-9abb74fa96f3" xlink:to="loc_us-gaap_AwardTypeAxis_348fea7f-41cc-436a-abdc-fd84efdb63d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_348fea7f-41cc-436a-abdc-fd84efdb63d5_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_348fea7f-41cc-436a-abdc-fd84efdb63d5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_348fea7f-41cc-436a-abdc-fd84efdb63d5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_95b84b9b-f21c-4d5d-bafc-443e474b46be" 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_348fea7f-41cc-436a-abdc-fd84efdb63d5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_95b84b9b-f21c-4d5d-bafc-443e474b46be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_6fadd4a2-ff1e-4a50-91d8-c0cfbfb599ac" 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_95b84b9b-f21c-4d5d-bafc-443e474b46be" xlink:to="loc_us-gaap_EmployeeStockOptionMember_6fadd4a2-ff1e-4a50-91d8-c0cfbfb599ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_c8d228fb-f385-43b7-9e7a-9df7ee6e5c6b" xlink:href="hsy-20200927.xsd#hsy_PerformanceStockUnitsandRestrictedStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_95b84b9b-f21c-4d5d-bafc-443e474b46be" xlink:to="loc_hsy_PerformanceStockUnitsandRestrictedStockUnitsMember_c8d228fb-f385-43b7-9e7a-9df7ee6e5c6b" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails" xlink:type="extended" id="i197a185d07d348d3bbb407930838ea1f_STOCKCOMPENSATIONPLANSSCHEDULEOFSTOCKOPTIONACTIVITYDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="i438e01387a054e6da467b0cec11cd8df_STOCKCOMPENSATIONPLANSSCHEDULEOFFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails" xlink:type="extended" id="ib5fa78fc3abd4c19b42be8b8757dd5cb_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUsACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_dd39722f-3a5e-418e-a963-038bf461e0f1" 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_93baefec-5912-41a9-8946-0244ac3b0d2a" 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_dd39722f-3a5e-418e-a963-038bf461e0f1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_358f335e-45a4-4f76-9f03-52cfd58e3256" 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_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_358f335e-45a4-4f76-9f03-52cfd58e3256" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5aec8414-4d5c-43c9-864c-60d067f2aa19" 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_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_5aec8414-4d5c-43c9-864c-60d067f2aa19" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_0b61262c-ed39-46f5-8853-2c3414915588" xlink:href="hsy-20200927.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingRollForward_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChange_0b61262c-ed39-46f5-8853-2c3414915588" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_94d415f9-7012-4bfd-90da-62a8a51900a6" 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_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_94d415f9-7012-4bfd-90da-62a8a51900a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_69022ec9-f47d-4b3e-8110-f5ffdaca3295" 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_93baefec-5912-41a9-8946-0244ac3b0d2a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_69022ec9-f47d-4b3e-8110-f5ffdaca3295" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_40905093-704a-47f5-9360-f5fdc6688fc0" 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_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" 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_dd39722f-3a5e-418e-a963-038bf461e0f1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_c70c00f7-ea76-40dc-8efc-1b0da24a5f89" 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_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_c70c00f7-ea76-40dc-8efc-1b0da24a5f89" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_7981e98e-50dd-4032-990c-d9e0a51406de" 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_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_7981e98e-50dd-4032-990c-d9e0a51406de" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_27d9d94c-96b8-4af5-8084-b81924e5843f" xlink:href="hsy-20200927.xsd#hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:to="loc_hsy_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsPerformanceAssumptionChangeWeightedAverageGrantDateFairValue_27d9d94c-96b8-4af5-8084-b81924e5843f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_b3d29e8f-9a11-465c-9cc5-84fcdb728f6a" 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_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_b3d29e8f-9a11-465c-9cc5-84fcdb728f6a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_e1598b2b-6344-49fa-b7ef-b1c53a55f38c" 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_1edfc5f9-ebcf-4286-8700-fccb3f8beac8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_e1598b2b-6344-49fa-b7ef-b1c53a55f38c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_fb32d55d-c04b-48ab-97af-0c12f0d7a7b8" 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_08e8c2c5-dc27-4e76-aaa5-e026a526443b" 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_dd39722f-3a5e-418e-a963-038bf461e0f1" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_08e8c2c5-dc27-4e76-aaa5-e026a526443b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_5e414e7a-6a08-458d-8967-51e8787c457e" 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_08e8c2c5-dc27-4e76-aaa5-e026a526443b" xlink:to="loc_us-gaap_AwardTypeAxis_5e414e7a-6a08-458d-8967-51e8787c457e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e414e7a-6a08-458d-8967-51e8787c457e_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_5e414e7a-6a08-458d-8967-51e8787c457e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_5e414e7a-6a08-458d-8967-51e8787c457e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cb6b68a2-d20b-483e-920a-b64165cb4f4b" 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_5e414e7a-6a08-458d-8967-51e8787c457e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cb6b68a2-d20b-483e-920a-b64165cb4f4b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_661de48d-6680-402c-90f6-288355da929c" xlink:href="hsy-20200927.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_cb6b68a2-d20b-483e-920a-b64165cb4f4b" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_661de48d-6680-402c-90f6-288355da929c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails" xlink:type="extended" id="i14975410cd5b41389b5172e7dd6c0ef3_STOCKCOMPENSATIONPLANSSCHEDULEOFPSUsANDRSUSFAIRVALUEWEIGHTEDAVERAGEASSUMPTIONSDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_1d5129d8-8821-4d2d-a52b-939dacc816a4" 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_a98f69ce-7059-49eb-a67f-2e54b662b121" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_a98f69ce-7059-49eb-a67f-2e54b662b121" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_68ee495f-8a1b-40c9-9909-b044b1f2ab4f" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_68ee495f-8a1b-40c9-9909-b044b1f2ab4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharePrice_755538ca-6086-4ab8-9125-c4d17e637d26" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_SharePrice_755538ca-6086-4ab8-9125-c4d17e637d26" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_652be9ff-6d9e-402c-ad3e-5bdc3dc2dcc4" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_652be9ff-6d9e-402c-ad3e-5bdc3dc2dcc4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_6629ebd9-745d-4b72-b825-e844711734c2" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_6629ebd9-745d-4b72-b825-e844711734c2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_bae2bafd-038d-4f50-bc40-82eee273498d" 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_1d5129d8-8821-4d2d-a52b-939dacc816a4" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_bae2bafd-038d-4f50-bc40-82eee273498d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_a6e6a07e-e299-493d-9ec8-29fc978bb8e1" 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_bae2bafd-038d-4f50-bc40-82eee273498d" xlink:to="loc_us-gaap_AwardTypeAxis_a6e6a07e-e299-493d-9ec8-29fc978bb8e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a6e6a07e-e299-493d-9ec8-29fc978bb8e1_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_a6e6a07e-e299-493d-9ec8-29fc978bb8e1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_a6e6a07e-e299-493d-9ec8-29fc978bb8e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f6adc28b-55d8-4b14-9fb5-063318437b21" 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_a6e6a07e-e299-493d-9ec8-29fc978bb8e1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f6adc28b-55d8-4b14-9fb5-063318437b21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_786c6710-da6c-41e4-a894-9a76cbe2a17e" xlink:href="hsy-20200927.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_f6adc28b-55d8-4b14-9fb5-063318437b21" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_786c6710-da6c-41e4-a894-9a76cbe2a17e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATION" xlink:type="extended" id="i078cccf1e1eb419db68e5a005954cc2c_SEGMENTINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONTables" xlink:type="extended" id="if67cd6057375436ab10eb3c1855e2c6e_SEGMENTINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONNARRATIVEDetails" xlink:type="extended" id="i900c01a3a3ff42a7afe0d8dd2cc4e180_SEGMENTINFORMATIONNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_2ec37931-76b2-44ca-a666-41b9daf3434f" 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_462e90e7-c176-4cee-9c18-0646379889bc" 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_2ec37931-76b2-44ca-a666-41b9daf3434f" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_462e90e7-c176-4cee-9c18-0646379889bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_3efb5fcf-8bb1-4e60-a1b9-aaebe39bbd53" xlink:href="hsy-20200927.xsd#hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_2ec37931-76b2-44ca-a666-41b9daf3434f" xlink:to="loc_hsy_CumulativeAmountofMarktoMarketGainesLossesonCommodityDerivatives_3efb5fcf-8bb1-4e60-a1b9-aaebe39bbd53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_ae50f6f1-f812-4ff9-9ad2-afc306c041fb" xlink:href="hsy-20200927.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_2ec37931-76b2-44ca-a666-41b9daf3434f" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_ae50f6f1-f812-4ff9-9ad2-afc306c041fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_2bed02b3-3edf-4295-bda0-cefb1667023b" 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_2ec37931-76b2-44ca-a666-41b9daf3434f" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_ae28c660-1456-4f44-ad2e-a0129d5c41c3" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_ae28c660-1456-4f44-ad2e-a0129d5c41c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_ae28c660-1456-4f44-ad2e-a0129d5c41c3_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_ae28c660-1456-4f44-ad2e-a0129d5c41c3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_ae28c660-1456-4f44-ad2e-a0129d5c41c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_fd391a0a-21b8-4903-be79-8bab014b9d9d" 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_ae28c660-1456-4f44-ad2e-a0129d5c41c3" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_fd391a0a-21b8-4903-be79-8bab014b9d9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_222afd4c-3dc8-4385-9988-4fd358f719de" 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_fd391a0a-21b8-4903-be79-8bab014b9d9d" xlink:to="loc_us-gaap_CostOfSalesMember_222afd4c-3dc8-4385-9988-4fd358f719de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_e71b209c-33a2-4ebd-a65a-a4f26eb4c207" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_srt_StatementScenarioAxis_e71b209c-33a2-4ebd-a65a-a4f26eb4c207" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_e71b209c-33a2-4ebd-a65a-a4f26eb4c207_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_e71b209c-33a2-4ebd-a65a-a4f26eb4c207" xlink:to="loc_srt_ScenarioUnspecifiedDomain_e71b209c-33a2-4ebd-a65a-a4f26eb4c207_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_73e19ce6-ed7c-4375-87b8-59678ab002bb" 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_e71b209c-33a2-4ebd-a65a-a4f26eb4c207" xlink:to="loc_srt_ScenarioUnspecifiedDomain_73e19ce6-ed7c-4375-87b8-59678ab002bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_cf53f494-78ea-4799-a274-c5abd82940cf" 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_73e19ce6-ed7c-4375-87b8-59678ab002bb" xlink:to="loc_srt_ScenarioForecastMember_cf53f494-78ea-4799-a274-c5abd82940cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_db2a2fc3-b293-4433-89c9-af7408066549" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_srt_ConsolidationItemsAxis_db2a2fc3-b293-4433-89c9-af7408066549" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_db2a2fc3-b293-4433-89c9-af7408066549_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_db2a2fc3-b293-4433-89c9-af7408066549" xlink:to="loc_srt_ConsolidationItemsDomain_db2a2fc3-b293-4433-89c9-af7408066549_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_a2a007e1-1fbf-43de-aebf-97be6c7dacf3" 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_db2a2fc3-b293-4433-89c9-af7408066549" xlink:to="loc_srt_ConsolidationItemsDomain_a2a007e1-1fbf-43de-aebf-97be6c7dacf3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_578f1ec7-5277-4ad3-82c9-16daf85c34c0" 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_a2a007e1-1fbf-43de-aebf-97be6c7dacf3" xlink:to="loc_us-gaap_OperatingSegmentsMember_578f1ec7-5277-4ad3-82c9-16daf85c34c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_33279b17-388e-439f-a7a5-99cccdd46b44" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_33279b17-388e-439f-a7a5-99cccdd46b44" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_33279b17-388e-439f-a7a5-99cccdd46b44_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_33279b17-388e-439f-a7a5-99cccdd46b44" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_33279b17-388e-439f-a7a5-99cccdd46b44_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_24899986-b427-42ac-9888-8723433f3f1a" 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_33279b17-388e-439f-a7a5-99cccdd46b44" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_24899986-b427-42ac-9888-8723433f3f1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_894e881f-fcfa-4253-a6f4-b85be98300ae" 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_24899986-b427-42ac-9888-8723433f3f1a" xlink:to="loc_us-gaap_CommodityContractMember_894e881f-fcfa-4253-a6f4-b85be98300ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5158ce3e-831e-4895-9f08-a7985c0e8d0e" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5158ce3e-831e-4895-9f08-a7985c0e8d0e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5158ce3e-831e-4895-9f08-a7985c0e8d0e_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_5158ce3e-831e-4895-9f08-a7985c0e8d0e" xlink:to="loc_us-gaap_SegmentDomain_5158ce3e-831e-4895-9f08-a7985c0e8d0e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_2fc66aaf-d297-4f6a-83a2-a08bcde5fe98" 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_5158ce3e-831e-4895-9f08-a7985c0e8d0e" xlink:to="loc_us-gaap_SegmentDomain_2fc66aaf-d297-4f6a-83a2-a08bcde5fe98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_c89bc47d-f34f-4a61-b291-5ecb8b904536" xlink:href="hsy-20200927.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_2fc66aaf-d297-4f6a-83a2-a08bcde5fe98" xlink:to="loc_hsy_NorthAmericaSegmentMember_c89bc47d-f34f-4a61-b291-5ecb8b904536" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_2f475e2e-c561-4555-835a-7c87a51fe071" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_2f475e2e-c561-4555-835a-7c87a51fe071" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_2f475e2e-c561-4555-835a-7c87a51fe071_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_2f475e2e-c561-4555-835a-7c87a51fe071" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_2f475e2e-c561-4555-835a-7c87a51fe071_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_60f852ec-8d44-4471-944e-55d64a551bbd" 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_2f475e2e-c561-4555-835a-7c87a51fe071" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_60f852ec-8d44-4471-944e-55d64a551bbd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeographicConcentrationRiskMember_5531fe6e-072b-46f6-a845-dd5f43dc6732" 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_60f852ec-8d44-4471-944e-55d64a551bbd" xlink:to="loc_us-gaap_GeographicConcentrationRiskMember_5531fe6e-072b-46f6-a845-dd5f43dc6732" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af" 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_2bed02b3-3edf-4295-bda0-cefb1667023b" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af_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_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_90c494c2-51b7-496c-b3c8-262e37a696c7" 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_85b4d7d5-94f3-4a39-8ece-7a1fb4fc39af" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_90c494c2-51b7-496c-b3c8-262e37a696c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerMember_54e8333c-8b05-42aa-8650-abcae7e69b73" 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_90c494c2-51b7-496c-b3c8-262e37a696c7" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerMember_54e8333c-8b05-42aa-8650-abcae7e69b73" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails" xlink:type="extended" id="i5f54b1cda488472090f477ba7729f0ac_SEGMENTINFORMATIONSCHEDULEOFNETSALESANDEARNINGSBYSEGMENTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" 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_5abf308b-8212-456f-8bf5-94f1aa5629f9" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_5abf308b-8212-456f-8bf5-94f1aa5629f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_62373998-4318-4037-bf41-020d458d1a3a" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_OperatingIncomeLoss_62373998-4318-4037-bf41-020d458d1a3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_1749fa5d-55cd-47b9-a105-1674481e65da" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_1749fa5d-55cd-47b9-a105-1674481e65da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_84e2f376-9c65-4f69-8750-88150ef6a361" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_84e2f376-9c65-4f69-8750-88150ef6a361" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_b1d21100-d395-431b-b816-a8e1afaacfd1" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_AssetImpairmentCharges_b1d21100-d395-431b-b816-a8e1afaacfd1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCharges_cc3e0c79-c8eb-4493-b1ca-f71346e7cdf6" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_RestructuringCharges_cc3e0c79-c8eb-4493-b1ca-f71346e7cdf6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_19d109aa-bb4b-4c39-bcb3-6799d01b3744" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_19d109aa-bb4b-4c39-bcb3-6799d01b3744" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_c72eafe8-0c14-4c16-96ba-fb522afe7e60" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_c72eafe8-0c14-4c16-96ba-fb522afe7e60" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ccd44439-dc01-4f0f-b283-68be70729c59" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_ccd44439-dc01-4f0f-b283-68be70729c59" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3498579d-9981-4fe7-86b1-80606be3894f" 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_e2d2dd1b-872c-446e-8baa-86adaa10fa8d" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3498579d-9981-4fe7-86b1-80606be3894f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_526cb796-c462-4f31-8b97-95e7723bbd3b" 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_3498579d-9981-4fe7-86b1-80606be3894f" xlink:to="loc_srt_ConsolidationItemsAxis_526cb796-c462-4f31-8b97-95e7723bbd3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_526cb796-c462-4f31-8b97-95e7723bbd3b_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_526cb796-c462-4f31-8b97-95e7723bbd3b" xlink:to="loc_srt_ConsolidationItemsDomain_526cb796-c462-4f31-8b97-95e7723bbd3b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_447b4562-0012-4e03-a726-14167c7ca418" 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_526cb796-c462-4f31-8b97-95e7723bbd3b" xlink:to="loc_srt_ConsolidationItemsDomain_447b4562-0012-4e03-a726-14167c7ca418" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_c50a0a19-c587-4f24-bacc-00a65af274c4" 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_447b4562-0012-4e03-a726-14167c7ca418" xlink:to="loc_us-gaap_OperatingSegmentsMember_c50a0a19-c587-4f24-bacc-00a65af274c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_3c72a193-db12-42e1-bf8a-f70a5f37a8ae" 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_447b4562-0012-4e03-a726-14167c7ca418" xlink:to="loc_us-gaap_CorporateNonSegmentMember_3c72a193-db12-42e1-bf8a-f70a5f37a8ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_ac32911c-eb2f-4613-afa3-e3dbaa3c1a3d" 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_447b4562-0012-4e03-a726-14167c7ca418" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_ac32911c-eb2f-4613-afa3-e3dbaa3c1a3d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a" 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_3498579d-9981-4fe7-86b1-80606be3894f" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a_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_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a" xlink:to="loc_us-gaap_SegmentDomain_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d98396c9-2b85-482d-84ac-1b3f7581c6e5" 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_623e6acb-6e1a-481f-9ab7-ec2ee266ee5a" xlink:to="loc_us-gaap_SegmentDomain_d98396c9-2b85-482d-84ac-1b3f7581c6e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_8ef883a8-3724-4b2a-ac51-63afcb29c1d4" xlink:href="hsy-20200927.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d98396c9-2b85-482d-84ac-1b3f7581c6e5" xlink:to="loc_hsy_NorthAmericaSegmentMember_8ef883a8-3724-4b2a-ac51-63afcb29c1d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_40a09e86-3820-4744-af76-d0dba1e13dd5" xlink:href="hsy-20200927.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d98396c9-2b85-482d-84ac-1b3f7581c6e5" xlink:to="loc_hsy_InternationalandOtherSegmentMember_40a09e86-3820-4744-af76-d0dba1e13dd5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_484658b0-0d05-4468-9d3a-3e05c9acd6ea" 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_us-gaap_SegmentDomain_d98396c9-2b85-482d-84ac-1b3f7581c6e5" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_484658b0-0d05-4468-9d3a-3e05c9acd6ea" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails" xlink:type="extended" id="i9478457afb16435b995f8c9282750264_SEGMENTINFORMATIONSCHEDULEOFUNALLOCATEDMARKTOMARKETGAINSLOSSESONCOMMODITYDERIVATIVESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_040b43a6-b283-4227-9867-72788e47658f" 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_acab1449-2703-4513-a163-69ad983465de" 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_040b43a6-b283-4227-9867-72788e47658f" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_acab1449-2703-4513-a163-69ad983465de" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_4844a8ab-e738-426d-950c-d8a0f8e21e40" xlink:href="hsy-20200927.xsd#hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_040b43a6-b283-4227-9867-72788e47658f" xlink:to="loc_hsy_NetGainLossOnCommodityDerivativePositionsReclassifiedFromUnallocatedDerivativeGainsLossesToSegmentIncome_4844a8ab-e738-426d-950c-d8a0f8e21e40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_99ea93a8-d988-4519-ad89-5a5fb168e51b" xlink:href="hsy-20200927.xsd#hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_040b43a6-b283-4227-9867-72788e47658f" xlink:to="loc_hsy_NetMarktoMarketValuationofCertainDerivativePositionsRecognizedinUnallocatedDerivativeGainsLosses_99ea93a8-d988-4519-ad89-5a5fb168e51b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_15f1a410-48ab-4022-9cd2-6edb3c664ea5" 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_040b43a6-b283-4227-9867-72788e47658f" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_a399610f-5236-43d2-8fba-7cbff8069de1" 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_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_us-gaap_HedgingDesignationAxis_a399610f-5236-43d2-8fba-7cbff8069de1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_a399610f-5236-43d2-8fba-7cbff8069de1_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_a399610f-5236-43d2-8fba-7cbff8069de1" xlink:to="loc_us-gaap_HedgingDesignationDomain_a399610f-5236-43d2-8fba-7cbff8069de1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_63311c23-d1cd-472a-bd42-575fd9e134ca" 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_a399610f-5236-43d2-8fba-7cbff8069de1" xlink:to="loc_us-gaap_HedgingDesignationDomain_63311c23-d1cd-472a-bd42-575fd9e134ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_74df07bd-7fcb-4512-9f40-196901622796" 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_63311c23-d1cd-472a-bd42-575fd9e134ca" xlink:to="loc_us-gaap_NondesignatedMember_74df07bd-7fcb-4512-9f40-196901622796" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_6e2a5b9e-eba9-4460-b213-4a0ffdd193da" 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_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_6e2a5b9e-eba9-4460-b213-4a0ffdd193da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_6e2a5b9e-eba9-4460-b213-4a0ffdd193da_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_6e2a5b9e-eba9-4460-b213-4a0ffdd193da" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_6e2a5b9e-eba9-4460-b213-4a0ffdd193da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_9197223e-5036-4806-89f6-c8edf7b53d8b" 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_6e2a5b9e-eba9-4460-b213-4a0ffdd193da" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_9197223e-5036-4806-89f6-c8edf7b53d8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_2960b5f5-57a3-4a96-9c5a-5524377191c8" 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_9197223e-5036-4806-89f6-c8edf7b53d8b" xlink:to="loc_us-gaap_CommodityContractMember_2960b5f5-57a3-4a96-9c5a-5524377191c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_d66523fe-9a78-425a-9a75-684073c5e8fc" 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_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_srt_ConsolidationItemsAxis_d66523fe-9a78-425a-9a75-684073c5e8fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_d66523fe-9a78-425a-9a75-684073c5e8fc_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_d66523fe-9a78-425a-9a75-684073c5e8fc" xlink:to="loc_srt_ConsolidationItemsDomain_d66523fe-9a78-425a-9a75-684073c5e8fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_b8ce2d64-8f21-4a32-a1cf-2e4eb368f1fa" 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_d66523fe-9a78-425a-9a75-684073c5e8fc" xlink:to="loc_srt_ConsolidationItemsDomain_b8ce2d64-8f21-4a32-a1cf-2e4eb368f1fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_0aa332f8-aa96-42ec-85ad-62a4a1affa0d" 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_b8ce2d64-8f21-4a32-a1cf-2e4eb368f1fa" xlink:to="loc_us-gaap_OperatingSegmentsMember_0aa332f8-aa96-42ec-85ad-62a4a1affa0d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_42f464ac-c715-4154-8643-fb280a4de2b3" 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_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_42f464ac-c715-4154-8643-fb280a4de2b3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_42f464ac-c715-4154-8643-fb280a4de2b3_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_42f464ac-c715-4154-8643-fb280a4de2b3" xlink:to="loc_us-gaap_SegmentDomain_42f464ac-c715-4154-8643-fb280a4de2b3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_df3f3d78-6f78-4fcf-a834-3164a6bd415c" 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_42f464ac-c715-4154-8643-fb280a4de2b3" xlink:to="loc_us-gaap_SegmentDomain_df3f3d78-6f78-4fcf-a834-3164a6bd415c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_08c8b48c-e748-4b47-a6c9-572b215c2efd" 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_us-gaap_SegmentDomain_df3f3d78-6f78-4fcf-a834-3164a6bd415c" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_08c8b48c-e748-4b47-a6c9-572b215c2efd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsAxis_a8e306d3-8489-4e9f-a866-8725fa19e32b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_us-gaap_SubsegmentsAxis_a8e306d3-8489-4e9f-a866-8725fa19e32b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_a8e306d3-8489-4e9f-a866-8725fa19e32b_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsAxis_a8e306d3-8489-4e9f-a866-8725fa19e32b" xlink:to="loc_us-gaap_SubsegmentsDomain_a8e306d3-8489-4e9f-a866-8725fa19e32b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsDomain_0c935e66-4707-433c-8da5-51e6e9aeb7dc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsAxis_a8e306d3-8489-4e9f-a866-8725fa19e32b" xlink:to="loc_us-gaap_SubsegmentsDomain_0c935e66-4707-433c-8da5-51e6e9aeb7dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9408c7b6-3a40-42b2-8875-601555d159bf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_15f1a410-48ab-4022-9cd2-6edb3c664ea5" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9408c7b6-3a40-42b2-8875-601555d159bf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_9408c7b6-3a40-42b2-8875-601555d159bf_default" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9408c7b6-3a40-42b2-8875-601555d159bf" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_9408c7b6-3a40-42b2-8875-601555d159bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsegmentsConsolidationItemsDomain_adb87f07-79e6-480f-bcb4-4e02ef5fa674" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_SubsegmentsConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsegmentsConsolidationItemsAxis_9408c7b6-3a40-42b2-8875-601555d159bf" xlink:to="loc_us-gaap_SubsegmentsConsolidationItemsDomain_adb87f07-79e6-480f-bcb4-4e02ef5fa674" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails" xlink:type="extended" id="i8158bafbd6c547629a0dfd939577eef1_SEGMENTINFORMATIONSCHEDULEOFDEPRECIATIONANDAMORTIZATIONEXPENSEINCLUDEDWITHINSEGMENTINCOMEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_4e48c134-5cc7-45c7-bbb8-b7289119f3ec" 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_6994f8e5-958d-4d5c-ac6e-b292b5752d44" 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_4e48c134-5cc7-45c7-bbb8-b7289119f3ec" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_6994f8e5-958d-4d5c-ac6e-b292b5752d44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_fc80e85d-7186-4795-af2c-457990a57a1c" 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_4e48c134-5cc7-45c7-bbb8-b7289119f3ec" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_fc80e85d-7186-4795-af2c-457990a57a1c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_1458a61f-4be6-4760-bfcb-b71952a00484" 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_fc80e85d-7186-4795-af2c-457990a57a1c" xlink:to="loc_srt_ConsolidationItemsAxis_1458a61f-4be6-4760-bfcb-b71952a00484" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_1458a61f-4be6-4760-bfcb-b71952a00484_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_1458a61f-4be6-4760-bfcb-b71952a00484" xlink:to="loc_srt_ConsolidationItemsDomain_1458a61f-4be6-4760-bfcb-b71952a00484_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_62c93a92-e714-4f6d-b418-3f50bc33d4bf" 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_1458a61f-4be6-4760-bfcb-b71952a00484" xlink:to="loc_srt_ConsolidationItemsDomain_62c93a92-e714-4f6d-b418-3f50bc33d4bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_4c31e6e9-1ab9-4e15-9c02-f5aeef6d20e7" 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_62c93a92-e714-4f6d-b418-3f50bc33d4bf" xlink:to="loc_us-gaap_OperatingSegmentsMember_4c31e6e9-1ab9-4e15-9c02-f5aeef6d20e7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_bbabc9b4-cf21-45cc-924a-19ec110f4b2b" 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_62c93a92-e714-4f6d-b418-3f50bc33d4bf" xlink:to="loc_us-gaap_CorporateNonSegmentMember_bbabc9b4-cf21-45cc-924a-19ec110f4b2b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711" 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_fc80e85d-7186-4795-af2c-457990a57a1c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711_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_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711" xlink:to="loc_us-gaap_SegmentDomain_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d193150c-9e79-4d7c-8f04-16de48f20563" 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_e5a1aea8-11b4-4f69-8ea0-dc03fcc1f711" xlink:to="loc_us-gaap_SegmentDomain_d193150c-9e79-4d7c-8f04-16de48f20563" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_NorthAmericaSegmentMember_ae4a1c71-613d-488d-ac6f-02ee4e23b539" xlink:href="hsy-20200927.xsd#hsy_NorthAmericaSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d193150c-9e79-4d7c-8f04-16de48f20563" xlink:to="loc_hsy_NorthAmericaSegmentMember_ae4a1c71-613d-488d-ac6f-02ee4e23b539" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_InternationalandOtherSegmentMember_81cebcf8-61d0-49c9-9ad0-e0a7b4477e49" xlink:href="hsy-20200927.xsd#hsy_InternationalandOtherSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d193150c-9e79-4d7c-8f04-16de48f20563" xlink:to="loc_hsy_InternationalandOtherSegmentMember_81cebcf8-61d0-49c9-9ad0-e0a7b4477e49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateMember_54ba1d96-95dd-4baa-b087-b01107d55573" 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_d193150c-9e79-4d7c-8f04-16de48f20563" xlink:to="loc_us-gaap_CorporateMember_54ba1d96-95dd-4baa-b087-b01107d55573" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails" xlink:type="extended" id="ic4ef652744fe427187a3775c3221b983_SEGMENTINFORMATIONSCHEDULEOFSEGMENTINFORMATIONBYGEOGRAPHYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EntityWideRevenueMajorCustomerLineItems_9ca35933-da67-4c25-b247-a98d7a6cace8" 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_0bb44d9a-0c6f-41ee-8a5c-ebe3b31a4281" 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_9ca35933-da67-4c25-b247-a98d7a6cace8" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_0bb44d9a-0c6f-41ee-8a5c-ebe3b31a4281" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_67bc93ff-4493-454c-9d3a-90011d40c6c0" 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_9ca35933-da67-4c25-b247-a98d7a6cace8" xlink:to="loc_us-gaap_ScheduleOfEntityWideRevenueByMajorCustomersByReportingSegmentsTable_67bc93ff-4493-454c-9d3a-90011d40c6c0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c" 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_67bc93ff-4493-454c-9d3a-90011d40c6c0" xlink:to="loc_srt_StatementGeographicalAxis_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c_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_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c" xlink:to="loc_srt_SegmentGeographicalDomain_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_1ac8f37a-d981-498b-b97f-84df40e5f9d6" 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_5c3b0321-d73b-4a5b-aee4-fc2f4ef8cd4c" xlink:to="loc_srt_SegmentGeographicalDomain_1ac8f37a-d981-498b-b97f-84df40e5f9d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_2ee221f1-0d36-4f21-bbc3-7eaa0ac79e83" 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_1ac8f37a-d981-498b-b97f-84df40e5f9d6" xlink:to="loc_country_US_2ee221f1-0d36-4f21-bbc3-7eaa0ac79e83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_7c9aebab-65e9-4d4c-bba8-18123fc3fdb4" 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_1ac8f37a-d981-498b-b97f-84df40e5f9d6" xlink:to="loc_us-gaap_NonUsMember_7c9aebab-65e9-4d4c-bba8-18123fc3fdb4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails" xlink:type="extended" id="i2a6dec02a8144347b5a564827958f299_SEGMENTINFORMATIONSCHEDULEOFADDITIONALPRODUCTLINESALESDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_23fca326-ec9c-40db-b1fd-ad1f20ac5ce5" 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_849be789-e193-4189-8472-ae068f09b886" 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_23fca326-ec9c-40db-b1fd-ad1f20ac5ce5" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_849be789-e193-4189-8472-ae068f09b886" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_254b0641-bf8c-4c2e-9c7e-290a18499de4" 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_23fca326-ec9c-40db-b1fd-ad1f20ac5ce5" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_254b0641-bf8c-4c2e-9c7e-290a18499de4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_7f601074-c3b2-490c-8351-3fd470876320" 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_254b0641-bf8c-4c2e-9c7e-290a18499de4" xlink:to="loc_srt_ProductOrServiceAxis_7f601074-c3b2-490c-8351-3fd470876320" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_7f601074-c3b2-490c-8351-3fd470876320_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_7f601074-c3b2-490c-8351-3fd470876320" xlink:to="loc_srt_ProductsAndServicesDomain_7f601074-c3b2-490c-8351-3fd470876320_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_eeed0a7c-6810-4c74-8610-b8b654aeb85a" 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_7f601074-c3b2-490c-8351-3fd470876320" xlink:to="loc_srt_ProductsAndServicesDomain_eeed0a7c-6810-4c74-8610-b8b654aeb85a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_973be966-03b0-4b0c-a098-2535f8f8e09d" xlink:href="hsy-20200927.xsd#hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eeed0a7c-6810-4c74-8610-b8b654aeb85a" xlink:to="loc_hsy_ConfectioneryAndConfectioneryBasedPortfolioDomain_973be966-03b0-4b0c-a098-2535f8f8e09d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_SnacksPortfolioDomain_8abf137f-2778-4056-871b-9806acadfd7a" xlink:href="hsy-20200927.xsd#hsy_SnacksPortfolioDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_eeed0a7c-6810-4c74-8610-b8b654aeb85a" xlink:to="loc_hsy_SnacksPortfolioDomain_8abf137f-2778-4056-871b-9806acadfd7a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="simple" xlink:href="hsy-20200927.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes" xlink:type="extended" id="i9568ca9a86f14ae697cb35cf2963204d_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYNotes"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables" xlink:type="extended" id="i268452a5451c42bb81c925aa5d8861ab_TREASURYSTOCKACTIVITYTREASURYSTOCKACTIVITYTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#TREASURYSTOCKACTIVITYNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYNARRATIVEDetails" xlink:type="extended" id="i4357f74f58cb418db258fdf722839810_TREASURYSTOCKACTIVITYNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_4a57d9f0-da91-426b-a9b2-95c6c5d409f6" 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_48d11f91-574f-40a1-98b9-2731b9beed50" 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_4a57d9f0-da91-426b-a9b2-95c6c5d409f6" xlink:to="loc_us-gaap_StockRepurchaseProgramAuthorizedAmount1_48d11f91-574f-40a1-98b9-2731b9beed50" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_058c58fc-a844-4731-b66b-bb7104d0af1e" 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_4a57d9f0-da91-426b-a9b2-95c6c5d409f6" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_058c58fc-a844-4731-b66b-bb7104d0af1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_d11a191e-6d57-4676-b665-de66cd638ea6" 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_4a57d9f0-da91-426b-a9b2-95c6c5d409f6" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_d11a191e-6d57-4676-b665-de66cd638ea6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_ef2a1605-a988-4cbe-abb4-6fb70089de5c" 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_d11a191e-6d57-4676-b665-de66cd638ea6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_ef2a1605-a988-4cbe-abb4-6fb70089de5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_ef2a1605-a988-4cbe-abb4-6fb70089de5c_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_ef2a1605-a988-4cbe-abb4-6fb70089de5c" xlink:to="loc_us-gaap_ClassOfStockDomain_ef2a1605-a988-4cbe-abb4-6fb70089de5c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_7ee6ccb6-c42c-467a-a2ba-d8c1382ebd0b" 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_ef2a1605-a988-4cbe-abb4-6fb70089de5c" xlink:to="loc_us-gaap_ClassOfStockDomain_7ee6ccb6-c42c-467a-a2ba-d8c1382ebd0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramAxis_15429c46-e874-411f-bab4-3056cf9b7416" 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_d11a191e-6d57-4676-b665-de66cd638ea6" xlink:to="loc_us-gaap_ShareRepurchaseProgramAxis_15429c46-e874-411f-bab4-3056cf9b7416" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_15429c46-e874-411f-bab4-3056cf9b7416_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_15429c46-e874-411f-bab4-3056cf9b7416" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_15429c46-e874-411f-bab4-3056cf9b7416_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareRepurchaseProgramDomain_2e535299-6427-4c57-9968-344f57e37a97" 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_15429c46-e874-411f-bab4-3056cf9b7416" xlink:to="loc_us-gaap_ShareRepurchaseProgramDomain_2e535299-6427-4c57-9968-344f57e37a97" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_A2018ShareRepurchaseProgramMember_d7617117-fdcd-4e7c-b102-784b9717a4a7" xlink:href="hsy-20200927.xsd#hsy_A2018ShareRepurchaseProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareRepurchaseProgramDomain_2e535299-6427-4c57-9968-344f57e37a97" xlink:to="loc_hsy_A2018ShareRepurchaseProgramMember_d7617117-fdcd-4e7c-b102-784b9717a4a7" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails" xlink:type="extended" id="i9a13c40d2c2e4810a6e7afdc5a77830e_TREASURYSTOCKACTIVITYSCHEDULEOFTREASURYSTOCKACTIVITYDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_c1089478-e6cf-4798-b046-e24a6f47cb6d" 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_68fd10bc-0b9f-453b-b6ac-a22639983377" 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_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_68fd10bc-0b9f-453b-b6ac-a22639983377" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_bf3030a8-9a9c-4ac3-bd83-bdbb9c67880e" 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_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesShareBasedCompensationGross_bf3030a8-9a9c-4ac3-bd83-bdbb9c67880e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinShares_afd722a9-ba9d-4b0b-a752-26c078989b2e" xlink:href="hsy-20200927.xsd#hsy_TreasuryStockChangeinShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_hsy_TreasuryStockChangeinShares_afd722a9-ba9d-4b0b-a752-26c078989b2e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_ee6c0212-daf3-4a23-a1b3-70daa4a5ebb7" 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_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_ee6c0212-daf3-4a23-a1b3-70daa4a5ebb7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_7848a6f3-0e2b-4ba4-a38f-65e4769f2d80" 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_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueShareBasedCompensationGross_7848a6f3-0e2b-4ba4-a38f-65e4769f2d80" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_TreasuryStockChangeinValue_70c8a55e-2e42-4cec-ab63-c4708f13e588" xlink:href="hsy-20200927.xsd#hsy_TreasuryStockChangeinValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_hsy_TreasuryStockChangeinValue_70c8a55e-2e42-4cec-ab63-c4708f13e588" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_45d7f65b-1a5b-46f8-8619-caa76e586dbf" 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_c1089478-e6cf-4798-b046-e24a6f47cb6d" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_45d7f65b-1a5b-46f8-8619-caa76e586dbf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_dd96517c-8f7e-4cf9-964d-bf32c26df3c2" 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_45d7f65b-1a5b-46f8-8619-caa76e586dbf" xlink:to="loc_us-gaap_AwardTypeAxis_dd96517c-8f7e-4cf9-964d-bf32c26df3c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dd96517c-8f7e-4cf9-964d-bf32c26df3c2_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_dd96517c-8f7e-4cf9-964d-bf32c26df3c2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_dd96517c-8f7e-4cf9-964d-bf32c26df3c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_718ec673-d1ff-4723-ab2e-5db8d9c5c314" 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_dd96517c-8f7e-4cf9-964d-bf32c26df3c2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_718ec673-d1ff-4723-ab2e-5db8d9c5c314" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_e6ce99e9-cced-4ed1-970b-c1bde29328cb" 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_718ec673-d1ff-4723-ab2e-5db8d9c5c314" xlink:to="loc_us-gaap_EmployeeStockOptionMember_e6ce99e9-cced-4ed1-970b-c1bde29328cb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_55044afc-a835-4d2e-8469-118cf964f7bf" 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_ScheduleOfStockByClassTable_45d7f65b-1a5b-46f8-8619-caa76e586dbf" xlink:to="loc_us-gaap_StatementClassOfStockAxis_55044afc-a835-4d2e-8469-118cf964f7bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_55044afc-a835-4d2e-8469-118cf964f7bf_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_55044afc-a835-4d2e-8469-118cf964f7bf" xlink:to="loc_us-gaap_ClassOfStockDomain_55044afc-a835-4d2e-8469-118cf964f7bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_fd8c1e29-8bcf-4274-8558-bc5bca12fa9d" 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_55044afc-a835-4d2e-8469-118cf964f7bf" xlink:to="loc_us-gaap_ClassOfStockDomain_fd8c1e29-8bcf-4274-8558-bc5bca12fa9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_HersheyCommonStockMember_8531a003-34a3-444b-8339-23bcf3e6fa61" xlink:href="hsy-20200927.xsd#hsy_HersheyCommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_fd8c1e29-8bcf-4274-8558-bc5bca12fa9d" xlink:to="loc_hsy_HersheyCommonStockMember_8531a003-34a3-444b-8339-23bcf3e6fa61" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="simple" xlink:href="hsy-20200927.xsd#NONCONTROLLINGINTEREST"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTEREST" xlink:type="extended" id="i799e4875389b4aa28369fc38d2aa50b6_NONCONTROLLINGINTEREST"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#NONCONTROLLINGINTERESTTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTTables" xlink:type="extended" id="ie61a5b0df29d4999be8b5f89bce2dfc4_NONCONTROLLINGINTERESTTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#NONCONTROLLINGINTERESTNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTNARRATIVEDetails" xlink:type="extended" id="i41c1e4d14170429ca43844d996c007c0_NONCONTROLLINGINTERESTNARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_4e44cfc9-4fea-4dea-af5a-07ac3d205f5b" 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_d61c0e40-74e1-4034-9e97-abc8fff93010" 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_4e44cfc9-4fea-4dea-af5a-07ac3d205f5b" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_d61c0e40-74e1-4034-9e97-abc8fff93010" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_01864384-aaf0-4f5e-a4fd-31532e11217a" 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_4e44cfc9-4fea-4dea-af5a-07ac3d205f5b" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_01864384-aaf0-4f5e-a4fd-31532e11217a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_066b0e55-0afe-4ad5-8dda-28b73183b1c1" 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_01864384-aaf0-4f5e-a4fd-31532e11217a" xlink:to="loc_srt_OwnershipAxis_066b0e55-0afe-4ad5-8dda-28b73183b1c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_066b0e55-0afe-4ad5-8dda-28b73183b1c1_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_066b0e55-0afe-4ad5-8dda-28b73183b1c1" xlink:to="loc_srt_OwnershipDomain_066b0e55-0afe-4ad5-8dda-28b73183b1c1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_0d0cfe5f-94d0-4cb1-82e6-ef0013e37124" 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_066b0e55-0afe-4ad5-8dda-28b73183b1c1" xlink:to="loc_srt_OwnershipDomain_0d0cfe5f-94d0-4cb1-82e6-ef0013e37124" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_bce319f3-7ada-4543-964f-48770df5eb8d" xlink:href="hsy-20200927.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_0d0cfe5f-94d0-4cb1-82e6-ef0013e37124" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_bce319f3-7ada-4543-964f-48770df5eb8d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8" 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_01864384-aaf0-4f5e-a4fd-31532e11217a" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8_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_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8" xlink:to="loc_us-gaap_EquityComponentDomain_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_72d52f1e-7148-4fc3-a359-812d14eaf078" 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_6d234d9c-a473-4fde-bcb0-cbffcbb19fc8" xlink:to="loc_us-gaap_EquityComponentDomain_72d52f1e-7148-4fc3-a359-812d14eaf078" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_1411f91e-4c0d-4306-8072-850b49aac0b8" 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_72d52f1e-7148-4fc3-a359-812d14eaf078" xlink:to="loc_us-gaap_NoncontrollingInterestMember_1411f91e-4c0d-4306-8072-850b49aac0b8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_60e559b0-10f8-41d1-813f-15d562f5ee26" 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_01864384-aaf0-4f5e-a4fd-31532e11217a" xlink:to="loc_dei_LegalEntityAxis_60e559b0-10f8-41d1-813f-15d562f5ee26" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_60e559b0-10f8-41d1-813f-15d562f5ee26_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_60e559b0-10f8-41d1-813f-15d562f5ee26" xlink:to="loc_dei_EntityDomain_60e559b0-10f8-41d1-813f-15d562f5ee26_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_9257dc31-1a9b-489a-9ffb-41f2ab458a4f" 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_60e559b0-10f8-41d1-813f-15d562f5ee26" xlink:to="loc_dei_EntityDomain_9257dc31-1a9b-489a-9ffb-41f2ab458a4f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_LotteShanghaiFoodCompanyMember_55ad01e7-1d86-4698-ac2f-7544e137074f" xlink:href="hsy-20200927.xsd#hsy_LotteShanghaiFoodCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_9257dc31-1a9b-489a-9ffb-41f2ab458a4f" xlink:to="loc_hsy_LotteShanghaiFoodCompanyMember_55ad01e7-1d86-4698-ac2f-7544e137074f" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails" xlink:type="extended" id="idf5475a5013d4f7480e9178069bcdbce_NONCONTROLLINGINTERESTSCHEDULEOFACTIVITYRELATINGTOTHENONCONTROLLINGINTERESTDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestLineItems_539e0e9b-d645-4d57-9fa6-4da2dc89f7c2" 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_128123f8-efa6-4f35-8bdb-f67ea6303a69" 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_539e0e9b-d645-4d57-9fa6-4da2dc89f7c2" xlink:to="loc_us-gaap_MovementInMinorityInterestRollForward_128123f8-efa6-4f35-8bdb-f67ea6303a69" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_02e4123b-8042-4ccd-98ed-3d17b1d60aa2" 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_128123f8-efa6-4f35-8bdb-f67ea6303a69" xlink:to="loc_us-gaap_MinorityInterest_02e4123b-8042-4ccd-98ed-3d17b1d60aa2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_a2cd7e24-6641-46f7-84e6-a52500d2abc7" 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_128123f8-efa6-4f35-8bdb-f67ea6303a69" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_a2cd7e24-6641-46f7-84e6-a52500d2abc7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_27efd8db-cbe3-4d5c-aa82-b40170525196" 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_128123f8-efa6-4f35-8bdb-f67ea6303a69" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToNoncontrollingInterest_27efd8db-cbe3-4d5c-aa82-b40170525196" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_f4815429-520b-4ea4-a977-a797b6d47653" 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_96465bf8-3589-4e5b-8e51-e34b1e92110e" 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_539e0e9b-d645-4d57-9fa6-4da2dc89f7c2" xlink:to="loc_us-gaap_MinorityInterestTable_96465bf8-3589-4e5b-8e51-e34b1e92110e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_851d90a8-ed23-4e3b-b164-ecc25c1337e0" 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_96465bf8-3589-4e5b-8e51-e34b1e92110e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_851d90a8-ed23-4e3b-b164-ecc25c1337e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_851d90a8-ed23-4e3b-b164-ecc25c1337e0_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_851d90a8-ed23-4e3b-b164-ecc25c1337e0" xlink:to="loc_us-gaap_EquityComponentDomain_851d90a8-ed23-4e3b-b164-ecc25c1337e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_214cfe0c-2f35-498b-a9ed-ca7733f9a9a4" 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_851d90a8-ed23-4e3b-b164-ecc25c1337e0" xlink:to="loc_us-gaap_EquityComponentDomain_214cfe0c-2f35-498b-a9ed-ca7733f9a9a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_992de76f-6ad7-43f5-8597-28f6a32e6c42" 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_214cfe0c-2f35-498b-a9ed-ca7733f9a9a4" xlink:to="loc_us-gaap_NoncontrollingInterestMember_992de76f-6ad7-43f5-8597-28f6a32e6c42" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONTINGENCIES"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIES" xlink:type="extended" id="i64be14b2dc0d4d99bf9d59b4f64c99f5_CONTINGENCIES"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONTINGENCIESTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESTables" xlink:type="extended" id="i8047e6aae4b445fca19e05e3a9be4eca_CONTINGENCIESTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#CONTINGENCIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/CONTINGENCIESNARRATIVEDetails" xlink:type="extended" id="i7f72f7b3cf764098b506a4e83f79aeb5_CONTINGENCIESNARRATIVEDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="simple" xlink:href="hsy-20200927.xsd#EARNINGSPERSHARE"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARE" xlink:type="extended" id="i39687bde3c2447dda9dbf5703099939e_EARNINGSPERSHARE"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="simple" xlink:href="hsy-20200927.xsd#EARNINGSPERSHARETables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARETables" xlink:type="extended" id="i8f0988d5df11417d8fa6711346ee845b_EARNINGSPERSHARETables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails" xlink:type="extended" id="i64caaad04d3f45fbb5e20eab1c0b55c4_EARNINGSPERSHARESCHEDULEOFBASICANDDILUTEDEARNINGSPERSHAREDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_56af9c86-952c-42fd-b9b7-ccf28de6b24a" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" 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_56af9c86-952c-42fd-b9b7-ccf28de6b24a" xlink:to="loc_us-gaap_EarningsPerShareBasicTwoClassMethodAbstract_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Dividends_86aae5aa-d93f-470f-8df9-9c641664244d" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:to="loc_us-gaap_Dividends_86aae5aa-d93f-470f-8df9-9c641664244d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_123b2040-67ce-419c-a6cc-80f5b3a5e2d6" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesBasic_123b2040-67ce-419c-a6cc-80f5b3a5e2d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_ae6b4a27-cf08-498a-9ef4-61cb1d912079" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_ae6b4a27-cf08-498a-9ef4-61cb1d912079" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_aa2c11eb-e32f-4d99-ab94-93b4350fc5ab" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_aa2c11eb-e32f-4d99-ab94-93b4350fc5ab" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_ce4bb6f5-4d06-45b1-bd3f-87a39216bac5" 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_7fcf7906-e13c-4b61-bc5b-9a04959bfbad" xlink:to="loc_us-gaap_EarningsPerShareBasic_ce4bb6f5-4d06-45b1-bd3f-87a39216bac5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_fcd67e93-f846-4ab9-98d6-2a588221dacb" 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_56af9c86-952c-42fd-b9b7-ccf28de6b24a" xlink:to="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossBasic_4c6d7bb2-8ae6-4fc9-b402-e0172a535f17" 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_03065a52-0704-4fa4-824e-22476a4609af" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_DistributedEarnings_03065a52-0704-4fa4-824e-22476a4609af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_8858ebfe-1ea9-46b1-a04e-0d45b081ce8f" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_UndistributedEarningsLossAllocatedToParticipatingSecuritiesDiluted_8858ebfe-1ea9-46b1-a04e-0d45b081ce8f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_23d970c0-340f-4d4d-aa38-e6c04278a6d0" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_ParticipatingSecuritiesDistributedAndUndistributedEarningsLossDiluted_23d970c0-340f-4d4d-aa38-e6c04278a6d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_e4a168ec-5170-422e-8aa5-d4a6cf5e4faa" xlink:href="hsy-20200927.xsd#hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedTwoClassMethodAbstract_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_hsy_IncrementalCommonSharesAttributabletoDilutiveEffectofConversionofCommonStock_e4a168ec-5170-422e-8aa5-d4a6cf5e4faa" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_07d8ec0a-44ce-4fd7-afd9-a96c65c3e888" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_07d8ec0a-44ce-4fd7-afd9-a96c65c3e888" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_d8106db7-eb35-4d9f-a666-7c1c8de9899e" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_d8106db7-eb35-4d9f-a666-7c1c8de9899e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_3ebb9f92-e565-4684-8992-27b1dda1ca63" 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_fcd67e93-f846-4ab9-98d6-2a588221dacb" xlink:to="loc_us-gaap_EarningsPerShareDiluted_3ebb9f92-e565-4684-8992-27b1dda1ca63" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_23f81789-2ff2-40f3-96ff-1e52ed33762e" 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_56af9c86-952c-42fd-b9b7-ccf28de6b24a" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_23f81789-2ff2-40f3-96ff-1e52ed33762e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb" 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_23f81789-2ff2-40f3-96ff-1e52ed33762e" xlink:to="loc_us-gaap_StatementClassOfStockAxis_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb_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_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb" xlink:to="loc_us-gaap_ClassOfStockDomain_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_58a52915-467f-48d1-9082-614976f38a1b" 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_1cef1ee3-5bce-4a40-8aef-e8b2b62e9cfb" xlink:to="loc_us-gaap_ClassOfStockDomain_58a52915-467f-48d1-9082-614976f38a1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_392fe695-83f7-4cc8-9222-acc7d00ad0fe" 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_58a52915-467f-48d1-9082-614976f38a1b" xlink:to="loc_us-gaap_CommonStockMember_392fe695-83f7-4cc8-9222-acc7d00ad0fe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_7269098a-d499-4724-9637-85adf97b1ee7" 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_58a52915-467f-48d1-9082-614976f38a1b" xlink:to="loc_us-gaap_CommonClassBMember_7269098a-d499-4724-9637-85adf97b1ee7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_bca032f6-ac51-4339-abbd-b384063aa78b" 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_23f81789-2ff2-40f3-96ff-1e52ed33762e" xlink:to="loc_us-gaap_AwardTypeAxis_bca032f6-ac51-4339-abbd-b384063aa78b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bca032f6-ac51-4339-abbd-b384063aa78b_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_bca032f6-ac51-4339-abbd-b384063aa78b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_bca032f6-ac51-4339-abbd-b384063aa78b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07cc14d9-53fb-48d0-8f17-6d2c80bd6823" 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_bca032f6-ac51-4339-abbd-b384063aa78b" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07cc14d9-53fb-48d0-8f17-6d2c80bd6823" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_6daa5094-2706-4766-99f1-d5f21ff1f034" 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_07cc14d9-53fb-48d0-8f17-6d2c80bd6823" xlink:to="loc_us-gaap_EmployeeStockOptionMember_6daa5094-2706-4766-99f1-d5f21ff1f034" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_ae02f090-a8f9-4271-8e2a-977cde430be9" xlink:href="hsy-20200927.xsd#hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_07cc14d9-53fb-48d0-8f17-6d2c80bd6823" xlink:to="loc_hsy_PerformanceSharesAndRestrictedStockUnitsRSUMember_ae02f090-a8f9-4271-8e2a-977cde430be9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#EARNINGSPERSHARENARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/EARNINGSPERSHARENARRATIVEDetails" xlink:type="extended" id="i6f82175cf3b34124a9e73342ea101e6c_EARNINGSPERSHARENARRATIVEDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_30ae7663-2551-4a84-9c20-39865e49e6d5" 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_e7864357-3cdb-436c-9ba6-0d570ca9cb30" 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_30ae7663-2551-4a84-9c20-39865e49e6d5" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_e7864357-3cdb-436c-9ba6-0d570ca9cb30" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e60cfcfb-5928-44c4-b4e6-c6062bfecfce" 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_30ae7663-2551-4a84-9c20-39865e49e6d5" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_e60cfcfb-5928-44c4-b4e6-c6062bfecfce" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_3b042932-3471-40d2-847b-da2aacb46f12" 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_e60cfcfb-5928-44c4-b4e6-c6062bfecfce" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_3b042932-3471-40d2-847b-da2aacb46f12" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_3b042932-3471-40d2-847b-da2aacb46f12_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_3b042932-3471-40d2-847b-da2aacb46f12" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_3b042932-3471-40d2-847b-da2aacb46f12_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10d88b26-6819-4948-84e6-3f5088565b2a" 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_3b042932-3471-40d2-847b-da2aacb46f12" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_10d88b26-6819-4948-84e6-3f5088565b2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_1fa2ee8d-61f2-4891-b969-6923e96a7dd9" 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_10d88b26-6819-4948-84e6-3f5088565b2a" xlink:to="loc_us-gaap_EmployeeStockOptionMember_1fa2ee8d-61f2-4891-b969-6923e96a7dd9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="simple" xlink:href="hsy-20200927.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET" xlink:type="extended" id="ie7c95446380b413e99aa6164675cf608_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENET"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables" xlink:type="extended" id="ib9d4e99ec6074dbab1b940a0c7da6e5e_OTHERINCOMEEXPENSENETOTHERINCOMEEXPENSENETTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails" xlink:type="extended" id="i6f0c04b505c64be0b965bb7948dd6429_OTHERINCOMEEXPENSENETSCHEDULEOFOTHERINCOMEANDEXPENSENETDetails"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATION" xlink:type="extended" id="id7931762cae54d428e8b918cceef72cd_SUPPLEMENTALBALANCESHEETINFORMATION"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONTables" xlink:type="extended" id="ic02d3506360341ad810105d619eed2ff_SUPPLEMENTALBALANCESHEETINFORMATIONTables"/>
  <link:roleRef roleURI="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="simple" xlink:href="hsy-20200927.xsd#SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
  <link:definitionLink xlink:role="http://www.hersheys.com/role/SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails" xlink:type="extended" id="i404277a046034989b70b52c43063dca5_SUPPLEMENTALBALANCESHEETINFORMATIONSCHEDULEOFSUPPLEMENTALBALANCESHEETINFORMATIONDetails"/>
</link:linkbase>
