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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:5ff366b6-6617-4be5-bbe4-8feeb5fbd818,g:c4c27ae6-f95b-4771-8618-8b134e2e8ac1-->
<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:arcroleRef arcroleURI="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/arcrole/esma-arcrole-2018-11-21.xsd#wider-narrower"/>
  <link:roleRef roleURI="http://www.telefonica.com/role/ConsolidatedStatementsofChangesinEquity" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#ConsolidatedStatementsofChangesinEquity"/>
  <link:definitionLink xlink:role="http://www.telefonica.com/role/ConsolidatedStatementsofChangesinEquity" xlink:type="extended" id="ic176b78195854a82876332ed8951da4e_ConsolidatedStatementsofChangesinEquity">
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_StatementOfChangesInEquityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_8bb87516-219c-4433-aa7c-ba079d95e4be" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Equity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_Equity_8bb87516-219c-4433-aa7c-ba079d95e4be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_c015a814-cba6-46cb-b0f6-57af7ba547da" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_ProfitLoss_c015a814-cba6-46cb-b0f6-57af7ba547da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_e716b6e2-f9b9-427a-b10d-4139c4146c6a" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_e716b6e2-f9b9-427a-b10d-4139c4146c6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_09326404-e265-4a0e-b5ce-5ffa9a0a68a6" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_ComprehensiveIncome_09326404-e265-4a0e-b5ce-5ffa9a0a68a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaid_361990f7-0cf4-4aef-be20-0a7d8b07267f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DividendsPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_DividendsPaid_361990f7-0cf4-4aef-be20-0a7d8b07267f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions_2754774c-e959-4958-a542-70bf4b67a9b6" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions_2754774c-e959-4958-a542-70bf4b67a9b6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughChangeInEquityOfSubsidiaries_b62d1454-4eda-454e-b506-0ae85d75c572" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughChangeInEquityOfSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughChangeInEquityOfSubsidiaries_b62d1454-4eda-454e-b506-0ae85d75c572" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReductionOfIssuedCapital_3c7a4174-a865-4292-8a5c-1e0cf48c9733" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReductionOfIssuedCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_ReductionOfIssuedCapital_3c7a4174-a865-4292-8a5c-1e0cf48c9733" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities_f0ec68e3-af5e-458f-84b2-d89c796cce9d" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities_f0ec68e3-af5e-458f-84b2-d89c796cce9d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity_f061c794-0e20-46c0-8cfe-6321c5015f87" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity_f061c794-0e20-46c0-8cfe-6321c5015f87" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_0dc6f413-124f-4ff1-a726-db074b3ac0d1" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Equity"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable_ab9d9ffc-c5e0-4921-ad51-38c195de294d" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_StatementOfChangesInEquityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_2a0a1fef-e241-4dd6-b2f6-1dc4d3fe8998" xlink:to="loc_ifrs-full_StatementOfChangesInEquityTable_ab9d9ffc-c5e0-4921-ad51-38c195de294d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="scenario"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_a1e5812c-ecf8-405f-8188-3b2d6644613b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComponentsOfEquityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_ab9d9ffc-c5e0-4921-ad51-38c195de294d" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_a1e5812c-ecf8-405f-8188-3b2d6644613b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityMember_057b1906-7758-4338-b47b-b0cddb3b77d2" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_a1e5812c-ecf8-405f-8188-3b2d6644613b" xlink:to="loc_ifrs-full_EquityMember_057b1906-7758-4338-b47b-b0cddb3b77d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EquityAttributableToOwnersOfParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityMember_057b1906-7758-4338-b47b-b0cddb3b77d2" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IssuedCapitalMember_1acea164-7746-4982-afcd-4cc275377a85" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IssuedCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_IssuedCapitalMember_1acea164-7746-4982-afcd-4cc275377a85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_SharePremiumMember_1441df59-9a48-4a7e-ada6-f7206c263308" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_SharePremiumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_SharePremiumMember_1441df59-9a48-4a7e-ada6-f7206c263308" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TreasurySharesMember_f4b3532a-e8fb-46f3-a056-02b453570624" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TreasurySharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_TreasurySharesMember_f4b3532a-e8fb-46f3-a056-02b453570624" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherEquityInterestMember_6da55297-08bc-4195-8586-5cacee2004f8" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherEquityInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_OtherEquityInterestMember_6da55297-08bc-4195-8586-5cacee2004f8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_StatutoryReserveMember_6001d60b-c7fd-4047-b662-d9548cb378c5" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_StatutoryReserveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_StatutoryReserveMember_6001d60b-c7fd-4047-b662-d9548cb378c5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RetainedEarningsMember_0d805031-8f54-41d6-b205-1abf8475124e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_RetainedEarningsMember_0d805031-8f54-41d6-b205-1abf8475124e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesOnRemeasuringAvailableforsaleFinancialAssetsMember_8ae399e6-027f-4bc4-a29b-96904dd1d1c4" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReserveOfGainsAndLossesOnRemeasuringAvailableforsaleFinancialAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesOnRemeasuringAvailableforsaleFinancialAssetsMember_8ae399e6-027f-4bc4-a29b-96904dd1d1c4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReserveOfCashFlowHedgesMember_aa179a06-fbda-4951-a3ae-928af027d15e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReserveOfCashFlowHedgesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_ReserveOfCashFlowHedgesMember_aa179a06-fbda-4951-a3ae-928af027d15e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_bd269d63-415a-4bae-92f8-02019d6815af" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_bd269d63-415a-4bae-92f8-02019d6815af" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember_a6d3939f-86ce-4e06-80c2-3c24e92153c8" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_50877c60-0c4e-4408-8375-1e290e208571" xlink:to="loc_ifrs-full_ReserveOfExchangeDifferencesOnTranslationMember_a6d3939f-86ce-4e06-80c2-3c24e92153c8" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterestsMember_59ac6f25-5f5d-41ee-b4a7-257f2762e79b" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncontrollingInterestsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_EquityMember_057b1906-7758-4338-b47b-b0cddb3b77d2" xlink:to="loc_ifrs-full_NoncontrollingInterestsMember_59ac6f25-5f5d-41ee-b4a7-257f2762e79b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_008032e4-0085-4993-af39-d3f4a9daf13e" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_ab9d9ffc-c5e0-4921-ad51-38c195de294d" xlink:to="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_008032e4-0085-4993-af39-d3f4a9daf13e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RestatedMember_24472c42-6428-435c-8439-88b40b14858f" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RestatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_008032e4-0085-4993-af39-d3f4a9daf13e" xlink:to="loc_ifrs-full_RestatedMember_24472c42-6428-435c-8439-88b40b14858f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PreviouslyStatedMember_55f56dd7-b095-4b26-9db6-56ec00f4d600" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PreviouslyStatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RestatedMember_24472c42-6428-435c-8439-88b40b14858f" xlink:to="loc_ifrs-full_PreviouslyStatedMember_55f56dd7-b095-4b26-9db6-56ec00f4d600" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinancialEffectOfChangesInAccountingPolicyMember_98f24de2-1c86-41fa-8be3-832565420c99" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinancialEffectOfChangesInAccountingPolicyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RestatedMember_24472c42-6428-435c-8439-88b40b14858f" xlink:to="loc_ifrs-full_FinancialEffectOfChangesInAccountingPolicyMember_98f24de2-1c86-41fa-8be3-832565420c99" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.esma.europa.eu/xbrl/role/cor/esef_role-999999" xlink:type="simple" xlink:href="http://www.esma.europa.eu/taxonomy/2020-03-16/esef_cor.xsd#esef_role-999999"/>
  <link:definitionLink xlink:role="http://www.esma.europa.eu/xbrl/role/cor/esef_role-999999" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:href="http://www.esma.europa.eu/taxonomy/2020-03-16/esef_cor.xsd#esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NameOfReportingEntityOrOtherMeansOfIdentification_4fce61f1-20ea-4268-b8b5-31a6e0ee3578NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NameOfReportingEntityOrOtherMeansOfIdentification"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NameOfReportingEntityOrOtherMeansOfIdentification_4fce61f1-20ea-4268-b8b5-31a6e0ee3578NotDimensionallyQualified" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DomicileOfEntity_455a8b6d-76b5-4612-b06f-b1fc455b57baNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DomicileOfEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DomicileOfEntity_455a8b6d-76b5-4612-b06f-b1fc455b57baNotDimensionallyQualified" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LegalFormOfEntity_74baa07b-f2a3-48b8-9d16-2df3067a0d49NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_LegalFormOfEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_LegalFormOfEntity_74baa07b-f2a3-48b8-9d16-2df3067a0d49NotDimensionallyQualified" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CountryOfIncorporation_c97b3dbd-83f5-45dd-99ca-a93e2d4fa314NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CountryOfIncorporation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CountryOfIncorporation_c97b3dbd-83f5-45dd-99ca-a93e2d4fa314NotDimensionallyQualified" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AddressOfRegisteredOfficeOfEntity_8125f3f0-4721-47c0-80f8-a8e18d1d45abNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AddressOfRegisteredOfficeOfEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_AddressOfRegisteredOfficeOfEntity_8125f3f0-4721-47c0-80f8-a8e18d1d45abNotDimensionallyQualified" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PrincipalPlaceOfBusiness_8ad9f50e-fc5f-46a2-8f61-a028e62f443eNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PrincipalPlaceOfBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PrincipalPlaceOfBusiness_8ad9f50e-fc5f-46a2-8f61-a028e62f443eNotDimensionallyQualified" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities_32761c7e-3ba2-4833-a83d-06a622950883NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities_32761c7e-3ba2-4833-a83d-06a622950883NotDimensionallyQualified" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NameOfParentEntity_47bd8cd1-70df-4adf-9d14-aee7e094fe71NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NameOfParentEntity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NameOfParentEntity_47bd8cd1-70df-4adf-9d14-aee7e094fe71NotDimensionallyQualified" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NameOfUltimateParentOfGroup_3050e280-000f-4f40-b3ce-bf6c8f0ace58NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NameOfUltimateParentOfGroup"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NameOfUltimateParentOfGroup_3050e280-000f-4f40-b3ce-bf6c8f0ace58NotDimensionallyQualified" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_5b8ae83a-8bfc-48b3-9d85-77b055adbb3bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentAssets_5b8ae83a-8bfc-48b3-9d85-77b055adbb3bNotDimensionallyQualified" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_0c3c09f0-e3e0-41cd-bd4f-ed5d916d5386NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_0c3c09f0-e3e0-41cd-bd4f-ed5d916d5386NotDimensionallyQualified" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Goodwill_2f6859e1-3ed2-4f4c-b721-0eb357abd335NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Goodwill_2f6859e1-3ed2-4f4c-b721-0eb357abd335NotDimensionallyQualified" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_d348a810-0a19-4fa4-8a65-24e6f35f3343NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_d348a810-0a19-4fa4-8a65-24e6f35f3343NotDimensionallyQualified" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RightofuseAssets_fb59af30-36e7-47a2-b354-a22bb1bb01f4NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RightofuseAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RightofuseAssets_fb59af30-36e7-47a2-b354-a22bb1bb01f4NotDimensionallyQualified" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_40e5efc2-d9f0-436a-9d9e-4eb46ac8e51aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InvestmentAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_40e5efc2-d9f0-436a-9d9e-4eb46ac8e51aNotDimensionallyQualified" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_593e41df-a7eb-4aaa-aa55-74514fa178cdNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_FinancialAssetsAndOtherAssetsNonCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_593e41df-a7eb-4aaa-aa55-74514fa178cdNotDimensionallyQualified" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_765eaa7a-bad6-4fd7-9614-142bd51fa415NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DeferredTaxAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DeferredTaxAssets_765eaa7a-bad6-4fd7-9614-142bd51fa415NotDimensionallyQualified" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_3dcce193-435a-41b1-a2b5-efde93af7578NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentAssets_3dcce193-435a-41b1-a2b5-efde93af7578NotDimensionallyQualified" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_3ba911f6-9c3a-4521-8245-bde2bfa71415NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Inventories"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Inventories_3ba911f6-9c3a-4521-8245-bde2bfa71415NotDimensionallyQualified" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_eeb0b9fd-85c2-4eb3-a1cc-68735bfa5bfbNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReceivablesAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_eeb0b9fd-85c2-4eb3-a1cc-68735bfa5bfbNotDimensionallyQualified" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxAssetsCurrent_4e940ae4-64eb-4663-bb9e-6b78de42b351NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentTaxAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentTaxAssetsCurrent_4e940ae4-64eb-4663-bb9e-6b78de42b351NotDimensionallyQualified" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialAssets_ac0de28c-5222-4645-8628-b0a86f8e8b93NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentFinancialAssets_ac0de28c-5222-4645-8628-b0a86f8e8b93NotDimensionallyQualified" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_82151ab7-9a5f-45b3-a0cc-b1c7e2b5e7d3NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashAndCashEquivalents_82151ab7-9a5f-45b3-a0cc-b1c7e2b5e7d3NotDimensionallyQualified" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_d0b26b05-b386-43d9-97bd-c8cebc878df4NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_d0b26b05-b386-43d9-97bd-c8cebc878df4NotDimensionallyQualified" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_b02ab668-4367-4eab-a00c-6de9adceaf55NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Assets_b02ab668-4367-4eab-a00c-6de9adceaf55NotDimensionallyQualified" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_279699b1-f25e-479e-b3d0-0143982373efNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Equity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Equity_279699b1-f25e-479e-b3d0-0143982373efNotDimensionallyQualified" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_074c49b1-4c71-4f9e-9468-b9c3e930f8ecNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EquityAttributableToOwnersOfParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_074c49b1-4c71-4f9e-9468-b9c3e930f8ecNotDimensionallyQualified" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_2f4e9f2b-aa23-44aa-b548-69aba8ddfdd0NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncontrollingInterests_2f4e9f2b-aa23-44aa-b548-69aba8ddfdd0NotDimensionallyQualified" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_1f297dcc-f42e-44b6-91da-79ad4df16606NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentLiabilities_1f297dcc-f42e-44b6-91da-79ad4df16606NotDimensionallyQualified" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_ff3b3816-5299-4394-af6f-481178fa15d4NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentFinancialLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_ff3b3816-5299-4394-af6f-481178fa15d4NotDimensionallyQualified" xlink:type="arc" order="29"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_80350b68-95d6-4e9a-b9cc-cd358ebeeba9NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentLeaseLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_80350b68-95d6-4e9a-b9cc-cd358ebeeba9NotDimensionallyQualified" xlink:type="arc" order="30"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_f8e289ea-8e57-405d-a38f-de1f66d11a30NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PayablesAndOtherLiabilitiesNonCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_f8e289ea-8e57-405d-a38f-de1f66d11a30NotDimensionallyQualified" xlink:type="arc" order="31"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_7d0d3d3f-a133-4d9f-ab91-91d957b07b2eNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DeferredTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_7d0d3d3f-a133-4d9f-ab91-91d957b07b2eNotDimensionallyQualified" xlink:type="arc" order="32"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_fd1b37e0-c71f-4a2d-b4a1-c5dbdd1b9ab5NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentProvisions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentProvisions_fd1b37e0-c71f-4a2d-b4a1-c5dbdd1b9ab5NotDimensionallyQualified" xlink:type="arc" order="33"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_8848109b-eb80-4d11-868c-af3948337516NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentLiabilities_8848109b-eb80-4d11-868c-af3948337516NotDimensionallyQualified" xlink:type="arc" order="34"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_8aadd4e1-949b-477f-b906-5c5c4a015123NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentFinancialLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_8aadd4e1-949b-477f-b906-5c5c4a015123NotDimensionallyQualified" xlink:type="arc" order="35"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_d9ad8993-7f8c-496c-b516-ca744930ad2aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentLeaseLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_d9ad8993-7f8c-496c-b516-ca744930ad2aNotDimensionallyQualified" xlink:type="arc" order="36"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_de568b50-7cee-4288-b958-536d60db842fNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PayablesAndOtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_de568b50-7cee-4288-b958-536d60db842fNotDimensionallyQualified" xlink:type="arc" order="37"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_52624df1-2283-44f2-9973-f4ff0f0f5035NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_52624df1-2283-44f2-9973-f4ff0f0f5035NotDimensionallyQualified" xlink:type="arc" order="38"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_bc0ca2ec-fede-4074-90cb-fbc66a199bedNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentProvisions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CurrentProvisions_bc0ca2ec-fede-4074-90cb-fbc66a199bedNotDimensionallyQualified" xlink:type="arc" order="39"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_f0ec1022-f669-4f48-9725-d76c95e4a13dNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_f0ec1022-f669-4f48-9725-d76c95e4a13dNotDimensionallyQualified" xlink:type="arc" order="40"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_e69d8491-c059-4065-9d74-0a99a756a411NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EquityAndLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_EquityAndLiabilities_e69d8491-c059-4065-9d74-0a99a756a411NotDimensionallyQualified" xlink:type="arc" order="41"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Revenue_6997e7a9-b6de-4f85-8839-e62ad5d86a3dNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Revenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Revenue_6997e7a9-b6de-4f85-8839-e62ad5d86a3dNotDimensionallyQualified" xlink:type="arc" order="42"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_7376ff43-9718-4ac0-b406-53baa40739e5NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherIncome_7376ff43-9718-4ac0-b406-53baa40739e5NotDimensionallyQualified" xlink:type="arc" order="43"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_fc0e2468-3db1-4653-abd2-053cb23eea68NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RawMaterialsAndConsumablesUsed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_fc0e2468-3db1-4653-abd2-053cb23eea68NotDimensionallyQualified" xlink:type="arc" order="44"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_b3873e6e-6932-4a12-8fca-61e85c887733NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EmployeeBenefitsExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_b3873e6e-6932-4a12-8fca-61e85c887733NotDimensionallyQualified" xlink:type="arc" order="45"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherExpenseByNature_70bafdde-342d-422b-8040-3ddeafa8ca26NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherExpenseByNature"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherExpenseByNature_70bafdde-342d-422b-8040-3ddeafa8ca26NotDimensionallyQualified" xlink:type="arc" order="46"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_70de30c5-7da9-4240-8c69-1f9e8fae9e91NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ProfitLossFromOperatingActivitiesBeforeDepreciationAndAmortization_70de30c5-7da9-4240-8c69-1f9e8fae9e91NotDimensionallyQualified" xlink:type="arc" order="47"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_b5eeb7a2-40a9-47ee-9f91-ddad16798bc9NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DepreciationAndAmortisationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_b5eeb7a2-40a9-47ee-9f91-ddad16798bc9NotDimensionallyQualified" xlink:type="arc" order="48"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_36b0b4c1-af28-4afe-adfa-c13e494a12baNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossFromOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_36b0b4c1-af28-4afe-adfa-c13e494a12baNotDimensionallyQualified" xlink:type="arc" order="49"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_eba949e7-f71b-4297-b20b-a00a712ee7b9NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_eba949e7-f71b-4297-b20b-a00a712ee7b9NotDimensionallyQualified" xlink:type="arc" order="50"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncome_22f5f2e2-2995-4baa-816b-3b554c4d50f4NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinanceIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_FinanceIncome_22f5f2e2-2995-4baa-816b-3b554c4d50f4NotDimensionallyQualified" xlink:type="arc" order="51"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeGain_5a340475-5d9a-42e7-a47c-a5f1de2f6ac5NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NetForeignExchangeGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NetForeignExchangeGain_5a340475-5d9a-42e7-a47c-a5f1de2f6ac5NotDimensionallyQualified" xlink:type="arc" order="52"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceCosts_a2fb87e5-398c-46ce-907f-bdd8fd1aed43NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_FinanceCosts_a2fb87e5-398c-46ce-907f-bdd8fd1aed43NotDimensionallyQualified" xlink:type="arc" order="53"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NetForeignExchangeLoss_9ec02239-4b20-4678-a5ba-2bfe9c73965fNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NetForeignExchangeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NetForeignExchangeLoss_9ec02239-4b20-4678-a5ba-2bfe9c73965fNotDimensionallyQualified" xlink:type="arc" order="54"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetFinancialExpense_2db29723-52d3-42d5-bb9b-287ba7236221NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_NetFinancialExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_NetFinancialExpense_2db29723-52d3-42d5-bb9b-287ba7236221NotDimensionallyQualified" xlink:type="arc" order="55"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_5c5c8817-7bc5-492e-a98c-66656153cb71NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_5c5c8817-7bc5-492e-a98c-66656153cb71NotDimensionallyQualified" xlink:type="arc" order="56"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_7c6abe5e-0c7c-4238-b327-02c2a7635bd2NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_7c6abe5e-0c7c-4238-b327-02c2a7635bd2NotDimensionallyQualified" xlink:type="arc" order="57"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_9de3028e-27c9-4254-9729-6cc909a896baNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProfitLoss_9de3028e-27c9-4254-9729-6cc909a896baNotDimensionallyQualified" xlink:type="arc" order="58"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_e0a992d8-a2e5-445b-8b0c-4f52cddff448NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_e0a992d8-a2e5-445b-8b0c-4f52cddff448NotDimensionallyQualified" xlink:type="arc" order="59"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_d44ea8fb-d359-4631-be10-38d3b39b0b3fNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_d44ea8fb-d359-4631-be10-38d3b39b0b3fNotDimensionallyQualified" xlink:type="arc" order="60"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_BasicEarningsLossPerShare_49f0b800-1b0f-43f9-a610-b2d36741f171NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_BasicEarningsLossPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_BasicEarningsLossPerShare_49f0b800-1b0f-43f9-a610-b2d36741f171NotDimensionallyQualified" xlink:type="arc" order="61"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DilutedEarningsLossPerShare_272fc71f-9a09-489f-81c3-7301f68c5336NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DilutedEarningsLossPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DilutedEarningsLossPerShare_272fc71f-9a09-489f-81c3-7301f68c5336NotDimensionallyQualified" xlink:type="arc" order="62"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_47d3f936-0f68-4aa6-8b0d-48153ba6e40bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_47d3f936-0f68-4aa6-8b0d-48153ba6e40bNotDimensionallyQualified" xlink:type="arc" order="63"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_1729d902-b3ad-4da1-9152-db41e384c8a6NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnRemeasuringAvailableforsaleFinancialAssetsBeforeTax_1729d902-b3ad-4da1-9152-db41e384c8a6NotDimensionallyQualified" xlink:type="arc" order="64"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_65fa2cdb-05d1-466c-91a6-83666adaa5b5NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_65fa2cdb-05d1-466c-91a6-83666adaa5b5NotDimensionallyQualified" xlink:type="arc" order="65"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_f9f736b4-b3de-4261-a2ed-993b152a1b81NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnAvailableforsaleFinancialAssetsBeforeTax_f9f736b4-b3de-4261-a2ed-993b152a1b81NotDimensionallyQualified" xlink:type="arc" order="66"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_fc1976eb-6797-4a5f-b9f1-524bb26d7fd7NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_fc1976eb-6797-4a5f-b9f1-524bb26d7fd7NotDimensionallyQualified" xlink:type="arc" order="67"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_62c4bf15-2ad4-4a22-af19-5e8e7ce73c7fNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxAvailableforsaleFinancialAssets_62c4bf15-2ad4-4a22-af19-5e8e7ce73c7fNotDimensionallyQualified" xlink:type="arc" order="68"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_17a7fd54-ae14-415a-94e7-cbdbc16fbbf6NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_17a7fd54-ae14-415a-94e7-cbdbc16fbbf6NotDimensionallyQualified" xlink:type="arc" order="69"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_2f674aa4-424c-4bc9-8550-08a5fb3959a3NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_TaxEffectOnGainsLossesOnHedges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_2f674aa4-424c-4bc9-8550-08a5fb3959a3NotDimensionallyQualified" xlink:type="arc" order="70"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_eee61d4f-8322-4f45-867b-59ee795e3064NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_eee61d4f-8322-4f45-867b-59ee795e3064NotDimensionallyQualified" xlink:type="arc" order="71"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_08cf148f-338b-4dcc-9c66-726a89277f63NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_08cf148f-338b-4dcc-9c66-726a89277f63NotDimensionallyQualified" xlink:type="arc" order="72"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_10bed865-ef45-49a1-9f20-f61a7c4c2462NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxCashFlowHedges_10bed865-ef45-49a1-9f20-f61a7c4c2462NotDimensionallyQualified" xlink:type="arc" order="73"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_20cb2b1b-dca6-456c-8dda-85d833fd130dNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_GainsLossesOnCashFlowHedgeCostsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_20cb2b1b-dca6-456c-8dda-85d833fd130dNotDimensionallyQualified" xlink:type="arc" order="74"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_6238cbfe-7ed8-4dd8-9584-c16ce913387fNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_6238cbfe-7ed8-4dd8-9584-c16ce913387fNotDimensionallyQualified" xlink:type="arc" order="75"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_04648c63-6910-485c-b610-346cf9675735NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_04648c63-6910-485c-b610-346cf9675735NotDimensionallyQualified" xlink:type="arc" order="76"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_8ff0be4d-7573-451a-81bd-baa9d032e5bbNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_8ff0be4d-7573-451a-81bd-baa9d032e5bbNotDimensionallyQualified" xlink:type="arc" order="77"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_77526c2b-488f-4625-a450-c0d32bc6135fNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_OtherComprehensiveIncomeNetOfTaxCashFlowHedgesCosts_77526c2b-488f-4625-a450-c0d32bc6135fNotDimensionallyQualified" xlink:type="arc" order="78"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_7217b386-5e5d-4c14-8aaf-b5ff71647ec4NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_7217b386-5e5d-4c14-8aaf-b5ff71647ec4NotDimensionallyQualified" xlink:type="arc" order="79"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_40b57e11-9acb-4502-8975-64437abfe459NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_40b57e11-9acb-4502-8975-64437abfe459NotDimensionallyQualified" xlink:type="arc" order="80"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_e809f4fe-6e0f-4491-8dee-4d7c21852b3aNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_e809f4fe-6e0f-4491-8dee-4d7c21852b3aNotDimensionallyQualified" xlink:type="arc" order="81"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_44b79361-8b0f-4530-8b1e-ad732a288ccbNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_44b79361-8b0f-4530-8b1e-ad732a288ccbNotDimensionallyQualified" xlink:type="arc" order="82"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_90434da9-2996-4982-847b-384350800525NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_90434da9-2996-4982-847b-384350800525NotDimensionallyQualified" xlink:type="arc" order="83"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_ba6f223c-1cab-4598-8e48-57a3bc75b6c9NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxExchangeDifferencesOnTranslation_ba6f223c-1cab-4598-8e48-57a3bc75b6c9NotDimensionallyQualified" xlink:type="arc" order="84"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_7bc67dc9-6804-4333-878d-9ba90b41e54aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_7bc67dc9-6804-4333-878d-9ba90b41e54aNotDimensionallyQualified" xlink:type="arc" order="85"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_97bb3593-95f1-406c-886b-5ebdbec62719NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_97bb3593-95f1-406c-886b-5ebdbec62719NotDimensionallyQualified" xlink:type="arc" order="86"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_d3a24da9-ce05-4805-8b8b-77c3ab2e087dNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome_d3a24da9-ce05-4805-8b8b-77c3ab2e087dNotDimensionallyQualified" xlink:type="arc" order="87"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_af9a0d4e-ed48-42be-a966-1d2a4a823495NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_af9a0d4e-ed48-42be-a966-1d2a4a823495NotDimensionallyQualified" xlink:type="arc" order="88"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_ea9a29df-b441-4f6a-91cb-fdd0381aae37NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_ea9a29df-b441-4f6a-91cb-fdd0381aae37NotDimensionallyQualified" xlink:type="arc" order="89"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_5140998c-b753-436f-8de0-30ea0f91950eNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRevaluation_5140998c-b753-436f-8de0-30ea0f91950eNotDimensionallyQualified" xlink:type="arc" order="90"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_01811069-f884-48ae-a8e0-595a7e72c77aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxRelatingToChangesInRevaluationSurplusOfOtherComprehensiveIncome_01811069-f884-48ae-a8e0-595a7e72c77aNotDimensionallyQualified" xlink:type="arc" order="91"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e26a75c7-2cb5-4ba4-a383-190cea7c9874NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeNetOfTaxGainsLossesOnRevaluation_e26a75c7-2cb5-4ba4-a383-190cea7c9874NotDimensionallyQualified" xlink:type="arc" order="92"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_45757538-5917-4c15-9814-6cf843432902NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_45757538-5917-4c15-9814-6cf843432902NotDimensionallyQualified" xlink:type="arc" order="93"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_236c4610-94d7-4ee7-a919-887acdd49f07NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ComprehensiveIncome_236c4610-94d7-4ee7-a919-887acdd49f07NotDimensionallyQualified" xlink:type="arc" order="94"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_522797e9-8530-4a7f-bebd-c5faa698c33bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_522797e9-8530-4a7f-bebd-c5faa698c33bNotDimensionallyQualified" xlink:type="arc" order="95"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_550077b3-f074-46d8-b63f-af8df97debf6NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_550077b3-f074-46d8-b63f-af8df97debf6NotDimensionallyQualified" xlink:type="arc" order="96"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReceivedFromOperations_ede348e1-55e1-4070-8cef-504f312b0731NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashReceivedFromOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_CashReceivedFromOperations_ede348e1-55e1-4070-8cef-504f312b0731NotDimensionallyQualified" xlink:type="arc" order="97"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_49ce9a06-e17e-42ac-8665-d187f6ee0420NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashPaidFromOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_CashPaidFromOperations_49ce9a06-e17e-42ac-8665-d187f6ee0420NotDimensionallyQualified" xlink:type="arc" order="98"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_0970c03b-c8a1-4a6b-a8a0-781942854a26NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_0970c03b-c8a1-4a6b-a8a0-781942854a26NotDimensionallyQualified" xlink:type="arc" order="99"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_e9efb66b-d2e5-498e-a1ea-ff760863726dNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_e9efb66b-d2e5-498e-a1ea-ff760863726dNotDimensionallyQualified" xlink:type="arc" order="100"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_270e54a9-7ac6-432d-8e25-9f62534dc745NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_270e54a9-7ac6-432d-8e25-9f62534dc745NotDimensionallyQualified" xlink:type="arc" order="101"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_83b3b70b-984f-4faa-bb6b-1cd8cb4eea11NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_83b3b70b-984f-4faa-bb6b-1cd8cb4eea11NotDimensionallyQualified" xlink:type="arc" order="102"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_1fa75c8c-bfeb-4c4e-8a5a-3665c8a37535NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_1fa75c8c-bfeb-4c4e-8a5a-3665c8a37535NotDimensionallyQualified" xlink:type="arc" order="103"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_423ed0eb-7244-4a5b-a291-2f6bc6ca73fbNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities_423ed0eb-7244-4a5b-a291-2f6bc6ca73fbNotDimensionallyQualified" xlink:type="arc" order="104"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_60612f8a-c4d3-4140-93db-2028baabe0c4NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_60612f8a-c4d3-4140-93db-2028baabe0c4NotDimensionallyQualified" xlink:type="arc" order="105"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_c6e7fb28-5cf6-496e-a328-4d209d59b4e6NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_c6e7fb28-5cf6-496e-a328-4d209d59b4e6NotDimensionallyQualified" xlink:type="arc" order="106"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_bec0caa5-0ec5-4d15-9423-bb830a5abf1fNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_bec0caa5-0ec5-4d15-9423-bb830a5abf1fNotDimensionallyQualified" xlink:type="arc" order="107"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_23642daa-f0fb-47c2-8d92-cda05b580cf8NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_23642daa-f0fb-47c2-8d92-cda05b580cf8NotDimensionallyQualified" xlink:type="arc" order="108"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_7690ed27-6622-481a-b235-3b7b03d4373cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DividendsPaidClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities_7690ed27-6622-481a-b235-3b7b03d4373cNotDimensionallyQualified" xlink:type="arc" order="109"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares_a4724e58-c53c-45ba-ba0e-d8dc4b31e257NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromIssuingShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares_a4724e58-c53c-45ba-ba0e-d8dc4b31e257NotDimensionallyQualified" xlink:type="arc" order="110"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_013e859f-e672-45c2-a338-d6a0e373d744NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_013e859f-e672-45c2-a338-d6a0e373d744NotDimensionallyQualified" xlink:type="arc" order="111"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_69a2f8d8-815f-4698-8bab-7fa08c8f575eNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_OperationsWithOtherEquityHolders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_OperationsWithOtherEquityHolders_69a2f8d8-815f-4698-8bab-7fa08c8f575eNotDimensionallyQualified" xlink:type="arc" order="112"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_8f5b39cc-206e-43d4-83f7-50918f7fba6bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures_8f5b39cc-206e-43d4-83f7-50918f7fba6bNotDimensionallyQualified" xlink:type="arc" order="113"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_47064683-d32d-40da-b155-b686ed410d6aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_47064683-d32d-40da-b155-b686ed410d6aNotDimensionallyQualified" xlink:type="arc" order="114"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_8d9e8d33-2628-446f-9d19-85008c021ea1NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RepaymentsOfBondsNotesAndDebentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures_8d9e8d33-2628-446f-9d19-85008c021ea1NotDimensionallyQualified" xlink:type="arc" order="115"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_93953b19-2a70-4f35-b4f0-38a1d5f0a4c6NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_93953b19-2a70-4f35-b4f0-38a1d5f0a4c6NotDimensionallyQualified" xlink:type="arc" order="116"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_1f60f054-c601-47c5-a0ba-c72ec9562e51NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_1f60f054-c601-47c5-a0ba-c72ec9562e51NotDimensionallyQualified" xlink:type="arc" order="117"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_0dfbf28c-8f73-4267-b288-81e0b8c75586NotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_0dfbf28c-8f73-4267-b288-81e0b8c75586NotDimensionallyQualified" xlink:type="arc" order="118"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_95ca4be7-be8b-49ae-b75b-1e260cddd9e1NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_95ca4be7-be8b-49ae-b75b-1e260cddd9e1NotDimensionallyQualified" xlink:type="arc" order="119"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_e10ee828-636d-4281-a653-325679efc22cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_e10ee828-636d-4281-a653-325679efc22cNotDimensionallyQualified" xlink:type="arc" order="120"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_5e718ebf-fe6d-42cd-8d34-85f23ca2a1acNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashReclassifiedToAssetsHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_5e718ebf-fe6d-42cd-8d34-85f23ca2a1acNotDimensionallyQualified" xlink:type="arc" order="121"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_9e61da55-3a7a-4bd7-9ae3-b2cc9a2466dbNotDimensionallyQualified" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_9e61da55-3a7a-4bd7-9ae3-b2cc9a2466dbNotDimensionallyQualified" xlink:type="arc" order="122"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_cce6a8b1-af8c-43c4-999e-a52229b7ea33NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_cce6a8b1-af8c-43c4-999e-a52229b7ea33NotDimensionallyQualified" xlink:type="arc" order="123"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_567b606e-fb4e-4443-9589-305612a5005fNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_Cash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_Cash_567b606e-fb4e-4443-9589-305612a5005fNotDimensionallyQualified" xlink:type="arc" order="124"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_ded8358d-5d93-4c4c-a416-3c34177ae3fbNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_CashEquivalents_ded8358d-5d93-4c4c-a416-3c34177ae3fbNotDimensionallyQualified" xlink:type="arc" order="125"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.telefonica.com/role/Anchoring" xlink:type="simple" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#Anchoring"/>
  <link:definitionLink xlink:role="http://www.telefonica.com/role/Anchoring" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_e9a8767e-6579-4f69-b703-b87594e650c9" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:to="loc_tef_ActuarialLossesGainsAndImpactOfLimitOnAssetsForDefinedBenefitPensionsPlans_e9a8767e-6579-4f69-b703-b87594e650c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashPaidFromOperations_de1b2719-2693-43f5-ab8a-387b71d80317" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashPaidFromOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperations" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInOperations"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperations" xlink:to="loc_tef_CashPaidFromOperations_de1b2719-2693-43f5-ab8a-387b71d80317" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsToAndOnBehalfOfEmployees" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsToAndOnBehalfOfEmployees"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_CashPaidFromOperations_de1b2719-2693-43f5-ab8a-387b71d80317" xlink:to="loc_ifrs-full_PaymentsToAndOnBehalfOfEmployees" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsToSuppliersForGoodsAndServices" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsToSuppliersForGoodsAndServices"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_CashPaidFromOperations_de1b2719-2693-43f5-ab8a-387b71d80317" xlink:to="loc_ifrs-full_PaymentsToSuppliersForGoodsAndServices" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCashPaymentsFromOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCashPaymentsFromOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_CashPaidFromOperations_de1b2719-2693-43f5-ab8a-387b71d80317" xlink:to="loc_ifrs-full_OtherCashPaymentsFromOperatingActivities" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReceivedFromOperations_b8866e8e-55f3-4034-a8bd-6987bfe36aae" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashReceivedFromOperations"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperations" xlink:to="loc_tef_CashReceivedFromOperations_b8866e8e-55f3-4034-a8bd-6987bfe36aae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCashReceiptsFromOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCashReceiptsFromOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_CashReceivedFromOperations_b8866e8e-55f3-4034-a8bd-6987bfe36aae" xlink:to="loc_ifrs-full_OtherCashReceiptsFromOperatingActivities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReceiptsFromSalesOfGoodsAndRenderingOfServices" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReceiptsFromSalesOfGoodsAndRenderingOfServices"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_CashReceivedFromOperations_b8866e8e-55f3-4034-a8bd-6987bfe36aae" xlink:to="loc_ifrs-full_ReceiptsFromSalesOfGoodsAndRenderingOfServices" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_CashReclassifiedToAssetsHeldForSale_ba51682f-c389-4c7b-b0d5-49615b877409" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_CashReclassifiedToAssetsHeldForSale"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalentsClassifiedAsPartOfDisposalGroupHeldForSale" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashAndCashEquivalentsClassifiedAsPartOfDisposalGroupHeldForSale"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashAndCashEquivalentsClassifiedAsPartOfDisposalGroupHeldForSale" xlink:to="loc_tef_CashReclassifiedToAssetsHeldForSale_ba51682f-c389-4c7b-b0d5-49615b877409" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_b5defd50-c107-485b-8e52-c53e1c67c735" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="loc_tef_EffectOfChangesInConsolidationMethodsAndOthersOnCashAndEquivalents_b5defd50-c107-485b-8e52-c53e1c67c735" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_246b7e8f-9150-4a4a-be5e-36b6a9d0f900" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_FinancialAssetsAndOtherAssetsNonCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_246b7e8f-9150-4a4a-be5e-36b6a9d0f900" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentAssets" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_246b7e8f-9150-4a4a-be5e-36b6a9d0f900" xlink:to="loc_ifrs-full_OtherNoncurrentAssets" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_FinancialAssetsAndOtherAssetsNonCurrent_246b7e8f-9150-4a4a-be5e-36b6a9d0f900" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_428debf8-bf3a-42fd-acfb-0c792d0c23dd" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_GainsLossesOnCashFlowHedgeCostsBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_tef_GainsLossesOnCashFlowHedgeCostsBeforeTax_428debf8-bf3a-42fd-acfb-0c792d0c23dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_eb4fd739-81bc-45c7-842b-738d34a2ce77" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToAvailableforsaleFinancialAssetsOfOtherComprehensiveIncome" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToAvailableforsaleFinancialAssetsOfOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToAvailableforsaleFinancialAssetsOfOtherComprehensiveIncome" xlink:to="loc_tef_IncomeTaxImpactOnGainsLossesOnAvailableForSaleFinancialAssets_eb4fd739-81bc-45c7-842b-738d34a2ce77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_f994323b-41c4-4e8c-89d8-47c322c0f28b" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToAvailableforsaleFinancialAssetsOfOtherComprehensiveIncome" xlink:to="loc_tef_IncomeTaxImpactOnReclassificationAdjustmentsOnAvailableForSaleFinancialAssets_f994323b-41c4-4e8c-89d8-47c322c0f28b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_c2f95892-4dd2-4490-9c3e-5988b7e25a9d" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_tef_IncomeTaxRelatingToCashFlowHedgeCostsIncludedInOtherComprehensiveIncome_c2f95892-4dd2-4490-9c3e-5988b7e25a9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_fe52f250-1f54-419d-b6ae-5a4bd6e1210b" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedge_fe52f250-1f54-419d-b6ae-5a4bd6e1210b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_42aca63f-6305-46bf-b999-45b86ad6e4c5" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfGainsLossesOnCashFlowHedgeCosts_42aca63f-6305-46bf-b999-45b86ad6e4c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_7ce2048f-f79b-4ca0-955b-76335eaf7dc7" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLoss" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLoss"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLoss" xlink:to="loc_tef_IncomeTaxRelatingToReclassificationOfShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_7ce2048f-f79b-4ca0-955b-76335eaf7dc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_c6f664eb-b96b-44c8-b305-cd0a488dfa14" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLoss" xlink:to="loc_tef_IncomeTaxRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_c6f664eb-b96b-44c8-b305-cd0a488dfa14" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities_94a4ab67-2e95-455f-ab5b-11e5eadd93ca" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInEquity" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ChangesInEquity"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_ChangesInEquity" xlink:to="loc_tef_IncreaseDecreaseThroughUndatedSubordinatedSecurities_94a4ab67-2e95-455f-ab5b-11e5eadd93ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_5ca7b578-ee1f-496a-89e8-22c691daf5b5" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_5ca7b578-ee1f-496a-89e8-22c691daf5b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_5ca7b578-ee1f-496a-89e8-22c691daf5b5" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestPaidClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_5ca7b578-ee1f-496a-89e8-22c691daf5b5" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsOperatingActivities" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestReceivedClassifiedAsOperatingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestReceivedClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_NetPaymentsOfInterestAndOtherFinancialExpensesNetOfDividendsReceived_5ca7b578-ee1f-496a-89e8-22c691daf5b5" xlink:to="loc_ifrs-full_InterestReceivedClassifiedAsOperatingActivities" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_OperationsWithOtherEquityHolders_d55c624d-99da-4bc9-995a-01726cc09a9a" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_OperationsWithOtherEquityHolders"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_tef_OperationsWithOtherEquityHolders_d55c624d-99da-4bc9-995a-01726cc09a9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsOfOtherEquityInstruments" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsOfOtherEquityInstruments"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_OperationsWithOtherEquityHolders_d55c624d-99da-4bc9-995a-01726cc09a9a" xlink:to="loc_ifrs-full_PaymentsOfOtherEquityInstruments" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingOtherEquityInstruments" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromIssuingOtherEquityInstruments"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_OperationsWithOtherEquityHolders_d55c624d-99da-4bc9-995a-01726cc09a9a" xlink:to="loc_ifrs-full_ProceedsFromIssuingOtherEquityInstruments" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_8c4f130f-6022-40a8-af71-c7cf4cea4783" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_tef_PagosDeExplotacionEInversionesMaterialesEIntangiblesFinanciados_8c4f130f-6022-40a8-af71-c7cf4cea4783" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesCurrent_8a5a3f25-d68f-40be-909f-f02f267bc73a" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PayablesAndOtherLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_tef_PayablesAndOtherLiabilitiesCurrent_8a5a3f25-d68f-40be-909f-f02f267bc73a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentLiabilities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PayablesAndOtherLiabilitiesCurrent_8a5a3f25-d68f-40be-909f-f02f267bc73a" xlink:to="loc_ifrs-full_OtherCurrentLiabilities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TradeAndOtherCurrentPayables"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PayablesAndOtherLiabilitiesCurrent_8a5a3f25-d68f-40be-909f-f02f267bc73a" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_bd0e782c-d84e-4073-875f-45a33f1c391a" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PayablesAndOtherLiabilitiesNonCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_bd0e782c-d84e-4073-875f-45a33f1c391a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentPayables" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_NoncurrentPayables"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_bd0e782c-d84e-4073-875f-45a33f1c391a" xlink:to="loc_ifrs-full_NoncurrentPayables" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherNoncurrentLiabilities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PayablesAndOtherLiabilitiesNonCurrent_bd0e782c-d84e-4073-875f-45a33f1c391a" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_892e3711-4c63-45d8-85be-d863e65d1b10" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCashPaymentsToAcquireEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCashPaymentsToAcquireEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherCashPaymentsToAcquireEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities" xlink:to="loc_tef_PaymentsForFinancialInvestmentsNotIncludedInCashEquivalents_892e3711-4c63-45d8-85be-d863e65d1b10" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:to="loc_ifrs-full_ProceedsFromSalesOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOfIntangibleAssetsClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:to="loc_ifrs-full_ProceedsFromSalesOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:to="loc_ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsOnInvestmentsProceedsFromTheSaleInPropertyPlantAndEquipmentAndIntangibleAssetsNet_03eb44a8-12fc-4c8e-abfd-328b8ceacac2" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssuingShares" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromIssuingShares"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:to="loc_ifrs-full_ProceedsFromIssuingShares" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsToAcquireOrRedeemEntitysShares"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:to="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:to="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_PaymentsProceedsOfTreasurySharesAndOtherOperationsWithShareholdersAndWithMinorityInterests_b394b387-631f-4d8c-9f0a-2f951e1e5e14" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_3daa1eac-13ab-4334-9e61-8eaf0d838509" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCashReceiptsFromSalesOfEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCashReceiptsFromSalesOfEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherCashReceiptsFromSalesOfEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities" xlink:to="loc_tef_ProceedsFromFinancialInvestmentsNotIncludedInCashEquivalents_3daa1eac-13ab-4334-9e61-8eaf0d838509" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_78eb7245-7d9a-43c9-ba4d-33554905704c" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities" xlink:to="loc_tef_ProceedsFromPaymentsForPlacementsOfCashSurplusesNotIncludedInCashEquivalents_78eb7245-7d9a-43c9-ba4d-33554905704c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReceivablesAndOtherAssetsCurrent_aacf639e-f7ff-4bd9-8ec8-80cc96c6ea6b" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReceivablesAndOtherAssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_CurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_tef_ReceivablesAndOtherAssetsCurrent_aacf639e-f7ff-4bd9-8ec8-80cc96c6ea6b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TradeAndOtherCurrentReceivables"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_ReceivablesAndOtherAssetsCurrent_aacf639e-f7ff-4bd9-8ec8-80cc96c6ea6b" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_tef_ReceivablesAndOtherAssetsCurrent_aacf639e-f7ff-4bd9-8ec8-80cc96c6ea6b" xlink:to="loc_ifrs-full_OtherCurrentAssets" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_04a9ed9b-93b2-44a5-a987-c23f4b8cc06d" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans" xlink:to="loc_tef_ReclassificationAdjustmentOnRemeasurementsOfDefinedBenefitPlansBeforeTax_04a9ed9b-93b2-44a5-a987-c23f4b8cc06d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_cc8723be-5688-4516-bc9b-1f8cf91ab779" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_tef_ReclassificationAdjustmentsOnCashFlowHedgeCostsBeforeTax_cc8723be-5688-4516-bc9b-1f8cf91ab779" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_b7770028-5582-4f3e-9cc0-1b1cb3e26968" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax" xlink:to="loc_tef_ReclassificationRelatingToShareOfGainsLossesRecognizedDirectlyInEquityOfAssociatesAndOther_b7770028-5582-4f3e-9cc0-1b1cb3e26968" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_b35c8b70-8bd1-4d57-9f56-b2b603f10744" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossBeforeTax" xlink:to="loc_tef_ShareOfLossesGainsRecognizedDirectlyInEquityForAssociatesAndOthers_b35c8b70-8bd1-4d57-9f56-b2b603f10744" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_tef_TaxEffectOnGainsLossesOnHedges_f15dae21-c39e-43cb-91c6-8cc50bdb911b" xlink:href="549300EEJH4FEPDBBR25-2021-12-31.xsd#tef_TaxEffectOnGainsLossesOnHedges"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncomeTaxRelatingToCashFlowHedgesOfOtherComprehensiveIncome" xlink:to="loc_tef_TaxEffectOnGainsLossesOnHedges_f15dae21-c39e-43cb-91c6-8cc50bdb911b" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
