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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:405fc2cc-d75f-40bc-8e49-964b987dedff,g:20c0d93b-a21e-43f2-84ab-b30c69ce4872-->
<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.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_0656b395-36b3-4890-a2e0-c75f37f40501NotDimensionallyQualified" 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_0656b395-36b3-4890-a2e0-c75f37f40501NotDimensionallyQualified" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DomicileOfEntity_10ebd7d0-0385-4de3-afd5-0345c22c5521NotDimensionallyQualified" 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_10ebd7d0-0385-4de3-afd5-0345c22c5521NotDimensionallyQualified" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LegalFormOfEntity_2f552fbd-1ff8-4ca8-9f05-187c30bc857cNotDimensionallyQualified" 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_2f552fbd-1ff8-4ca8-9f05-187c30bc857cNotDimensionallyQualified" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CountryOfIncorporation_607032e4-c331-417e-bda6-4c98c4539623NotDimensionallyQualified" 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_607032e4-c331-417e-bda6-4c98c4539623NotDimensionallyQualified" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AddressOfRegisteredOfficeOfEntity_75a8d739-96a1-4bf8-8a9f-01c77b19375fNotDimensionallyQualified" 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_75a8d739-96a1-4bf8-8a9f-01c77b19375fNotDimensionallyQualified" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysOperationsAndPrincipalActivities_c491e9fe-f7dd-4a39-affc-287534a87216NotDimensionallyQualified" 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_c491e9fe-f7dd-4a39-affc-287534a87216NotDimensionallyQualified" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PrincipalPlaceOfBusiness_4e8779ef-0496-4238-bccd-f40c027d19bcNotDimensionallyQualified" 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_4e8779ef-0496-4238-bccd-f40c027d19bcNotDimensionallyQualified" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NameOfParentEntity_9c30070f-9ab3-47a3-a759-0bf391abc531NotDimensionallyQualified" 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_9c30070f-9ab3-47a3-a759-0bf391abc531NotDimensionallyQualified" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NameOfUltimateParentOfGroup_648ce86e-415a-4430-9c30-65ed83f2d19bNotDimensionallyQualified" 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_648ce86e-415a-4430-9c30-65ed83f2d19bNotDimensionallyQualified" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_12eb098c-854c-42a6-ab50-1c3d0efdb73eNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IntangibleAssetsAndGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_12eb098c-854c-42a6-ab50-1c3d0efdb73eNotDimensionallyQualified" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_75b33afe-15af-425c-8396-edb4232c27ecNotDimensionallyQualified" 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_75b33afe-15af-425c-8396-edb4232c27ecNotDimensionallyQualified" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InvestmentAccountedForUsingEquityMethod_c36ee9f6-032a-479e-acdb-722fb7dd5b7dNotDimensionallyQualified" 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_c36ee9f6-032a-479e-acdb-722fb7dd5b7dNotDimensionallyQualified" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_cf5bd7fc-bbb6-4172-a96a-a8b2f28ba9caNotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_cf5bd7fc-bbb6-4172-a96a-a8b2f28ba9caNotDimensionallyQualified" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxAssets_3ae8fc92-a74c-452d-b3ee-493ce7ff1d22NotDimensionallyQualified" 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_3ae8fc92-a74c-452d-b3ee-493ce7ff1d22NotDimensionallyQualified" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_bc2a65c4-1e73-4643-81a0-3d5ff3cb683cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherNoncurrentNonfinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialAssets_bc2a65c4-1e73-4643-81a0-3d5ff3cb683cNotDimensionallyQualified" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssets_072da7ca-d3ef-484b-a369-30eaec929218NotDimensionallyQualified" 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_072da7ca-d3ef-484b-a369-30eaec929218NotDimensionallyQualified" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleOrAsHeldForDistributionToOwners_a0b3ff0b-e6d7-4928-a2e3-682eac10c11cNotDimensionallyQualified" 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_a0b3ff0b-e6d7-4928-a2e3-682eac10c11cNotDimensionallyQualified" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Inventories_059410bb-9c0a-4f3c-8ce0-e0cb607d70aeNotDimensionallyQualified" 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_059410bb-9c0a-4f3c-8ce0-e0cb607d70aeNotDimensionallyQualified" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivables_bd539a37-4ee2-4b52-a556-39b2966b1f26NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivables_bd539a37-4ee2-4b52-a556-39b2966b1f26NotDimensionallyQualified" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentAssets_ffc2ba96-4fb3-4bff-a5c3-7bb958065747NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherCurrentAssets_ffc2ba96-4fb3-4bff-a5c3-7bb958065747NotDimensionallyQualified" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherCurrentFinancialAssets_8d4ce4fd-1233-4efd-8d29-3d3ea1071ac9NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherCurrentFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherCurrentFinancialAssets_8d4ce4fd-1233-4efd-8d29-3d3ea1071ac9NotDimensionallyQualified" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashAndCashEquivalents_7975e8f5-90af-4c39-a116-3b3d7958cdf4NotDimensionallyQualified" 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_7975e8f5-90af-4c39-a116-3b3d7958cdf4NotDimensionallyQualified" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentAssets_c2a48532-3105-4bf7-9729-bfee44d633e4NotDimensionallyQualified" 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_c2a48532-3105-4bf7-9729-bfee44d633e4NotDimensionallyQualified" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Assets_18e4743d-4620-4779-82bf-c9854f3d2ebaNotDimensionallyQualified" 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_18e4743d-4620-4779-82bf-c9854f3d2ebaNotDimensionallyQualified" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_f2bffe58-c962-4ba6-b2a0-805115d79ac6NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_FondosPropios"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_FondosPropios_f2bffe58-c962-4ba6-b2a0-805115d79ac6NotDimensionallyQualified" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_3988d9bf-bf6c-41d3-b0ac-1c470c64d40cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_3988d9bf-bf6c-41d3-b0ac-1c470c64d40cNotDimensionallyQualified" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncontrollingInterests_c1134088-dbab-424d-9ca8-e867ff9a31e9NotDimensionallyQualified" 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_c1134088-dbab-424d-9ca8-e867ff9a31e9NotDimensionallyQualified" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity_57799f96-4688-4838-8235-d41c2fb49b2cNotDimensionallyQualified" 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_57799f96-4688-4838-8235-d41c2fb49b2cNotDimensionallyQualified" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentProvisions_b05996d6-9060-4f47-981d-37597f2f747bNotDimensionallyQualified" 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_b05996d6-9060-4f47-981d-37597f2f747bNotDimensionallyQualified" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_5db25f86-c163-467c-84db-7a90081318f6NotDimensionallyQualified" 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_5db25f86-c163-467c-84db-7a90081318f6NotDimensionallyQualified" xlink:type="arc" order="29"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_991fe17f-d3d1-4420-ad58-b69121a50c6eNotDimensionallyQualified" 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_991fe17f-d3d1-4420-ad58-b69121a50c6eNotDimensionallyQualified" xlink:type="arc" order="30"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_b712d568-c4ab-4cfc-890a-3b4116931789NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_b712d568-c4ab-4cfc-890a-3b4116931789NotDimensionallyQualified" xlink:type="arc" order="31"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_NoncurrentLiabilities_0ee08823-844c-4351-a95a-ca44d3d35591NotDimensionallyQualified" 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_0ee08823-844c-4351-a95a-ca44d3d35591NotDimensionallyQualified" xlink:type="arc" order="32"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_b9501f4d-a49d-4a03-ba6f-9ce97ef17166NotDimensionallyQualified" 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_b9501f4d-a49d-4a03-ba6f-9ce97ef17166NotDimensionallyQualified" xlink:type="arc" order="33"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentProvisions_fc32b9e2-cc48-4158-ae60-7e55814819daNotDimensionallyQualified" 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_fc32b9e2-cc48-4158-ae60-7e55814819daNotDimensionallyQualified" xlink:type="arc" order="34"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_0ce147ee-e395-4e28-87c1-3f14aae001abNotDimensionallyQualified" 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_0ce147ee-e395-4e28-87c1-3f14aae001abNotDimensionallyQualified" xlink:type="arc" order="35"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_e4c2139f-4a99-4acb-a9c3-3ef18060e2f7NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_e4c2139f-4a99-4acb-a9c3-3ef18060e2f7NotDimensionallyQualified" xlink:type="arc" order="36"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CurrentLiabilities_3bae0c0d-701c-4afe-b4c7-9b1f5988f038NotDimensionallyQualified" 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_3bae0c0d-701c-4afe-b4c7-9b1f5988f038NotDimensionallyQualified" xlink:type="arc" order="37"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EquityAndLiabilities_37e7e5e6-2e4c-449d-a4bb-a82e9a4235d2NotDimensionallyQualified" 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_37e7e5e6-2e4c-449d-a4bb-a82e9a4235d2NotDimensionallyQualified" xlink:type="arc" order="38"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_7d2b42cf-4eb8-4283-9447-e35bf13126beNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RevenueFromSaleOfGoods"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_7d2b42cf-4eb8-4283-9447-e35bf13126beNotDimensionallyQualified" xlink:type="arc" order="39"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RevenueFromRenderingOfServices_0c5c329a-8bd0-47f7-8e78-b21fa30db67bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RevenueFromRenderingOfServices"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_RevenueFromRenderingOfServices_0c5c329a-8bd0-47f7-8e78-b21fa30db67bNotDimensionallyQualified" xlink:type="arc" order="40"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_9c20ee57-ce56-43df-9d29-480cd04c97deNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ChangesInInventoriesOfFinishedGoodsAndWorkInProgress_9c20ee57-ce56-43df-9d29-480cd04c97deNotDimensionallyQualified" xlink:type="arc" order="41"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherIncome_ee6a9327-e431-486f-96b9-f22be36bcb5eNotDimensionallyQualified" 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_ee6a9327-e431-486f-96b9-f22be36bcb5eNotDimensionallyQualified" xlink:type="arc" order="42"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_a615837e-74a0-4f11-98bb-55e4da61d81eNotDimensionallyQualified" 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_a615837e-74a0-4f11-98bb-55e4da61d81eNotDimensionallyQualified" xlink:type="arc" order="43"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_1ba847f9-024c-4891-99a3-3569828e96e7NotDimensionallyQualified" 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_1ba847f9-024c-4891-99a3-3569828e96e7NotDimensionallyQualified" xlink:type="arc" order="44"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_045ad495-2420-46c5-ac3f-1bf5404d3397NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_045ad495-2420-46c5-ac3f-1bf5404d3397NotDimensionallyQualified" xlink:type="arc" order="45"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_f6e01061-ef4c-4256-bd96-58462bbfd8c1NotDimensionallyQualified" 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_f6e01061-ef4c-4256-bd96-58462bbfd8c1NotDimensionallyQualified" xlink:type="arc" order="46"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TransportationExpense_5fcbdab9-b073-42da-b8c6-09ce59b96b57NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TransportationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_TransportationExpense_5fcbdab9-b073-42da-b8c6-09ce59b96b57NotDimensionallyQualified" xlink:type="arc" order="47"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_ab75cf02-5d65-4159-a906-9f90768bff60NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Suministros"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_Suministros_ab75cf02-5d65-4159-a906-9f90768bff60NotDimensionallyQualified" xlink:type="arc" order="48"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_a1dd336e-ac92-49fb-98c8-4b0a18925c5aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnDisposalsOfNoncurrentAssets_a1dd336e-ac92-49fb-98c8-4b0a18925c5aNotDimensionallyQualified" xlink:type="arc" order="49"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_MiscellaneousOtherOperatingExpense_06cabb05-6d85-4722-9865-95629d48d8a0NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_MiscellaneousOtherOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_MiscellaneousOtherOperatingExpense_06cabb05-6d85-4722-9865-95629d48d8a0NotDimensionallyQualified" xlink:type="arc" order="50"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_d4b90baf-ab80-468f-a502-c876d2fff48cNotDimensionallyQualified" 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_d4b90baf-ab80-468f-a502-c876d2fff48cNotDimensionallyQualified" xlink:type="arc" order="51"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestRevenueExpense_397ff357-55e4-42f3-a54a-495127dfdd6cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestRevenueExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_InterestRevenueExpense_397ff357-55e4-42f3-a54a-495127dfdd6cNotDimensionallyQualified" xlink:type="arc" order="52"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_164bdcf4-6ab5-4ad0-a554-baf84d1ae4e0NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnChangeInFairValueOfDerivatives_164bdcf4-6ab5-4ad0-a554-baf84d1ae4e0NotDimensionallyQualified" xlink:type="arc" order="53"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_7f61733d-2cff-49c2-96fe-a2d5aedc3679NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_7f61733d-2cff-49c2-96fe-a2d5aedc3679NotDimensionallyQualified" xlink:type="arc" order="54"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ImpairmentLossOnFinancialAssets_797a3418-7a5d-4a6d-aab2-11d6bd65d88cNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ImpairmentLossOnFinancialAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ImpairmentLossOnFinancialAssets_797a3418-7a5d-4a6d-aab2-11d6bd65d88cNotDimensionallyQualified" xlink:type="arc" order="55"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_d9770814-6c54-4db9-ad17-ec4560e32e62NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherFinanceIncomeCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_d9770814-6c54-4db9-ad17-ec4560e32e62NotDimensionallyQualified" xlink:type="arc" order="56"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_FinanceIncomeCost_c8e4b849-ddce-4131-b340-2e8f579c21cdNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_FinanceIncomeCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_FinanceIncomeCost_c8e4b849-ddce-4131-b340-2e8f579c21cdNotDimensionallyQualified" xlink:type="arc" order="57"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_78ff177e-fce2-4696-b47b-49117d2e238dNotDimensionallyQualified" 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_78ff177e-fce2-4696-b47b-49117d2e238dNotDimensionallyQualified" xlink:type="arc" order="58"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_2ea28015-f761-4ef2-9cd4-dc5710dc11c1NotDimensionallyQualified" 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_2ea28015-f761-4ef2-9cd4-dc5710dc11c1NotDimensionallyQualified" xlink:type="arc" order="59"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_9ac37a5c-16b6-4556-90dd-647ed3b4a774NotDimensionallyQualified" 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_9ac37a5c-16b6-4556-90dd-647ed3b4a774NotDimensionallyQualified" xlink:type="arc" order="60"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLoss_530caa66-ad6d-4847-acc9-c8fd5889482fNotDimensionallyQualified" 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_530caa66-ad6d-4847-acc9-c8fd5889482fNotDimensionallyQualified" xlink:type="arc" order="61"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_21c1ae3f-0a85-460e-b8e9-c3116e07e421NotDimensionallyQualified" 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_21c1ae3f-0a85-460e-b8e9-c3116e07e421NotDimensionallyQualified" xlink:type="arc" order="62"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_9c19a6c3-6ce7-412e-b081-5d211ec42d6dNotDimensionallyQualified" 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_9c19a6c3-6ce7-412e-b081-5d211ec42d6dNotDimensionallyQualified" xlink:type="arc" order="63"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_BasicEarningsLossPerShare_fc1e7fef-30da-4166-b1e9-165b7dea26ceNotDimensionallyQualified" 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_fc1e7fef-30da-4166-b1e9-165b7dea26ceNotDimensionallyQualified" xlink:type="arc" order="64"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DilutedEarningsLossPerShare_9c6887d6-b056-47c1-b59d-2b317d322d2bNotDimensionallyQualified" 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_9c6887d6-b056-47c1-b59d-2b317d322d2bNotDimensionallyQualified" xlink:type="arc" order="65"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_eb9ec560-0a46-455b-b049-8710f3171cbfNotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans_eb9ec560-0a46-455b-b049-8710f3171cbfNotDimensionallyQualified" xlink:type="arc" order="66"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_bc13c2ff-af4d-4db8-9290-fb6c12eb2dc5NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillNotBeReclassifiedToProfitOrLossBeforeTax_bc13c2ff-af4d-4db8-9290-fb6c12eb2dc5NotDimensionallyQualified" xlink:type="arc" order="67"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_38a853d9-2d13-4d53-9e62-8d59eb9e582aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesFromInvestmentsInEquityInstruments_38a853d9-2d13-4d53-9e62-8d59eb9e582aNotDimensionallyQualified" xlink:type="arc" order="68"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_394fad04-ad85-4627-aa8e-40cb0dd3f54aNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLoss_394fad04-ad85-4627-aa8e-40cb0dd3f54aNotDimensionallyQualified" xlink:type="arc" order="69"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillNotBeReclassifiedToProfitOrLossNetOfTax_a85c1852-2d40-493c-b57c-d50ce68d12bfNotDimensionallyQualified" 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_a85c1852-2d40-493c-b57c-d50ce68d12bfNotDimensionallyQualified" xlink:type="arc" order="70"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_56b60020-c8af-4363-b141-9561821739d2NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxCashFlowHedges_56b60020-c8af-4363-b141-9561821739d2NotDimensionallyQualified" xlink:type="arc" order="71"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnCashFlowHedgesBeforeTax_20e62b36-f082-434c-9ba8-8c5fb22143a8NotDimensionallyQualified" 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_20e62b36-f082-434c-9ba8-8c5fb22143a8NotDimensionallyQualified" xlink:type="arc" order="72"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnCashFlowHedgesBeforeTax_52837c1c-26c8-408e-8eed-6034588a61b6NotDimensionallyQualified" 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_52837c1c-26c8-408e-8eed-6034588a61b6NotDimensionallyQualified" xlink:type="arc" order="73"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_b47ff557-31df-4cc7-b220-e2656f09833bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeBeforeTaxExchangeDifferencesOnTranslation_b47ff557-31df-4cc7-b220-e2656f09833bNotDimensionallyQualified" xlink:type="arc" order="74"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_40c0876f-ae89-4227-a155-9ce800cb73deNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationBeforeTax_40c0876f-ae89-4227-a155-9ce800cb73deNotDimensionallyQualified" xlink:type="arc" order="75"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_77556e44-06ae-4c28-86cb-c1784f74177eNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationBeforeTax_77556e44-06ae-4c28-86cb-c1784f74177eNotDimensionallyQualified" xlink:type="arc" order="76"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_238090c4-7737-48fc-995b-0ca08daf8f05NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxRelatingToComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLoss_238090c4-7737-48fc-995b-0ca08daf8f05NotDimensionallyQualified" xlink:type="arc" order="77"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTax_aa92b7b6-dbe5-4468-b320-b5eb4c94dfd3NotDimensionallyQualified" 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_aa92b7b6-dbe5-4468-b320-b5eb4c94dfd3NotDimensionallyQualified" xlink:type="arc" order="78"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_838d55b6-3f66-40ed-a1de-39cff19c9838NotDimensionallyQualified" 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_838d55b6-3f66-40ed-a1de-39cff19c9838NotDimensionallyQualified" xlink:type="arc" order="79"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncome_33e7e36c-4b6c-4fbc-b944-242d7c820633NotDimensionallyQualified" 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_33e7e36c-4b6c-4fbc-b944-242d7c820633NotDimensionallyQualified" xlink:type="arc" order="80"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_1cf93d09-b625-488e-abbb-81a49eb18bd3NotDimensionallyQualified" 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_1cf93d09-b625-488e-abbb-81a49eb18bd3NotDimensionallyQualified" xlink:type="arc" order="81"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_26a91ab6-edab-4105-947d-78b5189f8d30NotDimensionallyQualified" 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_26a91ab6-edab-4105-947d-78b5189f8d30NotDimensionallyQualified" xlink:type="arc" order="82"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_AmpliacionReduccionDeCapital_87835f35-5ead-415f-aff4-50833614e5cdNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_AmpliacionReduccionDeCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_AmpliacionReduccionDeCapital_87835f35-5ead-415f-aff4-50833614e5cdNotDimensionallyQualified" xlink:type="arc" order="83"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaid_8c04cc1e-9174-4c8d-a444-761bf5da1b19NotDimensionallyQualified" 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_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DividendsPaid_8c04cc1e-9174-4c8d-a444-761bf5da1b19NotDimensionallyQualified" xlink:type="arc" order="84"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions_9d27faa1-9509-4582-aa51-de22b0fa3126NotDimensionallyQualified" 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_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTreasuryShareTransactions_9d27faa1-9509-4582-aa51-de22b0fa3126NotDimensionallyQualified" xlink:type="arc" order="85"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughDisposalOfSubsidiary_014c8095-2f9d-41ba-a57a-090ab8a4eff7NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughDisposalOfSubsidiary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughDisposalOfSubsidiary_014c8095-2f9d-41ba-a57a-090ab8a4eff7NotDimensionallyQualified" xlink:type="arc" order="86"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_TransferenciasEntrePartidasDelPatrimonioNeto_1a10b83a-7702-4942-a32f-18f0490a4817NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_TransferenciasEntrePartidasDelPatrimonioNeto"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_TransferenciasEntrePartidasDelPatrimonioNeto_1a10b83a-7702-4942-a32f-18f0490a4817NotDimensionallyQualified" xlink:type="arc" order="87"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_ObligacionesPerpetuasSubordinadas_3601ed4d-618d-4646-975e-96e899d8c70bNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_ObligacionesPerpetuasSubordinadas"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_ObligacionesPerpetuasSubordinadas_3601ed4d-618d-4646-975e-96e899d8c70bNotDimensionallyQualified" xlink:type="arc" order="88"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity_34e0b767-bb14-4427-977a-9864d78e349aNotDimensionallyQualified" 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_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity_34e0b767-bb14-4427-977a-9864d78e349aNotDimensionallyQualified" xlink:type="arc" order="89"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_3d395c09-83fb-477a-971b-c8efa2ea7760NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AdjustmentsForReconcileProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLoss_3d395c09-83fb-477a-971b-c8efa2ea7760NotDimensionallyQualified" xlink:type="arc" order="90"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_478021dd-dd72-4a72-8571-3627056f07edNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense_478021dd-dd72-4a72-8571-3627056f07edNotDimensionallyQualified" xlink:type="arc" order="91"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_36eebb11-5960-4c12-8fd6-c7eac831be51NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherAdjustmentsToReconcileProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherAdjustmentsToReconcileProfitLoss_36eebb11-5960-4c12-8fd6-c7eac831be51NotDimensionallyQualified" xlink:type="arc" order="92"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_6b3f1fd5-6c24-45e9-858b-02bbe173be64NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseInWorkingCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncreaseDecreaseInWorkingCapital_6b3f1fd5-6c24-45e9-858b-02bbe173be64NotDimensionallyQualified" xlink:type="arc" order="93"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_bad3889b-b644-41c1-b7f8-e082e2a2573dNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeLasActividadesDeExplotacion_bad3889b-b644-41c1-b7f8-e082e2a2573dNotDimensionallyQualified" xlink:type="arc" order="94"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_89148c4a-4b8a-419c-9a74-770bd9d1a8bbNotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_89148c4a-4b8a-419c-9a74-770bd9d1a8bbNotDimensionallyQualified" xlink:type="arc" order="95"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities_44ccf6ba-c0cd-411f-a2bd-64d465a94f12NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxesRefundClassifiedAsOperatingActivities_44ccf6ba-c0cd-411f-a2bd-64d465a94f12NotDimensionallyQualified" xlink:type="arc" order="96"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_7f7510bf-2b8d-45e4-9fd8-34f6298b2702NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_7f7510bf-2b8d-45e4-9fd8-34f6298b2702NotDimensionallyQualified" xlink:type="arc" order="97"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_009b127a-2d02-4da7-a60a-452c29431a29NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsOperatingActivities_009b127a-2d02-4da7-a60a-452c29431a29NotDimensionallyQualified" xlink:type="arc" order="98"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_ede4184d-01f2-4c1a-99b3-9126bf4c94beNotDimensionallyQualified" 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_ede4184d-01f2-4c1a-99b3-9126bf4c94beNotDimensionallyQualified" xlink:type="arc" order="99"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversiones_66da81e8-7252-4580-a0f4-48f666b1506dNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversiones"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_PagoPorInversiones_66da81e8-7252-4580-a0f4-48f666b1506dNotDimensionallyQualified" xlink:type="arc" order="100"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_5c498b0a-31a4-4cc7-bee5-947abf7708c5NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_5c498b0a-31a4-4cc7-bee5-947abf7708c5NotDimensionallyQualified" xlink:type="arc" order="101"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_9d52342e-001b-4996-87ca-f451fdc33d2bNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_9d52342e-001b-4996-87ca-f451fdc33d2bNotDimensionallyQualified" xlink:type="arc" order="102"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_a2f3eb0c-fd86-41b9-bda1-f32a23f3bd80NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PurchaseOfFinancialInstrumentsClassifiedAsInvestingActivities_a2f3eb0c-fd86-41b9-bda1-f32a23f3bd80NotDimensionallyQualified" xlink:type="arc" order="103"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversiones_bffdced0-dad9-4843-858a-30b74220e427NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversiones"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobroPorDesinversiones_bffdced0-dad9-4843-858a-30b74220e427NotDimensionallyQualified" xlink:type="arc" order="104"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_46b2cd6d-0b36-4d6b-9c87-08731c2856c0NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_46b2cd6d-0b36-4d6b-9c87-08731c2856c0NotDimensionallyQualified" xlink:type="arc" order="105"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_f721d14a-82dc-4e4d-af99-1aa1973b9926NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromDisposalsOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_f721d14a-82dc-4e4d-af99-1aa1973b9926NotDimensionallyQualified" xlink:type="arc" order="106"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_2e14717e-84e2-43dd-a212-87c22df370d3NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialInstrumentsClassifiedAsInvestingActivities_2e14717e-84e2-43dd-a212-87c22df370d3NotDimensionallyQualified" xlink:type="arc" order="107"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_6c2a21ef-b453-488b-b18f-2258e8f3f18cNotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsInvestingActivities_6c2a21ef-b453-488b-b18f-2258e8f3f18cNotDimensionallyQualified" xlink:type="arc" order="108"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_a945fc4a-5ecd-42a0-8e22-c5840d5962e6NotDimensionallyQualified" 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_a945fc4a-5ecd-42a0-8e22-c5840d5962e6NotDimensionallyQualified" xlink:type="arc" order="109"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_bebc5a4e-2fae-413e-899b-c5ff67b2507eNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePatrimonio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePatrimonio_bebc5a4e-2fae-413e-899b-c5ff67b2507eNotDimensionallyQualified" xlink:type="arc" order="110"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Emision_13a6eebb-21de-4e03-9dbe-7f0aae9c4edbNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Emision"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_Emision_13a6eebb-21de-4e03-9dbe-7f0aae9c4edbNotDimensionallyQualified" xlink:type="arc" order="111"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_DevolucionYAmortizacion_cf910e9c-e953-4bb2-af16-62524bef8b92NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_DevolucionYAmortizacion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_DevolucionYAmortizacion_cf910e9c-e953-4bb2-af16-62524bef8b92NotDimensionallyQualified" xlink:type="arc" order="112"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorInstrumentosDePatrimonio_ba709d4a-db07-400e-a60e-fe284d6b9cd7NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorInstrumentosDePatrimonio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobrosPorInstrumentosDePatrimonio_ba709d4a-db07-400e-a60e-fe284d6b9cd7NotDimensionallyQualified" xlink:type="arc" order="113"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorInstrumentosDePatrimonio_d49bd732-9180-44dd-b912-93ec106e1393NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorInstrumentosDePatrimonio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_PagosPorInstrumentosDePatrimonio_d49bd732-9180-44dd-b912-93ec106e1393NotDimensionallyQualified" xlink:type="arc" order="114"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_da8eac6e-f0d4-426b-8c15-22462c78ad84NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_da8eac6e-f0d4-426b-8c15-22462c78ad84NotDimensionallyQualified" xlink:type="arc" order="115"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_1d662f99-dc12-440b-882f-59661e318c90NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_PaymentsFromChangesInOwnershipInterestsInSubsidiaries_1d662f99-dc12-440b-882f-59661e318c90NotDimensionallyQualified" xlink:type="arc" order="116"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_4a913297-382a-477d-b158-e86797af2ac8NotDimensionallyQualified" 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://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries_4a913297-382a-477d-b158-e86797af2ac8NotDimensionallyQualified" xlink:type="arc" order="117"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_3a3627bd-9a40-4fb7-b647-975013d0d338NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorInstrumentosDePasivoFinanciero"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobrosPagosPorInstrumentosDePasivoFinanciero_3a3627bd-9a40-4fb7-b647-975013d0d338NotDimensionallyQualified" xlink:type="arc" order="118"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_9b9ef618-4c65-4b76-99e1-16fb093a3060NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorLaEmisionDePasivosFinancieros"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_9b9ef618-4c65-4b76-99e1-16fb093a3060NotDimensionallyQualified" xlink:type="arc" order="119"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_7f934174-c3af-4832-af4c-b2a1321287b3NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_7f934174-c3af-4832-af4c-b2a1321287b3NotDimensionallyQualified" xlink:type="arc" order="120"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_db494c33-d9d0-4109-b1fb-164f3d16578eNotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_db494c33-d9d0-4109-b1fb-164f3d16578eNotDimensionallyQualified" xlink:type="arc" order="121"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_a54f2de9-452c-4de3-81df-f27169b3d3d0NotDimensionallyQualified" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_repsol_OtrosFlujosDeEfectivoDeActividadesDeFinanciacion_a54f2de9-452c-4de3-81df-f27169b3d3d0NotDimensionallyQualified" xlink:type="arc" order="122"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_579669b5-9f71-45f2-a57d-23fa4d61e7b3NotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_579669b5-9f71-45f2-a57d-23fa4d61e7b3NotDimensionallyQualified" xlink:type="arc" order="123"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_6a358fa8-c901-4cd4-84d1-deca4d56a3ffNotDimensionallyQualified" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_esef_cor_LineItemsNotDimensionallyQualifiedPlaceholder" xlink:to="loc_ifrs-full_OtherInflowsOutflowsOfCashClassifiedAsFinancingActivities_6a358fa8-c901-4cd4-84d1-deca4d56a3ffNotDimensionallyQualified" xlink:type="arc" order="124"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_c2554f25-5556-434f-8c99-934f9d90bfb4NotDimensionallyQualified" 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_c2554f25-5556-434f-8c99-934f9d90bfb4NotDimensionallyQualified" xlink:type="arc" order="125"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_62fd4c10-c55e-4329-96aa-2b4ca29e05b5NotDimensionallyQualified" 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_62fd4c10-c55e-4329-96aa-2b4ca29e05b5NotDimensionallyQualified" xlink:type="arc" order="126"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_9fe8e97f-1ba4-47f8-92d3-a5be89d291a9NotDimensionallyQualified" 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_9fe8e97f-1ba4-47f8-92d3-a5be89d291a9NotDimensionallyQualified" xlink:type="arc" order="127"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Cash_0f5f2167-1502-4d6b-9a5d-b45896286b84NotDimensionallyQualified" 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_0f5f2167-1502-4d6b-9a5d-b45896286b84NotDimensionallyQualified" xlink:type="arc" order="128"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashEquivalents_2ffb5bf4-2d77-4e81-bb39-33e0396bf81eNotDimensionallyQualified" 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_2ffb5bf4-2d77-4e81-bb39-33e0396bf81eNotDimensionallyQualified" xlink:type="arc" order="129"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.repsol.com/role/Anchoring" xlink:type="simple" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#Anchoring"/>
  <link:definitionLink xlink:role="http://www.repsol.com/role/Anchoring" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_repsol_AmpliacionReduccionDeCapital_e975fa68-5a03-4b47-864a-c34585302eeb" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_AmpliacionReduccionDeCapital"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransactionsWithOwners" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughTransactionsWithOwners"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughTransactionsWithOwners" xlink:to="loc_repsol_AmpliacionReduccionDeCapital_e975fa68-5a03-4b47-864a-c34585302eeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IssueOfEquity" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IssueOfEquity"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_AmpliacionReduccionDeCapital_e975fa68-5a03-4b47-864a-c34585302eeb" xlink:to="loc_ifrs-full_IssueOfEquity" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ReductionOfIssuedCapital" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_AmpliacionReduccionDeCapital_e975fa68-5a03-4b47-864a-c34585302eeb" xlink:to="loc_ifrs-full_ReductionOfIssuedCapital" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_039e57f0-1fec-459a-a108-89bf1f0ce67e" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <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_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_039e57f0-1fec-459a-a108-89bf1f0ce67e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_039e57f0-1fec-459a-a108-89bf1f0ce67e" xlink:to="loc_ifrs-full_ProceedsFromSalesOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_039e57f0-1fec-459a-a108-89bf1f0ce67e" xlink:to="loc_ifrs-full_CashFlowsFromLosingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSalesOfInvestmentsAccountedForUsingEquityMethod" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSalesOfInvestmentsAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_CobroPorDesinversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_039e57f0-1fec-459a-a108-89bf1f0ce67e" xlink:to="loc_ifrs-full_ProceedsFromSalesOfInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_60e61c01-9745-4a6d-87cb-481c6bbe7ab1" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl"/>
    <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_ifrs-full_ProceedsFromChangesInOwnershipInterestsInSubsidiaries" xlink:to="loc_repsol_CobrosPagosPorCambiosEnLasParticipacionesEnLaPropriedadDeDependientesQueNoDenLugarAPerdidaDeControl_60e61c01-9745-4a6d-87cb-481c6bbe7ab1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorInstrumentosDePatrimonio_f0772d9f-a090-4bab-8ff5-e2b991f2ebe0" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorInstrumentosDePatrimonio"/>
    <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_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:to="loc_repsol_CobrosPorInstrumentosDePatrimonio_f0772d9f-a090-4bab-8ff5-e2b991f2ebe0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_bcc58135-17ea-48d4-a22b-3f65d211b150" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_CobrosPorLaEmisionDePasivosFinancieros"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:to="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_bcc58135-17ea-48d4-a22b-3f65d211b150" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_CobrosPorLaEmisionDePasivosFinancieros_bcc58135-17ea-48d4-a22b-3f65d211b150" xlink:to="loc_ifrs-full_ProceedsFromIssueOfBondsNotesAndDebentures" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_DevolucionYAmortizacion_65e81fee-f6c7-4b1e-a612-1fa651781b32" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_DevolucionYAmortizacion"/>
    <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_ifrs-full_PaymentsOfOtherEquityInstruments" xlink:to="loc_repsol_DevolucionYAmortizacion_65e81fee-f6c7-4b1e-a612-1fa651781b32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Emision_ce53f33f-d47a-4fac-97dc-d7b0dfa77638" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Emision"/>
    <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_ifrs-full_ProceedsFromIssuingOtherEquityInstruments" xlink:to="loc_repsol_Emision_ce53f33f-d47a-4fac-97dc-d7b0dfa77638" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_FondosPropios"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_Equity" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_Equity" xlink:to="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OtherReserves" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OtherReserves"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_OtherReserves" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_SharePremium" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_SharePremium"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_SharePremium" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_StatutoryReserve" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_StatutoryReserve"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_StatutoryReserve" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IssuedCapital" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IssuedCapital"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_IssuedCapital" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_TreasuryShares" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_TreasuryShares"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_TreasuryShares" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendPayables" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_DividendPayables"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_DividendPayables" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RetainedEarnings" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_RetainedEarnings"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_FondosPropios_ef12c9cb-c6cc-4b4a-a74b-d97f2f4d0fc5" xlink:to="loc_ifrs-full_RetainedEarnings" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_ObligacionesPerpetuasSubordinadas_a106ce1c-4fb6-4bd4-a0c1-3b3bc4a8f886" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_ObligacionesPerpetuasSubordinadas"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesEquity" xlink:to="loc_repsol_ObligacionesPerpetuasSubordinadas_a106ce1c-4fb6-4bd4-a0c1-3b3bc4a8f886" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_ec2ef567-f732-4de4-8d5e-0610b127d0fc" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_ec2ef567-f732-4de4-8d5e-0610b127d0fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_ec2ef567-f732-4de4-8d5e-0610b127d0fc" xlink:to="loc_ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfInterestsInInvestmentsAccountedForUsingEquityMethod" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfInterestsInInvestmentsAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_ec2ef567-f732-4de4-8d5e-0610b127d0fc" xlink:to="loc_ifrs-full_PurchaseOfInterestsInInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_PurchaseOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_PurchaseOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_PagoPorInversionesEnEmpresasDelGrupoAsociadasYUnidadesDeNegocio_ec2ef567-f732-4de4-8d5e-0610b127d0fc" xlink:to="loc_ifrs-full_PurchaseOfInvestmentsOtherThanInvestmentsAccountedForUsingEquityMethod" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorInstrumentosDePatrimonio_bb514937-29c0-4982-9a2f-4f60cfbcd7c9" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorInstrumentosDePatrimonio"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_ProceedsFromSaleOrIssueOfTreasuryShares" xlink:to="loc_repsol_PagosPorInstrumentosDePatrimonio_bb514937-29c0-4982-9a2f-4f60cfbcd7c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_596a1e98-3530-4013-b05c-2437b65a0584" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:to="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_596a1e98-3530-4013-b05c-2437b65a0584" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_PagosPorLaDevolucionYAmortizacionDePasivosFinancieros_596a1e98-3530-4013-b05c-2437b65a0584" xlink:to="loc_ifrs-full_RepaymentsOfBondsNotesAndDebentures" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_6a8f8cff-398f-4155-a7bb-90902a12c803" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_PaymentsOfOtherEquityInstruments" xlink:to="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_6a8f8cff-398f-4155-a7bb-90902a12c803" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities" 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://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_repsol_PagosPorRemuneracionesDeAccionistasYOtrosInstrumentosDePatrimonio_6a8f8cff-398f-4155-a7bb-90902a12c803" xlink:to="loc_ifrs-full_DividendsPaidClassifiedAsFinancingActivities" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_Suministros_b71777ca-1087-4d82-9a73-898804651d4c" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_Suministros"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_OperatingExpense" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_OperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_OperatingExpense" xlink:to="loc_repsol_Suministros_b71777ca-1087-4d82-9a73-898804651d4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_repsol_TransferenciasEntrePartidasDelPatrimonioNeto_abb13bf7-7c7c-4cf7-ae0f-4f2303e47dc5" xlink:href="BSYCX13Y0NOTV14V9N85-2021-12-31.xsd#repsol_TransferenciasEntrePartidasDelPatrimonioNeto"/>
    <link:loc xlink:type="locator" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughAppropriationOfRetainedEarnings" xlink:href="http://xbrl.ifrs.org/taxonomy/2020-03-16/full_ifrs/full_ifrs-cor_2020-03-16.xsd#ifrs-full_IncreaseDecreaseThroughAppropriationOfRetainedEarnings"/>
    <link:definitionArc xlink:arcrole="http://www.esma.europa.eu/xbrl/esef/arcrole/wider-narrower" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughAppropriationOfRetainedEarnings" xlink:to="loc_repsol_TransferenciasEntrePartidasDelPatrimonioNeto_abb13bf7-7c7c-4cf7-ae0f-4f2303e47dc5" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
