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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:16715cbd-7ff0-4580-8d2f-23710831d445,g:9ea2da2b-baf8-4eaa-abe7-219714048964-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.sempra.com/role/COVER" xlink:type="simple" xlink:href="sre-20240630.xsd#COVER"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/COVER" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_4868e74d-c537-4ed2-86a6-b18b67dc1589" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentInformationTable_4868e74d-c537-4ed2-86a6-b18b67dc1589" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_3f52d997-3de9-4673-b912-a9097889fbf6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_4868e74d-c537-4ed2-86a6-b18b67dc1589" xlink:to="loc_us-gaap_StatementClassOfStockAxis_3f52d997-3de9-4673-b912-a9097889fbf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_3f52d997-3de9-4673-b912-a9097889fbf6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_3f52d997-3de9-4673-b912-a9097889fbf6" xlink:to="loc_us-gaap_ClassOfStockDomain_3f52d997-3de9-4673-b912-a9097889fbf6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_7bec2309-63c7-4519-bc7d-855ee01db4d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_3f52d997-3de9-4673-b912-a9097889fbf6" xlink:to="loc_us-gaap_ClassOfStockDomain_7bec2309-63c7-4519-bc7d-855ee01db4d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_d2197d6c-1f97-47d6-9748-5c886afc7d1f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7bec2309-63c7-4519-bc7d-855ee01db4d9" xlink:to="loc_us-gaap_CommonStockMember_d2197d6c-1f97-47d6-9748-5c886afc7d1f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_Sempra575JuniorSubordinatedNotesDue2079Member_08540866-cb47-4885-b039-f4506f01b89f" xlink:href="sre-20240630.xsd#sre_Sempra575JuniorSubordinatedNotesDue2079Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_7bec2309-63c7-4519-bc7d-855ee01db4d9" xlink:to="loc_sre_Sempra575JuniorSubordinatedNotesDue2079Member_08540866-cb47-4885-b039-f4506f01b89f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1aa2748f-853f-426c-8be8-32e1e7682eb6" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_4868e74d-c537-4ed2-86a6-b18b67dc1589" xlink:to="loc_dei_LegalEntityAxis_1aa2748f-853f-426c-8be8-32e1e7682eb6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1aa2748f-853f-426c-8be8-32e1e7682eb6_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1aa2748f-853f-426c-8be8-32e1e7682eb6" xlink:to="loc_dei_EntityDomain_1aa2748f-853f-426c-8be8-32e1e7682eb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_77e0b830-14ab-439d-bfe7-e3187ca40869" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1aa2748f-853f-426c-8be8-32e1e7682eb6" xlink:to="loc_dei_EntityDomain_77e0b830-14ab-439d-bfe7-e3187ca40869" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_d6511e64-9342-4945-9917-0b7e964e5b72" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_77e0b830-14ab-439d-bfe7-e3187ca40869" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_d6511e64-9342-4945-9917-0b7e964e5b72" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_8ba99b6d-7b53-44a7-bd8b-ae71bfa2e4dd" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_77e0b830-14ab-439d-bfe7-e3187ca40869" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_8ba99b6d-7b53-44a7-bd8b-ae71bfa2e4dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_6b76ee74-eafd-44ee-8bb0-2e0b7aa24035" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentType_6b76ee74-eafd-44ee-8bb0-2e0b7aa24035" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_b23755f0-5a5f-4cb6-86d6-e954eb1db1a4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentQuarterlyReport_b23755f0-5a5f-4cb6-86d6-e954eb1db1a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_f07eca0d-d49e-4f78-b7a1-710126b2079c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentPeriodEndDate_f07eca0d-d49e-4f78-b7a1-710126b2079c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_39073429-1d07-477e-9528-4dbd5d3830b3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentTransitionReport_39073429-1d07-477e-9528-4dbd5d3830b3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_08c40db7-3677-4131-a6a1-1c6150573dfd" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityFileNumber_08c40db7-3677-4131-a6a1-1c6150573dfd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_a9ac25e7-d722-4cc8-a6a4-1d3cca8e84a2" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityRegistrantName_a9ac25e7-d722-4cc8-a6a4-1d3cca8e84a2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_0e2b0ee3-c89c-43fa-bcd0-7ee21bacffb0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityIncorporationStateCountryCode_0e2b0ee3-c89c-43fa-bcd0-7ee21bacffb0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_2bb8fcf3-3968-4e2c-816e-b2ee72cf4da0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityTaxIdentificationNumber_2bb8fcf3-3968-4e2c-816e-b2ee72cf4da0" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_493fbc9b-b4bf-4cde-ad1f-90924535947d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityAddressAddressLine1_493fbc9b-b4bf-4cde-ad1f-90924535947d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_80f172e0-7b65-41c5-9daa-cca69b864a35" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityAddressCityOrTown_80f172e0-7b65-41c5-9daa-cca69b864a35" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_ec2c8658-79ee-4011-b30c-e2e97617b2bd" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityAddressStateOrProvince_ec2c8658-79ee-4011-b30c-e2e97617b2bd" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_8dc9a89c-f22d-4ace-b28d-4a5b5393c2a8" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityAddressPostalZipCode_8dc9a89c-f22d-4ace-b28d-4a5b5393c2a8" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_f112b529-68c3-451e-883a-54d7ddbdc318" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_CityAreaCode_f112b529-68c3-451e-883a-54d7ddbdc318" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_f010a17b-5436-4141-9bde-41fa2f341e5f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_LocalPhoneNumber_f010a17b-5436-4141-9bde-41fa2f341e5f" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_e168abbd-a973-49be-9a3d-ecceeef0fb94" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_Security12bTitle_e168abbd-a973-49be-9a3d-ecceeef0fb94" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_7c539bbd-ebfc-42b2-bf0e-e0c454fad149" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_TradingSymbol_7c539bbd-ebfc-42b2-bf0e-e0c454fad149" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_ba4ff1da-a666-4ea9-a7b7-04994a0e8a37" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_SecurityExchangeName_ba4ff1da-a666-4ea9-a7b7-04994a0e8a37" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_4b9c199e-a31b-4718-b756-23df171e2689" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityCurrentReportingStatus_4b9c199e-a31b-4718-b756-23df171e2689" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_deace4fc-12e2-4d70-b400-8146a7dbdc1e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityInteractiveDataCurrent_deace4fc-12e2-4d70-b400-8146a7dbdc1e" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_47fa954c-2f43-4a06-afa4-e12d6b7a1e16" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityFilerCategory_47fa954c-2f43-4a06-afa4-e12d6b7a1e16" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_3ec95b52-bf27-44e8-a65b-ee78889909f0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntitySmallBusiness_3ec95b52-bf27-44e8-a65b-ee78889909f0" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_763dcf88-f4b8-4ac5-a0e9-9e30669c93f3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityEmergingGrowthCompany_763dcf88-f4b8-4ac5-a0e9-9e30669c93f3" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_0fc4166d-6d72-4b87-a2b8-92f5c0d38cab" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityShellCompany_0fc4166d-6d72-4b87-a2b8-92f5c0d38cab" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_a49d4090-3c79-4709-b5c5-7bd85e7f0d39" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_a49d4090-3c79-4709-b5c5-7bd85e7f0d39" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_c2bcb8d5-965a-4e87-b105-567bb7611a80" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_AmendmentFlag_c2bcb8d5-965a-4e87-b105-567bb7611a80" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_fc12f09a-bacf-4d99-b137-a27b22d5c53f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentFiscalYearFocus_fc12f09a-bacf-4d99-b137-a27b22d5c53f" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_71bdd2ac-61ce-45ff-b50d-8a0d0289f374" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_DocumentFiscalPeriodFocus_71bdd2ac-61ce-45ff-b50d-8a0d0289f374" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_e652541d-786f-4c83-b3b1-7437d8e1cf01" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_CurrentFiscalYearEndDate_e652541d-786f-4c83-b3b1-7437d8e1cf01" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_6e416ce6-6456-48c1-8786-88e8f916c4f4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_93192d9c-8668-410f-8370-b9a28b4b01d8" xlink:to="loc_dei_EntityCentralIndexKey_6e416ce6-6456-48c1-8786-88e8f916c4f4" xlink:type="arc" order="28"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_c0d2e3d8-4d64-4c14-9404-d3ad565510dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_StatementTable_c0d2e3d8-4d64-4c14-9404-d3ad565510dd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_93abb0c9-32b2-4233-a3ae-883b899130eb" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_c0d2e3d8-4d64-4c14-9404-d3ad565510dd" xlink:to="loc_srt_ProductOrServiceAxis_93abb0c9-32b2-4233-a3ae-883b899130eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_93abb0c9-32b2-4233-a3ae-883b899130eb_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_93abb0c9-32b2-4233-a3ae-883b899130eb" xlink:to="loc_srt_ProductsAndServicesDomain_93abb0c9-32b2-4233-a3ae-883b899130eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_1033bab3-112a-49f2-a935-8301b29f93b3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_93abb0c9-32b2-4233-a3ae-883b899130eb" xlink:to="loc_srt_ProductsAndServicesDomain_1033bab3-112a-49f2-a935-8301b29f93b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NaturalGasUsRegulatedMember_d006a188-a6e6-4e9b-9a84-35fd4c8245a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NaturalGasUsRegulatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_1033bab3-112a-49f2-a935-8301b29f93b3" xlink:to="loc_us-gaap_NaturalGasUsRegulatedMember_d006a188-a6e6-4e9b-9a84-35fd4c8245a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ElectricityUsRegulatedMember_aabc7f65-1cc0-404a-a0d0-dff814402047" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ElectricityUsRegulatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_1033bab3-112a-49f2-a935-8301b29f93b3" xlink:to="loc_us-gaap_ElectricityUsRegulatedMember_aabc7f65-1cc0-404a-a0d0-dff814402047" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NaturalGasandElectricityUSRegulatedMember_b7162aa3-7d09-45fa-b0e7-371a3d878e13" xlink:href="sre-20240630.xsd#sre_NaturalGasandElectricityUSRegulatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_1033bab3-112a-49f2-a935-8301b29f93b3" xlink:to="loc_sre_NaturalGasandElectricityUSRegulatedMember_b7162aa3-7d09-45fa-b0e7-371a3d878e13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenueGas_ef341ad1-f73f-4123-8c40-2a1677e075e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenueGas"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:to="loc_us-gaap_RegulatedOperatingRevenueGas_ef341ad1-f73f-4123-8c40-2a1677e075e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenueElectricNonNuclear_5b5fde6e-2f95-4358-90e5-2aad5e96fd57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenueElectricNonNuclear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:to="loc_us-gaap_RegulatedOperatingRevenueElectricNonNuclear_5b5fde6e-2f95-4358-90e5-2aad5e96fd57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnregulatedOperatingRevenue_6ea1fab4-bc9f-4e55-9e7f-55ca08305ef8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:to="loc_us-gaap_UnregulatedOperatingRevenue_6ea1fab4-bc9f-4e55-9e7f-55ca08305ef8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_98533d0d-316a-4b34-8cdb-b3587a327e08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_61675870-47de-4cc9-83fb-2b99f89b55a7" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_98533d0d-316a-4b34-8cdb-b3587a327e08" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_3f13ee5d-49c8-4600-848d-5ba486aa7a50" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_3f13ee5d-49c8-4600-848d-5ba486aa7a50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCostAndExpenseOperating_c283ef96-8136-4e25-8607-fd6cca2b41a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCostAndExpenseOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_OtherCostAndExpenseOperating_c283ef96-8136-4e25-8607-fd6cca2b41a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_15cb720c-cf04-467d-b213-ca777c1efdc7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_DepreciationAndAmortization_15cb720c-cf04-467d-b213-ca777c1efdc7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxesOther_37db010f-4082-492a-8486-af02cdf22112" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_TaxesOther_37db010f-4082-492a-8486-af02cdf22112" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ca542089-caab-4ee5-a0b7-6ac5133d85d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ca542089-caab-4ee5-a0b7-6ac5133d85d8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_624fa47a-e85c-48b3-a453-05c2ce954a38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_InvestmentIncomeInterest_624fa47a-e85c-48b3-a453-05c2ce954a38" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_0e83ffac-b4d3-439a-bcee-4ab3b729ad1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_6de0b8fa-2b81-4a3c-a53d-11704797298c" xlink:to="loc_us-gaap_InterestExpense_0e83ffac-b4d3-439a-bcee-4ab3b729ad1d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_8358e207-a7c3-47ea-b763-a6d4cebde3c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_8358e207-a7c3-47ea-b763-a6d4cebde3c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_01a07932-f0cd-4613-a1d5-2b8e04618634" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_01a07932-f0cd-4613-a1d5-2b8e04618634" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_4786cccd-f289-4464-9175-509ec3e6c8bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_4786cccd-f289-4464-9175-509ec3e6c8bf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_fda0c6f5-2b27-4bd9-8b57-4e58c201ad57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_ProfitLoss_fda0c6f5-2b27-4bd9-8b57-4e58c201ad57" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_b3c7a6f7-ae55-44e9-a25e-a7fc0c80cc90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_b3c7a6f7-ae55-44e9-a25e-a7fc0c80cc90" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_a4df7006-1f89-4612-9915-4aa3b91b2843" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_a4df7006-1f89-4612-9915-4aa3b91b2843" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPreferredStockDividendsAndAdjustments_8c5d5625-6654-44cf-9aeb-558ebba81017" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherPreferredStockDividendsAndAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_OtherPreferredStockDividendsAndAdjustments_8c5d5625-6654-44cf-9aeb-558ebba81017" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_7d6a35d7-40c3-4796-b15f-badf1f81f4e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_7d6a35d7-40c3-4796-b15f-badf1f81f4e5" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicAbstract_f8b3fd02-47d9-4edb-b28b-b6c16ae0d14f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasicAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_EarningsPerShareBasicAbstract_f8b3fd02-47d9-4edb-b28b-b6c16ae0d14f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_89305cfe-d304-4b2c-959d-7a6dc5742540" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_f8b3fd02-47d9-4edb-b28b-b6c16ae0d14f" xlink:to="loc_us-gaap_EarningsPerShareBasic_89305cfe-d304-4b2c-959d-7a6dc5742540" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f9f2eb56-c4e2-4295-bb64-f3a7a02d8cd8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicAbstract_f8b3fd02-47d9-4edb-b28b-b6c16ae0d14f" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_f9f2eb56-c4e2-4295-bb64-f3a7a02d8cd8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDilutedAbstract_5d978f97-271d-4d6c-8e05-75e0a228c5bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDilutedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_92901bdd-a1a5-4821-bfea-7a1304c3ccad" xlink:to="loc_us-gaap_EarningsPerShareDilutedAbstract_5d978f97-271d-4d6c-8e05-75e0a228c5bd" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_2722bde4-9fbc-4b6b-9b32-6084c4257c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_5d978f97-271d-4d6c-8e05-75e0a228c5bd" xlink:to="loc_us-gaap_EarningsPerShareDiluted_2722bde4-9fbc-4b6b-9b32-6084c4257c8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_c149155b-ec2f-4597-add2-bd3fcd7ef627" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareDilutedAbstract_5d978f97-271d-4d6c-8e05-75e0a228c5bd" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_c149155b-ec2f-4597-add2-bd3fcd7ef627" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_b251b341-aec1-4e15-9b4f-275d57a587f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_574b78ae-9caf-4a8a-a305-baea625a6dfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_b251b341-aec1-4e15-9b4f-275d57a587f3" xlink:to="loc_us-gaap_StatementTable_574b78ae-9caf-4a8a-a305-baea625a6dfc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_b5446a0c-b684-407d-9a40-92ebc447702d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_574b78ae-9caf-4a8a-a305-baea625a6dfc" xlink:to="loc_us-gaap_StatementClassOfStockAxis_b5446a0c-b684-407d-9a40-92ebc447702d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b5446a0c-b684-407d-9a40-92ebc447702d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_b5446a0c-b684-407d-9a40-92ebc447702d" xlink:to="loc_us-gaap_ClassOfStockDomain_b5446a0c-b684-407d-9a40-92ebc447702d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_b602d6ff-7d6a-4665-bbdc-d9df8e90c36f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_b5446a0c-b684-407d-9a40-92ebc447702d" xlink:to="loc_us-gaap_ClassOfStockDomain_b602d6ff-7d6a-4665-bbdc-d9df8e90c36f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_7460ccf3-7e9f-472f-99e5-52161f662568" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesCPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_b602d6ff-7d6a-4665-bbdc-d9df8e90c36f" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_7460ccf3-7e9f-472f-99e5-52161f662568" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_efa5708e-da35-4733-a6c8-954db4182cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_574b78ae-9caf-4a8a-a305-baea625a6dfc" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_efa5708e-da35-4733-a6c8-954db4182cd7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_efa5708e-da35-4733-a6c8-954db4182cd7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_efa5708e-da35-4733-a6c8-954db4182cd7" xlink:to="loc_us-gaap_RelatedPartyDomain_efa5708e-da35-4733-a6c8-954db4182cd7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_e9c0de19-e424-4aef-89ee-8d15e23e3f57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_efa5708e-da35-4733-a6c8-954db4182cd7" xlink:to="loc_us-gaap_RelatedPartyDomain_e9c0de19-e424-4aef-89ee-8d15e23e3f57" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_bdcb28d4-4855-403e-aa08-b55774a07e55" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_e9c0de19-e424-4aef-89ee-8d15e23e3f57" xlink:to="loc_us-gaap_RelatedPartyMember_bdcb28d4-4855-403e-aa08-b55774a07e55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonrelatedPartyMember_fc9d10b3-845c-4fc2-a234-5f3d62d85a87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonrelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_e9c0de19-e424-4aef-89ee-8d15e23e3f57" xlink:to="loc_us-gaap_NonrelatedPartyMember_fc9d10b3-845c-4fc2-a234-5f3d62d85a87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_b251b341-aec1-4e15-9b4f-275d57a587f3" xlink:to="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:to="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_66d76af2-53a6-4789-be6d-2b9e49aaa89b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_66d76af2-53a6-4789-be6d-2b9e49aaa89b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_bfb3e4a7-cae8-4524-9fce-d8c2bbda9c6f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue_bfb3e4a7-cae8-4524-9fce-d8c2bbda9c6f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_ebdf56c5-5ecf-4b30-adfa-aa37c047ab07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_ebdf56c5-5ecf-4b30-adfa-aa37c047ab07" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_30708965-b750-45c6-b296-15eab0a62df7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsAndOtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_30708965-b750-45c6-b296-15eab0a62df7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesNetCurrent_c58b8903-6472-4071-9b62-97291f7890f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_OtherReceivablesNetCurrent_c58b8903-6472-4071-9b62-97291f7890f9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesReceivable_d7445140-2af4-4eaa-904a-e37cb970e4eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_IncomeTaxesReceivable_d7445140-2af4-4eaa-904a-e37cb970e4eb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_0177ea18-4559-4fcf-9ca7-bb93b9d9cd29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_InventoryNet_0177ea18-4559-4fcf-9ca7-bb93b9d9cd29" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_6534aa05-d1fd-406d-95b0-b1183316776c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_6534aa05-d1fd-406d-95b0-b1183316776c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsCurrent_1c9b9534-0356-4f55-a909-217c1780124a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_RegulatoryAssetsCurrent_1c9b9534-0356-4f55-a909-217c1780124a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsAndHedges_84947cbd-b2a4-4f88-82ef-cb4d19a5d6b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentsAndHedges"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_DerivativeInstrumentsAndHedges_84947cbd-b2a4-4f88-82ef-cb4d19a5d6b3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesCurrent_bf06a282-8d44-4ddd-8a86-17cd14b923ab" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_sre_GreenhouseGasAllowancesCurrent_bf06a282-8d44-4ddd-8a86-17cd14b923ab" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_ba97896c-ea0d-494c-8aa0-bb75a71ad312" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_OtherAssetsCurrent_ba97896c-ea0d-494c-8aa0-bb75a71ad312" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_8514dcd2-64a3-46a1-96dd-c7732dfd61e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_e8f8d269-54c5-4758-83ad-27533150f85e" xlink:to="loc_us-gaap_AssetsCurrent_8514dcd2-64a3-46a1-96dd-c7732dfd61e5" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_545e5079-fce7-4546-b3c3-e893c826ecf6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_545e5079-fce7-4546-b3c3-e893c826ecf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsNoncurrent_38042606-da2a-4c91-a084-75a17b130f5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_RegulatoryAssetsNoncurrent_38042606-da2a-4c91-a084-75a17b130f5b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesNoncurrent_004b0ab9-179d-4c23-a17b-64d02f20e2cd" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_sre_GreenhouseGasAllowancesNoncurrent_004b0ab9-179d-4c23-a17b-64d02f20e2cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DecommissioningFundInvestments_b34aa893-d0e1-495c-8898-69a5e11c0e89" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DecommissioningFundInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_DecommissioningFundInvestments_b34aa893-d0e1-495c-8898-69a5e11c0e89" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldInTrustNoncurrent_73f11ede-e942-4920-80cd-959303fb78f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsHeldInTrustNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_AssetsHeldInTrustNoncurrent_73f11ede-e942-4920-80cd-959303fb78f6" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_ddd6846d-d78c-4579-8662-dba35834e00f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_ddd6846d-d78c-4579-8662-dba35834e00f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_1b62a87b-a954-47f3-af7e-f2beef859d8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_1b62a87b-a954-47f3-af7e-f2beef859d8b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_0ced8310-5c0a-4274-a4ad-b390ce6bc58a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_EquityMethodInvestments_0ced8310-5c0a-4274-a4ad-b390ce6bc58a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_a0513bbd-89e5-4cf6-a837-eab21f2c1494" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_OtherInvestments_a0513bbd-89e5-4cf6-a837-eab21f2c1494" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_4b4b42d9-88d7-4fbe-870e-eb69d902d55b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_Goodwill_4b4b42d9-88d7-4fbe-870e-eb69d902d55b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3805bab3-90be-4f74-9f4b-9094ae84729c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_3805bab3-90be-4f74-9f4b-9094ae84729c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PrepaidInsuranceFundAssetNoncurrent_ba1bb978-6a11-403b-a0b1-54c93f303d60" xlink:href="sre-20240630.xsd#sre_PrepaidInsuranceFundAssetNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_sre_PrepaidInsuranceFundAssetNoncurrent_ba1bb978-6a11-403b-a0b1-54c93f303d60" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_7184919d-c378-43a4-bc28-7bfbc3d8b7c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_7184919d-c378-43a4-bc28-7bfbc3d8b7c0" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TotalInvestmentsAndOtherAssets_ff0a61ed-069b-4156-924b-929c7c1d3dcb" xlink:href="sre-20240630.xsd#sre_TotalInvestmentsAndOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_3902c253-d5d9-4849-977b-7e15cc7806f7" xlink:to="loc_sre_TotalInvestmentsAndOtherAssets_ff0a61ed-069b-4156-924b-929c7c1d3dcb" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_81d411a2-e718-442e-a737-4fb9febb5f10" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_81d411a2-e718-442e-a737-4fb9febb5f10" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_ddf74b63-4804-4d93-9071-7bfcd746dada" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_81d411a2-e718-442e-a737-4fb9febb5f10" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_ddf74b63-4804-4d93-9071-7bfcd746dada" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_02dae16d-0e9b-476f-90ba-2ac6b812105c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_81d411a2-e718-442e-a737-4fb9febb5f10" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_02dae16d-0e9b-476f-90ba-2ac6b812105c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0a5376f6-5443-4364-af3f-394a9e63a60d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_81d411a2-e718-442e-a737-4fb9febb5f10" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_0a5376f6-5443-4364-af3f-394a9e63a60d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_619deb54-f3a2-4538-afd4-b677a449b6fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_8ee2332c-1020-4e8b-ac0f-03717e800f0a" xlink:to="loc_us-gaap_Assets_619deb54-f3a2-4538-afd4-b677a449b6fe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_b251b341-aec1-4e15-9b4f-275d57a587f3" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_8fdc0a00-afca-4f4b-b786-71326a1dc5ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_ShortTermBorrowings_8fdc0a00-afca-4f4b-b786-71326a1dc5ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_2431eb06-b533-4338-9560-b07e0fe9a1ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableTradeCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_2431eb06-b533-4338-9560-b07e0fe9a1ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_6e6c79e1-eb41-45f0-a28e-9efa353040c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_6e6c79e1-eb41-45f0-a28e-9efa353040c8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_5939f033-b191-41d1-9c91-bd9e8ff2b06f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_5939f033-b191-41d1-9c91-bd9e8ff2b06f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestAndDividendsPayableCurrent_203fa140-e731-4405-892c-08af99884746" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestAndDividendsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_InterestAndDividendsPayableCurrent_203fa140-e731-4405-892c-08af99884746" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_dd8f4ee4-31e8-482b-9401-4820dd8e088d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_dd8f4ee4-31e8-482b-9401-4820dd8e088d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityCurrent_62587177-871f-4beb-994e-d5010ae09e84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_RegulatoryLiabilityCurrent_62587177-871f-4beb-994e-d5010ae09e84" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_144e838a-df86-4ec4-9213-e2387ed6216e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_144e838a-df86-4ec4-9213-e2387ed6216e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsCurrent_bc87b420-79e2-4a34-8794-c5a667b14247" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_sre_GreenhouseGasObligationsCurrent_bc87b420-79e2-4a34-8794-c5a667b14247" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_46fa3cbf-258f-43bf-91e3-d2a043d01e3a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_f9b04610-a7ee-447b-875a-b87151152dae" xlink:to="loc_us-gaap_LiabilitiesCurrent_46fa3cbf-258f-43bf-91e3-d2a043d01e3a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_0c0eb749-f1c4-41e6-9218-497429e16620" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_0c0eb749-f1c4-41e6-9218-497429e16620" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_4fd03754-7a30-4350-bcb4-0d6507cd32d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_4fd03754-7a30-4350-bcb4-0d6507cd32d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityNoncurrent_e7028a36-d044-4c20-b1a4-13960dc31488" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_RegulatoryLiabilityNoncurrent_e7028a36-d044-4c20-b1a4-13960dc31488" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsNoncurrent_7402501c-832a-44cf-8104-d0a9acb9a856" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_sre_GreenhouseGasObligationsNoncurrent_7402501c-832a-44cf-8104-d0a9acb9a856" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_2eab2792-c625-4029-8ef4-1a2de542922a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_2eab2792-c625-4029-8ef4-1a2de542922a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d41a31b5-c9a5-4214-a61b-7c4153dc9698" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_d41a31b5-c9a5-4214-a61b-7c4153dc9698" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationsNoncurrent_c8893dec-6e17-4f86-b084-4e0281e2f53d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_AssetRetirementObligationsNoncurrent_c8893dec-6e17-4f86-b084-4e0281e2f53d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilities_6493551e-94d0-40af-b8ba-f620a5f017a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilities_6493551e-94d0-40af-b8ba-f620a5f017a3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_8f57e6be-9594-41ab-adf6-efce1497b9f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_c48e0874-95fa-442d-a4fd-a6ca0407b4e7" xlink:to="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_8f57e6be-9594-41ab-adf6-efce1497b9f2" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_0a29b649-cc7e-4974-b931-aabd583fa14a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_CommitmentsAndContingencies_0a29b649-cc7e-4974-b931-aabd583fa14a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_d883ada0-f35c-4e5e-8f90-97bdc8c2041b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_PreferredStockValue_d883ada0-f35c-4e5e-8f90-97bdc8c2041b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_7ab78e26-b7f4-428b-a55d-815530f8c282" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_CommonStockValue_7ab78e26-b7f4-428b-a55d-815530f8c282" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a846d55b-ac49-4a93-ad70-9a7798200961" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a846d55b-ac49-4a93-ad70-9a7798200961" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e947e121-5223-4def-a62e-3d42b9a32ea4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_e947e121-5223-4def-a62e-3d42b9a32ea4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_683096bf-0f5b-4509-89fa-d996c9e58468" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_StockholdersEquity_683096bf-0f5b-4509-89fa-d996c9e58468" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestAmountRepresentedByPreferredStock_2d365249-623d-422e-9b93-dd3d1880c71f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestAmountRepresentedByPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_MinorityInterestAmountRepresentedByPreferredStock_2d365249-623d-422e-9b93-dd3d1880c71f" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherMinorityInterests_0fcea239-cda7-4a22-9721-e39ce70db1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherMinorityInterests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_OtherMinorityInterests_0fcea239-cda7-4a22-9721-e39ce70db1dc" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_2f51053c-0f6b-4443-8b08-2e8315fb35fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_56536f29-91e6-4fce-ad5c-372a2a10ed95" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_2f51053c-0f6b-4443-8b08-2e8315fb35fb" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_017dd7a8-7d01-42f3-8f0e-1a4a70bf7cff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_3d91be0c-1744-4f3c-9595-afa0f7d6ddae" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_017dd7a8-7d01-42f3-8f0e-1a4a70bf7cff" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParentheticals" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParentheticals"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParentheticals" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_44d04a98-5ccb-470d-986f-17a57afe89df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_93933656-9140-4087-a891-426fa1177a77" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_44d04a98-5ccb-470d-986f-17a57afe89df" xlink:to="loc_us-gaap_StatementTable_93933656-9140-4087-a891-426fa1177a77" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_55d5148e-161c-4359-89ee-7cec52ac0a94" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_93933656-9140-4087-a891-426fa1177a77" xlink:to="loc_us-gaap_StatementClassOfStockAxis_55d5148e-161c-4359-89ee-7cec52ac0a94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_55d5148e-161c-4359-89ee-7cec52ac0a94_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_55d5148e-161c-4359-89ee-7cec52ac0a94" xlink:to="loc_us-gaap_ClassOfStockDomain_55d5148e-161c-4359-89ee-7cec52ac0a94_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_14353b91-c766-4666-b4f8-362c1c9556fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_55d5148e-161c-4359-89ee-7cec52ac0a94" xlink:to="loc_us-gaap_ClassOfStockDomain_14353b91-c766-4666-b4f8-362c1c9556fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_964b71e7-0e4e-424c-8152-1f7839ae6656" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesCPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_14353b91-c766-4666-b4f8-362c1c9556fa" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_964b71e7-0e4e-424c-8152-1f7839ae6656" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_44d04a98-5ccb-470d-986f-17a57afe89df" xlink:to="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_bfd20e39-0754-4d76-bfc2-1ae4ec6c349e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_bfd20e39-0754-4d76-bfc2-1ae4ec6c349e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_38de7ed4-394f-4e12-9142-cf4389a101da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_38de7ed4-394f-4e12-9142-cf4389a101da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_d561cab6-ad02-468b-9d00-82d476bc06de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_d561cab6-ad02-468b-9d00-82d476bc06de" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_17b81b13-ca0d-4e9a-b98a-d8d2b940fb1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_7757e8db-e555-4a9c-b5ec-ec7529b732fb" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_17b81b13-ca0d-4e9a-b98a-d8d2b940fb1b" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_5b8a796d-85ee-42e0-bc6a-bb6025876a4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_StatementTable_5b8a796d-85ee-42e0-bc6a-bb6025876a4e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_aac9f9d2-1a8f-48b9-b726-87ac48635d9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_5b8a796d-85ee-42e0-bc6a-bb6025876a4e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_aac9f9d2-1a8f-48b9-b726-87ac48635d9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_aac9f9d2-1a8f-48b9-b726-87ac48635d9a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_aac9f9d2-1a8f-48b9-b726-87ac48635d9a" xlink:to="loc_us-gaap_EquityComponentDomain_aac9f9d2-1a8f-48b9-b726-87ac48635d9a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_9c74b97d-6606-438a-8fc6-8f01b9548025" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_aac9f9d2-1a8f-48b9-b726-87ac48635d9a" xlink:to="loc_us-gaap_EquityComponentDomain_9c74b97d-6606-438a-8fc6-8f01b9548025" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_83844ef5-ab41-4aa6-94b2-c5b0109aa7d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9c74b97d-6606-438a-8fc6-8f01b9548025" xlink:to="loc_us-gaap_PreferredStockMember_83844ef5-ab41-4aa6-94b2-c5b0109aa7d9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_2955d50a-ffde-456f-9aad-1adf79da594f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_9c74b97d-6606-438a-8fc6-8f01b9548025" xlink:to="loc_us-gaap_CommonStockMember_2955d50a-ffde-456f-9aad-1adf79da594f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_35afade8-2639-4953-8233-fd8230a59de0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_ProfitLoss_35afade8-2639-4953-8233-fd8230a59de0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_818ceb7a-6d6a-464e-958e-095f56636164" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_DepreciationAndAmortization_818ceb7a-6d6a-464e-958e-095f56636164" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_20f71a26-1f15-418d-866e-d7e15decf02a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_20f71a26-1f15-418d-866e-d7e15decf02a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_358cc3ae-b139-4302-8634-508b19f39b01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_358cc3ae-b139-4302-8634-508b19f39b01" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_1f136769-684a-49bd-aff9-7f512ad7d225" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_ShareBasedCompensation_1f136769-684a-49bd-aff9-7f512ad7d225" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivativesAndCommodityContracts_6641434f-1b5b-469e-ba4f-ef9798e6db42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrealizedGainLossOnDerivativesAndCommodityContracts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivativesAndCommodityContracts_6641434f-1b5b-469e-ba4f-ef9798e6db42" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInBadDebtExpense_9da9ae41-f237-4f6e-9c2b-f575c27c85e7" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInBadDebtExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_sre_IncreaseDecreaseInBadDebtExpense_9da9ae41-f237-4f6e-9c2b-f575c27c85e7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_e80af9db-24ac-4be2-ab04-b0003a0775d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_7e1e3910-fa9c-4b26-8bee-903e5ee23192" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_e80af9db-24ac-4be2-ab04-b0003a0775d7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_a625562c-b6d0-4723-974a-e54e8e1c50ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_a625562c-b6d0-4723-974a-e54e8e1c50ca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_c59b6d5b-28b2-4603-b5be-f78e622421bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_c59b6d5b-28b2-4603-b5be-f78e622421bd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_1c8a5850-b5b3-49ee-86b4-759b0ad3a959" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_1c8a5850-b5b3-49ee-86b4-759b0ad3a959" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ebb90a99-2f88-4564-8314-871560f1da8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_35c8d75b-ba1c-45ee-afbf-adac3e0b1f0b" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ebb90a99-2f88-4564-8314-871560f1da8e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_930e19ec-e016-4ff8-94dc-25a93e83636a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_930e19ec-e016-4ff8-94dc-25a93e83636a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_702381d4-d299-4bd9-9d40-eeddfa1e6c5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireOtherInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_702381d4-d299-4bd9-9d40-eeddfa1e6c5d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToInvestInDecommissioningFund_01028c8a-0086-43d5-8227-f7105537af1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToInvestInDecommissioningFund"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_PaymentsToInvestInDecommissioningFund_01028c8a-0086-43d5-8227-f7105537af1b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDecommissioningFund_010ff12d-7944-4af7-8adb-c75a1d9fca3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDecommissioningFund"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_ProceedsFromDecommissioningFund_010ff12d-7944-4af7-8adb-c75a1d9fca3e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_2718de35-2e9f-4934-80a2-84b6fc76449a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_2718de35-2e9f-4934-80a2-84b6fc76449a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5f5fbc3-13c1-4dbf-81cf-7b4d12becfdf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_bdf528d1-2a24-4d09-bf8e-18d118c32db3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_c5f5fbc3-13c1-4dbf-81cf-7b4d12becfdf" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_ae8b2ba5-bd88-4ab4-a31b-f517fa06a46b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_ae8b2ba5-bd88-4ab4-a31b-f517fa06a46b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_64a4d1d6-a3d6-446a-a60e-0ced19d2ad2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_64a4d1d6-a3d6-446a-a60e-0ced19d2ad2f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_59964ee1-b75e-4276-86a0-50beab698159" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_59964ee1-b75e-4276-86a0-50beab698159" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_08da9927-c499-4ed3-a2bd-e1949b3fb940" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_08da9927-c499-4ed3-a2bd-e1949b3fb940" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_e67b3c2c-1e3d-4555-98a6-069cf2431e02" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_e67b3c2c-1e3d-4555-98a6-069cf2431e02" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_a23759f1-e3ae-4f5e-af87-6cde0d85e7be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_a23759f1-e3ae-4f5e-af87-6cde0d85e7be" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_8513e4fd-ff04-4cc2-a5ec-f1fb74ef4b9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_8513e4fd-ff04-4cc2-a5ec-f1fb74ef4b9a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromContributionsFromAffiliates_17a72ddb-51e1-48b6-a9b4-5322becd5df9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromContributionsFromAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromContributionsFromAffiliates_17a72ddb-51e1-48b6-a9b4-5322becd5df9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ProceedsFromSaleOfNoncontrollingInterestNetOfOfferingCosts_d76c8bed-40b1-4597-a11a-b8ccbf7f98a7" xlink:href="sre-20240630.xsd#sre_ProceedsFromSaleOfNoncontrollingInterestNetOfOfferingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_sre_ProceedsFromSaleOfNoncontrollingInterestNetOfOfferingCosts_d76c8bed-40b1-4597-a11a-b8ccbf7f98a7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDistributionsToAffiliates_a698fd06-e52a-4151-afa6-571c9fc9044a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDistributionsToAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_PaymentsOfDistributionsToAffiliates_a698fd06-e52a-4151-afa6-571c9fc9044a" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_8130f7b7-9f66-411f-bf36-cd05fa7d4535" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromMinorityShareholders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_8130f7b7-9f66-411f-bf36-cd05fa7d4535" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_7df0505f-87f5-461f-a381-6ed12d0ba715" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForDerivativeInstrumentFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_PaymentsForDerivativeInstrumentFinancingActivities_7df0505f-87f5-461f-a381-6ed12d0ba715" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_8d6ca9ec-adfb-413b-87a3-929dc9b26084" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_8d6ca9ec-adfb-413b-87a3-929dc9b26084" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c4c7c0cb-5172-40d4-83e8-a59f29723e8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_7dae6413-36f4-4b5a-9cd8-1a164005ff97" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c4c7c0cb-5172-40d4-83e8-a59f29723e8b" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b86c3863-f548-4f75-8a59-c289ec7ad687" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b86c3863-f548-4f75-8a59-c289ec7ad687" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa0d1c09-f5f7-434f-94bc-3abfc255373b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_fa0d1c09-f5f7-434f-94bc-3abfc255373b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_cbab9bd8-3a4a-4acb-8693-d9e4648efa45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_cbab9bd8-3a4a-4acb-8693-d9e4648efa45" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_4653fd50-7eaf-4a47-9e07-3c0e9f726c14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_6000900d-ea4d-490d-9e7d-a7e7fb5333b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplementalCashFlowInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_6000900d-ea4d-490d-9e7d-a7e7fb5333b6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_f61b9ec6-fb3d-48b8-a8bf-f0abefe22576" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_6000900d-ea4d-490d-9e7d-a7e7fb5333b6" xlink:to="loc_us-gaap_InterestPaidNet_f61b9ec6-fb3d-48b8-a8bf-f0abefe22576" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_d0ea2720-5543-42c8-bbda-3b2681064da7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_6000900d-ea4d-490d-9e7d-a7e7fb5333b6" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_d0ea2720-5543-42c8-bbda-3b2681064da7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_e909851a-8233-4129-b088-c8d6ed8925cf" xlink:to="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncashPaymentsOfAdvancesToAffiliates_e90d4adc-bacc-4853-90ca-5ea71a67ddde" xlink:href="sre-20240630.xsd#sre_NoncashPaymentsOfAdvancesToAffiliates"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_sre_NoncashPaymentsOfAdvancesToAffiliates_e90d4adc-bacc-4853-90ca-5ea71a67ddde" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_9b36ed3a-b114-4454-96d4-1b4d939a2584" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_9b36ed3a-b114-4454-96d4-1b4d939a2584" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_df457d2e-5af2-4bff-8c1e-925958c17bde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_df457d2e-5af2-4bff-8c1e-925958c17bde" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_6e3f501f-596d-442a-9ccd-8ddf949ac138" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_6e3f501f-596d-442a-9ccd-8ddf949ac138" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_a8b399bc-cc82-4519-8372-4a6cddc32b86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_us-gaap_DividendsPayableCurrentAndNoncurrent_a8b399bc-cc82-4519-8372-4a6cddc32b86" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStockStock_410ca1ca-a7c8-4a11-9af4-3b4058a4fcc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsCommonStockStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_us-gaap_DividendsCommonStockStock_410ca1ca-a7c8-4a11-9af4-3b4058a4fcc9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncashProceedsFromNCI_c9d16a56-f0b6-4bec-8223-e8ca61e86f3c" xlink:href="sre-20240630.xsd#sre_NoncashProceedsFromNCI"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_b292000d-40d7-4fed-939f-1b78ee9d6b46" xlink:to="loc_sre_NoncashProceedsFromNCI_c9d16a56-f0b6-4bec-8223-e8ca61e86f3c" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_f7897f78-c808-4001-ab28-e35f68c026af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_4a0ea845-2010-42f0-817e-2c994628f2e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_f7897f78-c808-4001-ab28-e35f68c026af" xlink:to="loc_us-gaap_StatementTable_4a0ea845-2010-42f0-817e-2c994628f2e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_e1a5d71e-2274-4f37-b765-26b5bfea65cc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4a0ea845-2010-42f0-817e-2c994628f2e6" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_e1a5d71e-2274-4f37-b765-26b5bfea65cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_e1a5d71e-2274-4f37-b765-26b5bfea65cc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e1a5d71e-2274-4f37-b765-26b5bfea65cc" xlink:to="loc_us-gaap_EquityComponentDomain_e1a5d71e-2274-4f37-b765-26b5bfea65cc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_e1a5d71e-2274-4f37-b765-26b5bfea65cc" xlink:to="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_57d6d386-01c9-46f7-88f4-ffe6ce503ede" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_PreferredStockMember_57d6d386-01c9-46f7-88f4-ffe6ce503ede" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_a2119c78-9f71-42a3-8bfc-9d8c6cb34d26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_a2119c78-9f71-42a3-8bfc-9d8c6cb34d26" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_477a9e1c-2b8c-4423-8178-a42a1932fbe5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_RetainedEarningsMember_477a9e1c-2b8c-4423-8178-a42a1932fbe5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_00dc93c5-399d-43dc-ae48-fbce314bd217" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_00dc93c5-399d-43dc-ae48-fbce314bd217" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ParentMember_a68c3bf5-df72-4dde-8c4e-d5f87f365e05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_ParentMember_a68c3bf5-df72-4dde-8c4e-d5f87f365e05" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestMember_178060f6-f396-4cfc-b2b4-30272455f8d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_fabdc906-841b-42aa-afc1-2d7ba30ffd7b" xlink:to="loc_us-gaap_NoncontrollingInterestMember_178060f6-f396-4cfc-b2b4-30272455f8d8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_2436afdb-1778-400e-bad6-37c23e063760" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4a0ea845-2010-42f0-817e-2c994628f2e6" xlink:to="loc_us-gaap_StatementClassOfStockAxis_2436afdb-1778-400e-bad6-37c23e063760" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_2436afdb-1778-400e-bad6-37c23e063760_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2436afdb-1778-400e-bad6-37c23e063760" xlink:to="loc_us-gaap_ClassOfStockDomain_2436afdb-1778-400e-bad6-37c23e063760_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_ef4e21f7-c6fa-4beb-9a4b-75cfc8e9a0c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_2436afdb-1778-400e-bad6-37c23e063760" xlink:to="loc_us-gaap_ClassOfStockDomain_ef4e21f7-c6fa-4beb-9a4b-75cfc8e9a0c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_f6321ebe-048d-460c-8201-b5a1be22719b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesCPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_ef4e21f7-c6fa-4beb-9a4b-75cfc8e9a0c6" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_f6321ebe-048d-460c-8201-b5a1be22719b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_f7897f78-c808-4001-ab28-e35f68c026af" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_01894571-ef7c-4bfd-9b4d-917bf29468b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_01894571-ef7c-4bfd-9b4d-917bf29468b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_324e5d32-358c-4422-b21f-5da5a7a00241" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_ProfitLoss_324e5d32-358c-4422-b21f-5da5a7a00241" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6440a0ee-6b75-46a8-8005-a36674880bb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_6440a0ee-6b75-46a8-8005-a36674880bb3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_202bf1eb-8fe9-458e-a8e3-858d8168247f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_202bf1eb-8fe9-458e-a8e3-858d8168247f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsAbstract_0677d5bf-09ae-4f2f-acae-e3bb6f4a3c83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_DividendsAbstract_0677d5bf-09ae-4f2f-acae-e3bb6f4a3c83" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_4b956ee5-45d1-48c2-b77b-cb1545a2c84b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsAbstract_0677d5bf-09ae-4f2f-acae-e3bb6f4a3c83" xlink:to="loc_us-gaap_DividendsPreferredStock_4b956ee5-45d1-48c2-b77b-cb1545a2c84b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsCommonStock_c5e16b43-4018-4426-b0ae-360311bd5a63" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsAbstract_0677d5bf-09ae-4f2f-acae-e3bb6f4a3c83" xlink:to="loc_us-gaap_DividendsCommonStock_c5e16b43-4018-4426-b0ae-360311bd5a63" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_9daed916-2a4a-47bc-8f40-719f62d4dd82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsAndOtherAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_PreferredStockDividendsAndOtherAdjustments_9daed916-2a4a-47bc-8f40-719f62d4dd82" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_b1ee68be-bfde-4628-9d95-417933426668" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_b1ee68be-bfde-4628-9d95-417933426668" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedDuringPeriodValue_d6e15c3c-f5a2-4ccb-9f37-dc2045ce518a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockRepurchasedDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_StockRepurchasedDuringPeriodValue_d6e15c3c-f5a2-4ccb-9f37-dc2045ce518a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestItemsAbstract_707b66f2-871d-4bfe-9687-ea559c6a3a08" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestItemsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_d0a2f263-360e-428c-ab9e-2dada9126c18" xlink:to="loc_us-gaap_NoncontrollingInterestItemsAbstract_707b66f2-871d-4bfe-9687-ea559c6a3a08" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_8e553912-fd40-40c1-9d80-cd02c50361d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncontrollingInterestItemsAbstract_707b66f2-871d-4bfe-9687-ea559c6a3a08" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_8e553912-fd40-40c1-9d80-cd02c50361d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_9ba71827-afb5-4825-80b6-2106baba6cac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncontrollingInterestItemsAbstract_707b66f2-871d-4bfe-9687-ea559c6a3a08" xlink:to="loc_us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders_9ba71827-afb5-4825-80b6-2106baba6cac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest_dcbbe335-616c-40e8-aa75-2f9bfcc7f697" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NoncontrollingInterestItemsAbstract_707b66f2-871d-4bfe-9687-ea559c6a3a08" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest_dcbbe335-616c-40e8-aa75-2f9bfcc7f697" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_19308ad2-5473-44e4-bacf-38e93c890db3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITYParenthetical" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITYParenthetical"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINEQUITYParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_bee89b0c-f2ba-45a8-a13c-e61e2d056847" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_cf0fa900-c329-4803-a693-b376fc1ddc0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_bee89b0c-f2ba-45a8-a13c-e61e2d056847" xlink:to="loc_us-gaap_StatementTable_cf0fa900-c329-4803-a693-b376fc1ddc0a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_bf8603e0-1b5e-4ccb-9590-9169818fe696" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_cf0fa900-c329-4803-a693-b376fc1ddc0a" xlink:to="loc_us-gaap_StatementClassOfStockAxis_bf8603e0-1b5e-4ccb-9590-9169818fe696" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_bf8603e0-1b5e-4ccb-9590-9169818fe696_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_bf8603e0-1b5e-4ccb-9590-9169818fe696" xlink:to="loc_us-gaap_ClassOfStockDomain_bf8603e0-1b5e-4ccb-9590-9169818fe696_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_11839a8c-7951-40cf-a73a-be0ad24e0a9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_bf8603e0-1b5e-4ccb-9590-9169818fe696" xlink:to="loc_us-gaap_ClassOfStockDomain_11839a8c-7951-40cf-a73a-be0ad24e0a9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesCPreferredStockMember_7516ca09-7de9-4595-8a79-db2441fab031" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesCPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_11839a8c-7951-40cf-a73a-be0ad24e0a9f" xlink:to="loc_us-gaap_SeriesCPreferredStockMember_7516ca09-7de9-4595-8a79-db2441fab031" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsPerShareDeclared_4b185497-88c0-4fd3-980e-21af7abaa932" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bee89b0c-f2ba-45a8-a13c-e61e2d056847" xlink:to="loc_us-gaap_PreferredStockDividendsPerShareDeclared_4b185497-88c0-4fd3-980e-21af7abaa932" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareDeclared_2247e029-6665-4154-ac41-507e64f88c0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bee89b0c-f2ba-45a8-a13c-e61e2d056847" xlink:to="loc_us-gaap_CommonStockDividendsPerShareDeclared_2247e029-6665-4154-ac41-507e64f88c0f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFOPERATIONSSDGE" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFOPERATIONSSDGE"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFOPERATIONSSDGE" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_94b41d29-4b67-411b-8f83-69bd56bc719e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_StatementTable_94b41d29-4b67-411b-8f83-69bd56bc719e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_2fb8a155-41eb-4d8d-bddf-0dcded98890e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_94b41d29-4b67-411b-8f83-69bd56bc719e" xlink:to="loc_dei_LegalEntityAxis_2fb8a155-41eb-4d8d-bddf-0dcded98890e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2fb8a155-41eb-4d8d-bddf-0dcded98890e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_2fb8a155-41eb-4d8d-bddf-0dcded98890e" xlink:to="loc_dei_EntityDomain_2fb8a155-41eb-4d8d-bddf-0dcded98890e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_07876c17-bc11-469b-bd45-1020807c3f85" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_2fb8a155-41eb-4d8d-bddf-0dcded98890e" xlink:to="loc_dei_EntityDomain_07876c17-bc11-469b-bd45-1020807c3f85" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_21c67d56-ea71-4b31-9f0c-1b5b2faa5e11" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_07876c17-bc11-469b-bd45-1020807c3f85" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_21c67d56-ea71-4b31-9f0c-1b5b2faa5e11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_09c3fea6-a608-4194-86a1-55e2d40f87d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_09c3fea6-a608-4194-86a1-55e2d40f87d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenueElectricNonNuclear_1da609dd-6475-44da-9a6f-46b885b46232" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenueElectricNonNuclear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_09c3fea6-a608-4194-86a1-55e2d40f87d4" xlink:to="loc_us-gaap_RegulatedOperatingRevenueElectricNonNuclear_1da609dd-6475-44da-9a6f-46b885b46232" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenueGas_f7de8f78-c63e-4bc2-89de-b6741c5a8672" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenueGas"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_09c3fea6-a608-4194-86a1-55e2d40f87d4" xlink:to="loc_us-gaap_RegulatedOperatingRevenueGas_f7de8f78-c63e-4bc2-89de-b6741c5a8672" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenue_799a32f9-8545-4ec4-99ad-3ae65d6f05d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_09c3fea6-a608-4194-86a1-55e2d40f87d4" xlink:to="loc_us-gaap_RegulatedOperatingRevenue_799a32f9-8545-4ec4-99ad-3ae65d6f05d7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpensePurchasedPower_1a585a97-0e7e-4772-bb14-e00b79ec1622" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpensePurchasedPower"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpensePurchasedPower_1a585a97-0e7e-4772-bb14-e00b79ec1622" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased_1cd670b3-5caa-41b8-9af4-769df5db67a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased_1cd670b3-5caa-41b8-9af4-769df5db67a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations_2ca25c9d-60a3-4e10-83f0-744c5ce92123" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations_2ca25c9d-60a3-4e10-83f0-744c5ce92123" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_a1abfff1-5b52-41dd-b5ad-88a7768ae5a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_a1abfff1-5b52-41dd-b5ad-88a7768ae5a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseTaxes_af3ab307-d7a6-424d-ae38-74be66394d01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseTaxes_af3ab307-d7a6-424d-ae38-74be66394d01" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpense_f450ae98-3368-4c62-a5cb-c87fb551a7cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_50894c65-7de4-4416-9e15-99e033310e72" xlink:to="loc_us-gaap_UtilitiesOperatingExpense_f450ae98-3368-4c62-a5cb-c87fb551a7cd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5589042e-a455-4c84-9fc5-b76985f9d5c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_OperatingIncomeLoss_5589042e-a455-4c84-9fc5-b76985f9d5c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_831e695b-78f6-4bd8-aca5-7e388b096a96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_831e695b-78f6-4bd8-aca5-7e388b096a96" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_f21e2706-209e-422a-a2e5-67f259945a60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_InvestmentIncomeInterest_f21e2706-209e-422a-a2e5-67f259945a60" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_30eba0b3-677e-4811-8887-84971ee6d721" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_InterestExpense_30eba0b3-677e-4811-8887-84971ee6d721" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d240a144-3789-4103-96c4-3d8218500e2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d240a144-3789-4103-96c4-3d8218500e2d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_87dc52c9-3870-45b5-88e1-8bfc47506bd4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_87dc52c9-3870-45b5-88e1-8bfc47506bd4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_515c131d-1e47-4189-bdce-0797c9acc1e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_ProfitLoss_515c131d-1e47-4189-bdce-0797c9acc1e3" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c41b16f9-8aa2-4707-9c0c-f0f0db98deee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3e50eca7-4b93-47f0-adc0-30ed3f4059c7" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_c41b16f9-8aa2-4707-9c0c-f0f0db98deee" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSDGE" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSDGE"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSDGE" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_d03573e8-6ed9-4770-a327-0c43bddaf0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_us-gaap_StatementTable_d03573e8-6ed9-4770-a327-0c43bddaf0e8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_bfd83d6d-72cd-433b-ac7e-8f327e20fb93" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_d03573e8-6ed9-4770-a327-0c43bddaf0e8" xlink:to="loc_dei_LegalEntityAxis_bfd83d6d-72cd-433b-ac7e-8f327e20fb93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_bfd83d6d-72cd-433b-ac7e-8f327e20fb93_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_bfd83d6d-72cd-433b-ac7e-8f327e20fb93" xlink:to="loc_dei_EntityDomain_bfd83d6d-72cd-433b-ac7e-8f327e20fb93_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b9650d82-7d58-4b4c-a37a-be80e6445b45" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_bfd83d6d-72cd-433b-ac7e-8f327e20fb93" xlink:to="loc_dei_EntityDomain_b9650d82-7d58-4b4c-a37a-be80e6445b45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_6985bba5-d26b-4c28-a24a-6fd21c70dab8" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b9650d82-7d58-4b4c-a37a-be80e6445b45" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_6985bba5-d26b-4c28-a24a-6fd21c70dab8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossAttributableToParent_82396dff-1195-4440-9b9b-20c221145425" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_us-gaap_IncomeLossAttributableToParent_82396dff-1195-4440-9b9b-20c221145425" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_9813daf8-b07d-4c67-9b5c-a049b7fa7426" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_9813daf8-b07d-4c67-9b5c-a049b7fa7426" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_fab3a35d-ea6a-447a-85df-494c34d03a4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_us-gaap_NetIncomeLoss_fab3a35d-ea6a-447a-85df-494c34d03a4a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent_1ec6dc70-f317-4718-98a9-cb8133bc1928" xlink:href="sre-20240630.xsd#sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent_1ec6dc70-f317-4718-98a9-cb8133bc1928" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ComprehensiveIncomeLossTaxAttributableToParent_184794f2-2e48-41b4-b8a2-847633745450" xlink:href="sre-20240630.xsd#sre_ComprehensiveIncomeLossTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_sre_ComprehensiveIncomeLossTaxAttributableToParent_184794f2-2e48-41b4-b8a2-847633745450" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_8a5d4ae5-fb9e-4dc6-a8f5-9588f2dc3d36" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_bec75ccb-04c2-4ffa-bbff-9b565b875269" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_8a5d4ae5-fb9e-4dc6-a8f5-9588f2dc3d36" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSDGE" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDBALANCESHEETSSDGE"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSDGE" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_71843682-d083-4ec0-a129-5ef0e8876302" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_f1f3d88c-03db-4a20-8d6b-cbdda74500e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_71843682-d083-4ec0-a129-5ef0e8876302" xlink:to="loc_us-gaap_StatementTable_f1f3d88c-03db-4a20-8d6b-cbdda74500e2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1d8b00b4-1deb-4606-8bb5-88e3c32b6069" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_f1f3d88c-03db-4a20-8d6b-cbdda74500e2" xlink:to="loc_dei_LegalEntityAxis_1d8b00b4-1deb-4606-8bb5-88e3c32b6069" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1d8b00b4-1deb-4606-8bb5-88e3c32b6069_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1d8b00b4-1deb-4606-8bb5-88e3c32b6069" xlink:to="loc_dei_EntityDomain_1d8b00b4-1deb-4606-8bb5-88e3c32b6069_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b9e4f2f5-d1d2-4a6b-a423-f95c3f34aab2" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1d8b00b4-1deb-4606-8bb5-88e3c32b6069" xlink:to="loc_dei_EntityDomain_b9e4f2f5-d1d2-4a6b-a423-f95c3f34aab2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_db5931eb-e2e9-450d-9e7d-823723a2af70" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b9e4f2f5-d1d2-4a6b-a423-f95c3f34aab2" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_db5931eb-e2e9-450d-9e7d-823723a2af70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_f1f3d88c-03db-4a20-8d6b-cbdda74500e2" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3" xlink:to="loc_us-gaap_RelatedPartyDomain_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_5b26f0fa-1e29-43f4-9791-17ac904d7296" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b7656b6a-bb1e-4ad8-97a3-8822f1bc41c3" xlink:to="loc_us-gaap_RelatedPartyDomain_5b26f0fa-1e29-43f4-9791-17ac904d7296" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_d4918dd3-09c6-457f-992e-9bc56383ec98" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_5b26f0fa-1e29-43f4-9791-17ac904d7296" xlink:to="loc_us-gaap_RelatedPartyMember_d4918dd3-09c6-457f-992e-9bc56383ec98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonrelatedPartyMember_284c5e66-8231-4b0f-8110-771c8ca3f9fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonrelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_5b26f0fa-1e29-43f4-9791-17ac904d7296" xlink:to="loc_us-gaap_NonrelatedPartyMember_284c5e66-8231-4b0f-8110-771c8ca3f9fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_71843682-d083-4ec0-a129-5ef0e8876302" xlink:to="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:to="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1700165e-9f08-42b9-843b-9e9cea594cbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1700165e-9f08-42b9-843b-9e9cea594cbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_3cfb7b80-a766-4255-9238-6b973cd63896" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_3cfb7b80-a766-4255-9238-6b973cd63896" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_8ff5e513-ef6e-4df0-b593-99fee54e2e3b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsAndOtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_8ff5e513-ef6e-4df0-b593-99fee54e2e3b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesNetCurrent_0adcc133-b191-43a8-885a-94f20f23d174" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_OtherReceivablesNetCurrent_0adcc133-b191-43a8-885a-94f20f23d174" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesReceivable_9b0aef3a-c1c4-4445-a2aa-16d08b5fdb92" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxesReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_IncomeTaxesReceivable_9b0aef3a-c1c4-4445-a2aa-16d08b5fdb92" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_e8803815-98c6-4130-9e1d-7a4610727040" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_InventoryNet_e8803815-98c6-4130-9e1d-7a4610727040" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_84584c70-33e1-405e-9179-db1d21aaedc1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_84584c70-33e1-405e-9179-db1d21aaedc1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsCurrent_617d3c16-871a-4db9-9503-bc7c5339a52c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_RegulatoryAssetsCurrent_617d3c16-871a-4db9-9503-bc7c5339a52c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesCurrent_3dd453d2-a59f-44f5-9ae8-dde3401a59d4" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_sre_GreenhouseGasAllowancesCurrent_3dd453d2-a59f-44f5-9ae8-dde3401a59d4" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_94b3043b-2157-49df-94cc-77d5f01b6385" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_OtherAssetsCurrent_94b3043b-2157-49df-94cc-77d5f01b6385" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_8d72f6d1-595f-4d41-9dce-13de3f9ada8a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_a1c2290e-ea1c-4d7a-8524-783f45f4e277" xlink:to="loc_us-gaap_AssetsCurrent_8d72f6d1-595f-4d41-9dce-13de3f9ada8a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsNoncurrent_28f174ec-9efc-442e-9caf-fa431dd56f9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_us-gaap_RegulatoryAssetsNoncurrent_28f174ec-9efc-442e-9caf-fa431dd56f9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesNoncurrent_05af635b-9abd-4908-aff5-433c5182d304" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_sre_GreenhouseGasAllowancesNoncurrent_05af635b-9abd-4908-aff5-433c5182d304" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DecommissioningFundInvestments_ad053caf-1bac-4f3c-94d0-a18449490483" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DecommissioningFundInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_us-gaap_DecommissioningFundInvestments_ad053caf-1bac-4f3c-94d0-a18449490483" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_7090fd2d-aab8-450f-a11a-46929e941462" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_7090fd2d-aab8-450f-a11a-46929e941462" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PrepaidInsuranceFundAssetNoncurrent_c3342e3e-e6d1-4d01-be67-992d34e6fd51" xlink:href="sre-20240630.xsd#sre_PrepaidInsuranceFundAssetNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_sre_PrepaidInsuranceFundAssetNoncurrent_c3342e3e-e6d1-4d01-be67-992d34e6fd51" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_f5171e75-e3f9-46da-a0ae-3d2a90a15f54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_f5171e75-e3f9-46da-a0ae-3d2a90a15f54" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TotalInvestmentsAndOtherAssets_236c08e7-3d47-4405-bfa3-cb1ecdae56e1" xlink:href="sre-20240630.xsd#sre_TotalInvestmentsAndOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_75d75a32-7672-4829-8be2-4556fe6a0da9" xlink:to="loc_sre_TotalInvestmentsAndOtherAssets_236c08e7-3d47-4405-bfa3-cb1ecdae56e1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9e0ee29a-f80f-4c21-8e55-577b86cc818f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9e0ee29a-f80f-4c21-8e55-577b86cc818f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_80fd00f5-6a5d-4192-973b-b4eadf03e7b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9e0ee29a-f80f-4c21-8e55-577b86cc818f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_80fd00f5-6a5d-4192-973b-b4eadf03e7b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_c5d41f79-828c-4602-a7ec-247c149874a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9e0ee29a-f80f-4c21-8e55-577b86cc818f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_c5d41f79-828c-4602-a7ec-247c149874a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_c1493a07-13c8-464a-b915-6e57ebd7275a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_9e0ee29a-f80f-4c21-8e55-577b86cc818f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_c1493a07-13c8-464a-b915-6e57ebd7275a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_89c9ea17-ba3e-4eda-99b1-5d4faba146fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_12caa570-d444-41ae-ac63-973ef69da185" xlink:to="loc_us-gaap_Assets_89c9ea17-ba3e-4eda-99b1-5d4faba146fe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_71843682-d083-4ec0-a129-5ef0e8876302" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_50855086-18dd-4b46-a5a3-daf6ba6c7038" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_AccountsPayableCurrent_50855086-18dd-4b46-a5a3-daf6ba6c7038" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_373a030c-e9ea-47ef-90c7-0383af3dfe80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_373a030c-e9ea-47ef-90c7-0383af3dfe80" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_35b1a115-b6d2-4657-a553-32e93b9c2fe7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_InterestPayableCurrent_35b1a115-b6d2-4657-a553-32e93b9c2fe7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_2f53132c-10b3-4a48-8a67-6da7ce1f23bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_2f53132c-10b3-4a48-8a67-6da7ce1f23bb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DeferredExcessCapacitySales_3845a326-bb55-407b-a88b-896fb7f86a50" xlink:href="sre-20240630.xsd#sre_DeferredExcessCapacitySales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_sre_DeferredExcessCapacitySales_3845a326-bb55-407b-a88b-896fb7f86a50" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FranchiseRelatedLiabilitiesCurrent_a7b09dc5-0e92-4fa0-8b81-617a344cb31d" xlink:href="sre-20240630.xsd#sre_FranchiseRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_sre_FranchiseRelatedLiabilitiesCurrent_a7b09dc5-0e92-4fa0-8b81-617a344cb31d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityCurrent_588100b0-7976-4f5b-8ead-2d687e31f951" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_RegulatoryLiabilityCurrent_588100b0-7976-4f5b-8ead-2d687e31f951" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_10d209c3-6d20-4bdc-b8ed-8e8cfbdf64df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_10d209c3-6d20-4bdc-b8ed-8e8cfbdf64df" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsCurrent_618c2b22-7cb3-4434-922c-53fca99b085e" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_sre_GreenhouseGasObligationsCurrent_618c2b22-7cb3-4434-922c-53fca99b085e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationCurrent_2ec446cf-89de-434f-90c0-cd175bf09deb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_AssetRetirementObligationCurrent_2ec446cf-89de-434f-90c0-cd175bf09deb" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_173a323b-a0ff-479b-94ee-63879e77a347" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_28d7a2fa-6c84-4abe-beb0-e1d048f2fbee" xlink:to="loc_us-gaap_LiabilitiesCurrent_173a323b-a0ff-479b-94ee-63879e77a347" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_7ff23c51-6e7c-4567-916b-647393407723" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_7ff23c51-6e7c-4567-916b-647393407723" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityNoncurrent_a2252256-a1c9-4da0-989e-fb0626a8e01b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_RegulatoryLiabilityNoncurrent_a2252256-a1c9-4da0-989e-fb0626a8e01b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsNoncurrent_9cc842e3-b000-4e6f-a48b-f2aa8ae8e7fa" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_sre_GreenhouseGasObligationsNoncurrent_9cc842e3-b000-4e6f-a48b-f2aa8ae8e7fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_892b14df-1e66-48d6-ba82-44e7c8aafd0b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_892b14df-1e66-48d6-ba82-44e7c8aafd0b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_2e34d0d9-1e96-4f22-88a9-af8a99b14b62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_2e34d0d9-1e96-4f22-88a9-af8a99b14b62" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationsNoncurrent_7305745d-6c0f-4b92-b69b-5cffa21752fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_AssetRetirementObligationsNoncurrent_7305745d-6c0f-4b92-b69b-5cffa21752fd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilities_6964e2e1-b62e-426f-851d-f41d33c3b7b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilities_6964e2e1-b62e-426f-851d-f41d33c3b7b7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_245093e9-3e9e-457d-a00e-91c31a691e90" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_85b0ac1f-742c-473e-9320-b5792d9cd23f" xlink:to="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_245093e9-3e9e-457d-a00e-91c31a691e90" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_e4d1856f-d65a-4fe1-86ba-030ff2ec4dad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_CommitmentsAndContingencies_e4d1856f-d65a-4fe1-86ba-030ff2ec4dad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_58330f51-b754-41a1-8f81-c40cf9450b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:to="loc_us-gaap_PreferredStockValue_58330f51-b754-41a1-8f81-c40cf9450b5b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_020ea147-54b9-4f82-89ec-0b912e35a98c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:to="loc_us-gaap_CommonStockValue_020ea147-54b9-4f82-89ec-0b912e35a98c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_aab23b6d-a1f6-4d50-8c5b-aff7ccf989a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_aab23b6d-a1f6-4d50-8c5b-aff7ccf989a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_811ae851-0027-4ba4-bd94-78bc42734123" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_811ae851-0027-4ba4-bd94-78bc42734123" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_121e1bf2-12f0-470b-8b30-f876a2efa5e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_67795632-a96e-4a18-8c02-4eb36e1a4b87" xlink:to="loc_us-gaap_StockholdersEquity_121e1bf2-12f0-470b-8b30-f876a2efa5e8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_42282566-29ed-4245-8d0d-43c9a145d312" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_c3475c26-99e2-47ea-95f7-652b850e5286" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_42282566-29ed-4245-8d0d-43c9a145d312" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSDGEParentheticals" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDBALANCESHEETSSDGEParentheticals"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSDGEParentheticals" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_4dd8e2e0-d3b9-45ae-b9d4-3e386c5904e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_bf31a80f-59ae-470b-881c-d5b3ca23586b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4dd8e2e0-d3b9-45ae-b9d4-3e386c5904e7" xlink:to="loc_us-gaap_StatementTable_bf31a80f-59ae-470b-881c-d5b3ca23586b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_bf31a80f-59ae-470b-881c-d5b3ca23586b" xlink:to="loc_dei_LegalEntityAxis_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72" xlink:to="loc_dei_EntityDomain_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a991f7cd-8d7c-4b75-804d-8b91d6107015" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d3d1bf25-d52b-4ab3-8f93-a2d4a906dd72" xlink:to="loc_dei_EntityDomain_a991f7cd-8d7c-4b75-804d-8b91d6107015" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_47acd6e5-18ab-48ac-9958-961acffddb7d" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a991f7cd-8d7c-4b75-804d-8b91d6107015" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_47acd6e5-18ab-48ac-9958-961acffddb7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4dd8e2e0-d3b9-45ae-b9d4-3e386c5904e7" xlink:to="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_d9b0547d-ed92-4b00-95ce-f7fc2b4469a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_d9b0547d-ed92-4b00-95ce-f7fc2b4469a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesIssued_ade29c3e-d3c7-4a41-80a7-dd119e28f8c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:to="loc_us-gaap_PreferredStockSharesIssued_ade29c3e-d3c7-4a41-80a7-dd119e28f8c5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_8cb80331-1d4e-4b55-af2f-a6944a508d67" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_8cb80331-1d4e-4b55-af2f-a6944a508d67" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_75f8687d-aa07-4eab-83ac-1ec2061c049f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_702b08d9-8ebc-4a4b-b041-1a727c455fef" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_75f8687d-aa07-4eab-83ac-1ec2061c049f" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCASHFLOWSSDGE" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCASHFLOWSSDGE"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCASHFLOWSSDGE" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_620e1996-f953-4e5d-9a01-3533dea5fa5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_StatementTable_620e1996-f953-4e5d-9a01-3533dea5fa5a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d4158bfc-2bd1-4da2-91c4-5101959b340e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_620e1996-f953-4e5d-9a01-3533dea5fa5a" xlink:to="loc_dei_LegalEntityAxis_d4158bfc-2bd1-4da2-91c4-5101959b340e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d4158bfc-2bd1-4da2-91c4-5101959b340e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d4158bfc-2bd1-4da2-91c4-5101959b340e" xlink:to="loc_dei_EntityDomain_d4158bfc-2bd1-4da2-91c4-5101959b340e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_455a371d-762f-46b7-8ae1-35c44b5fc63d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d4158bfc-2bd1-4da2-91c4-5101959b340e" xlink:to="loc_dei_EntityDomain_455a371d-762f-46b7-8ae1-35c44b5fc63d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_adaa79ee-01ec-4055-9f39-75ed7e4b3f93" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_455a371d-762f-46b7-8ae1-35c44b5fc63d" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_adaa79ee-01ec-4055-9f39-75ed7e4b3f93" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_26dfce87-415e-4bdb-87c9-e5d053db5773" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:to="loc_us-gaap_ProfitLoss_26dfce87-415e-4bdb-87c9-e5d053db5773" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_d21a82fb-45db-476c-b303-bb6435610fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:to="loc_us-gaap_DepreciationAndAmortization_d21a82fb-45db-476c-b303-bb6435610fb9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_0e8edf73-9c67-42a6-b4f9-d410cd2719a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_0e8edf73-9c67-42a6-b4f9-d410cd2719a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInBadDebtExpense_99988ace-03b8-42a7-86eb-edf3c5b47b66" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInBadDebtExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:to="loc_sre_IncreaseDecreaseInBadDebtExpense_99988ace-03b8-42a7-86eb-edf3c5b47b66" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_fa96ce5e-af05-4b5a-ad38-12902cc40c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_8410119e-d3dd-475a-9610-4b75cc7b2a9d" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_fa96ce5e-af05-4b5a-ad38-12902cc40c5b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_a1dfc616-729a-4455-a289-ba935949dc66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_a1dfc616-729a-4455-a289-ba935949dc66" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_b860cb51-51b0-4ce5-bb7f-f1c35306b8bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_b860cb51-51b0-4ce5-bb7f-f1c35306b8bb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8a2678d5-8321-4519-9d96-d0e01a44292c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d1962b63-1f97-47a7-a952-f09c0afd80c6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8a2678d5-8321-4519-9d96-d0e01a44292c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_e2d9d71c-1dab-4cc6-b599-7af529f713d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_e2d9d71c-1dab-4cc6-b599-7af529f713d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToInvestInDecommissioningFund_c9797d0d-0f02-483e-81d7-b39ae7b30c44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToInvestInDecommissioningFund"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:to="loc_us-gaap_PaymentsToInvestInDecommissioningFund_c9797d0d-0f02-483e-81d7-b39ae7b30c44" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDecommissioningFund_93e7a169-c397-4e1a-81ae-75ce70272098" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDecommissioningFund"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:to="loc_us-gaap_ProceedsFromDecommissioningFund_93e7a169-c397-4e1a-81ae-75ce70272098" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_029394ea-eb50-4edf-880c-f93b0b219b46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_029394ea-eb50-4edf-880c-f93b0b219b46" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7cd42444-3e43-48a1-841c-2bcf58be69f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_5a9570a7-aefd-455b-9e25-43ad4872cd6a" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7cd42444-3e43-48a1-841c-2bcf58be69f0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_aacc94e5-9f69-4c3d-a806-3c380eff8313" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_aacc94e5-9f69-4c3d-a806-3c380eff8313" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_49e8c62a-39ed-4310-99fc-46561d2c2ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_49e8c62a-39ed-4310-99fc-46561d2c2ab9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_397cca71-7218-4a04-a4b8-b68a0107db2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_397cca71-7218-4a04-a4b8-b68a0107db2d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_fdc58b6e-13b6-48d8-abbf-2c636b0ed108" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_fdc58b6e-13b6-48d8-abbf-2c636b0ed108" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6dc78ee3-b316-4ee4-8dd6-d8f73dc92c19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_16f59ff6-c595-4ddb-ba89-19e0a55dc7e7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_6dc78ee3-b316-4ee4-8dd6-d8f73dc92c19" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cf6a4d12-6d9a-4ee5-abb4-d5ea479da467" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_cf6a4d12-6d9a-4ee5-abb4-d5ea479da467" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_f6ab087f-414d-40d3-9632-52b11f5e2eff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_f6ab087f-414d-40d3-9632-52b11f5e2eff" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_67616d94-86a7-4681-84cd-40bf8e2399d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_007d2e62-ad55-447a-8238-e37f0c33de8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplementalCashFlowInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_007d2e62-ad55-447a-8238-e37f0c33de8b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_28f306a4-390a-47b9-b540-d2a1165673ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_007d2e62-ad55-447a-8238-e37f0c33de8b" xlink:to="loc_us-gaap_InterestPaidNet_28f306a4-390a-47b9-b540-d2a1165673ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_1a3ba684-d059-4aff-8ba1-1be509b2f9ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_3dd6b9a7-6481-476d-9af4-3164a4005151" xlink:to="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_1a3ba684-d059-4aff-8ba1-1be509b2f9ad" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_edfe1c22-a181-41af-ac93-e714d5051506" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_1a3ba684-d059-4aff-8ba1-1be509b2f9ad" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_edfe1c22-a181-41af-ac93-e714d5051506" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_9260a45e-0150-4c85-9c5c-658a55471cde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_1a3ba684-d059-4aff-8ba1-1be509b2f9ad" xlink:to="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_9260a45e-0150-4c85-9c5c-658a55471cde" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_8597ea83-b2fd-4da8-91ef-312eb1bdb517" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_1a3ba684-d059-4aff-8ba1-1be509b2f9ad" xlink:to="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_8597ea83-b2fd-4da8-91ef-312eb1bdb517" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSDGE" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSDGE"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSDGE" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_aeb84def-0150-4f8d-843c-224bf5384028" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_1cbf1661-3a98-42bb-aa6e-3d42e828a4fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_aeb84def-0150-4f8d-843c-224bf5384028" xlink:to="loc_us-gaap_StatementTable_1cbf1661-3a98-42bb-aa6e-3d42e828a4fe" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1cbf1661-3a98-42bb-aa6e-3d42e828a4fe" xlink:to="loc_dei_LegalEntityAxis_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98" xlink:to="loc_dei_EntityDomain_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d780c81b-fd50-490d-b336-294d85fa881d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1e48f8f9-c0ea-4b52-a057-7c8490c2cd98" xlink:to="loc_dei_EntityDomain_d780c81b-fd50-490d-b336-294d85fa881d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_1ea03bfa-47dc-443e-bd60-f9903160ca21" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_d780c81b-fd50-490d-b336-294d85fa881d" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_1ea03bfa-47dc-443e-bd60-f9903160ca21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_4592cb2e-3f04-4e41-8b46-7d9088620523" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1cbf1661-3a98-42bb-aa6e-3d42e828a4fe" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_4592cb2e-3f04-4e41-8b46-7d9088620523" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4592cb2e-3f04-4e41-8b46-7d9088620523_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4592cb2e-3f04-4e41-8b46-7d9088620523" xlink:to="loc_us-gaap_EquityComponentDomain_4592cb2e-3f04-4e41-8b46-7d9088620523_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_0e8f7e7c-d041-4787-9c4b-1dc7908500e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_4592cb2e-3f04-4e41-8b46-7d9088620523" xlink:to="loc_us-gaap_EquityComponentDomain_0e8f7e7c-d041-4787-9c4b-1dc7908500e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_62626e3f-ba70-4495-823d-7b12a9d4bcae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e8f7e7c-d041-4787-9c4b-1dc7908500e5" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_62626e3f-ba70-4495-823d-7b12a9d4bcae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_ff7b6d2c-4e10-4d5b-809a-65de1a3692b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e8f7e7c-d041-4787-9c4b-1dc7908500e5" xlink:to="loc_us-gaap_RetainedEarningsMember_ff7b6d2c-4e10-4d5b-809a-65de1a3692b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_87f8a738-b11e-4ce3-948b-983cf23c051f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_0e8f7e7c-d041-4787-9c4b-1dc7908500e5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_87f8a738-b11e-4ce3-948b-983cf23c051f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_90f09b27-de59-447b-bc52-9124dd841779" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_aeb84def-0150-4f8d-843c-224bf5384028" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_90f09b27-de59-447b-bc52-9124dd841779" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_691109a3-7f2a-4650-ae16-79500f04bed8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_90f09b27-de59-447b-bc52-9124dd841779" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_691109a3-7f2a-4650-ae16-79500f04bed8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_ec4fd24c-69c5-48d4-b5d0-5a4dce9f6691" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_90f09b27-de59-447b-bc52-9124dd841779" xlink:to="loc_us-gaap_ProfitLoss_ec4fd24c-69c5-48d4-b5d0-5a4dce9f6691" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f766c596-5fcb-49ad-b902-b344d9a16225" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFOPERATIONSSoCalGas" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFOPERATIONSSoCalGas"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFOPERATIONSSoCalGas" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_6a434892-f5fd-4c2f-8fd8-357c14579fdc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_StatementTable_6a434892-f5fd-4c2f-8fd8-357c14579fdc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_71602771-33a8-4377-ba2f-ad3054076ea5" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_6a434892-f5fd-4c2f-8fd8-357c14579fdc" xlink:to="loc_dei_LegalEntityAxis_71602771-33a8-4377-ba2f-ad3054076ea5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_71602771-33a8-4377-ba2f-ad3054076ea5_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_71602771-33a8-4377-ba2f-ad3054076ea5" xlink:to="loc_dei_EntityDomain_71602771-33a8-4377-ba2f-ad3054076ea5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d0c170a9-bea6-4460-b145-457564e10ff1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_71602771-33a8-4377-ba2f-ad3054076ea5" xlink:to="loc_dei_EntityDomain_d0c170a9-bea6-4460-b145-457564e10ff1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_67ce5574-af2b-4c08-8448-97b28a7d2791" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_d0c170a9-bea6-4460-b145-457564e10ff1" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_67ce5574-af2b-4c08-8448-97b28a7d2791" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_a3dfd292-9194-40cd-9902-be616c21436c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_a3dfd292-9194-40cd-9902-be616c21436c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenue_0d1d410d-f494-445f-9f21-d09bdd0dec0e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract_a3dfd292-9194-40cd-9902-be616c21436c" xlink:to="loc_us-gaap_RegulatedOperatingRevenue_0d1d410d-f494-445f-9f21-d09bdd0dec0e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased_16d30086-5aaf-465c-ba80-ad93a99a3853" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseGasAndPetroleumPurchased_16d30086-5aaf-465c-ba80-ad93a99a3853" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations_986cffbf-487c-4a6b-a882-dd2c5b7a254c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations_986cffbf-487c-4a6b-a882-dd2c5b7a254c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_ef3f84ea-9034-4b6b-86f9-9803db724951" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization_ef3f84ea-9034-4b6b-86f9-9803db724951" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpenseTaxes_75e8032d-40d2-4031-8981-9a609087352f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpenseTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:to="loc_us-gaap_UtilitiesOperatingExpenseTaxes_75e8032d-40d2-4031-8981-9a609087352f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilitiesOperatingExpense_9c04d9f3-90a7-47cf-a52b-8b4895df5453" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilitiesOperatingExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_fbbb3d4d-ea2a-4062-926e-ad360f63c422" xlink:to="loc_us-gaap_UtilitiesOperatingExpense_9c04d9f3-90a7-47cf-a52b-8b4895df5453" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_e839e0e7-2198-473a-8c8a-6a30c892bacf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_OperatingIncomeLoss_e839e0e7-2198-473a-8c8a-6a30c892bacf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_ac12b765-36be-4ee1-97a7-0a4e74373f9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_ac12b765-36be-4ee1-97a7-0a4e74373f9b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_61ffcc49-93ba-41d5-9009-3900232ef633" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_InvestmentIncomeInterest_61ffcc49-93ba-41d5-9009-3900232ef633" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_6b230f69-d48b-4913-ae33-b7e95cfc01be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_InterestExpense_6b230f69-d48b-4913-ae33-b7e95cfc01be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_2c2c94c6-b8a8-4bfd-b657-e2448bba7ad3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_2c2c94c6-b8a8-4bfd-b657-e2448bba7ad3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_2cf181d2-4022-4a8d-978f-62b6e6eb9e24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_2cf181d2-4022-4a8d-978f-62b6e6eb9e24" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_86eed273-ba0c-4645-bd06-57f4bb5af11e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_ProfitLoss_86eed273-ba0c-4645-bd06-57f4bb5af11e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_4e6bc3c7-d751-46da-a9fc-de3fa057cac0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsIncomeStatementImpact"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_PreferredStockDividendsIncomeStatementImpact_4e6bc3c7-d751-46da-a9fc-de3fa057cac0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d5e439e2-64eb-4211-bb94-2972a1f8b689" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_d00ffeb3-8a91-4253-8924-bb5cf5d03a6c" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_d5e439e2-64eb-4211-bb94-2972a1f8b689" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSCG" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSCG"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSSCG" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_d4b3c99c-a07f-45d9-bc94-09d3189dc996" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_StatementTable_d4b3c99c-a07f-45d9-bc94-09d3189dc996" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_de60a676-8b4a-4430-bbda-dc7ee186602b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_d4b3c99c-a07f-45d9-bc94-09d3189dc996" xlink:to="loc_dei_LegalEntityAxis_de60a676-8b4a-4430-bbda-dc7ee186602b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_de60a676-8b4a-4430-bbda-dc7ee186602b_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_de60a676-8b4a-4430-bbda-dc7ee186602b" xlink:to="loc_dei_EntityDomain_de60a676-8b4a-4430-bbda-dc7ee186602b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6e3ce05a-179f-4d98-8b50-4d39ab84204c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_de60a676-8b4a-4430-bbda-dc7ee186602b" xlink:to="loc_dei_EntityDomain_6e3ce05a-179f-4d98-8b50-4d39ab84204c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ca7ef39d-5ea2-45c4-bb93-8d1a98a5231b" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6e3ce05a-179f-4d98-8b50-4d39ab84204c" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ca7ef39d-5ea2-45c4-bb93-8d1a98a5231b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossAttributableToParent_7f9be5f2-9e3d-4679-99c3-34c99ac6a9d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_IncomeLossAttributableToParent_7f9be5f2-9e3d-4679-99c3-34c99ac6a9d6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_eb24a43d-a819-4d66-ab23-e2d2077979cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_eb24a43d-a819-4d66-ab23-e2d2077979cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_39655bae-f20e-41d2-ad80-df7d25cc7deb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_NetIncomeLoss_39655bae-f20e-41d2-ad80-df7d25cc7deb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_a86dcbec-25c1-49a3-84ec-6d197398cef6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTaxParent_a86dcbec-25c1-49a3-84ec-6d197398cef6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_cd63c1b1-5617-4d35-9364-0693d6e6b149" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent_cd63c1b1-5617-4d35-9364-0693d6e6b149" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_8f889174-eb14-4629-be52-7332aec67837" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTaxParent_8f889174-eb14-4629-be52-7332aec67837" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_945df539-a92b-4a60-9352-bb3fd3298cc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_945df539-a92b-4a60-9352-bb3fd3298cc4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_01714632-f0da-4baf-b22b-1733315648fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_01714632-f0da-4baf-b22b-1733315648fd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_6bc259b8-ddaa-4880-be1a-2bda4ad5cf28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_6bc259b8-ddaa-4880-be1a-2bda4ad5cf28" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_6e4cbb81-921b-4145-8264-c7d2ed398b6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_6e4cbb81-921b-4145-8264-c7d2ed398b6e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_91655d93-7555-4cc6-98d3-ba7aad6b9010" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_91655d93-7555-4cc6-98d3-ba7aad6b9010" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e52bc8cc-b835-4d9b-9f20-02e953234bc7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_138e5a45-642d-4dde-a866-18f340dc3806" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_e52bc8cc-b835-4d9b-9f20-02e953234bc7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent_975226c3-7a05-4942-9fa2-72743285ab8b" xlink:href="sre-20240630.xsd#sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_sre_ComprehensiveIncomeLossBeforeTaxAttributableToParent_975226c3-7a05-4942-9fa2-72743285ab8b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ComprehensiveIncomeLossTaxAttributableToParent_e9eda735-dab3-40eb-9e32-18ca1f872c15" xlink:href="sre-20240630.xsd#sre_ComprehensiveIncomeLossTaxAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_sre_ComprehensiveIncomeLossTaxAttributableToParent_e9eda735-dab3-40eb-9e32-18ca1f872c15" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_3ba24b03-d9ea-4efb-b25e-b960b3c57063" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_42421a0c-5665-49cd-99bc-9862159be819" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTax_3ba24b03-d9ea-4efb-b25e-b960b3c57063" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSoCalGas" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDBALANCESHEETSSoCalGas"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSoCalGas" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_4690bef5-c774-4ae2-8fd5-ed8032cde942" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_394690be-47d1-4607-9bb3-594ddbf27766" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4690bef5-c774-4ae2-8fd5-ed8032cde942" xlink:to="loc_us-gaap_StatementTable_394690be-47d1-4607-9bb3-594ddbf27766" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_5fb43886-7226-45a0-aa6b-198142d84f53" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_394690be-47d1-4607-9bb3-594ddbf27766" xlink:to="loc_dei_LegalEntityAxis_5fb43886-7226-45a0-aa6b-198142d84f53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5fb43886-7226-45a0-aa6b-198142d84f53_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_5fb43886-7226-45a0-aa6b-198142d84f53" xlink:to="loc_dei_EntityDomain_5fb43886-7226-45a0-aa6b-198142d84f53_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_9466cb7b-62a3-4173-acce-4ea9f6be6787" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_5fb43886-7226-45a0-aa6b-198142d84f53" xlink:to="loc_dei_EntityDomain_9466cb7b-62a3-4173-acce-4ea9f6be6787" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_094086d3-e912-4143-bcb0-e9556059e997" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_9466cb7b-62a3-4173-acce-4ea9f6be6787" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_094086d3-e912-4143-bcb0-e9556059e997" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22742d81-dda7-416e-9654-f31fced8c7be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_394690be-47d1-4607-9bb3-594ddbf27766" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22742d81-dda7-416e-9654-f31fced8c7be" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_22742d81-dda7-416e-9654-f31fced8c7be_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22742d81-dda7-416e-9654-f31fced8c7be" xlink:to="loc_us-gaap_RelatedPartyDomain_22742d81-dda7-416e-9654-f31fced8c7be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_2b0540cd-346e-4931-a969-958ae3136353" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_22742d81-dda7-416e-9654-f31fced8c7be" xlink:to="loc_us-gaap_RelatedPartyDomain_2b0540cd-346e-4931-a969-958ae3136353" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_377800b8-4c25-4df4-bdc7-d4d3655b33f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_2b0540cd-346e-4931-a969-958ae3136353" xlink:to="loc_us-gaap_RelatedPartyMember_377800b8-4c25-4df4-bdc7-d4d3655b33f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonrelatedPartyMember_7bd1fbf5-f2eb-44dd-8e87-c986c4e41e34" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NonrelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_2b0540cd-346e-4931-a969-958ae3136353" xlink:to="loc_us-gaap_NonrelatedPartyMember_7bd1fbf5-f2eb-44dd-8e87-c986c4e41e34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4690bef5-c774-4ae2-8fd5-ed8032cde942" xlink:to="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:to="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e38e97bb-3390-4fce-af78-9ea4c9f24ad6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_e38e97bb-3390-4fce-af78-9ea4c9f24ad6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_734e830d-4c3c-4a07-b8c3-7b620189e01a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_734e830d-4c3c-4a07-b8c3-7b620189e01a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_e8390e6d-a0d3-46cb-ae63-19a159bdd284" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsAndOtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_AccountsAndOtherReceivablesNetCurrent_e8390e6d-a0d3-46cb-ae63-19a159bdd284" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesNetCurrent_c2260e3d-f3af-4d65-8549-ad0fc32fcc52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_OtherReceivablesNetCurrent_c2260e3d-f3af-4d65-8549-ad0fc32fcc52" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_a0c1b029-8c49-411c-8129-8b5aa5497159" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_InventoryNet_a0c1b029-8c49-411c-8129-8b5aa5497159" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsCurrent_6c96d7ec-0cbe-4e8c-a5b8-2cdf73f96a6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_RegulatoryAssetsCurrent_6c96d7ec-0cbe-4e8c-a5b8-2cdf73f96a6e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesCurrent_99cbe0ca-6305-46e0-b141-944c63b0cb8a" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_sre_GreenhouseGasAllowancesCurrent_99cbe0ca-6305-46e0-b141-944c63b0cb8a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_8649a911-064f-483f-b161-9143f5d4d181" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_OtherAssetsCurrent_8649a911-064f-483f-b161-9143f5d4d181" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_76cf17a3-26bc-4ef4-8f03-9ada91e717a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_599d8c77-d1af-489b-8ad8-cc98a74a60d1" xlink:to="loc_us-gaap_AssetsCurrent_76cf17a3-26bc-4ef4-8f03-9ada91e717a2" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNoncurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:to="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetsNoncurrent_c6702d29-0230-4603-af28-4282b8c7c31d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:to="loc_us-gaap_RegulatoryAssetsNoncurrent_c6702d29-0230-4603-af28-4282b8c7c31d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasAllowancesNoncurrent_2b29ed68-7571-4e2e-8edf-adb404b9ca5c" xlink:href="sre-20240630.xsd#sre_GreenhouseGasAllowancesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:to="loc_sre_GreenhouseGasAllowancesNoncurrent_2b29ed68-7571-4e2e-8edf-adb404b9ca5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_72d00b2e-1057-4c1b-8dbb-d387da13ba72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_72d00b2e-1057-4c1b-8dbb-d387da13ba72" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_bb21e4ad-4b21-4e17-825f-c9f02aced4f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_bb21e4ad-4b21-4e17-825f-c9f02aced4f3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TotalInvestmentsAndOtherAssets_0c3fc8f0-1bf8-4d05-b04c-2625f382b310" xlink:href="sre-20240630.xsd#sre_TotalInvestmentsAndOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsNoncurrentAbstract_55b32729-8f14-4cd1-ae26-8be1b3474e0b" xlink:to="loc_sre_TotalInvestmentsAndOtherAssets_0c3fc8f0-1bf8-4d05-b04c-2625f382b310" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_dcc72a7c-ca48-456d-9d03-7205f2bb256b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_dcc72a7c-ca48-456d-9d03-7205f2bb256b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_1d238bdb-6b9b-4d19-8a13-bb8e61cd7927" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_dcc72a7c-ca48-456d-9d03-7205f2bb256b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_1d238bdb-6b9b-4d19-8a13-bb8e61cd7927" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_08158fa1-4890-462d-8a6a-1fec64eb592f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_dcc72a7c-ca48-456d-9d03-7205f2bb256b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_08158fa1-4890-462d-8a6a-1fec64eb592f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_81183ebf-7623-4e7c-8063-2d715b174a78" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNetAbstract_dcc72a7c-ca48-456d-9d03-7205f2bb256b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_81183ebf-7623-4e7c-8063-2d715b174a78" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_50540931-58ac-4846-9834-030e92539cde" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_f93d2e9a-e220-4620-921b-2d9ebd3b8920" xlink:to="loc_us-gaap_Assets_50540931-58ac-4846-9834-030e92539cde" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4690bef5-c774-4ae2-8fd5-ed8032cde942" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermBorrowings_adc528c1-5312-49c7-b778-b9fae24783a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_ShortTermBorrowings_adc528c1-5312-49c7-b778-b9fae24783a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableTradeCurrent_ef524579-dc98-4746-9703-9b476a02c695" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableTradeCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_AccountsPayableTradeCurrent_ef524579-dc98-4746-9703-9b476a02c695" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrent_5939fcb5-581f-4e29-bdf5-6d4ce94b45de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_AccountsPayableOtherCurrent_5939fcb5-581f-4e29-bdf5-6d4ce94b45de" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_f33e7fb9-e762-4841-b5e1-718d7622ae42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_f33e7fb9-e762-4841-b5e1-718d7622ae42" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_439a5764-3c79-4671-a846-424440b74a35" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_439a5764-3c79-4671-a846-424440b74a35" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityCurrent_33234e1f-820e-4556-9675-cc0bbf58deca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_RegulatoryLiabilityCurrent_33234e1f-820e-4556-9675-cc0bbf58deca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_2c8826d2-c529-4c25-9aff-e88a3330d58c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligationsCurrent_2c8826d2-c529-4c25-9aff-e88a3330d58c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsCurrent_a6d70365-854b-4f73-a184-83c35dd28504" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_sre_GreenhouseGasObligationsCurrent_a6d70365-854b-4f73-a184-83c35dd28504" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationCurrent_a1bcdc4a-f798-4357-8029-0efd41b51e6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_AssetRetirementObligationCurrent_a1bcdc4a-f798-4357-8029-0efd41b51e6a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8e513c67-bc53-46c6-90f6-8ba0dedac733" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_444e2e79-4053-4373-be72-24b599d7dd0f" xlink:to="loc_us-gaap_LiabilitiesCurrent_8e513c67-bc53-46c6-90f6-8ba0dedac733" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_aec409a4-9ae9-47d6-adf4-b56169e7a2b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAndCapitalLeaseObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_LongTermDebtAndCapitalLeaseObligations_aec409a4-9ae9-47d6-adf4-b56169e7a2b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityNoncurrent_f8000e9a-310a-4d75-9d7e-3f1e79988aff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_RegulatoryLiabilityNoncurrent_f8000e9a-310a-4d75-9d7e-3f1e79988aff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GreenhouseGasObligationsNoncurrent_6fd1b060-0288-498c-b7c9-b1454f56d285" xlink:href="sre-20240630.xsd#sre_GreenhouseGasObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_sre_GreenhouseGasObligationsNoncurrent_6fd1b060-0288-498c-b7c9-b1454f56d285" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f5adfcb1-1984-497b-8c31-bc0eef587991" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent_f5adfcb1-1984-497b-8c31-bc0eef587991" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_b2b2036b-f885-4d03-9fc2-8133163d63a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_b2b2036b-f885-4d03-9fc2-8133163d63a5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationsNoncurrent_92599693-80e1-4244-9500-d3dbff8c3ec5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_AssetRetirementObligationsNoncurrent_92599693-80e1-4244-9500-d3dbff8c3ec5" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCreditsAndOtherLiabilities_5c5c519a-7584-4a21-b600-89392c3ae086" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCreditsAndOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_DeferredCreditsAndOtherLiabilities_5c5c519a-7584-4a21-b600-89392c3ae086" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_801c7981-4caa-4dbb-8627-2f3841a52620" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCreditsAndOtherLiabilitiesAbstract_dcb25e16-a149-4b98-9075-afb7cba8615e" xlink:to="loc_us-gaap_LiabilitiesOtherThanLongtermDebtNoncurrent_801c7981-4caa-4dbb-8627-2f3841a52620" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_424da8ec-b29f-4619-8bd0-4bf95986a1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_CommitmentsAndContingencies_424da8ec-b29f-4619-8bd0-4bf95986a1dc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_35a9b8e2-b4c7-4c49-918a-52ad16372311" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:to="loc_us-gaap_PreferredStockValue_35a9b8e2-b4c7-4c49-918a-52ad16372311" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_933594c7-1928-43dc-b179-cc69f648a003" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:to="loc_us-gaap_CommonStockValue_933594c7-1928-43dc-b179-cc69f648a003" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a0767c11-0487-4fb4-97ba-8e9a34ad7fc1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a0767c11-0487-4fb4-97ba-8e9a34ad7fc1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_6128b5e1-eebf-4cfc-afa5-fa1f781ef953" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_6128b5e1-eebf-4cfc-afa5-fa1f781ef953" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f629eff3-5ad2-4736-9521-700a86fb6934" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterestAbstract_929a71e1-2f1a-46a6-bd10-f603d2238e7d" xlink:to="loc_us-gaap_StockholdersEquity_f629eff3-5ad2-4736-9521-700a86fb6934" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_a2b8129a-dbeb-498c-acf7-1eb1d82d126d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_b0e5682f-ec27-41a8-aba6-3645ae019218" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_a2b8129a-dbeb-498c-acf7-1eb1d82d126d" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSoCalGasParentheticals" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDBALANCESHEETSSoCalGasParentheticals"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDBALANCESHEETSSoCalGasParentheticals" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_ba5b7e4e-6661-4ff9-9045-091ca53c4cfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_e329e12d-6b06-4a83-ab9c-045f600a8d95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_ba5b7e4e-6661-4ff9-9045-091ca53c4cfc" xlink:to="loc_us-gaap_StatementTable_e329e12d-6b06-4a83-ab9c-045f600a8d95" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_8a306b8d-fc74-4edd-8993-2c87e967f6e6" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_e329e12d-6b06-4a83-ab9c-045f600a8d95" xlink:to="loc_dei_LegalEntityAxis_8a306b8d-fc74-4edd-8993-2c87e967f6e6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_8a306b8d-fc74-4edd-8993-2c87e967f6e6_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8a306b8d-fc74-4edd-8993-2c87e967f6e6" xlink:to="loc_dei_EntityDomain_8a306b8d-fc74-4edd-8993-2c87e967f6e6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1dbf5a15-bf44-4fee-90bf-be29bb7044f2" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8a306b8d-fc74-4edd-8993-2c87e967f6e6" xlink:to="loc_dei_EntityDomain_1dbf5a15-bf44-4fee-90bf-be29bb7044f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_54e66e93-5e49-4b04-b7db-e40f87311c18" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_1dbf5a15-bf44-4fee-90bf-be29bb7044f2" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_54e66e93-5e49-4b04-b7db-e40f87311c18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_ba5b7e4e-6661-4ff9-9045-091ca53c4cfc" xlink:to="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_7eea962a-4f89-4d2b-b7bb-f0c144008a60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_7eea962a-4f89-4d2b-b7bb-f0c144008a60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesOutstanding_67e8fb18-3d7a-4d82-8452-98b90dba9b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:to="loc_us-gaap_PreferredStockSharesOutstanding_67e8fb18-3d7a-4d82-8452-98b90dba9b3d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_40f97712-c49f-40c4-994c-cc746b38b520" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_40f97712-c49f-40c4-994c-cc746b38b520" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_ab99b609-ea91-41a2-9793-9c664af1c005" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_e86a2667-0aee-4d56-a567-2c462b1f9124" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_ab99b609-ea91-41a2-9793-9c664af1c005" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCASHFLOWSSoCalGas" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCASHFLOWSSoCalGas"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCASHFLOWSSoCalGas" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_2c9ddc16-b044-4586-9d1c-4683c45b91bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_StatementTable_2c9ddc16-b044-4586-9d1c-4683c45b91bc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_b0616aed-4086-4ebb-b48b-c5c0f7634d6e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_2c9ddc16-b044-4586-9d1c-4683c45b91bc" xlink:to="loc_dei_LegalEntityAxis_b0616aed-4086-4ebb-b48b-c5c0f7634d6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b0616aed-4086-4ebb-b48b-c5c0f7634d6e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_b0616aed-4086-4ebb-b48b-c5c0f7634d6e" xlink:to="loc_dei_EntityDomain_b0616aed-4086-4ebb-b48b-c5c0f7634d6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_57c6b982-973d-4907-86b1-a192b29c16de" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_b0616aed-4086-4ebb-b48b-c5c0f7634d6e" xlink:to="loc_dei_EntityDomain_57c6b982-973d-4907-86b1-a192b29c16de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_77b83170-c909-4980-a611-fa0e49d13406" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_57c6b982-973d-4907-86b1-a192b29c16de" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_77b83170-c909-4980-a611-fa0e49d13406" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_0485adc4-5874-4723-890c-f1bdbaaeeb8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:to="loc_us-gaap_ProfitLoss_0485adc4-5874-4723-890c-f1bdbaaeeb8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_5222f724-749f-4541-8c26-3961a0553a71" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:to="loc_us-gaap_DepreciationAndAmortization_5222f724-749f-4541-8c26-3961a0553a71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_9f38b931-9007-439f-bd7f-6c4ef0c2f05b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxesAndTaxCredits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndTaxCredits_9f38b931-9007-439f-bd7f-6c4ef0c2f05b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInBadDebtExpense_2b9ed643-af81-4600-be06-dc4f65298e85" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInBadDebtExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:to="loc_sre_IncreaseDecreaseInBadDebtExpense_2b9ed643-af81-4600-be06-dc4f65298e85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_b34f3de0-6cad-4192-9ba5-72c6ce98046b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_20e8a8ec-cfb9-4404-bf6c-f34ca678a6fc" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_b34f3de0-6cad-4192-9ba5-72c6ce98046b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_5b0041c7-2066-4911-ae88-41f073680f40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssetsAndLiabilitiesNet_5b0041c7-2066-4911-ae88-41f073680f40" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_07ad1a63-eb5d-48e9-b568-8d7a80b2f8dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet_07ad1a63-eb5d-48e9-b568-8d7a80b2f8dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a773f7dc-ab07-4bdd-9e5e-3445913c7764" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_d5f4a19c-5a8c-4360-a8af-fde91abe25f5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a773f7dc-ab07-4bdd-9e5e-3445913c7764" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_4897958c-160b-4b02-9632-2eb38620bf0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_4897958c-160b-4b02-9632-2eb38620bf0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireProductiveAssets_965e2f9d-1d51-4f51-ad15-0c9243f725d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireProductiveAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_4897958c-160b-4b02-9632-2eb38620bf0d" xlink:to="loc_us-gaap_PaymentsToAcquireProductiveAssets_965e2f9d-1d51-4f51-ad15-0c9243f725d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bedfca69-02ec-4c49-9338-5063419da013" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_4897958c-160b-4b02-9632-2eb38620bf0d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bedfca69-02ec-4c49-9338-5063419da013" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_7631f69f-7c43-4ead-96a1-2dc5b9b678ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_PaymentsOfDividendsPreferredStockAndPreferenceStock_7631f69f-7c43-4ead-96a1-2dc5b9b678ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_f4bcabc8-5d87-4554-822b-78d69d608c5b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_f4bcabc8-5d87-4554-822b-78d69d608c5b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_311fa398-0603-4451-a331-7dbb4afd2c0c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_RepaymentsOfLongTermDebtAndCapitalSecurities_311fa398-0603-4451-a331-7dbb4afd2c0c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_b7c9466e-f7e2-4885-9621-4a010989f8fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_ProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess_b7c9466e-f7e2-4885-9621-4a010989f8fd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_7182d029-4443-4b36-928d-ff48bfd996ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_7182d029-4443-4b36-928d-ff48bfd996ad" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0d533bb7-df80-4151-9a8e-0743d36bbafb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_feee333f-11c9-49a5-805e-5afa642aacbd" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0d533bb7-df80-4151-9a8e-0743d36bbafb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_a403909d-b0a6-4cc1-9809-7d7fe00578b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_a403909d-b0a6-4cc1-9809-7d7fe00578b2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d1803e89-3579-4d24-9935-5bacf0727c53" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_d1803e89-3579-4d24-9935-5bacf0727c53" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_e6d29583-9572-429d-906c-1a866e1ceeab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_1985c709-2c6c-459c-89ae-1974cee34aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplementalCashFlowInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_1985c709-2c6c-459c-89ae-1974cee34aa1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_5e18f36e-516b-4053-846d-faad9e2da9f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_1985c709-2c6c-459c-89ae-1974cee34aa1" xlink:to="loc_us-gaap_InterestPaidNet_5e18f36e-516b-4053-846d-faad9e2da9f5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_4b6b0585-9d9d-4e4d-8d1d-27a27f189ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_7aecb173-ff69-4849-9a1f-68f6cb4fc79c" xlink:to="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_4b6b0585-9d9d-4e4d-8d1d-27a27f189ee3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_b964dd17-5ea5-4998-906b-5e5331b6f39c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalExpendituresIncurredButNotYetPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_4b6b0585-9d9d-4e4d-8d1d-27a27f189ee3" xlink:to="loc_us-gaap_CapitalExpendituresIncurredButNotYetPaid_b964dd17-5ea5-4998-906b-5e5331b6f39c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_794546cb-84bf-4fd1-b1d0-e3edce6ac52b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_4b6b0585-9d9d-4e4d-8d1d-27a27f189ee3" xlink:to="loc_us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability_794546cb-84bf-4fd1-b1d0-e3edce6ac52b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_8d4b9e67-bf38-4115-9b8f-b51bd73d8191" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract_4b6b0585-9d9d-4e4d-8d1d-27a27f189ee3" xlink:to="loc_sre_IncreaseDecreaseInAssetRetirementObligationForInvestmentInPropertyPlantAndEquipment_8d4b9e67-bf38-4115-9b8f-b51bd73d8191" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGas" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGas"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGas" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_11b5015f-01d6-4e7d-b5f5-638758c50a1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_33823656-868c-4d18-8be0-900c3dab491e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_11b5015f-01d6-4e7d-b5f5-638758c50a1c" xlink:to="loc_us-gaap_StatementTable_33823656-868c-4d18-8be0-900c3dab491e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_f326688a-3ce0-4a34-b023-ebe9fd25e622" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_33823656-868c-4d18-8be0-900c3dab491e" xlink:to="loc_dei_LegalEntityAxis_f326688a-3ce0-4a34-b023-ebe9fd25e622" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_f326688a-3ce0-4a34-b023-ebe9fd25e622_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_f326688a-3ce0-4a34-b023-ebe9fd25e622" xlink:to="loc_dei_EntityDomain_f326688a-3ce0-4a34-b023-ebe9fd25e622_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_310680be-caea-4bca-a96d-ec69e1e52081" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_f326688a-3ce0-4a34-b023-ebe9fd25e622" xlink:to="loc_dei_EntityDomain_310680be-caea-4bca-a96d-ec69e1e52081" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_7c3f53c8-9346-4880-9194-a1847debb8c7" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_310680be-caea-4bca-a96d-ec69e1e52081" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_7c3f53c8-9346-4880-9194-a1847debb8c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_a5113f0a-9364-488f-a31c-c0547f652a14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_33823656-868c-4d18-8be0-900c3dab491e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_a5113f0a-9364-488f-a31c-c0547f652a14" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_a5113f0a-9364-488f-a31c-c0547f652a14_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_a5113f0a-9364-488f-a31c-c0547f652a14" xlink:to="loc_us-gaap_EquityComponentDomain_a5113f0a-9364-488f-a31c-c0547f652a14_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_a5113f0a-9364-488f-a31c-c0547f652a14" xlink:to="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockMember_d878d27f-d42f-4930-bd40-bec363f0e7fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:to="loc_us-gaap_PreferredStockMember_d878d27f-d42f-4930-bd40-bec363f0e7fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_b3ecdede-0e53-4520-82a7-59a85f29b498" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:to="loc_us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember_b3ecdede-0e53-4520-82a7-59a85f29b498" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_4d8cdf85-5530-480d-8cd3-853e93249d86" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:to="loc_us-gaap_RetainedEarningsMember_4d8cdf85-5530-480d-8cd3-853e93249d86" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f8833f9f-938d-4002-af26-df7e221df371" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_cb01e1d0-c90f-498d-99e1-93c1438f8b86" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_f8833f9f-938d-4002-af26-df7e221df371" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_11b5015f-01d6-4e7d-b5f5-638758c50a1c" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f53fbefa-9f6f-470a-9fbb-536150d5943b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_f53fbefa-9f6f-470a-9fbb-536150d5943b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_a7c0605b-de22-4ea3-a95b-22145b5ffc0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:to="loc_us-gaap_ProfitLoss_a7c0605b-de22-4ea3-a95b-22145b5ffc0a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_a4a1465c-7db0-4cb5-96c6-a10280757795" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_a4a1465c-7db0-4cb5-96c6-a10280757795" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsAbstract_a291988a-fc98-4824-a78f-3e20e5529c6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_c604b0e0-2610-46a9-86b0-e8895c226fbd" xlink:to="loc_us-gaap_DividendsAbstract_a291988a-fc98-4824-a78f-3e20e5529c6c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_7181809c-d219-41a5-855a-9f55afd74465" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DividendsAbstract_a291988a-fc98-4824-a78f-3e20e5529c6c" xlink:to="loc_us-gaap_DividendsPreferredStock_7181809c-d219-41a5-855a-9f55afd74465" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_40645252-d0f0-43af-bc50-4b8dd9ea37a3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGasParenthetical" xlink:type="simple" xlink:href="sre-20240630.xsd#CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGasParenthetical"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/CONDENSEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYSoCalGasParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_03a2d832-ecb8-4416-bad4-07a5bfb330d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_34ef781a-9348-4ad5-9b64-e8debfbf973f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_03a2d832-ecb8-4416-bad4-07a5bfb330d1" xlink:to="loc_us-gaap_StatementTable_34ef781a-9348-4ad5-9b64-e8debfbf973f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_99fdd7d7-044a-4b73-b8ed-39f48a647ba8" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_34ef781a-9348-4ad5-9b64-e8debfbf973f" xlink:to="loc_dei_LegalEntityAxis_99fdd7d7-044a-4b73-b8ed-39f48a647ba8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_99fdd7d7-044a-4b73-b8ed-39f48a647ba8_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_99fdd7d7-044a-4b73-b8ed-39f48a647ba8" xlink:to="loc_dei_EntityDomain_99fdd7d7-044a-4b73-b8ed-39f48a647ba8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2711e2fb-3e46-45f5-bc26-74ad48729ebe" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_99fdd7d7-044a-4b73-b8ed-39f48a647ba8" xlink:to="loc_dei_EntityDomain_2711e2fb-3e46-45f5-bc26-74ad48729ebe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_5e32a337-0b81-4dbd-8c79-dd9a2f8f698d" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2711e2fb-3e46-45f5-bc26-74ad48729ebe" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_5e32a337-0b81-4dbd-8c79-dd9a2f8f698d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsPerShareDeclared_cd44088f-9407-4ee0-9b8c-53405ee92bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsPerShareDeclared"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_03a2d832-ecb8-4416-bad4-07a5bfb330d1" xlink:to="loc_us-gaap_PreferredStockDividendsPerShareDeclared_cd44088f-9407-4ee0-9b8c-53405ee92bc9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPRINCIPLESOFCONSOLIDATIONDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAPRINCIPLESOFCONSOLIDATIONDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPRINCIPLESOFCONSOLIDATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_6a75e187-28a9-4d3a-9665-379ae379b5ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_86a8f90d-30cd-43c6-8c8c-e19c3ca5b49c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6a75e187-28a9-4d3a-9665-379ae379b5ab" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_86a8f90d-30cd-43c6-8c8c-e19c3ca5b49c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_86a8f90d-30cd-43c6-8c8c-e19c3ca5b49c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f" xlink:to="loc_us-gaap_SegmentDomain_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_93135669-9393-490a-b4e5-6338651a6a38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_8e7fa55c-8083-4c41-9ad7-b97c90cdfc8f" xlink:to="loc_us-gaap_SegmentDomain_93135669-9393-490a-b4e5-6338651a6a38" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCaliforniaMember_defed0eb-9ba4-4142-9417-2cf3db8cbbe7" xlink:href="sre-20240630.xsd#sre_SempraCaliforniaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_93135669-9393-490a-b4e5-6338651a6a38" xlink:to="loc_sre_SempraCaliforniaMember_defed0eb-9ba4-4142-9417-2cf3db8cbbe7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_6782a3bc-6ada-49c2-b285-fef64b5acb3d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_86a8f90d-30cd-43c6-8c8c-e19c3ca5b49c" xlink:to="loc_dei_LegalEntityAxis_6782a3bc-6ada-49c2-b285-fef64b5acb3d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6782a3bc-6ada-49c2-b285-fef64b5acb3d_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_6782a3bc-6ada-49c2-b285-fef64b5acb3d" xlink:to="loc_dei_EntityDomain_6782a3bc-6ada-49c2-b285-fef64b5acb3d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_36cd14bb-5db4-458c-8b95-8cb84efbebf4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_6782a3bc-6ada-49c2-b285-fef64b5acb3d" xlink:to="loc_dei_EntityDomain_36cd14bb-5db4-458c-8b95-8cb84efbebf4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_0b59d10d-02aa-4bc5-a176-ddf3d52c6980" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_36cd14bb-5db4-458c-8b95-8cb84efbebf4" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_0b59d10d-02aa-4bc5-a176-ddf3d52c6980" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_90041b91-19df-450d-b748-dcb85887bd4c" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_36cd14bb-5db4-458c-8b95-8cb84efbebf4" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_90041b91-19df-450d-b748-dcb85887bd4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_db3c80c8-46a2-4b97-8d1d-57f18cb03e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_6a75e187-28a9-4d3a-9665-379ae379b5ab" xlink:to="loc_us-gaap_NumberOfReportableSegments_db3c80c8-46a2-4b97-8d1d-57f18cb03e5d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAVARIABLEINTERESTENTITIESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAVARIABLEINTERESTENTITIESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAVARIABLEINTERESTENTITIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfVariableInterestEntitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_dad192a9-24e4-4671-891a-2f7637839d15" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_srt_ConsolidatedEntitiesAxis_dad192a9-24e4-4671-891a-2f7637839d15" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_dad192a9-24e4-4671-891a-2f7637839d15_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_dad192a9-24e4-4671-891a-2f7637839d15" xlink:to="loc_srt_ConsolidatedEntitiesDomain_dad192a9-24e4-4671-891a-2f7637839d15_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_57da11e5-0546-47c6-81bd-4f2cabb79946" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_dad192a9-24e4-4671-891a-2f7637839d15" xlink:to="loc_srt_ConsolidatedEntitiesDomain_57da11e5-0546-47c6-81bd-4f2cabb79946" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_1f58ad3e-e117-4dba-9566-5b3d69fc02f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_57da11e5-0546-47c6-81bd-4f2cabb79946" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_1f58ad3e-e117-4dba-9566-5b3d69fc02f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_8faeb09d-4ccd-49f4-ad07-2e3870d2e368" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_57da11e5-0546-47c6-81bd-4f2cabb79946" xlink:to="loc_us-gaap_VariableInterestEntityPrimaryBeneficiaryMember_8faeb09d-4ccd-49f4-ad07-2e3870d2e368" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_3b1bb07d-aea4-4a90-8eae-934943a2f87e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_dei_LegalEntityAxis_3b1bb07d-aea4-4a90-8eae-934943a2f87e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_3b1bb07d-aea4-4a90-8eae-934943a2f87e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3b1bb07d-aea4-4a90-8eae-934943a2f87e" xlink:to="loc_dei_EntityDomain_3b1bb07d-aea4-4a90-8eae-934943a2f87e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3b1bb07d-aea4-4a90-8eae-934943a2f87e" xlink:to="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_3bad749d-aaf3-4dd6-8a89-fb63e5660360" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_3bad749d-aaf3-4dd6-8a89-fb63e5660360" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaMember_479bfcaa-5595-4167-a47a-b60963d1eaf8" xlink:href="sre-20240630.xsd#sre_IEnovaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:to="loc_sre_IEnovaMember_479bfcaa-5595-4167-a47a-b60963d1eaf8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SubsidiaryOfTOTALSEMember_1c4436ae-34c6-41f2-a098-3e6cd1d0f7a0" xlink:href="sre-20240630.xsd#sre_SubsidiaryOfTOTALSEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:to="loc_sre_SubsidiaryOfTOTALSEMember_1c4436ae-34c6-41f2-a098-3e6cd1d0f7a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CameronLNGMember_3ee81a0b-ca11-4ebe-afbb-ca248f4b83ed" xlink:href="sre-20240630.xsd#sre_CameronLNGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cf58c0d-a2b7-470c-8961-f5ed8d2d73cf" xlink:to="loc_sre_CameronLNGMember_3ee81a0b-ca11-4ebe-afbb-ca248f4b83ed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_5a3da3c1-6bd8-4d42-995e-a1df109b2623" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_5a3da3c1-6bd8-4d42-995e-a1df109b2623" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_5a3da3c1-6bd8-4d42-995e-a1df109b2623_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_5a3da3c1-6bd8-4d42-995e-a1df109b2623" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_5a3da3c1-6bd8-4d42-995e-a1df109b2623_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_ce0d3a3f-5d10-4819-a084-352990169d78" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_5a3da3c1-6bd8-4d42-995e-a1df109b2623" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_ce0d3a3f-5d10-4819-a084-352990169d78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_7c6bf3e2-b227-4f7a-b8f2-75f31771455c" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryHoldingsCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_ce0d3a3f-5d10-4819-a084-352990169d78" xlink:to="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_7c6bf3e2-b227-4f7a-b8f2-75f31771455c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CameronLngHoldingsMember_e39974b5-d934-480a-a10c-dfbfbb4b4ac4" xlink:href="sre-20240630.xsd#sre_CameronLngHoldingsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_ce0d3a3f-5d10-4819-a084-352990169d78" xlink:to="loc_sre_CameronLngHoldingsMember_e39974b5-d934-480a-a10c-dfbfbb4b4ac4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_928a3db5-79b3-43b0-9815-216f41312494" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_srt_CounterpartyNameAxis_928a3db5-79b3-43b0-9815-216f41312494" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_928a3db5-79b3-43b0-9815-216f41312494_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_928a3db5-79b3-43b0-9815-216f41312494" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_928a3db5-79b3-43b0-9815-216f41312494_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_cd0c9458-0f56-49dd-820f-0032f6cba77e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_928a3db5-79b3-43b0-9815-216f41312494" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_cd0c9458-0f56-49dd-820f-0032f6cba77e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ECALNGJVMember_65dfb6cd-e0b0-4bfc-86db-f78a6797cdbd" xlink:href="sre-20240630.xsd#sre_ECALNGJVMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_cd0c9458-0f56-49dd-820f-0032f6cba77e" xlink:to="loc_sre_ECALNGJVMember_65dfb6cd-e0b0-4bfc-86db-f78a6797cdbd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraPALNGHoldingsLLCMember_1aa1659d-add6-4e69-b790-0eeb36b8caca" xlink:href="sre-20240630.xsd#sre_SempraPALNGHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_cd0c9458-0f56-49dd-820f-0032f6cba77e" xlink:to="loc_sre_SempraPALNGHoldingsLLCMember_1aa1659d-add6-4e69-b790-0eeb36b8caca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_ea59dea3-4f95-41aa-b706-0a1b4c8041a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_ea59dea3-4f95-41aa-b706-0a1b4c8041a1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ea59dea3-4f95-41aa-b706-0a1b4c8041a1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ea59dea3-4f95-41aa-b706-0a1b4c8041a1" xlink:to="loc_us-gaap_SegmentDomain_ea59dea3-4f95-41aa-b706-0a1b4c8041a1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a8e94142-dbdf-4570-a058-04b784d575b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_ea59dea3-4f95-41aa-b706-0a1b4c8041a1" xlink:to="loc_us-gaap_SegmentDomain_a8e94142-dbdf-4570-a058-04b784d575b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraTexasUtilitiesMember_fe523fa7-7bf5-4d94-a38c-f8d03ae85379" xlink:href="sre-20240630.xsd#sre_SempraTexasUtilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a8e94142-dbdf-4570-a058-04b784d575b3" xlink:to="loc_sre_SempraTexasUtilitiesMember_fe523fa7-7bf5-4d94-a38c-f8d03ae85379" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_b1b29453-26f4-4a2f-9a9f-87c240dcebcb" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a8e94142-dbdf-4570-a058-04b784d575b3" xlink:to="loc_sre_SempraInfrastructureMember_b1b29453-26f4-4a2f-9a9f-87c240dcebcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_29b8550a-e083-4022-b1a2-7f0381347e27" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfVariableInterestEntitiesTable_97af61b1-588b-49bf-87e3-eb4f914b5ca1" xlink:to="loc_srt_OwnershipAxis_29b8550a-e083-4022-b1a2-7f0381347e27" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_29b8550a-e083-4022-b1a2-7f0381347e27_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_29b8550a-e083-4022-b1a2-7f0381347e27" xlink:to="loc_srt_OwnershipDomain_29b8550a-e083-4022-b1a2-7f0381347e27_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_10fb910d-882c-4420-be9d-854f8d2b5409" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_29b8550a-e083-4022-b1a2-7f0381347e27" xlink:to="loc_srt_OwnershipDomain_10fb910d-882c-4420-be9d-854f8d2b5409" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ECALNGJVMember_1ab14f67-40e9-45e4-ae3d-b1731b09558b" xlink:href="sre-20240630.xsd#sre_ECALNGJVMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_10fb910d-882c-4420-be9d-854f8d2b5409" xlink:to="loc_sre_ECALNGJVMember_1ab14f67-40e9-45e4-ae3d-b1731b09558b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_947f5afc-f1da-47d6-8013-9899e750e4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_947f5afc-f1da-47d6-8013-9899e750e4ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_d3259d4a-4b17-49a2-be05-5259c521c76f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_FinanceLeaseLiability_d3259d4a-4b17-49a2-be05-5259c521c76f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_92c8cdbf-f554-4805-9ac7-3d2ec980292c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_EquityMethodInvestments_92c8cdbf-f554-4805-9ac7-3d2ec980292c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfProjectOwners_80074173-2790-4f94-a263-577e2e37dce6" xlink:href="sre-20240630.xsd#sre_NumberOfProjectOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_sre_NumberOfProjectOwners_80074173-2790-4f94-a263-577e2e37dce6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsMaximumExposure_65d94118-fae4-4a7e-9f90-0ff90ba6795e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsMaximumExposure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_GuaranteeObligationsMaximumExposure_65d94118-fae4-4a7e-9f90-0ff90ba6795e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_c170abbc-980c-491e-ac47-bc691fb38a9c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_Assets_c170abbc-980c-491e-ac47-bc691fb38a9c" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_62da282f-aaa0-4a7c-8c6b-9f575bc6fe27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_Liabilities_62da282f-aaa0-4a7c-8c6b-9f575bc6fe27" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_6e69028a-59ae-44b6-8573-98d39c7a8d1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableInterestEntityLineItems_ea9e8256-fd7f-4c8c-bf38-4aedb8014748" xlink:to="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_6e69028a-59ae-44b6-8573-98d39c7a8d1d" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACREDITLOSSESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATACREDITLOSSESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACREDITLOSSESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_93161762-fbea-4d6b-b80a-8c98813664a5" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:to="loc_dei_LegalEntityAxis_93161762-fbea-4d6b-b80a-8c98813664a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_93161762-fbea-4d6b-b80a-8c98813664a5_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_93161762-fbea-4d6b-b80a-8c98813664a5" xlink:to="loc_dei_EntityDomain_93161762-fbea-4d6b-b80a-8c98813664a5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1cc5b222-31e8-442e-a55a-212558a105d4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_93161762-fbea-4d6b-b80a-8c98813664a5" xlink:to="loc_dei_EntityDomain_1cc5b222-31e8-442e-a55a-212558a105d4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_899ff83d-c674-4f58-aa17-84403ed0cdd2" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_1cc5b222-31e8-442e-a55a-212558a105d4" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_899ff83d-c674-4f58-aa17-84403ed0cdd2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_73c96946-71e4-4e51-9f49-f8d64c14acf2" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_1cc5b222-31e8-442e-a55a-212558a105d4" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_73c96946-71e4-4e51-9f49-f8d64c14acf2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_fb809191-ffe8-4ef9-bb43-988fd67f138d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_fb809191-ffe8-4ef9-bb43-988fd67f138d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_fb809191-ffe8-4ef9-bb43-988fd67f138d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_fb809191-ffe8-4ef9-bb43-988fd67f138d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_fb809191-ffe8-4ef9-bb43-988fd67f138d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_fb809191-ffe8-4ef9-bb43-988fd67f138d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeAccountsReceivableMember_e936e5c1-d4a3-49be-9556-c96563f4c349" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TradeAccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:to="loc_us-gaap_TradeAccountsReceivableMember_e936e5c1-d4a3-49be-9556-c96563f4c349" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_aaa9bbb3-0cf0-4899-a03a-b8e57b76dae0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:to="loc_us-gaap_AccountsReceivableMember_aaa9bbb3-0cf0-4899-a03a-b8e57b76dae0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_da4112c9-af59-4f99-8708-d91c8dddd0f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_da4112c9-af59-4f99-8708-d91c8dddd0f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DeferredCreditsandOtherMember_c0868cfe-bf82-4f90-b92a-522581ef7494" xlink:href="sre-20240630.xsd#sre_DeferredCreditsandOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:to="loc_sre_DeferredCreditsandOtherMember_c0868cfe-bf82-4f90-b92a-522581ef7494" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_827a8b25-a695-49ef-8d88-5371ce908883" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_03752dde-7d08-46e7-81b6-76ed9efb71a0" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_827a8b25-a695-49ef-8d88-5371ce908883" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1add6541-61f2-4609-b786-be12ef7c01a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1add6541-61f2-4609-b786-be12ef7c01a6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_1add6541-61f2-4609-b786-be12ef7c01a6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1add6541-61f2-4609-b786-be12ef7c01a6" xlink:to="loc_us-gaap_RelatedPartyDomain_1add6541-61f2-4609-b786-be12ef7c01a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_bc2c2fca-3bc9-454f-b016-bf4ee05c6c02" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_1add6541-61f2-4609-b786-be12ef7c01a6" xlink:to="loc_us-gaap_RelatedPartyDomain_bc2c2fca-3bc9-454f-b016-bf4ee05c6c02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_KKRPinnacleMember_26996766-69be-42e4-ad9d-fe862925f566" xlink:href="sre-20240630.xsd#sre_KKRPinnacleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_bc2c2fca-3bc9-454f-b016-bf4ee05c6c02" xlink:to="loc_sre_KKRPinnacleMember_26996766-69be-42e4-ad9d-fe862925f566" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_bd57d902-e555-4671-9c0a-cc9019975076" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7" xlink:to="loc_us-gaap_SegmentDomain_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a03a605e-d19a-46eb-9c06-fe22b844cdba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_5e3e6830-0926-40f7-8a4a-ec8b78d8a2e7" xlink:to="loc_us-gaap_SegmentDomain_a03a605e-d19a-46eb-9c06-fe22b844cdba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_d39804a5-b900-439c-9820-0f27211c9cad" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_a03a605e-d19a-46eb-9c06-fe22b844cdba" xlink:to="loc_sre_SempraInfrastructureMember_d39804a5-b900-439c-9820-0f27211c9cad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_e6f6e9ec-f349-492e-9da5-54faaa9d8690" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_e6f6e9ec-f349-492e-9da5-54faaa9d8690" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_f4b57995-e7e8-4cb5-be22-5dc98d596d82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_e6f6e9ec-f349-492e-9da5-54faaa9d8690" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_f4b57995-e7e8-4cb5-be22-5dc98d596d82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_86b0e942-179a-4276-ae75-4fc25b5ec6da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_e6f6e9ec-f349-492e-9da5-54faaa9d8690" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_86b0e942-179a-4276-ae75-4fc25b5ec6da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_e2870fcc-7eb7-4923-b6e6-21ee119774fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableRollforward_e6f6e9ec-f349-492e-9da5-54faaa9d8690" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs_e2870fcc-7eb7-4923-b6e6-21ee119774fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_c5fc2bb0-2334-446b-bcf6-d3f759f59364" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_1bb4a9c8-0037-458c-9ae4-bf7105705b32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_1bb4a9c8-0037-458c-9ae4-bf7105705b32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent_ec7c5bf7-8d79-485b-bd5d-8a3abf12d2e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableNoncurrent_ec7c5bf7-8d79-485b-bd5d-8a3abf12d2e4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_0bed77df-dd53-49a4-98c8-eb23f258f537" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_4b1ac91c-f8d8-4ea2-a8fb-927981887520" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_0bed77df-dd53-49a4-98c8-eb23f258f537" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATATRANSACTIONSWITHAFFILIATESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATATRANSACTIONSWITHAFFILIATESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATATRANSACTIONSWITHAFFILIATESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_6926f6ef-38c1-4d9e-a95b-319706ed6cb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:to="loc_us-gaap_DebtInstrumentAxis_6926f6ef-38c1-4d9e-a95b-319706ed6cb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6926f6ef-38c1-4d9e-a95b-319706ed6cb3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_6926f6ef-38c1-4d9e-a95b-319706ed6cb3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6926f6ef-38c1-4d9e-a95b-319706ed6cb3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_6926f6ef-38c1-4d9e-a95b-319706ed6cb3" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJanuary2024Member_55c70edd-7f29-49b1-b2e5-573b5f404037" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJanuary2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJanuary2024Member_55c70edd-7f29-49b1-b2e5-573b5f404037" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJanuary2025Member_a9bfba53-d52f-49b5-8db7-72bbd6e8247b" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJanuary2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJanuary2025Member_a9bfba53-d52f-49b5-8db7-72bbd6e8247b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNotesDueJuly2025Member_eaaf3514-9c93-4c41-955c-32a1e86fbe7f" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNotesDueJuly2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNotesDueJuly2025Member_eaaf3514-9c93-4c41-955c-32a1e86fbe7f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJanuary2026Member_62a695cd-7472-4468-b290-a08f11689cf2" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJanuary2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJanuary2026Member_62a695cd-7472-4468-b290-a08f11689cf2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJuly2026Member_0788e90d-3bb0-43bf-bca0-2487a9d003dd" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJuly2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJuly2026Member_0788e90d-3bb0-43bf-bca0-2487a9d003dd" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJanuary2027Member_8346517e-f4e3-496b-b573-8ebac90dabfe" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJanuary2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJanuary2027Member_8346517e-f4e3-496b-b573-8ebac90dabfe" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJuly2027Member_94803fd5-df2d-4f3c-aa42-24899d1be781" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJuly2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJuly2027Member_94803fd5-df2d-4f3c-aa42-24899d1be781" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFivePercentNoteDueJanuary2028Member_d0ab56d3-5e56-47f9-8bd4-4301e8f3eed9" xlink:href="sre-20240630.xsd#sre_FivePointFivePercentNoteDueJanuary2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointFivePercentNoteDueJanuary2028Member_d0ab56d3-5e56-47f9-8bd4-4301e8f3eed9" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointSevenFourPercentNoteDecember2029Member_59454483-9858-4eda-a4bc-06006b8f457b" xlink:href="sre-20240630.xsd#sre_FivePointSevenFourPercentNoteDecember2029Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_7fac41dc-dbab-4e82-b182-f094063a3a3c" xlink:to="loc_sre_FivePointSevenFourPercentNoteDecember2029Member_59454483-9858-4eda-a4bc-06006b8f457b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fafa9beb-b5a2-4480-9f64-07992aa32825" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:to="loc_dei_LegalEntityAxis_fafa9beb-b5a2-4480-9f64-07992aa32825" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fafa9beb-b5a2-4480-9f64-07992aa32825_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fafa9beb-b5a2-4480-9f64-07992aa32825" xlink:to="loc_dei_EntityDomain_fafa9beb-b5a2-4480-9f64-07992aa32825_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_26f8f70e-da54-4dac-a6c3-3cfdba5eef0b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fafa9beb-b5a2-4480-9f64-07992aa32825" xlink:to="loc_dei_EntityDomain_26f8f70e-da54-4dac-a6c3-3cfdba5eef0b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_3678d732-636a-45c8-8fb6-634115a2c85d" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_26f8f70e-da54-4dac-a6c3-3cfdba5eef0b" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_3678d732-636a-45c8-8fb6-634115a2c85d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_0a30d53a-7e3a-4bac-bbb1-98276f4a7a88" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_26f8f70e-da54-4dac-a6c3-3cfdba5eef0b" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_0a30d53a-7e3a-4bac-bbb1-98276f4a7a88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_7e70c06e-bb01-4afa-8617-a3c9a7d32f1e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_cc7ad8ac-eeaf-46f4-825e-c06e244fc7a2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_7e70c06e-bb01-4afa-8617-a3c9a7d32f1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TaxSharingArrangementMember_0a78653d-ec14-420a-b08d-be9d3cd219f0" xlink:href="sre-20240630.xsd#sre_TaxSharingArrangementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_7e70c06e-bb01-4afa-8617-a3c9a7d32f1e" xlink:to="loc_sre_TaxSharingArrangementMember_0a78653d-ec14-420a-b08d-be9d3cd219f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TAGPipelineNorteMember_39994ae2-79a6-4446-8b64-a66b48b56622" xlink:href="sre-20240630.xsd#sre_TAGPipelineNorteMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_7e70c06e-bb01-4afa-8617-a3c9a7d32f1e" xlink:to="loc_sre_TAGPipelineNorteMember_39994ae2-79a6-4446-8b64-a66b48b56622" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TAGJVNotesMember_98adea05-8422-4b41-85e9-f2ab047295ea" xlink:href="sre-20240630.xsd#sre_TAGJVNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_7e70c06e-bb01-4afa-8617-a3c9a7d32f1e" xlink:to="loc_sre_TAGJVNotesMember_98adea05-8422-4b41-85e9-f2ab047295ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4c0220e-4e32-4038-abe0-53503de84aa6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_84b3c0c9-70d6-4955-88a3-e65f4f0e8c38" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4c0220e-4e32-4038-abe0-53503de84aa6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_c4c0220e-4e32-4038-abe0-53503de84aa6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4c0220e-4e32-4038-abe0-53503de84aa6" xlink:to="loc_us-gaap_RelatedPartyDomain_c4c0220e-4e32-4038-abe0-53503de84aa6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4c0220e-4e32-4038-abe0-53503de84aa6" xlink:to="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_d6d49fbf-b065-4976-bfcd-8da8461cc062" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:to="loc_us-gaap_RelatedPartyMember_d6d49fbf-b065-4976-bfcd-8da8461cc062" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AffiliateOfInvesteeMember_7f251425-6c76-473f-b6c8-93112fb2787f" xlink:href="sre-20240630.xsd#sre_AffiliateOfInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:to="loc_sre_AffiliateOfInvesteeMember_7f251425-6c76-473f-b6c8-93112fb2787f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MajorityShareholderMember_dc9224b1-8e7b-477c-8b51-322da6f700da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MajorityShareholderMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:to="loc_us-gaap_MajorityShareholderMember_dc9224b1-8e7b-477c-8b51-322da6f700da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SubsdiaryOfCommonParentSoCalGasMember_5564741f-54fd-46c2-94de-a54eeb5f8314" xlink:href="sre-20240630.xsd#sre_SubsdiaryOfCommonParentSoCalGasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:to="loc_sre_SubsdiaryOfCommonParentSoCalGasMember_5564741f-54fd-46c2-94de-a54eeb5f8314" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SubsidiaryOfCommonParentSDGEMember_424ddccd-3a91-4dea-903f-a78a29ae1a0a" xlink:href="sre-20240630.xsd#sre_SubsidiaryOfCommonParentSDGEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_db59fcbf-406f-4509-9444-813fb70beecb" xlink:to="loc_sre_SubsidiaryOfCommonParentSDGEMember_424ddccd-3a91-4dea-903f-a78a29ae1a0a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesNetCurrent_4f70f4f5-97e0-423f-8471-8ca8a57ff786" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherReceivablesNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_us-gaap_OtherReceivablesNetCurrent_4f70f4f5-97e0-423f-8471-8ca8a57ff786" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_422db80c-f8e9-4b4b-9d47-e88a7a199ab5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_422db80c-f8e9-4b4b-9d47-e88a7a199ab5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeTaxesReceivablePayable_af06b005-d732-4c24-8234-4f9646387e2e" xlink:href="sre-20240630.xsd#sre_IncomeTaxesReceivablePayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_sre_IncomeTaxesReceivablePayable_af06b005-d732-4c24-8234-4f9646387e2e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c75413f5-747a-4fce-a623-d10590bbc18a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_c75413f5-747a-4fce-a623-d10590bbc18a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_392836dc-939c-42fc-a289-5a058b1d132a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_105aa188-592b-4bd0-a155-9d74f6d0d2ae" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_392836dc-939c-42fc-a289-5a058b1d132a" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAAFFILIATESREVENUEANDCOSTOFSALESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAAFFILIATESREVENUEANDCOSTOFSALESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAAFFILIATESREVENUEANDCOSTOFSALESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6ed15cd2-ef92-40ae-b490-bbee51f35867" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6ed15cd2-ef92-40ae-b490-bbee51f35867" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_c76125f8-e684-4f37-8055-17a21437fe7d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6ed15cd2-ef92-40ae-b490-bbee51f35867" xlink:to="loc_dei_LegalEntityAxis_c76125f8-e684-4f37-8055-17a21437fe7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_c76125f8-e684-4f37-8055-17a21437fe7d_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_c76125f8-e684-4f37-8055-17a21437fe7d" xlink:to="loc_dei_EntityDomain_c76125f8-e684-4f37-8055-17a21437fe7d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_c4a14cfa-eab0-4642-af4c-ddcfa7de5266" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_c76125f8-e684-4f37-8055-17a21437fe7d" xlink:to="loc_dei_EntityDomain_c4a14cfa-eab0-4642-af4c-ddcfa7de5266" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_fc2f3bf3-7b90-49a9-8746-63121cacf693" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_c4a14cfa-eab0-4642-af4c-ddcfa7de5266" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_fc2f3bf3-7b90-49a9-8746-63121cacf693" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ad64dfd6-d13e-49dd-ae88-0c18fa11e49a" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_c4a14cfa-eab0-4642-af4c-ddcfa7de5266" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ad64dfd6-d13e-49dd-ae88-0c18fa11e49a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_07b340d0-ff2d-455f-a52b-eb45c958c1a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_6ed15cd2-ef92-40ae-b490-bbee51f35867" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_07b340d0-ff2d-455f-a52b-eb45c958c1a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_07b340d0-ff2d-455f-a52b-eb45c958c1a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_07b340d0-ff2d-455f-a52b-eb45c958c1a7" xlink:to="loc_us-gaap_RelatedPartyDomain_07b340d0-ff2d-455f-a52b-eb45c958c1a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_4286d946-6d5e-497d-a495-1ed9b80c678c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_07b340d0-ff2d-455f-a52b-eb45c958c1a7" xlink:to="loc_us-gaap_RelatedPartyDomain_4286d946-6d5e-497d-a495-1ed9b80c678c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_d9ee8ac4-5514-443d-b987-b5a38a379b5a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_4286d946-6d5e-497d-a495-1ed9b80c678c" xlink:to="loc_us-gaap_RelatedPartyMember_d9ee8ac4-5514-443d-b987-b5a38a379b5a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_5451d047-b8b8-4323-ad2e-2f57e117c521" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_5451d047-b8b8-4323-ad2e-2f57e117c521" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_1d0a115e-74e0-4d1a-ad05-b9518c3137c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:to="loc_us-gaap_InterestExpense_1d0a115e-74e0-4d1a-ad05-b9518c3137c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenue_3924e50b-9891-4ea4-b7bf-d37e61257ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:to="loc_us-gaap_RegulatedOperatingRevenue_3924e50b-9891-4ea4-b7bf-d37e61257ad7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CostsOfSalesNetCommodityCosts_a10baf84-fe58-470b-a3d3-840868265615" xlink:href="sre-20240630.xsd#sre_CostsOfSalesNetCommodityCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_5200d0b5-c972-4be7-8e49-5c9f81205a4a" xlink:to="loc_sre_CostsOfSalesNetCommodityCosts_a10baf84-fe58-470b-a3d3-840868265615" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINVENTORIESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAINVENTORIESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINVENTORIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryCurrentTable_af0238a5-4304-4677-87d8-ca068c0bc4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryCurrentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:to="loc_us-gaap_InventoryCurrentTable_af0238a5-4304-4677-87d8-ca068c0bc4ae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_9e9e813e-8881-432e-b44a-a4919945daf1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InventoryCurrentTable_af0238a5-4304-4677-87d8-ca068c0bc4ae" xlink:to="loc_dei_LegalEntityAxis_9e9e813e-8881-432e-b44a-a4919945daf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_9e9e813e-8881-432e-b44a-a4919945daf1_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_9e9e813e-8881-432e-b44a-a4919945daf1" xlink:to="loc_dei_EntityDomain_9e9e813e-8881-432e-b44a-a4919945daf1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b3fee5a8-2a7e-45a2-86cc-6aafdef24173" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_9e9e813e-8881-432e-b44a-a4919945daf1" xlink:to="loc_dei_EntityDomain_b3fee5a8-2a7e-45a2-86cc-6aafdef24173" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_988c44f9-59dc-498e-9175-1a155986ce67" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b3fee5a8-2a7e-45a2-86cc-6aafdef24173" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_988c44f9-59dc-498e-9175-1a155986ce67" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_78b8f9cf-bdba-4161-b5b4-aea4f079f56a" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b3fee5a8-2a7e-45a2-86cc-6aafdef24173" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_78b8f9cf-bdba-4161-b5b4-aea4f079f56a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EnergyRelatedInventoryNaturalGasInStorage_2d94a35c-d257-490f-bba2-e9d256c963b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EnergyRelatedInventoryNaturalGasInStorage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:to="loc_us-gaap_EnergyRelatedInventoryNaturalGasInStorage_2d94a35c-d257-490f-bba2-e9d256c963b3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnergyRelatedInventoryLiquefiedNaturalGas_df890e85-4c42-469f-932b-88e0761a37aa" xlink:href="sre-20240630.xsd#sre_EnergyRelatedInventoryLiquefiedNaturalGas"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:to="loc_sre_EnergyRelatedInventoryLiquefiedNaturalGas_df890e85-4c42-469f-932b-88e0761a37aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnergyRelatedInventoryMaterialsAndSupplies_5f07ca84-4058-430e-b094-f5590ef81b2c" xlink:href="sre-20240630.xsd#sre_EnergyRelatedInventoryMaterialsAndSupplies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:to="loc_sre_EnergyRelatedInventoryMaterialsAndSupplies_5f07ca84-4058-430e-b094-f5590ef81b2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_97d4b976-8503-4aff-98f6-f782b3aa9b22" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InventoryLineItems_e79c7c37-607d-4286-9ea5-93f7f76fe403" xlink:to="loc_us-gaap_InventoryNet_97d4b976-8503-4aff-98f6-f782b3aa9b22" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAWILDFIREFUNDDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAWILDFIREFUNDDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAWILDFIREFUNDDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_82871816-f842-4b98-a4c7-3680fc40832b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_08711f78-8f5e-48bb-9c7d-a1ad10880111" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_82871816-f842-4b98-a4c7-3680fc40832b" xlink:to="loc_us-gaap_LossContingenciesTable_08711f78-8f5e-48bb-9c7d-a1ad10880111" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_2310131f-0b69-48d8-8513-b15e18f65ba1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_08711f78-8f5e-48bb-9c7d-a1ad10880111" xlink:to="loc_dei_LegalEntityAxis_2310131f-0b69-48d8-8513-b15e18f65ba1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2310131f-0b69-48d8-8513-b15e18f65ba1_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_2310131f-0b69-48d8-8513-b15e18f65ba1" xlink:to="loc_dei_EntityDomain_2310131f-0b69-48d8-8513-b15e18f65ba1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_930b7215-07d7-49eb-b9fe-66cfd843f73f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_2310131f-0b69-48d8-8513-b15e18f65ba1" xlink:to="loc_dei_EntityDomain_930b7215-07d7-49eb-b9fe-66cfd843f73f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_7d1c094b-7dfe-4c2b-860a-2a5aa31dde8b" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_930b7215-07d7-49eb-b9fe-66cfd843f73f" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_7d1c094b-7dfe-4c2b-860a-2a5aa31dde8b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AmortizationofPrepaidInsuranceFundAsset_9c480b38-67b1-4a68-88f4-9624999ec56a" xlink:href="sre-20240630.xsd#sre_AmortizationofPrepaidInsuranceFundAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_82871816-f842-4b98-a4c7-3680fc40832b" xlink:to="loc_sre_AmortizationofPrepaidInsuranceFundAsset_9c480b38-67b1-4a68-88f4-9624999ec56a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATANOTERECEIVABLEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATANOTERECEIVABLEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATANOTERECEIVABLEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_ca7783a1-3832-4ffa-aa8a-09b5f461f301" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_f6e959fb-22a0-47a1-a9a4-1638c44c8bb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_ca7783a1-3832-4ffa-aa8a-09b5f461f301" xlink:to="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_f6e959fb-22a0-47a1-a9a4-1638c44c8bb5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_5a73c64e-4cf1-4b19-9eab-393b73ea6992" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_f6e959fb-22a0-47a1-a9a4-1638c44c8bb5" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_5a73c64e-4cf1-4b19-9eab-393b73ea6992" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_5a73c64e-4cf1-4b19-9eab-393b73ea6992_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_5a73c64e-4cf1-4b19-9eab-393b73ea6992" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5a73c64e-4cf1-4b19-9eab-393b73ea6992_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_93787e5c-a652-4b5f-bfd3-2dc08f3164f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_5a73c64e-4cf1-4b19-9eab-393b73ea6992" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_93787e5c-a652-4b5f-bfd3-2dc08f3164f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_218e2c5a-14a4-4772-bc35-84c82c6c1aaf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_93787e5c-a652-4b5f-bfd3-2dc08f3164f4" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_218e2c5a-14a4-4772-bc35-84c82c6c1aaf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4d408ed-d94e-4547-9adf-f4dcdc21478e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable_f6e959fb-22a0-47a1-a9a4-1638c44c8bb5" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4d408ed-d94e-4547-9adf-f4dcdc21478e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_c4d408ed-d94e-4547-9adf-f4dcdc21478e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4d408ed-d94e-4547-9adf-f4dcdc21478e" xlink:to="loc_us-gaap_RelatedPartyDomain_c4d408ed-d94e-4547-9adf-f4dcdc21478e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_9b660f4b-1ad2-482b-b9a4-9846b207c721" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c4d408ed-d94e-4547-9adf-f4dcdc21478e" xlink:to="loc_us-gaap_RelatedPartyDomain_9b660f4b-1ad2-482b-b9a4-9846b207c721" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_KKRPinnacleMember_82e4389b-fa3c-4d97-8c1b-ed4fa79aea83" xlink:href="sre-20240630.xsd#sre_KKRPinnacleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_9b660f4b-1ad2-482b-b9a4-9846b207c721" xlink:to="loc_sre_KKRPinnacleMember_82e4389b-fa3c-4d97-8c1b-ed4fa79aea83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableWithImputedInterestFaceAmount_ab01e93a-f83d-497c-849a-6056e39442a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReceivableWithImputedInterestFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_ca7783a1-3832-4ffa-aa8a-09b5f461f301" xlink:to="loc_us-gaap_ReceivableWithImputedInterestFaceAmount_ab01e93a-f83d-497c-849a-6056e39442a6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableWithImputedInterestEffectiveYieldInterestRate_b8447420-2c5d-4bf9-a0c2-8fcab4d0e769" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReceivableWithImputedInterestEffectiveYieldInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_ca7783a1-3832-4ffa-aa8a-09b5f461f301" xlink:to="loc_us-gaap_ReceivableWithImputedInterestEffectiveYieldInterestRate_b8447420-2c5d-4bf9-a0c2-8fcab4d0e769" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReceivableWithImputedInterestNetAmount_96291cf6-501f-46c0-a35d-7c4c8422be7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReceivableWithImputedInterestNetAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems_ca7783a1-3832-4ffa-aa8a-09b5f461f301" xlink:to="loc_us-gaap_ReceivableWithImputedInterestNetAmount_96291cf6-501f-46c0-a35d-7c4c8422be7f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPROPERTYPLANTANDEQUIPMENTDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAPROPERTYPLANTANDEQUIPMENTDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPROPERTYPLANTANDEQUIPMENTDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8391a4ec-bff7-4e00-b95c-ebbd79c64115" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_4f6fb5df-df29-4fc0-86a4-4a0cc92eedcf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8391a4ec-bff7-4e00-b95c-ebbd79c64115" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_4f6fb5df-df29-4fc0-86a4-4a0cc92eedcf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_4b336584-1e87-4e28-8d34-a0f6f7d0e449" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_4f6fb5df-df29-4fc0-86a4-4a0cc92eedcf" xlink:to="loc_dei_LegalEntityAxis_4b336584-1e87-4e28-8d34-a0f6f7d0e449" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4b336584-1e87-4e28-8d34-a0f6f7d0e449_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_4b336584-1e87-4e28-8d34-a0f6f7d0e449" xlink:to="loc_dei_EntityDomain_4b336584-1e87-4e28-8d34-a0f6f7d0e449_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_988ed177-3b99-4cce-bb3a-acafe0040440" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_4b336584-1e87-4e28-8d34-a0f6f7d0e449" xlink:to="loc_dei_EntityDomain_988ed177-3b99-4cce-bb3a-acafe0040440" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_6d574a94-9f93-4991-ac4a-967a4e909568" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_988ed177-3b99-4cce-bb3a-acafe0040440" xlink:to="loc_sre_SempraInfrastructureMember_6d574a94-9f93-4991-ac4a-967a4e909568" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_8f334b64-9e7c-4242-b5bf-22a80587cc60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_4f6fb5df-df29-4fc0-86a4-4a0cc92eedcf" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_8f334b64-9e7c-4242-b5bf-22a80587cc60" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8f334b64-9e7c-4242-b5bf-22a80587cc60_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_8f334b64-9e7c-4242-b5bf-22a80587cc60" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_8f334b64-9e7c-4242-b5bf-22a80587cc60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_76995169-2088-461b-ba59-1c3c92d860fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_8f334b64-9e7c-4242-b5bf-22a80587cc60" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_76995169-2088-461b-ba59-1c3c92d860fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GuaymasElOroSegmentOfTheSonoraPipelineMember_d4aec2f2-ebdd-4ce6-b1c3-3dc30153f966" xlink:href="sre-20240630.xsd#sre_GuaymasElOroSegmentOfTheSonoraPipelineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_76995169-2088-461b-ba59-1c3c92d860fa" xlink:to="loc_sre_GuaymasElOroSegmentOfTheSonoraPipelineMember_d4aec2f2-ebdd-4ce6-b1c3-3dc30153f966" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6dd95d86-51ee-4009-97c2-aeab120de490" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_4f6fb5df-df29-4fc0-86a4-4a0cc92eedcf" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6dd95d86-51ee-4009-97c2-aeab120de490" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6dd95d86-51ee-4009-97c2-aeab120de490_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6dd95d86-51ee-4009-97c2-aeab120de490" xlink:to="loc_us-gaap_SegmentDomain_6dd95d86-51ee-4009-97c2-aeab120de490_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_43c7e441-0769-4032-946b-e2d1628a6d2e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6dd95d86-51ee-4009-97c2-aeab120de490" xlink:to="loc_us-gaap_SegmentDomain_43c7e441-0769-4032-946b-e2d1628a6d2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_01f430ba-f8d4-4dd9-af70-f167d7cf73a4" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_43c7e441-0769-4032-946b-e2d1628a6d2e" xlink:to="loc_sre_SempraInfrastructureMember_01f430ba-f8d4-4dd9-af70-f167d7cf73a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfSegmentsOfPipeline_47663b14-dc9c-40d0-8c29-20e40b978a3c" xlink:href="sre-20240630.xsd#sre_NumberOfSegmentsOfPipeline"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8391a4ec-bff7-4e00-b95c-ebbd79c64115" xlink:to="loc_sre_NumberOfSegmentsOfPipeline_47663b14-dc9c-40d0-8c29-20e40b978a3c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_86702d49-8118-4b62-8488-db3bee84cfe2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_8391a4ec-bff7-4e00-b95c-ebbd79c64115" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_86702d49-8118-4b62-8488-db3bee84cfe2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACAPITALIZEDFINANCINGCOSTSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATACAPITALIZEDFINANCINGCOSTSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACAPITALIZEDFINANCINGCOSTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationLineItems_0d5ce4f3-4cc7-48fe-b1fd-5df9fa1d319b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfCapitalizationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfCapitalizationTable_6dad36d4-2b44-44f0-a9bd-08c2e410bc62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfCapitalizationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfCapitalizationLineItems_0d5ce4f3-4cc7-48fe-b1fd-5df9fa1d319b" xlink:to="loc_us-gaap_ScheduleOfCapitalizationTable_6dad36d4-2b44-44f0-a9bd-08c2e410bc62" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fab0bc5d-6783-4b98-a8df-b2bf793df2fc" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfCapitalizationTable_6dad36d4-2b44-44f0-a9bd-08c2e410bc62" xlink:to="loc_dei_LegalEntityAxis_fab0bc5d-6783-4b98-a8df-b2bf793df2fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fab0bc5d-6783-4b98-a8df-b2bf793df2fc_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fab0bc5d-6783-4b98-a8df-b2bf793df2fc" xlink:to="loc_dei_EntityDomain_fab0bc5d-6783-4b98-a8df-b2bf793df2fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6335ab37-2982-475d-9151-a96b9877c7ba" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fab0bc5d-6783-4b98-a8df-b2bf793df2fc" xlink:to="loc_dei_EntityDomain_6335ab37-2982-475d-9151-a96b9877c7ba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_0012ee63-b1f8-4de2-bf88-5f8b63dea6ed" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6335ab37-2982-475d-9151-a96b9877c7ba" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_0012ee63-b1f8-4de2-bf88-5f8b63dea6ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_965dce21-1a6c-48a5-bc2b-8d92cc55116d" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6335ab37-2982-475d-9151-a96b9877c7ba" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_965dce21-1a6c-48a5-bc2b-8d92cc55116d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestCostsIncurredCapitalized_eae311f2-e476-4620-b8fd-41bdb5fc2a76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestCostsIncurredCapitalized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfCapitalizationLineItems_0d5ce4f3-4cc7-48fe-b1fd-5df9fa1d319b" xlink:to="loc_us-gaap_InterestCostsIncurredCapitalized_eae311f2-e476-4620-b8fd-41bdb5fc2a76" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACHANGESINACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATACHANGESINACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATACHANGESINACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_40656963-57b4-442a-9c7a-a2f44b195476" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_11bed4e6-f199-415b-9924-9f298daf752e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_40656963-57b4-442a-9c7a-a2f44b195476" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_11bed4e6-f199-415b-9924-9f298daf752e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_5fd7ed69-af90-4404-9367-5e668a000390" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_11bed4e6-f199-415b-9924-9f298daf752e" xlink:to="loc_dei_LegalEntityAxis_5fd7ed69-af90-4404-9367-5e668a000390" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5fd7ed69-af90-4404-9367-5e668a000390_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_5fd7ed69-af90-4404-9367-5e668a000390" xlink:to="loc_dei_EntityDomain_5fd7ed69-af90-4404-9367-5e668a000390_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_9245e530-aeaf-4175-ace0-130cd0003a42" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_5fd7ed69-af90-4404-9367-5e668a000390" xlink:to="loc_dei_EntityDomain_9245e530-aeaf-4175-ace0-130cd0003a42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_ed0dbbf8-49a1-45be-a976-b450bf5232da" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_9245e530-aeaf-4175-ace0-130cd0003a42" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_ed0dbbf8-49a1-45be-a976-b450bf5232da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_c425cc98-132a-4869-8fa2-e1265cfbacf6" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_9245e530-aeaf-4175-ace0-130cd0003a42" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_c425cc98-132a-4869-8fa2-e1265cfbacf6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_b03ebd52-203e-4d54-8fb5-108106955ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossTable_11bed4e6-f199-415b-9924-9f298daf752e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_b03ebd52-203e-4d54-8fb5-108106955ecc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b03ebd52-203e-4d54-8fb5-108106955ecc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_b03ebd52-203e-4d54-8fb5-108106955ecc" xlink:to="loc_us-gaap_EquityComponentDomain_b03ebd52-203e-4d54-8fb5-108106955ecc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_040c829f-28ee-429c-8cac-87fcd686b4e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_b03ebd52-203e-4d54-8fb5-108106955ecc" xlink:to="loc_us-gaap_EquityComponentDomain_040c829f-28ee-429c-8cac-87fcd686b4e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fc4c6ca2-a8e9-4828-ac34-f3ca07547e89" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_040c829f-28ee-429c-8cac-87fcd686b4e5" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fc4c6ca2-a8e9-4828-ac34-f3ca07547e89" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedTranslationAdjustmentMember_7fd559d3-ab49-4025-9570-3fd7fbf4f19c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fc4c6ca2-a8e9-4828-ac34-f3ca07547e89" xlink:to="loc_us-gaap_AccumulatedTranslationAdjustmentMember_7fd559d3-ab49-4025-9570-3fd7fbf4f19c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_bdb81bbe-6185-42cd-9080-483541856783" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fc4c6ca2-a8e9-4828-ac34-f3ca07547e89" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_bdb81bbe-6185-42cd-9080-483541856783" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_06ccb81a-6c4b-474f-95ea-2c413d8accc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_fc4c6ca2-a8e9-4828-ac34-f3ca07547e89" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_06ccb81a-6c4b-474f-95ea-2c413d8accc5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems_40656963-57b4-442a-9c7a-a2f44b195476" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8e930b55-4d07-41c6-adfa-5b840bfb8b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:to="loc_us-gaap_StockholdersEquity_8e930b55-4d07-41c6-adfa-5b840bfb8b3d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_5a63bdf9-56cf-4c1a-9403-efc9798269ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsNetOfTax_5a63bdf9-56cf-4c1a-9403-efc9798269ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_69e81187-682c-434c-a9e9-6bd693585821" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax_69e81187-682c-434c-a9e9-6bd693585821" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8e24639b-9440-4e55-9c29-60e29486e667" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTaxAbstract_7f3a313e-1125-403d-898d-037d2b90e10a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_8e24639b-9440-4e55-9c29-60e29486e667" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_850347cd-4fb4-4b9c-af2c-7531d6919617" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATARECLASSIFICATIONFROMACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATARECLASSIFICATIONFROMACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATARECLASSIFICATIONFROMACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_86e992a7-f1d8-4e74-a999-1d01b5f27bad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_86e992a7-f1d8-4e74-a999-1d01b5f27bad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_86e992a7-f1d8-4e74-a999-1d01b5f27bad_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_86e992a7-f1d8-4e74-a999-1d01b5f27bad" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_86e992a7-f1d8-4e74-a999-1d01b5f27bad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_314801ad-8e8f-41d2-9147-e163abd7e141" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis_86e992a7-f1d8-4e74-a999-1d01b5f27bad" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_314801ad-8e8f-41d2-9147-e163abd7e141" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_83e6c7f9-9856-40a1-804d-2294c027bb60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain_314801ad-8e8f-41d2-9147-e163abd7e141" xlink:to="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember_83e6c7f9-9856-40a1-804d-2294c027bb60" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_674ee794-8222-40be-9340-e6d94c965333" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_674ee794-8222-40be-9340-e6d94c965333" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_674ee794-8222-40be-9340-e6d94c965333_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_674ee794-8222-40be-9340-e6d94c965333" xlink:to="loc_us-gaap_EquityComponentDomain_674ee794-8222-40be-9340-e6d94c965333_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_674ee794-8222-40be-9340-e6d94c965333" xlink:to="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_53d2d092-2820-4283-af60-b16582087d8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedGainLossCashFlowHedgeIncludingNoncontrollingInterestMember_53d2d092-2820-4283-af60-b16582087d8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeNoncontrollingInterestMember_37745be6-9273-4e66-9017-6fc05f9bf348" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeNoncontrollingInterestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeNoncontrollingInterestMember_37745be6-9273-4e66-9017-6fc05f9bf348" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_a2175cce-8178-42a0-9f4a-b5a69af098f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetUnamortizedGainLossMember_a2175cce-8178-42a0-9f4a-b5a69af098f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember_192e4718-ebb7-45f9-9fa5-0a914b1c3600" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentNetPriorServiceCostCreditMember_192e4718-ebb7-45f9-9fa5-0a914b1c3600" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AccumulatedDefinedBenefitPlansAdjustmentNetSettlementsAttributabletoParentMember_592814d2-fe91-42a1-9308-b207e011f65a" xlink:href="sre-20240630.xsd#sre_AccumulatedDefinedBenefitPlansAdjustmentNetSettlementsAttributabletoParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_sre_AccumulatedDefinedBenefitPlansAdjustmentNetSettlementsAttributabletoParentMember_592814d2-fe91-42a1-9308-b207e011f65a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_c94c68d7-6717-4e19-b406-e0b50b219e5f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember_c94c68d7-6717-4e19-b406-e0b50b219e5f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_7c62b51f-7c4e-47a0-91d1-c2103dbdff2c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_09d4c6f1-37f3-49dc-b5bd-412cfe201652" xlink:to="loc_us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember_7c62b51f-7c4e-47a0-91d1-c2103dbdff2c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_755a4a38-6338-4848-8740-a9ee161c1ed0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_755a4a38-6338-4848-8740-a9ee161c1ed0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_755a4a38-6338-4848-8740-a9ee161c1ed0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_755a4a38-6338-4848-8740-a9ee161c1ed0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_755a4a38-6338-4848-8740-a9ee161c1ed0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_755a4a38-6338-4848-8740-a9ee161c1ed0" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_37f02a6c-99b4-4bdc-9691-d016b947e201" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:to="loc_us-gaap_InterestRateContractMember_37f02a6c-99b4-4bdc-9691-d016b947e201" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_1b0b4322-4b15-42d3-923a-286e7637644d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:to="loc_us-gaap_ForeignExchangeContractMember_1b0b4322-4b15-42d3-923a-286e7637644d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_InterestRateAndForeignExchangeInstrumentsMember_7c20951d-e1d1-4bb6-b8db-c5c6ce6f83b0" xlink:href="sre-20240630.xsd#sre_InterestRateAndForeignExchangeInstrumentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:to="loc_sre_InterestRateAndForeignExchangeInstrumentsMember_7c20951d-e1d1-4bb6-b8db-c5c6ce6f83b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CrossCurrencyInterestRateContractMember_a042223a-356e-4ae0-b95f-b4a01989546d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CrossCurrencyInterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_4bcd14f7-b2ec-476e-bd18-38714e02b1b1" xlink:to="loc_us-gaap_CrossCurrencyInterestRateContractMember_a042223a-356e-4ae0-b95f-b4a01989546d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d63eea7f-4696-4027-9074-c729f0e5d306" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTable_2922bc4d-9fbb-4215-82ec-6e8cb2e9c758" xlink:to="loc_dei_LegalEntityAxis_d63eea7f-4696-4027-9074-c729f0e5d306" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d63eea7f-4696-4027-9074-c729f0e5d306_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d63eea7f-4696-4027-9074-c729f0e5d306" xlink:to="loc_dei_EntityDomain_d63eea7f-4696-4027-9074-c729f0e5d306_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a91cf8be-6bba-4dd8-84df-fcb79d360bfb" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d63eea7f-4696-4027-9074-c729f0e5d306" xlink:to="loc_dei_EntityDomain_a91cf8be-6bba-4dd8-84df-fcb79d360bfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_e60ced25-b317-4207-a7e5-daf584fbf3a7" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a91cf8be-6bba-4dd8-84df-fcb79d360bfb" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_e60ced25-b317-4207-a7e5-daf584fbf3a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_5a6d28d0-d6da-471e-9fa1-9470cfd71390" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a91cf8be-6bba-4dd8-84df-fcb79d360bfb" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_5a6d28d0-d6da-471e-9fa1-9470cfd71390" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_ba0e4494-2d4b-4715-86c7-329748180d80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_InterestExpense_ba0e4494-2d4b-4715-86c7-329748180d80" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeLossFromEquityInvestments_c329ce78-327b-462c-b58d-248a2687ce35" xlink:href="sre-20240630.xsd#sre_IncomeLossFromEquityInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_sre_IncomeLossFromEquityInvestments_c329ce78-327b-462c-b58d-248a2687ce35" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnregulatedOperatingRevenue_56d8fd12-6d78-434c-971f-dbb2dd600fd6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_UnregulatedOperatingRevenue_56d8fd12-6d78-434c-971f-dbb2dd600fd6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_1d85ddfc-e730-426e-905d-6c280a556c3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_1d85ddfc-e730-426e-905d-6c280a556c3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_6a1319da-c0d4-4117-be65-463805c50985" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_6a1319da-c0d4-4117-be65-463805c50985" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_8ad0721d-501b-42fb-abd2-d6d0d140d2bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_8ad0721d-501b-42fb-abd2-d6d0d140d2bb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_c8880d3c-9e4d-423c-87d4-4319cc69f8c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_ProfitLoss_c8880d3c-9e4d-423c-87d4-4319cc69f8c9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_92be4568-9602-42ab-b03d-95a6dfff9af5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_92be4568-9602-42ab-b03d-95a6dfff9af5" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c8bcb86c-d945-4653-b66f-17a3996a0dc2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReclassificationAdjustmentOutOfAccumulatedOtherComprehensiveIncomeLineItems_c094c4ec-e12d-4b62-aa24-27bee9d9bd5d" xlink:to="loc_us-gaap_NetIncomeLoss_c8bcb86c-d945-4653-b66f-17a3996a0dc2" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPENSIONANDOTHERPOSTRETIREMENTBENEFITSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAPENSIONANDOTHERPOSTRETIREMENTBENEFITSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAPENSIONANDOTHERPOSTRETIREMENTBENEFITSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_40280790-4193-443d-a294-e9952183bbf5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_40280790-4193-443d-a294-e9952183bbf5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_8746a9be-9805-4b0a-9830-8a2f12be72eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_40280790-4193-443d-a294-e9952183bbf5" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_8746a9be-9805-4b0a-9830-8a2f12be72eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_8746a9be-9805-4b0a-9830-8a2f12be72eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_8746a9be-9805-4b0a-9830-8a2f12be72eb" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_8746a9be-9805-4b0a-9830-8a2f12be72eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_ccf73d02-ec2e-43ed-a39f-8d4059eebccb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_8746a9be-9805-4b0a-9830-8a2f12be72eb" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_ccf73d02-ec2e-43ed-a39f-8d4059eebccb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionPlansDefinedBenefitMember_b84dddbc-c467-4147-8563-7fc4229a0d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_ccf73d02-ec2e-43ed-a39f-8d4059eebccb" xlink:to="loc_us-gaap_PensionPlansDefinedBenefitMember_b84dddbc-c467-4147-8563-7fc4229a0d1b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1ad71bf4-3a67-40eb-917f-da81fca6dcd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RetirementPlanTypeDomain_ccf73d02-ec2e-43ed-a39f-8d4059eebccb" xlink:to="loc_us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember_1ad71bf4-3a67-40eb-917f-da81fca6dcd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_a7d1b060-829b-4405-a3cd-8067d16124d0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable_40280790-4193-443d-a294-e9952183bbf5" xlink:to="loc_dei_LegalEntityAxis_a7d1b060-829b-4405-a3cd-8067d16124d0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a7d1b060-829b-4405-a3cd-8067d16124d0_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_a7d1b060-829b-4405-a3cd-8067d16124d0" xlink:to="loc_dei_EntityDomain_a7d1b060-829b-4405-a3cd-8067d16124d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4924d92b-785d-461c-82cb-55ee2f45f51d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_a7d1b060-829b-4405-a3cd-8067d16124d0" xlink:to="loc_dei_EntityDomain_4924d92b-785d-461c-82cb-55ee2f45f51d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_5a562306-76c5-4e8f-bac9-74db3f990b7d" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_4924d92b-785d-461c-82cb-55ee2f45f51d" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_5a562306-76c5-4e8f-bac9-74db3f990b7d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_878a29a7-265c-4a63-87d8-308746e71b1c" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_4924d92b-785d-461c-82cb-55ee2f45f51d" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_878a29a7-265c-4a63-87d8-308746e71b1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_654de5da-4e43-4a57-930a-8ec58f3d825f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_654de5da-4e43-4a57-930a-8ec58f3d825f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_2c3c9e23-5d83-4e50-b9d8-612e288dd9d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_2c3c9e23-5d83-4e50-b9d8-612e288dd9d6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_bbe8a79e-7222-439c-bbae-77c00ff933f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_bbe8a79e-7222-439c-bbae-77c00ff933f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationAbstract_6a0b2d1b-90f1-48b9-8388-2612310d533f" xlink:href="sre-20240630.xsd#sre_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_sre_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationAbstract_6a0b2d1b-90f1-48b9-8388-2612310d533f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6915d613-2014-4662-ba70-086e79aedbdf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationAbstract_6a0b2d1b-90f1-48b9-8388-2612310d533f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6915d613-2014-4662-ba70-086e79aedbdf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_4341eb3f-3764-4b91-b8d7-1afb3e30c692" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_DefinedBenefitPlanNetPeriodicBenefitCostCreditAmortizationAbstract_6a0b2d1b-90f1-48b9-8388-2612310d533f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_4341eb3f-3764-4b91-b8d7-1afb3e30c692" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_3c1f115d-4e37-41f1-912e-85d67aa5c642" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_3c1f115d-4e37-41f1-912e-85d67aa5c642" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_209858a7-df39-4ef6-b55d-0ec0ea20a308" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_209858a7-df39-4ef6-b55d-0ec0ea20a308" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherRegulatoryAssets_fbc70908-11a9-4083-90f1-a30aa1bf6d9b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherRegulatoryAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherRegulatoryAssets_fbc70908-11a9-4083-90f1-a30aa1bf6d9b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DefinedBenefitPlanExpenseIncome_842735e8-41d0-4e55-9328-4921a57e8de6" xlink:href="sre-20240630.xsd#sre_DefinedBenefitPlanExpenseIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DefinedBenefitPlanDisclosureLineItems_74a7dd39-0e7a-4720-8960-c41b34fc0f74" xlink:to="loc_sre_DefinedBenefitPlanExpenseIncome_842735e8-41d0-4e55-9328-4921a57e8de6" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAOTHERINCOMEEXPENSENETDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAOTHERINCOMEEXPENSENETDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAOTHERINCOMEEXPENSENETDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:href="sre-20240630.xsd#sre_OtherIncomeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherIncomeTable_f823e105-dae6-46bd-9311-fcb0351d5a20" xlink:href="sre-20240630.xsd#sre_OtherIncomeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_sre_OtherIncomeTable_f823e105-dae6-46bd-9311-fcb0351d5a20" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_5490da22-d316-412d-ae2a-d575531447fd" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_OtherIncomeTable_f823e105-dae6-46bd-9311-fcb0351d5a20" xlink:to="loc_dei_LegalEntityAxis_5490da22-d316-412d-ae2a-d575531447fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5490da22-d316-412d-ae2a-d575531447fd_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_5490da22-d316-412d-ae2a-d575531447fd" xlink:to="loc_dei_EntityDomain_5490da22-d316-412d-ae2a-d575531447fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5cbc2c93-5e1c-4f28-aa2d-ed62119799fe" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_5490da22-d316-412d-ae2a-d575531447fd" xlink:to="loc_dei_EntityDomain_5cbc2c93-5e1c-4f28-aa2d-ed62119799fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_6292a603-cf44-4b21-81cd-ed77d4ba87f8" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cbc2c93-5e1c-4f28-aa2d-ed62119799fe" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_6292a603-cf44-4b21-81cd-ed77d4ba87f8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_fb494c91-5efc-4928-a4e4-6fadc1f453b3" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5cbc2c93-5e1c-4f28-aa2d-ed62119799fe" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_fb494c91-5efc-4928-a4e4-6fadc1f453b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity_7c98feeb-81ac-4bef-8ebe-83f367c634c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity_7c98feeb-81ac-4bef-8ebe-83f367c634c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_c82c04fc-50cf-4121-9b1a-4cb4bcb64933" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_GainLossOnInvestments_c82c04fc-50cf-4121-9b1a-4cb4bcb64933" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_f4f11159-acad-4c14-990e-8d116b01e858" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_f4f11159-acad-4c14-990e-8d116b01e858" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_392ff63b-4420-45a1-9dcf-153b2092095e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyTransactionGainLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossBeforeTax_392ff63b-4420-45a1-9dcf-153b2092095e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanOtherCosts_5cd41a41-8a49-4a57-8223-89be93470a73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DefinedBenefitPlanOtherCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_DefinedBenefitPlanOtherCosts_5cd41a41-8a49-4a57-8223-89be93470a73" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryInterestNet_e56b7bbb-da09-459f-80fe-66c70d9d8acc" xlink:href="sre-20240630.xsd#sre_RegulatoryInterestNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_sre_RegulatoryInterestNet_e56b7bbb-da09-459f-80fe-66c70d9d8acc" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherSundryExpensesNet_64a50aa5-97d0-447a-b1e6-046dae9725d2" xlink:href="sre-20240630.xsd#sre_OtherSundryExpensesNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_sre_OtherSundryExpensesNet_64a50aa5-97d0-447a-b1e6-046dae9725d2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_b9e21deb-e29c-48fa-9770-c13c3130ff66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_OtherIncomeLineItems_0b8983f8-32ba-460c-9c6b-db907c669b3d" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_b9e21deb-e29c-48fa-9770-c13c3130ff66" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:href="sre-20240630.xsd#sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_e08f36de-5c35-47f5-a561-b296378621c1" xlink:href="sre-20240630.xsd#sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_e08f36de-5c35-47f5-a561-b296378621c1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fb5437bb-5197-43a1-b99d-d8666918bf76" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_e08f36de-5c35-47f5-a561-b296378621c1" xlink:to="loc_dei_LegalEntityAxis_fb5437bb-5197-43a1-b99d-d8666918bf76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fb5437bb-5197-43a1-b99d-d8666918bf76_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fb5437bb-5197-43a1-b99d-d8666918bf76" xlink:to="loc_dei_EntityDomain_fb5437bb-5197-43a1-b99d-d8666918bf76_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b7826a2d-599d-41dd-b228-41171e6dc637" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fb5437bb-5197-43a1-b99d-d8666918bf76" xlink:to="loc_dei_EntityDomain_b7826a2d-599d-41dd-b228-41171e6dc637" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_8efddd00-5154-4f28-83e7-87f73a8cabd7" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b7826a2d-599d-41dd-b228-41171e6dc637" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_8efddd00-5154-4f28-83e7-87f73a8cabd7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_73ff399b-8517-43ad-8cd2-df276f8ffaeb" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b7826a2d-599d-41dd-b228-41171e6dc637" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_73ff399b-8517-43ad-8cd2-df276f8ffaeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_61ea5aac-01fa-4bc2-bb9d-95f80b3d872d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_61ea5aac-01fa-4bc2-bb9d-95f80b3d872d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_bc950009-8a60-4b10-ab28-3a49d521518d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_bc950009-8a60-4b10-ab28-3a49d521518d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeLossFromEquityMethodInvestmentsBeforeTax_946aab75-8c78-4d37-ae8d-ab06d40979b1" xlink:href="sre-20240630.xsd#sre_IncomeLossFromEquityMethodInvestmentsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_sre_IncomeLossFromEquityMethodInvestmentsBeforeTax_946aab75-8c78-4d37-ae8d-ab06d40979b1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_3e7538c3-0d54-4bb4-b09d-817e7bab967a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_3e7538c3-0d54-4bb4-b09d-817e7bab967a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d8e42597-24a6-47e4-8dbd-dfa83ad637c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_IncomeTaxExpenseAndEffectiveIncomeTaxRatesDisclosureLineItems_bf8b4fd2-05fe-4944-a937-ef2e9fd31448" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_d8e42597-24a6-47e4-8dbd-dfa83ad637c5" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/GENERALINFORMATIONANDOTHERFINANCIALDATAINCOMETAXESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesLineItems_3aadf7ac-dd67-4513-be23-6c15a8cf5a0d" xlink:href="sre-20240630.xsd#sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_ef771b75-8d1a-4b10-9212-5735ce3ec32f" xlink:href="sre-20240630.xsd#sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesLineItems_3aadf7ac-dd67-4513-be23-6c15a8cf5a0d" xlink:to="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_ef771b75-8d1a-4b10-9212-5735ce3ec32f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_68195cd1-adb4-4bc6-a49e-e324f431b0a4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_ef771b75-8d1a-4b10-9212-5735ce3ec32f" xlink:to="loc_dei_LegalEntityAxis_68195cd1-adb4-4bc6-a49e-e324f431b0a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_68195cd1-adb4-4bc6-a49e-e324f431b0a4_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_68195cd1-adb4-4bc6-a49e-e324f431b0a4" xlink:to="loc_dei_EntityDomain_68195cd1-adb4-4bc6-a49e-e324f431b0a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_70a4103d-df78-4e0d-8301-2ffd6477e56b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_68195cd1-adb4-4bc6-a49e-e324f431b0a4" xlink:to="loc_dei_EntityDomain_70a4103d-df78-4e0d-8301-2ffd6477e56b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ced071e8-d448-4a72-9c66-453330116615" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_70a4103d-df78-4e0d-8301-2ffd6477e56b" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ced071e8-d448-4a72-9c66-453330116615" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_6e4d8825-f23a-4c39-91af-afd23ee95ec7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesTable_ef771b75-8d1a-4b10-9212-5735ce3ec32f" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_6e4d8825-f23a-4c39-91af-afd23ee95ec7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6e4d8825-f23a-4c39-91af-afd23ee95ec7_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_6e4d8825-f23a-4c39-91af-afd23ee95ec7" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_6e4d8825-f23a-4c39-91af-afd23ee95ec7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_a83d2a92-f17c-4073-bed6-6cd2b818f554" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_6e4d8825-f23a-4c39-91af-afd23ee95ec7" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_a83d2a92-f17c-4073-bed6-6cd2b818f554" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_c738e274-33b0-4d2a-be98-36154e9fca94" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_a83d2a92-f17c-4073-bed6-6cd2b818f554" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_c738e274-33b0-4d2a-be98-36154e9fca94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_ade80046-b2d6-4c68-ba9d-74108e1dc5a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ScheduleOfIncomeTaxExpenseAndEffectiveIncomeTaxRatesLineItems_3aadf7ac-dd67-4513-be23-6c15a8cf5a0d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_ade80046-b2d6-4c68-ba9d-74108e1dc5a9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REVENUESDISAGGREGATIONOFREVENUEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REVENUESDISAGGREGATIONOFREVENUEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REVENUESDISAGGREGATIONOFREVENUEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_7429f528-3204-4dff-9876-5ebf378e7f45" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:to="loc_srt_ConsolidationItemsAxis_7429f528-3204-4dff-9876-5ebf378e7f45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_7429f528-3204-4dff-9876-5ebf378e7f45_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_7429f528-3204-4dff-9876-5ebf378e7f45" xlink:to="loc_srt_ConsolidationItemsDomain_7429f528-3204-4dff-9876-5ebf378e7f45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_ca4b135b-9bb6-44ff-908e-ff404756c111" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_7429f528-3204-4dff-9876-5ebf378e7f45" xlink:to="loc_srt_ConsolidationItemsDomain_ca4b135b-9bb6-44ff-908e-ff404756c111" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_19ce3df8-2db9-4c96-95e6-491ce3357943" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_ca4b135b-9bb6-44ff-908e-ff404756c111" xlink:to="loc_us-gaap_OperatingSegmentsMember_19ce3df8-2db9-4c96-95e6-491ce3357943" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationEliminationsMember_88ee2692-fea3-4e6b-9fe2-4a461fbf3349" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationEliminationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_ca4b135b-9bb6-44ff-908e-ff404756c111" xlink:to="loc_srt_ConsolidationEliminationsMember_88ee2692-fea3-4e6b-9fe2-4a461fbf3349" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11" xlink:to="loc_us-gaap_SegmentDomain_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_dad2f86a-90c6-4d44-94cc-9a918a1c7971" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_78aaf3c5-c3b7-4e8f-a6f4-ebffa06d0a11" xlink:to="loc_us-gaap_SegmentDomain_dad2f86a-90c6-4d44-94cc-9a918a1c7971" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCaliforniaMember_bc288145-9ba1-4f99-b1bc-ca2ee15980ea" xlink:href="sre-20240630.xsd#sre_SempraCaliforniaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dad2f86a-90c6-4d44-94cc-9a918a1c7971" xlink:to="loc_sre_SempraCaliforniaMember_bc288145-9ba1-4f99-b1bc-ca2ee15980ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_77a1067a-52f6-4075-aa30-749d8126ecb2" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_dad2f86a-90c6-4d44-94cc-9a918a1c7971" xlink:to="loc_sre_SempraInfrastructureMember_77a1067a-52f6-4075-aa30-749d8126ecb2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_43f6283b-11b0-45b0-bd35-9b9f282ea0f3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:to="loc_srt_ProductOrServiceAxis_43f6283b-11b0-45b0-bd35-9b9f282ea0f3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_43f6283b-11b0-45b0-bd35-9b9f282ea0f3_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_43f6283b-11b0-45b0-bd35-9b9f282ea0f3" xlink:to="loc_srt_ProductsAndServicesDomain_43f6283b-11b0-45b0-bd35-9b9f282ea0f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_43f6283b-11b0-45b0-bd35-9b9f282ea0f3" xlink:to="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_UtilitiesServiceLineMember_39059a67-b4d6-4727-a460-2c46ec76f241" xlink:href="sre-20240630.xsd#sre_UtilitiesServiceLineMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:to="loc_sre_UtilitiesServiceLineMember_39059a67-b4d6-4727-a460-2c46ec76f241" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnergyRelatedBusinessesMember_21a4d6db-121d-4a87-adbf-c2609de740f2" xlink:href="sre-20240630.xsd#sre_EnergyRelatedBusinessesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:to="loc_sre_EnergyRelatedBusinessesMember_21a4d6db-121d-4a87-adbf-c2609de740f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NaturalGasGatheringTransportationMarketingAndProcessingMember_f98ee39f-a02f-40f6-9b3c-f6f304fc4f9c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NaturalGasGatheringTransportationMarketingAndProcessingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:to="loc_us-gaap_NaturalGasGatheringTransportationMarketingAndProcessingMember_f98ee39f-a02f-40f6-9b3c-f6f304fc4f9c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ElectricityMember_b4dfb733-01a3-4c9c-aab4-92893730dcf4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ElectricityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_707db185-f3d9-49c5-8d0e-14c0375ad3d0" xlink:to="loc_us-gaap_ElectricityMember_b4dfb733-01a3-4c9c-aab4-92893730dcf4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_7325052e-8483-4622-ac6d-5cc8142bf7d4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_ca20b490-9893-4d08-95fb-92f3aee39507" xlink:to="loc_dei_LegalEntityAxis_7325052e-8483-4622-ac6d-5cc8142bf7d4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_7325052e-8483-4622-ac6d-5cc8142bf7d4_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_7325052e-8483-4622-ac6d-5cc8142bf7d4" xlink:to="loc_dei_EntityDomain_7325052e-8483-4622-ac6d-5cc8142bf7d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_79c90cf8-b588-411f-bcde-10e566e43d50" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_7325052e-8483-4622-ac6d-5cc8142bf7d4" xlink:to="loc_dei_EntityDomain_79c90cf8-b588-411f-bcde-10e566e43d50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_528587d1-bd7d-41be-9033-ac0071f406e3" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_79c90cf8-b588-411f-bcde-10e566e43d50" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_528587d1-bd7d-41be-9033-ac0071f406e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_36295c9f-d832-4a4e-8f28-09cc02404386" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_79c90cf8-b588-411f-bcde-10e566e43d50" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_36295c9f-d832-4a4e-8f28-09cc02404386" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_55d839c1-baf0-49a2-801b-4ae00b4a00b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_55d839c1-baf0-49a2-801b-4ae00b4a00b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_UtilitiesRegulatoryRevenue_25238ccf-e9c8-4595-9376-772beef03148" xlink:href="sre-20240630.xsd#sre_UtilitiesRegulatoryRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:to="loc_sre_UtilitiesRegulatoryRevenue_25238ccf-e9c8-4595-9376-772beef03148" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_0d57e34e-85a4-47fa-918e-93373cb0366f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:to="loc_us-gaap_OtherIncome_0d57e34e-85a4-47fa-918e-93373cb0366f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_17d2300c-be11-411a-bb83-deb401b472c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedAndUnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_b15345f8-dc26-4c51-96aa-b90dfa646f1c" xlink:to="loc_us-gaap_RegulatedAndUnregulatedOperatingRevenue_17d2300c-be11-411a-bb83-deb401b472c6" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REVENUESPERFORMANCEOBLIGATIONSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REVENUESPERFORMANCEOBLIGATIONSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REVENUESPERFORMANCEOBLIGATIONSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_d339e727-d6e8-4a3d-8e34-3722eb35217d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_d339e727-d6e8-4a3d-8e34-3722eb35217d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:to="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fe078004-f6c9-43d4-b152-1dc69e49d7fc_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:to="loc_dei_EntityDomain_fe078004-f6c9-43d4-b152-1dc69e49d7fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:to="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_57df08f1-c683-44d4-aa81-678de7dba949" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_57df08f1-c683-44d4-aa81-678de7dba949" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_53a9525c-7f32-43b7-b48c-2292b510eda1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_53a9525c-7f32-43b7-b48c-2292b510eda1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_f511fed0-1c74-4334-b0fc-802f730b8030" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_f511fed0-1c74-4334-b0fc-802f730b8030" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REVENUESPERFORMANCEOBLIGATIONSDetails_1" xlink:type="simple" xlink:href="sre-20240630.xsd#REVENUESPERFORMANCEOBLIGATIONSDetails_1"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REVENUESPERFORMANCEOBLIGATIONSDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_e1798bc7-e0f7-4ff4-8944-cb4d663b843d" xlink:to="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_fe078004-f6c9-43d4-b152-1dc69e49d7fc_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:to="loc_dei_EntityDomain_fe078004-f6c9-43d4-b152-1dc69e49d7fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_fe078004-f6c9-43d4-b152-1dc69e49d7fc" xlink:to="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_57df08f1-c683-44d4-aa81-678de7dba949" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_02c2332d-c5a9-4df8-acb6-9b406de88b0c" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_57df08f1-c683-44d4-aa81-678de7dba949" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_53a9525c-7f32-43b7-b48c-2292b510eda1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_53a9525c-7f32-43b7-b48c-2292b510eda1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_f511fed0-1c74-4334-b0fc-802f730b8030" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_c6f3bcdc-6eb3-4dd8-af3e-cd9d2580e33b" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_f511fed0-1c74-4334-b0fc-802f730b8030" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REVENUESCONTRACTLIABILITIESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REVENUESCONTRACTLIABILITIESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REVENUESCONTRACTLIABILITIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractwithCustomerAssetandLiabilityLineItems_d0815954-bd99-465e-8fd4-9cd505fb1b61" xlink:href="sre-20240630.xsd#sre_ContractwithCustomerAssetandLiabilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractwithCustomerAssetandLiabilityTable_d07444ad-5c45-4e78-a41a-7011ff7241f4" xlink:href="sre-20240630.xsd#sre_ContractwithCustomerAssetandLiabilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_ContractwithCustomerAssetandLiabilityLineItems_d0815954-bd99-465e-8fd4-9cd505fb1b61" xlink:to="loc_sre_ContractwithCustomerAssetandLiabilityTable_d07444ad-5c45-4e78-a41a-7011ff7241f4" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_8da9f164-4312-4af6-a965-6e5507fa7146" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ContractwithCustomerAssetandLiabilityTable_d07444ad-5c45-4e78-a41a-7011ff7241f4" xlink:to="loc_dei_LegalEntityAxis_8da9f164-4312-4af6-a965-6e5507fa7146" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_8da9f164-4312-4af6-a965-6e5507fa7146_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_8da9f164-4312-4af6-a965-6e5507fa7146" xlink:to="loc_dei_EntityDomain_8da9f164-4312-4af6-a965-6e5507fa7146_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d8e06432-47b1-434f-b417-0d9a2f418455" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_8da9f164-4312-4af6-a965-6e5507fa7146" xlink:to="loc_dei_EntityDomain_d8e06432-47b1-434f-b417-0d9a2f418455" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_25aa26b0-e0f0-4dd2-bab4-bbc6da07cf55" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_d8e06432-47b1-434f-b417-0d9a2f418455" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_25aa26b0-e0f0-4dd2-bab4-bbc6da07cf55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_771f0775-4c36-4f2a-aea0-646cfdc0b630" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ContractwithCustomerAssetandLiabilityTable_d07444ad-5c45-4e78-a41a-7011ff7241f4" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_771f0775-4c36-4f2a-aea0-646cfdc0b630" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_771f0775-4c36-4f2a-aea0-646cfdc0b630_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_771f0775-4c36-4f2a-aea0-646cfdc0b630" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_771f0775-4c36-4f2a-aea0-646cfdc0b630_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_b4802cdf-dd4d-42cf-ae50-54cbd4d7b589" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_771f0775-4c36-4f2a-aea0-646cfdc0b630" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_b4802cdf-dd4d-42cf-ae50-54cbd4d7b589" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_9d10cf6c-ef4d-42f1-8750-dadb6d604186" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_b4802cdf-dd4d-42cf-ae50-54cbd4d7b589" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_9d10cf6c-ef4d-42f1-8750-dadb6d604186" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DeferredCreditsandOtherMember_99604207-9f5e-490e-83fb-9d5a2bef5baa" xlink:href="sre-20240630.xsd#sre_DeferredCreditsandOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_b4802cdf-dd4d-42cf-ae50-54cbd4d7b589" xlink:to="loc_sre_DeferredCreditsandOtherMember_99604207-9f5e-490e-83fb-9d5a2bef5baa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractwithCustomerLiabilityRollForward_b63d9d92-0151-4e06-a5c7-2776c21d190f" xlink:href="sre-20240630.xsd#sre_ContractwithCustomerLiabilityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ContractwithCustomerAssetandLiabilityLineItems_d0815954-bd99-465e-8fd4-9cd505fb1b61" xlink:to="loc_sre_ContractwithCustomerLiabilityRollForward_b63d9d92-0151-4e06-a5c7-2776c21d190f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_a1357d74-9a87-4d69-9e27-c961d6981242" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ContractwithCustomerLiabilityRollForward_b63d9d92-0151-4e06-a5c7-2776c21d190f" xlink:to="loc_us-gaap_ContractWithCustomerLiability_a1357d74-9a87-4d69-9e27-c961d6981242" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_fce3975b-b181-4bd2-be5c-6632ebd98e4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ContractwithCustomerLiabilityRollForward_b63d9d92-0151-4e06-a5c7-2776c21d190f" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_fce3975b-b181-4bd2-be5c-6632ebd98e4c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractWithCustomerAdvancePaymentsReceived_4b6f2365-430d-468d-8743-18493d6c8af8" xlink:href="sre-20240630.xsd#sre_ContractWithCustomerAdvancePaymentsReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ContractwithCustomerLiabilityRollForward_b63d9d92-0151-4e06-a5c7-2776c21d190f" xlink:to="loc_sre_ContractWithCustomerAdvancePaymentsReceived_4b6f2365-430d-468d-8743-18493d6c8af8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_d5bd8c2d-aa76-46ba-a578-c15cdea96ad3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiability"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REVENUESRECEIVABLESFROMREVENUESFROMCONTRACTSWITHCUSTOMERSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REVENUESRECEIVABLESFROMREVENUESFROMCONTRACTSWITHCUSTOMERSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REVENUESRECEIVABLESFROMREVENUESFROMCONTRACTSWITHCUSTOMERSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractwithCustomerAssetLineItems_fe9535f5-d966-4899-8a8a-61f6ca6a9828" xlink:href="sre-20240630.xsd#sre_ContractwithCustomerAssetLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContractwithCustomerAssetTable_6405f38a-1595-4de7-9895-0d70f4fd2ffd" xlink:href="sre-20240630.xsd#sre_ContractwithCustomerAssetTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_ContractwithCustomerAssetLineItems_fe9535f5-d966-4899-8a8a-61f6ca6a9828" xlink:to="loc_sre_ContractwithCustomerAssetTable_6405f38a-1595-4de7-9895-0d70f4fd2ffd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_96f066fc-f5a0-4001-8288-e5ad852ce101" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ContractwithCustomerAssetTable_6405f38a-1595-4de7-9895-0d70f4fd2ffd" xlink:to="loc_dei_LegalEntityAxis_96f066fc-f5a0-4001-8288-e5ad852ce101" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_96f066fc-f5a0-4001-8288-e5ad852ce101_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_96f066fc-f5a0-4001-8288-e5ad852ce101" xlink:to="loc_dei_EntityDomain_96f066fc-f5a0-4001-8288-e5ad852ce101_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6f68340b-ec6e-4f38-8fee-289025c68f53" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_96f066fc-f5a0-4001-8288-e5ad852ce101" xlink:to="loc_dei_EntityDomain_6f68340b-ec6e-4f38-8fee-289025c68f53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_83cebe67-baa8-4707-a5ca-116c5423db11" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6f68340b-ec6e-4f38-8fee-289025c68f53" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_83cebe67-baa8-4707-a5ca-116c5423db11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ed0f2be5-0dcf-4d51-858c-c268abeb7839" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_6f68340b-ec6e-4f38-8fee-289025c68f53" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ed0f2be5-0dcf-4d51-858c-c268abeb7839" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_e1ddde0c-87d6-4121-873a-04d9e5434f4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ContractwithCustomerAssetTable_6405f38a-1595-4de7-9895-0d70f4fd2ffd" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_e1ddde0c-87d6-4121-873a-04d9e5434f4d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_e1ddde0c-87d6-4121-873a-04d9e5434f4d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_e1ddde0c-87d6-4121-873a-04d9e5434f4d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_e1ddde0c-87d6-4121-873a-04d9e5434f4d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_e1ddde0c-87d6-4121-873a-04d9e5434f4d" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeAccountsReceivableMember_cbc5763b-aaeb-47cc-a8a7-8ca14a1f941d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TradeAccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:to="loc_us-gaap_TradeAccountsReceivableMember_cbc5763b-aaeb-47cc-a8a7-8ca14a1f941d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AccountsReceivableOtherNetMember_0aca4a7d-1e94-4510-ab51-86339ec86c53" xlink:href="sre-20240630.xsd#sre_AccountsReceivableOtherNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:to="loc_sre_AccountsReceivableOtherNetMember_0aca4a7d-1e94-4510-ab51-86339ec86c53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DueFromRelatedPartiesCurrentMember_77980a31-8fd7-461b-acbe-5a612ac4e3d6" xlink:href="sre-20240630.xsd#sre_DueFromRelatedPartiesCurrentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:to="loc_sre_DueFromRelatedPartiesCurrentMember_77980a31-8fd7-461b-acbe-5a612ac4e3d6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_01a1da70-8a4e-43ab-9a0d-d0be3b049780" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_df4881d9-b3cb-435f-b926-73d03fa3d5ce" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_01a1da70-8a4e-43ab-9a0d-d0be3b049780" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilityAxis_5a699f54-2397-438b-b200-88c215f90192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ContractwithCustomerAssetTable_6405f38a-1595-4de7-9895-0d70f4fd2ffd" xlink:to="loc_us-gaap_PublicUtilityAxis_5a699f54-2397-438b-b200-88c215f90192" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_5a699f54-2397-438b-b200-88c215f90192_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilityAxis_5a699f54-2397-438b-b200-88c215f90192" xlink:to="loc_us-gaap_UtilityPlantDomain_5a699f54-2397-438b-b200-88c215f90192_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UtilityPlantDomain_997237d6-fe41-4b81-94cc-a927eed8ff07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilityAxis_5a699f54-2397-438b-b200-88c215f90192" xlink:to="loc_us-gaap_UtilityPlantDomain_997237d6-fe41-4b81-94cc-a927eed8ff07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommunityChoiceAggregationMember_fcae81d7-7995-4ee2-b763-c6544b2fd04d" xlink:href="sre-20240630.xsd#sre_CommunityChoiceAggregationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_UtilityPlantDomain_997237d6-fe41-4b81-94cc-a927eed8ff07" xlink:to="loc_sre_CommunityChoiceAggregationMember_fcae81d7-7995-4ee2-b763-c6544b2fd04d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNet_26d4bc22-d9c8-4857-85b7-bb4d3f926833" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerAssetNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ContractwithCustomerAssetLineItems_fe9535f5-d966-4899-8a8a-61f6ca6a9828" xlink:to="loc_us-gaap_ContractWithCustomerAssetNet_26d4bc22-d9c8-4857-85b7-bb4d3f926833" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REGULATORYMATTERSREGULATORYACCOUNTSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REGULATORYMATTERSREGULATORYACCOUNTSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REGULATORYMATTERSREGULATORYACCOUNTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesLineItems_fa3e0809-2b34-4675-98db-f28c03c71e32" xlink:href="sre-20240630.xsd#sre_ScheduleOfNetRegulatoryAssetsLiabilitiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable_f61f2164-0c3e-419e-9bf7-19e8f68fdd5c" xlink:href="sre-20240630.xsd#sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesLineItems_fa3e0809-2b34-4675-98db-f28c03c71e32" xlink:to="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable_f61f2164-0c3e-419e-9bf7-19e8f68fdd5c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_3747ab53-a2d2-43f5-a347-46c5461a154a" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable_f61f2164-0c3e-419e-9bf7-19e8f68fdd5c" xlink:to="loc_dei_LegalEntityAxis_3747ab53-a2d2-43f5-a347-46c5461a154a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_3747ab53-a2d2-43f5-a347-46c5461a154a_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3747ab53-a2d2-43f5-a347-46c5461a154a" xlink:to="loc_dei_EntityDomain_3747ab53-a2d2-43f5-a347-46c5461a154a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_941c3ff0-46a5-4d9d-a0cf-872a029b262c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3747ab53-a2d2-43f5-a347-46c5461a154a" xlink:to="loc_dei_EntityDomain_941c3ff0-46a5-4d9d-a0cf-872a029b262c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_021a80ed-6e39-4a27-9860-3f56713a6389" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_941c3ff0-46a5-4d9d-a0cf-872a029b262c" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_021a80ed-6e39-4a27-9860-3f56713a6389" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_5339c243-22e1-4965-ae41-47610ca4ca6c" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_941c3ff0-46a5-4d9d-a0cf-872a029b262c" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_5339c243-22e1-4965-ae41-47610ca4ca6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetAxis_caf2bfae-cfa7-424c-a640-bbb955d4e1f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable_f61f2164-0c3e-419e-9bf7-19e8f68fdd5c" xlink:to="loc_us-gaap_RegulatoryAssetAxis_caf2bfae-cfa7-424c-a640-bbb955d4e1f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetDomain_caf2bfae-cfa7-424c-a640-bbb955d4e1f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryAssetAxis_caf2bfae-cfa7-424c-a640-bbb955d4e1f9" xlink:to="loc_us-gaap_RegulatoryAssetDomain_caf2bfae-cfa7-424c-a640-bbb955d4e1f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAssetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryAssetAxis_caf2bfae-cfa7-424c-a640-bbb955d4e1f9" xlink:to="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredDerivativeGainLossMember_71fd63ac-c548-472b-b249-f17249ee68ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredDerivativeGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_us-gaap_DeferredDerivativeGainLossMember_71fd63ac-c548-472b-b249-f17249ee68ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxChargesMember_3fca3371-c778-404b-b055-0828b61993ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxChargesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_us-gaap_DeferredIncomeTaxChargesMember_3fca3371-c778-404b-b055-0828b61993ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementPlansCostsMember_d4983dbf-0101-47b4-9e89-fe854f2d6f69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementPlansCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_us-gaap_PensionAndOtherPostretirementPlansCostsMember_d4983dbf-0101-47b4-9e89-fe854f2d6f69" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EmployeeBenefitCostsMember_09c1458c-4219-4071-b5d1-e3d44febc096" xlink:href="sre-20240630.xsd#sre_EmployeeBenefitCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_EmployeeBenefitCostsMember_09c1458c-4219-4071-b5d1-e3d44febc096" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EnvironmentalRestorationCostsMember_9db6725a-277f-46df-af41-52a1f8a07eea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EnvironmentalRestorationCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_us-gaap_EnvironmentalRestorationCostsMember_9db6725a-277f-46df-af41-52a1f8a07eea" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SunrisePowerlinkFireMitigationMember_ecee56bd-13e7-4711-9ff4-87316e8a7ad4" xlink:href="sre-20240630.xsd#sre_SunrisePowerlinkFireMitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_SunrisePowerlinkFireMitigationMember_ecee56bd-13e7-4711-9ff4-87316e8a7ad4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember_03ee99d4-731d-4e8a-9284-25ec5566585d" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember_03ee99d4-731d-4e8a-9284-25ec5566585d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsSafetyandReliabilityMember_1be7b286-140c-44fe-9695-3da9c572bfe1" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsSafetyandReliabilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_RegulatoryBalancingAccountsSafetyandReliabilityMember_1be7b286-140c-44fe-9695-3da9c572bfe1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsWildfireMitigationPlanMember_bec719e4-c6b7-42c8-8959-daa694a33d03" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsWildfireMitigationPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_RegulatoryBalancingAccountsWildfireMitigationPlanMember_bec719e4-c6b7-42c8-8959-daa694a33d03" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsLiabilityInsurancePremiumMember_8877c936-54e1-4a08-b010-7aa11fe07272" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsLiabilityInsurancePremiumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_RegulatoryBalancingAccountsLiabilityInsurancePremiumMember_8877c936-54e1-4a08-b010-7aa11fe07272" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsOtherMember_411938af-a28e-4a18-a483-7fe3f7178af3" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_sre_RegulatoryBalancingAccountsOtherMember_411938af-a28e-4a18-a483-7fe3f7178af3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRegulatoryAssetsLiabilitiesMember_65d096bd-c1d7-4a83-aaa8-b4f076ce322a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherRegulatoryAssetsLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAssetDomain_03ff1ef5-e195-4ef2-b4ce-69d3271b650a" xlink:to="loc_us-gaap_OtherRegulatoryAssetsLiabilitiesMember_65d096bd-c1d7-4a83-aaa8-b4f076ce322a" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityAxis_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesTable_f61f2164-0c3e-419e-9bf7-19e8f68fdd5c" xlink:to="loc_us-gaap_RegulatoryLiabilityAxis_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityDomain_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryLiabilityAxis_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b" xlink:to="loc_us-gaap_RegulatoryLiabilityDomain_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryLiabilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryLiabilityAxis_b8aff84f-1cb6-40ce-ab55-eaf90633bb4b" xlink:to="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PensionAndOtherPostretirementPlansCostsMember_6938a54f-7517-445b-bffe-8e217c76f876" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PensionAndOtherPostretirementPlansCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_us-gaap_PensionAndOtherPostretirementPlansCostsMember_6938a54f-7517-445b-bffe-8e217c76f876" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetRetirementObligationCostsMember_dc8fa816-4e65-412e-9238-2b6ef5337606" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetRetirementObligationCostsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_us-gaap_AssetRetirementObligationCostsMember_dc8fa816-4e65-412e-9238-2b6ef5337606" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsCommoditiesElectricityMember_cd2faa13-3a8f-4699-8e9a-e39a40e64b09" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsCommoditiesElectricityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_sre_RegulatoryBalancingAccountsCommoditiesElectricityMember_cd2faa13-3a8f-4699-8e9a-e39a40e64b09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember_4050616a-ba29-4fa4-b33a-cefd28426491" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_sre_RegulatoryBalancingAccountsCommoditiesGasandTransportationMember_4050616a-ba29-4fa4-b33a-cefd28426491" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsPublicPurposeProgramsMember_1907c527-7a81-47b9-aa1d-48bb2aed3f1f" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsPublicPurposeProgramsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_sre_RegulatoryBalancingAccountsPublicPurposeProgramsMember_1907c527-7a81-47b9-aa1d-48bb2aed3f1f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsOtherMember_4198901a-bb6f-4ec7-a5dd-335577460656" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_sre_RegulatoryBalancingAccountsOtherMember_4198901a-bb6f-4ec7-a5dd-335577460656" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRegulatoryAssetsLiabilitiesMember_94b0483a-ac81-4711-900b-9eed30dea7ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherRegulatoryAssetsLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryLiabilityDomain_966fb819-f529-4c4f-895a-045ab44625c7" xlink:to="loc_us-gaap_OtherRegulatoryAssetsLiabilitiesMember_94b0483a-ac81-4711-900b-9eed30dea7ad" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetRegulatoryAssets_47833642-0997-4a61-a2e5-e834ecae2c1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetRegulatoryAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesLineItems_fa3e0809-2b34-4675-98db-f28c03c71e32" xlink:to="loc_us-gaap_NetRegulatoryAssets_47833642-0997-4a61-a2e5-e834ecae2c1c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RegulatoryBalancingAccountsUndercollectedNoncurrent_c406b614-f90b-4c29-9d35-54f863949c42" xlink:href="sre-20240630.xsd#sre_RegulatoryBalancingAccountsUndercollectedNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_ScheduleOfNetRegulatoryAssetsLiabilitiesLineItems_fa3e0809-2b34-4675-98db-f28c03c71e32" xlink:to="loc_sre_RegulatoryBalancingAccountsUndercollectedNoncurrent_c406b614-f90b-4c29-9d35-54f863949c42" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REGULATORYMATTERSCPUCGRCNarrativeDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REGULATORYMATTERSCPUCGRCNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REGULATORYMATTERSCPUCGRCNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:href="sre-20240630.xsd#sre_ScheduleOfGeneralRateCaseTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCasePlanAxis_1b11cc97-4cc1-442b-b1b1-d53e2b54991c" xlink:href="sre-20240630.xsd#sre_GeneralRateCasePlanAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_sre_GeneralRateCasePlanAxis_1b11cc97-4cc1-442b-b1b1-d53e2b54991c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCasePlanDomain_1b11cc97-4cc1-442b-b1b1-d53e2b54991c_default" xlink:href="sre-20240630.xsd#sre_GeneralRateCasePlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_sre_GeneralRateCasePlanAxis_1b11cc97-4cc1-442b-b1b1-d53e2b54991c" xlink:to="loc_sre_GeneralRateCasePlanDomain_1b11cc97-4cc1-442b-b1b1-d53e2b54991c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCasePlanDomain_acfdc9d1-0c99-4c38-9b95-00285c673402" xlink:href="sre-20240630.xsd#sre_GeneralRateCasePlanDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_sre_GeneralRateCasePlanAxis_1b11cc97-4cc1-442b-b1b1-d53e2b54991c" xlink:to="loc_sre_GeneralRateCasePlanDomain_acfdc9d1-0c99-4c38-9b95-00285c673402" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_A2024GRC2024RequirementMember_d4b4f146-3abd-4ece-84f7-53e1e5ca6134" xlink:href="sre-20240630.xsd#sre_A2024GRC2024RequirementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCasePlanDomain_acfdc9d1-0c99-4c38-9b95-00285c673402" xlink:to="loc_sre_A2024GRC2024RequirementMember_d4b4f146-3abd-4ece-84f7-53e1e5ca6134" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_4c989888-7da5-4677-81f9-c460c6bd3471" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_dei_LegalEntityAxis_4c989888-7da5-4677-81f9-c460c6bd3471" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4c989888-7da5-4677-81f9-c460c6bd3471_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_4c989888-7da5-4677-81f9-c460c6bd3471" xlink:to="loc_dei_EntityDomain_4c989888-7da5-4677-81f9-c460c6bd3471_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_5dc860d4-d572-4a7c-8b70-f10d6b1ba8c3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_4c989888-7da5-4677-81f9-c460c6bd3471" xlink:to="loc_dei_EntityDomain_5dc860d4-d572-4a7c-8b70-f10d6b1ba8c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_23df2bb0-a98c-444c-b472-9e6619d65173" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5dc860d4-d572-4a7c-8b70-f10d6b1ba8c3" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_23df2bb0-a98c-444c-b472-9e6619d65173" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_896e5eae-f5f3-4704-98ec-292f0158fb47" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_5dc860d4-d572-4a7c-8b70-f10d6b1ba8c3" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_896e5eae-f5f3-4704-98ec-292f0158fb47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesRegulatoryProceedingAxis_f17c71c0-61b3-4961-9ee2-5b59c0773142" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_us-gaap_PublicUtilitiesRegulatoryProceedingAxis_f17c71c0-61b3-4961-9ee2-5b59c0773142" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesRegulatoryProceedingDomain_f17c71c0-61b3-4961-9ee2-5b59c0773142_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PublicUtilitiesRegulatoryProceedingAxis_f17c71c0-61b3-4961-9ee2-5b59c0773142" xlink:to="loc_us-gaap_PublicUtilitiesRegulatoryProceedingDomain_f17c71c0-61b3-4961-9ee2-5b59c0773142_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesRegulatoryProceedingDomain_6e5a8212-ea5d-4b08-bc4d-2960f108eaf4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesRegulatoryProceedingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PublicUtilitiesRegulatoryProceedingAxis_f17c71c0-61b3-4961-9ee2-5b59c0773142" xlink:to="loc_us-gaap_PublicUtilitiesRegulatoryProceedingDomain_6e5a8212-ea5d-4b08-bc4d-2960f108eaf4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseMember_9b93afc4-3bee-4440-8a7b-c13926305a02" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesRegulatoryProceedingDomain_6e5a8212-ea5d-4b08-bc4d-2960f108eaf4" xlink:to="loc_sre_GeneralRateCaseMember_9b93afc4-3bee-4440-8a7b-c13926305a02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_srt_RangeAxis_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3" xlink:to="loc_srt_RangeMember_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_8989dc3e-e89d-4d0a-98b0-27c535aad0d1" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_e1f4f316-ff98-4e40-ab2a-b56dbdf326f3" xlink:to="loc_srt_RangeMember_8989dc3e-e89d-4d0a-98b0-27c535aad0d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_f59dcef1-a0b9-458d-9d37-dd39c81e2a56" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8989dc3e-e89d-4d0a-98b0-27c535aad0d1" xlink:to="loc_srt_MinimumMember_f59dcef1-a0b9-458d-9d37-dd39c81e2a56" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_6c0db5e8-87d4-4d2b-8447-d2c1703dbfe7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_8989dc3e-e89d-4d0a-98b0-27c535aad0d1" xlink:to="loc_srt_MaximumMember_6c0db5e8-87d4-4d2b-8447-d2c1703dbfe7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_d0c1861f-c323-43a7-b91e-5861535ebf62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_90f7d6d1-5ffe-4164-8d6c-1ed9e939e4ca" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_d0c1861f-c323-43a7-b91e-5861535ebf62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_2916f5da-5333-4de9-851a-d9334c28c3c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_d0c1861f-c323-43a7-b91e-5861535ebf62" xlink:to="loc_us-gaap_SubsequentEventMember_2916f5da-5333-4de9-851a-d9334c28c3c2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_fbfe9c94-2332-4a88-ae1e-85eb42ff5865" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_ScheduleOfGeneralRateCaseTable_1cccc546-1f41-465b-a387-f4e05d9220db" xlink:to="loc_srt_StatementScenarioAxis_fbfe9c94-2332-4a88-ae1e-85eb42ff5865" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_fbfe9c94-2332-4a88-ae1e-85eb42ff5865_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_fbfe9c94-2332-4a88-ae1e-85eb42ff5865" xlink:to="loc_srt_ScenarioUnspecifiedDomain_fbfe9c94-2332-4a88-ae1e-85eb42ff5865_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_7cc28f9c-e10a-419b-96da-d2482a8b7bf5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_fbfe9c94-2332-4a88-ae1e-85eb42ff5865" xlink:to="loc_srt_ScenarioUnspecifiedDomain_7cc28f9c-e10a-419b-96da-d2482a8b7bf5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_de8521df-a270-4860-871b-efbaf4d9815a" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_7cc28f9c-e10a-419b-96da-d2482a8b7bf5" xlink:to="loc_srt_ScenarioForecastMember_de8521df-a270-4860-871b-efbaf4d9815a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseRequestedRevenueRequirement_daf11e35-896b-41bb-be09-9b0d87db2f77" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseRequestedRevenueRequirement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_GeneralRateCaseRequestedRevenueRequirement_daf11e35-896b-41bb-be09-9b0d87db2f77" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseProposedRevenueRequirementChangesPercentage_09e2ebb0-cf12-422b-838a-2a5c219e52be" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseProposedRevenueRequirementChangesPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_GeneralRateCaseProposedRevenueRequirementChangesPercentage_09e2ebb0-cf12-422b-838a-2a5c219e52be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseRequestedReviewAndRecoveryOfWildfireMitigationPlanCosts_2f6b49d6-4325-4e08-8488-243ec54d7b7c" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseRequestedReviewAndRecoveryOfWildfireMitigationPlanCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_GeneralRateCaseRequestedReviewAndRecoveryOfWildfireMitigationPlanCosts_2f6b49d6-4325-4e08-8488-243ec54d7b7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GeneralRateCaseExpectedRecoveryOfWildlifeMitigationPlanCosts_4cd5609e-cacb-45fe-8a99-9c5fac9dc3a5" xlink:href="sre-20240630.xsd#sre_GeneralRateCaseExpectedRecoveryOfWildlifeMitigationPlanCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_GeneralRateCaseExpectedRecoveryOfWildlifeMitigationPlanCosts_4cd5609e-cacb-45fe-8a99-9c5fac9dc3a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfCPUCRequests_4f679ac1-2253-440d-80e8-3396c7c79b85" xlink:href="sre-20240630.xsd#sre_NumberOfCPUCRequests"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_GeneralRateCaseLineItems_b1855d94-42f1-45fb-bedd-7abbb4a4a222" xlink:to="loc_sre_NumberOfCPUCRequests_4f679ac1-2253-440d-80e8-3396c7c79b85" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REGULATORYMATTERSCOSTOFCAPITALDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REGULATORYMATTERSCOSTOFCAPITALDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REGULATORYMATTERSCOSTOFCAPITALDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:to="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_08ea4a52-c347-45b3-8504-bd4bcd4333d0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_dei_LegalEntityAxis_08ea4a52-c347-45b3-8504-bd4bcd4333d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_08ea4a52-c347-45b3-8504-bd4bcd4333d0_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_08ea4a52-c347-45b3-8504-bd4bcd4333d0" xlink:to="loc_dei_EntityDomain_08ea4a52-c347-45b3-8504-bd4bcd4333d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_cabe038f-1af5-49c6-aed6-6f28613a3575" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_08ea4a52-c347-45b3-8504-bd4bcd4333d0" xlink:to="loc_dei_EntityDomain_cabe038f-1af5-49c6-aed6-6f28613a3575" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_6f670e07-96c2-42f5-8921-1d9440f14e61" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_cabe038f-1af5-49c6-aed6-6f28613a3575" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_6f670e07-96c2-42f5-8921-1d9440f14e61" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_d8525326-0f60-4240-be91-0b01482d677b" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_cabe038f-1af5-49c6-aed6-6f28613a3575" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_d8525326-0f60-4240-be91-0b01482d677b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CapitalStructureCategoryAxis_3cc885e2-43f3-4135-bb01-764e076beaae" xlink:href="sre-20240630.xsd#sre_CapitalStructureCategoryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_sre_CapitalStructureCategoryAxis_3cc885e2-43f3-4135-bb01-764e076beaae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CapitalStructureCategoryDomain_3cc885e2-43f3-4135-bb01-764e076beaae_default" xlink:href="sre-20240630.xsd#sre_CapitalStructureCategoryDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_sre_CapitalStructureCategoryAxis_3cc885e2-43f3-4135-bb01-764e076beaae" xlink:to="loc_sre_CapitalStructureCategoryDomain_3cc885e2-43f3-4135-bb01-764e076beaae_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CapitalStructureCategoryDomain_bea083de-7bda-4a35-a470-402243287247" xlink:href="sre-20240630.xsd#sre_CapitalStructureCategoryDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_sre_CapitalStructureCategoryAxis_3cc885e2-43f3-4135-bb01-764e076beaae" xlink:to="loc_sre_CapitalStructureCategoryDomain_bea083de-7bda-4a35-a470-402243287247" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AuthorizedWeightingMember_446a639a-a040-4d3e-bf4a-6bc32d04ee00" xlink:href="sre-20240630.xsd#sre_AuthorizedWeightingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_CapitalStructureCategoryDomain_bea083de-7bda-4a35-a470-402243287247" xlink:to="loc_sre_AuthorizedWeightingMember_446a639a-a040-4d3e-bf4a-6bc32d04ee00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ReturnOnRateBaseMember_c5390d04-f68e-4666-bc7e-072f86441fac" xlink:href="sre-20240630.xsd#sre_ReturnOnRateBaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_CapitalStructureCategoryDomain_bea083de-7bda-4a35-a470-402243287247" xlink:to="loc_sre_ReturnOnRateBaseMember_c5390d04-f68e-4666-bc7e-072f86441fac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_WeightedReturnOnRateBaseMember_96823318-2e05-4be1-97e3-2fd31b3dcd83" xlink:href="sre-20240630.xsd#sre_WeightedReturnOnRateBaseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_CapitalStructureCategoryDomain_bea083de-7bda-4a35-a470-402243287247" xlink:to="loc_sre_WeightedReturnOnRateBaseMember_96823318-2e05-4be1-97e3-2fd31b3dcd83" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAgencyAxis_b511133b-51b7-4918-8064-797dc2befefa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAgencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_us-gaap_RegulatoryAgencyAxis_b511133b-51b7-4918-8064-797dc2befefa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAgencyDomain_b511133b-51b7-4918-8064-797dc2befefa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAgencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RegulatoryAgencyAxis_b511133b-51b7-4918-8064-797dc2befefa" xlink:to="loc_us-gaap_RegulatoryAgencyDomain_b511133b-51b7-4918-8064-797dc2befefa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatoryAgencyDomain_601bb6bf-60da-49ab-8a8f-5b4d07b25af4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatoryAgencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RegulatoryAgencyAxis_b511133b-51b7-4918-8064-797dc2befefa" xlink:to="loc_us-gaap_RegulatoryAgencyDomain_601bb6bf-60da-49ab-8a8f-5b4d07b25af4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CaliforniaPublicUtilitiesCommissionMember_60d7139d-da78-4681-a8c3-a662c0de4e97" xlink:href="sre-20240630.xsd#sre_CaliforniaPublicUtilitiesCommissionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RegulatoryAgencyDomain_601bb6bf-60da-49ab-8a8f-5b4d07b25af4" xlink:to="loc_sre_CaliforniaPublicUtilitiesCommissionMember_60d7139d-da78-4681-a8c3-a662c0de4e97" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_cc0700d8-9e4e-4726-95f2-31111bc50ac4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_srt_StatementScenarioAxis_cc0700d8-9e4e-4726-95f2-31111bc50ac4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_cc0700d8-9e4e-4726-95f2-31111bc50ac4_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_cc0700d8-9e4e-4726-95f2-31111bc50ac4" xlink:to="loc_srt_ScenarioUnspecifiedDomain_cc0700d8-9e4e-4726-95f2-31111bc50ac4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_7f8e5d16-e42f-4881-b50c-1e57ed7fa849" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_cc0700d8-9e4e-4726-95f2-31111bc50ac4" xlink:to="loc_srt_ScenarioUnspecifiedDomain_7f8e5d16-e42f-4881-b50c-1e57ed7fa849" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_ce8b19f3-9673-47f7-a18b-67a1eaee35c5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_7f8e5d16-e42f-4881-b50c-1e57ed7fa849" xlink:to="loc_srt_ScenarioForecastMember_ce8b19f3-9673-47f7-a18b-67a1eaee35c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_3c477f6e-e50f-4eaa-85c5-8bbe62f13620" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_3c477f6e-e50f-4eaa-85c5-8bbe62f13620" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_3c477f6e-e50f-4eaa-85c5-8bbe62f13620_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3c477f6e-e50f-4eaa-85c5-8bbe62f13620" xlink:to="loc_us-gaap_EquityComponentDomain_3c477f6e-e50f-4eaa-85c5-8bbe62f13620_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_b328ccba-5ada-4c1a-9b00-68bbb6cd5676" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3c477f6e-e50f-4eaa-85c5-8bbe62f13620" xlink:to="loc_us-gaap_EquityComponentDomain_b328ccba-5ada-4c1a-9b00-68bbb6cd5676" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PreferredEquityMember_817e1463-8e90-4a84-95cb-1c529d5a2d98" xlink:href="sre-20240630.xsd#sre_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b328ccba-5ada-4c1a-9b00-68bbb6cd5676" xlink:to="loc_sre_PreferredEquityMember_817e1463-8e90-4a84-95cb-1c529d5a2d98" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CapitalStructureCommonEquityMember_2feef8db-20e1-41d2-9b33-7a12bc148574" xlink:href="sre-20240630.xsd#sre_CapitalStructureCommonEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_b328ccba-5ada-4c1a-9b00-68bbb6cd5676" xlink:to="loc_sre_CapitalStructureCommonEquityMember_2feef8db-20e1-41d2-9b33-7a12bc148574" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_172f4155-8608-41f4-acd9-00695c456de7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_c6b36339-6b15-4d7c-bfa4-bec95e6b7933" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_172f4155-8608-41f4-acd9-00695c456de7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_172f4155-8608-41f4-acd9-00695c456de7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_172f4155-8608-41f4-acd9-00695c456de7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_172f4155-8608-41f4-acd9-00695c456de7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_74359dd8-d03f-457a-9a0e-18ea6d95019c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_172f4155-8608-41f4-acd9-00695c456de7" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_74359dd8-d03f-457a-9a0e-18ea6d95019c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_3e357284-1c3d-4c2c-bd91-cabd1aff51c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_74359dd8-d03f-457a-9a0e-18ea6d95019c" xlink:to="loc_us-gaap_SubsequentEventMember_3e357284-1c3d-4c2c-bd91-cabd1aff51c8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesApprovedDebtCapitalStructurePercentage_6437ad26-ca55-4580-8dff-3ed718de7472" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesApprovedDebtCapitalStructurePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:to="loc_us-gaap_PublicUtilitiesApprovedDebtCapitalStructurePercentage_6437ad26-ca55-4580-8dff-3ed718de7472" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesApprovedReturnOnEquityPercentage_bd28e196-4de5-4f07-aac7-5cbcd2d9b498" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesApprovedReturnOnEquityPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:to="loc_us-gaap_PublicUtilitiesApprovedReturnOnEquityPercentage_bd28e196-4de5-4f07-aac7-5cbcd2d9b498" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CostOfCapitalAuthorizedWeighting_dadf206c-1ec6-4b54-8d08-6e71ccd9ad42" xlink:href="sre-20240630.xsd#sre_CostOfCapitalAuthorizedWeighting"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:to="loc_sre_CostOfCapitalAuthorizedWeighting_dadf206c-1ec6-4b54-8d08-6e71ccd9ad42" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CostOfCapitalAuthorizedReturnOnRateBase_514fc26c-2fef-48cc-a397-ff6811db20d8" xlink:href="sre-20240630.xsd#sre_CostOfCapitalAuthorizedReturnOnRateBase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_4f27079b-8ba5-43fe-8a49-c5152667d69a" xlink:to="loc_sre_CostOfCapitalAuthorizedReturnOnRateBase_514fc26c-2fef-48cc-a397-ff6811db20d8" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/REGULATORYMATTERSFERCRATEMATTERSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#REGULATORYMATTERSFERCRATEMATTERSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/REGULATORYMATTERSFERCRATEMATTERSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_7ee015d5-1964-4a33-a5f9-412f202f32b8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_f9a18121-5051-4f83-86cf-b3f01e23cafb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesGeneralDisclosuresTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_7ee015d5-1964-4a33-a5f9-412f202f32b8" xlink:to="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_f9a18121-5051-4f83-86cf-b3f01e23cafb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_19b0e724-b632-4753-847e-581f406402fb" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresTable_f9a18121-5051-4f83-86cf-b3f01e23cafb" xlink:to="loc_dei_LegalEntityAxis_19b0e724-b632-4753-847e-581f406402fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_19b0e724-b632-4753-847e-581f406402fb_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_19b0e724-b632-4753-847e-581f406402fb" xlink:to="loc_dei_EntityDomain_19b0e724-b632-4753-847e-581f406402fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_eb4f5939-4691-4d14-936f-f032cafa1de3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_19b0e724-b632-4753-847e-581f406402fb" xlink:to="loc_dei_EntityDomain_eb4f5939-4691-4d14-936f-f032cafa1de3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_0834f162-a7a0-423a-8c4f-9865868cf3a7" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_eb4f5939-4691-4d14-936f-f032cafa1de3" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_0834f162-a7a0-423a-8c4f-9865868cf3a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAbove_fa16dc83-6a0e-48d1-af8e-ffdbdda11eff" xlink:href="sre-20240630.xsd#sre_FERCRequirementToMaintainCommonEquityRatioAtOrAbove"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_7ee015d5-1964-4a33-a5f9-412f202f32b8" xlink:to="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAbove_fa16dc83-6a0e-48d1-af8e-ffdbdda11eff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveBase_6bd81cb7-6849-45fc-a37f-ae8fe7d22b3b" xlink:href="sre-20240630.xsd#sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveBase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_7ee015d5-1964-4a33-a5f9-412f202f32b8" xlink:to="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveBase_6bd81cb7-6849-45fc-a37f-ae8fe7d22b3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveAdditionalBasisSpread_1745698b-f9aa-4e56-9957-05f0e6fa576c" xlink:href="sre-20240630.xsd#sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveAdditionalBasisSpread"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PublicUtilitiesGeneralDisclosuresLineItems_7ee015d5-1964-4a33-a5f9-412f202f32b8" xlink:to="loc_sre_FERCRequirementToMaintainCommonEquityRatioAtOrAboveAdditionalBasisSpread_1745698b-f9aa-4e56-9957-05f0e6fa576c" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0577b28d-a6d0-4d88-be54-c1b26406c684" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0577b28d-a6d0-4d88-be54-c1b26406c684" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0577b28d-a6d0-4d88-be54-c1b26406c684_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0577b28d-a6d0-4d88-be54-c1b26406c684" xlink:to="loc_us-gaap_SegmentDomain_0577b28d-a6d0-4d88-be54-c1b26406c684_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_f00ac9e4-b34a-4f4a-8c02-4fb5dbe72667" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0577b28d-a6d0-4d88-be54-c1b26406c684" xlink:to="loc_us-gaap_SegmentDomain_f00ac9e4-b34a-4f4a-8c02-4fb5dbe72667" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraTexasUtilitiesMember_8b054106-cbd7-4138-9239-9fc706177a3a" xlink:href="sre-20240630.xsd#sre_SempraTexasUtilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f00ac9e4-b34a-4f4a-8c02-4fb5dbe72667" xlink:to="loc_sre_SempraTexasUtilitiesMember_8b054106-cbd7-4138-9239-9fc706177a3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_eb5b8c27-973d-4a52-9902-5e60f75ef8fd" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_f00ac9e4-b34a-4f4a-8c02-4fb5dbe72667" xlink:to="loc_sre_SempraInfrastructureMember_eb5b8c27-973d-4a52-9902-5e60f75ef8fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_d828b5b1-466a-49d7-b9d2-d0aefac0856e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_dei_LegalEntityAxis_d828b5b1-466a-49d7-b9d2-d0aefac0856e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_d828b5b1-466a-49d7-b9d2-d0aefac0856e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_d828b5b1-466a-49d7-b9d2-d0aefac0856e" xlink:to="loc_dei_EntityDomain_d828b5b1-466a-49d7-b9d2-d0aefac0856e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_61f80b20-cf35-4f25-bb41-fbba0def7926" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_d828b5b1-466a-49d7-b9d2-d0aefac0856e" xlink:to="loc_dei_EntityDomain_61f80b20-cf35-4f25-bb41-fbba0def7926" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_df5af633-fe8c-40c3-993a-3fdd51d60ec0" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryHoldingsCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_61f80b20-cf35-4f25-bb41-fbba0def7926" xlink:to="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_df5af633-fe8c-40c3-993a-3fdd51d60ec0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraTexasIntermediateHoldingCompanyLLCMember_5a943968-e04a-42cb-baad-26a866f72e71" xlink:href="sre-20240630.xsd#sre_SempraTexasIntermediateHoldingCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_61f80b20-cf35-4f25-bb41-fbba0def7926" xlink:to="loc_sre_SempraTexasIntermediateHoldingCompanyLLCMember_5a943968-e04a-42cb-baad-26a866f72e71" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_7bd45d9e-1b59-4be5-a70c-b60972064815" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_61f80b20-cf35-4f25-bb41-fbba0def7926" xlink:to="loc_sre_SempraInfrastructureMember_7bd45d9e-1b59-4be5-a70c-b60972064815" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_16669b2a-fec9-4c84-8cfa-0faee0a2ee06" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_16669b2a-fec9-4c84-8cfa-0faee0a2ee06" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_16669b2a-fec9-4c84-8cfa-0faee0a2ee06_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_16669b2a-fec9-4c84-8cfa-0faee0a2ee06" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_16669b2a-fec9-4c84-8cfa-0faee0a2ee06_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_be0cb968-9312-42fb-bc14-fa78b51a09be" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_16669b2a-fec9-4c84-8cfa-0faee0a2ee06" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_be0cb968-9312-42fb-bc14-fa78b51a09be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_19bdaf42-7930-4fd7-9f14-31c15ea4f8d4" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryHoldingsCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_be0cb968-9312-42fb-bc14-fa78b51a09be" xlink:to="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_19bdaf42-7930-4fd7-9f14-31c15ea4f8d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CameronLNGMember_7df31217-6619-4b9e-892e-e99ce4d3a7f1" xlink:href="sre-20240630.xsd#sre_CameronLNGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_be0cb968-9312-42fb-bc14-fa78b51a09be" xlink:to="loc_sre_CameronLNGMember_7df31217-6619-4b9e-892e-e99ce4d3a7f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TAGMember_4677e0d3-b866-42d2-805f-822516a9093d" xlink:href="sre-20240630.xsd#sre_TAGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_be0cb968-9312-42fb-bc14-fa78b51a09be" xlink:to="loc_sre_TAGMember_4677e0d3-b866-42d2-805f-822516a9093d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_0706d77e-bffa-4836-a9af-708cb59f63d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_0706d77e-bffa-4836-a9af-708cb59f63d2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_0706d77e-bffa-4836-a9af-708cb59f63d2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_0706d77e-bffa-4836-a9af-708cb59f63d2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_0706d77e-bffa-4836-a9af-708cb59f63d2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_cdfec769-6ef3-483b-8b26-15159d65131d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_0706d77e-bffa-4836-a9af-708cb59f63d2" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_cdfec769-6ef3-483b-8b26-15159d65131d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PromissoryNoteForSDSRADistributionMember_da8cf5c7-bd8f-4ec6-a074-64cda7cdd9b9" xlink:href="sre-20240630.xsd#sre_PromissoryNoteForSDSRADistributionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_cdfec769-6ef3-483b-8b26-15159d65131d" xlink:to="loc_sre_PromissoryNoteForSDSRADistributionMember_da8cf5c7-bd8f-4ec6-a074-64cda7cdd9b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b99e0261-6ef2-4ab9-a3f5-09412355b3d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b99e0261-6ef2-4ab9-a3f5-09412355b3d4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_b99e0261-6ef2-4ab9-a3f5-09412355b3d4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b99e0261-6ef2-4ab9-a3f5-09412355b3d4" xlink:to="loc_us-gaap_RelatedPartyDomain_b99e0261-6ef2-4ab9-a3f5-09412355b3d4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_85797e23-35c1-4186-a151-fef63740d7d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b99e0261-6ef2-4ab9-a3f5-09412355b3d4" xlink:to="loc_us-gaap_RelatedPartyDomain_85797e23-35c1-4186-a151-fef63740d7d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateJointVentureMember_02230b28-86a5-4a2e-ba06-730dd8196a66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CorporateJointVentureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_85797e23-35c1-4186-a151-fef63740d7d3" xlink:to="loc_us-gaap_CorporateJointVentureMember_02230b28-86a5-4a2e-ba06-730dd8196a66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_129db68c-c3f2-401c-808c-bd2ddb74d404" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_129db68c-c3f2-401c-808c-bd2ddb74d404" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_129db68c-c3f2-401c-808c-bd2ddb74d404_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_129db68c-c3f2-401c-808c-bd2ddb74d404" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_129db68c-c3f2-401c-808c-bd2ddb74d404_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_129db68c-c3f2-401c-808c-bd2ddb74d404" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DeferredCreditsandOtherMember_a9f1dee9-5c9c-44b4-bf82-fe1f282ba0ab" xlink:href="sre-20240630.xsd#sre_DeferredCreditsandOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:to="loc_sre_DeferredCreditsandOtherMember_a9f1dee9-5c9c-44b4-bf82-fe1f282ba0ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_d01cc233-04a0-4645-9595-b33d0879c5ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_d01cc233-04a0-4645-9595-b33d0879c5ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_8cd9721f-b9a1-4bf1-b53a-80b1d635ecc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_8cd9721f-b9a1-4bf1-b53a-80b1d635ecc5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_078a8693-3c3b-4ac3-a3fa-efaa8462e115" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_45e1350a-06d0-4d12-bd0c-95907b9833c3" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_078a8693-3c3b-4ac3-a3fa-efaa8462e115" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_deb20118-9712-460c-ab4e-bc82e032ab7c" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_srt_ConsolidatedEntitiesAxis_deb20118-9712-460c-ab4e-bc82e032ab7c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_deb20118-9712-460c-ab4e-bc82e032ab7c_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_deb20118-9712-460c-ab4e-bc82e032ab7c" xlink:to="loc_srt_ConsolidatedEntitiesDomain_deb20118-9712-460c-ab4e-bc82e032ab7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_9a07a2a0-018e-48b2-9c18-007be197e71b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_deb20118-9712-460c-ab4e-bc82e032ab7c" xlink:to="loc_srt_ConsolidatedEntitiesDomain_9a07a2a0-018e-48b2-9c18-007be197e71b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_d77e5dbc-cd6b-488b-93aa-d63aceba753b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_9a07a2a0-018e-48b2-9c18-007be197e71b" xlink:to="loc_us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember_d77e5dbc-cd6b-488b-93aa-d63aceba753b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_138b2368-b5cc-4662-8c43-835328224a73" xlink:to="loc_srt_OwnershipAxis_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf" xlink:to="loc_srt_OwnershipDomain_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_5237dcb5-7472-4bb2-acf0-2361b9bfc9cf" xlink:to="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_d1decc96-c060-44e6-95c6-5f90b41df48f" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryHoldingsCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:to="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_d1decc96-c060-44e6-95c6-5f90b41df48f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CameronLNGMember_1822ea7f-27ce-42a9-8b9a-a6b97e8d876c" xlink:href="sre-20240630.xsd#sre_CameronLNGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:to="loc_sre_CameronLNGMember_1822ea7f-27ce-42a9-8b9a-a6b97e8d876c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryCompanyLLC.Member_520416ea-9705-40bd-a927-c0960b9e0f9b" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryCompanyLLC.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:to="loc_sre_OncorElectricDeliveryCompanyLLC.Member_520416ea-9705-40bd-a927-c0960b9e0f9b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TAGMember_af973a0a-1bd1-4c25-a5a2-319a0e10a685" xlink:href="sre-20240630.xsd#sre_TAGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_e8e48a57-b0da-49b4-8738-59529ffe7c36" xlink:to="loc_sre_TAGMember_af973a0a-1bd1-4c25-a5a2-319a0e10a685" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_206f73d1-cab5-418c-a018-aade184360af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentOwnershipPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_EquityMethodInvestmentOwnershipPercentage_206f73d1-cab5-418c-a018-aade184360af" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_9c597681-1c58-4630-97a0-15dafd679699" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_9c597681-1c58-4630-97a0-15dafd679699" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_c4e7f789-408d-4039-9e3a-d8305b9e487f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_c4e7f789-408d-4039-9e3a-d8305b9e487f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_1ffd45e6-d1bc-4bd5-a9a0-4377caa15e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_1ffd45e6-d1bc-4bd5-a9a0-4377caa15e4d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_8384e5ac-fae2-42cd-9a9c-d5ffe01d4175" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_LongTermDebtFairValue_8384e5ac-fae2-42cd-9a9c-d5ffe01d4175" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EquityMethodInvestmentDebtCovenantLiabilityCapAmount_ed21fc08-99a5-48df-95fa-202b21e3bf38" xlink:href="sre-20240630.xsd#sre_EquityMethodInvestmentDebtCovenantLiabilityCapAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_EquityMethodInvestmentDebtCovenantLiabilityCapAmount_ed21fc08-99a5-48df-95fa-202b21e3bf38" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_b772e1e0-92b7-450e-9aa6-f7dba59942ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GuaranteeObligationsCurrentCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_GuaranteeObligationsCurrentCarryingValue_b772e1e0-92b7-450e-9aa6-f7dba59942ef" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LongTermDebtNumberOfProjectOwners_4cd4b036-8723-44b0-bbb4-31e535464e82" xlink:href="sre-20240630.xsd#sre_LongTermDebtNumberOfProjectOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_LongTermDebtNumberOfProjectOwners_4cd4b036-8723-44b0-bbb4-31e535464e82" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromRelatedPartyDebt_c9cd5029-b907-4da1-9d55-d089a59dd14b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromRelatedPartyDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_ProceedsFromRelatedPartyDebt_c9cd5029-b907-4da1-9d55-d089a59dd14b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementDirectProceeds_e371d479-0453-49c6-a6ae-98fa8761272d" xlink:href="sre-20240630.xsd#sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementDirectProceeds"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementDirectProceeds_e371d479-0453-49c6-a6ae-98fa8761272d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementProceedsFromExternalLenders_9aaf79b4-c4e6-474f-8910-bdd1a3d9f91f" xlink:href="sre-20240630.xsd#sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementProceedsFromExternalLenders"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_LongTermDebtNumberOfProjectOwnersInFinancingArrangementProceedsFromExternalLenders_9aaf79b4-c4e6-474f-8910-bdd1a3d9f91f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_c9961b08-e1d2-4d9a-999b-4d151848899d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_c9961b08-e1d2-4d9a-999b-4d151848899d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DebtInstrumentNumberOfBanks_b08fdc72-dfd3-4d28-ad14-b38b02686270" xlink:href="sre-20240630.xsd#sre_DebtInstrumentNumberOfBanks"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_DebtInstrumentNumberOfBanks_b08fdc72-dfd3-4d28-ad14-b38b02686270" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EquityMethodInvestmentDebtCovenantLiabilityCapPercent_82381a61-a711-45bf-8022-0e7e539be4d4" xlink:href="sre-20240630.xsd#sre_EquityMethodInvestmentDebtCovenantLiabilityCapPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_9ac38320-05d5-4893-8d03-24a820b96929" xlink:to="loc_sre_EquityMethodInvestmentDebtCovenantLiabilityCapPercent_82381a61-a711-45bf-8022-0e7e539be4d4" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESSUMMARIZEDFINANCIALINFORMATIONDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESSUMMARIZEDFINANCIALINFORMATIONDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAINVESTMENTSINUNCONSOLIDATEDENTITIESSUMMARIZEDFINANCIALINFORMATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_2ae28422-88a1-43bf-a077-baa82bb78521" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfEquityMethodInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_2ae28422-88a1-43bf-a077-baa82bb78521" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis_9401d681-d679-45f2-bb61-909837e32849" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_2ae28422-88a1-43bf-a077-baa82bb78521" xlink:to="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis_9401d681-d679-45f2-bb61-909837e32849" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain_9401d681-d679-45f2-bb61-909837e32849_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis_9401d681-d679-45f2-bb61-909837e32849" xlink:to="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain_9401d681-d679-45f2-bb61-909837e32849_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain_353a444a-d62b-4232-8979-57dc99485b0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeAxis_9401d681-d679-45f2-bb61-909837e32849" xlink:to="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain_353a444a-d62b-4232-8979-57dc99485b0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember_d7897264-8521-4883-a154-f97644a03401" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeDomain_353a444a-d62b-4232-8979-57dc99485b0d" xlink:to="loc_us-gaap_EquityMethodInvestmentNonconsolidatedInvesteeOrGroupOfInvesteesMember_d7897264-8521-4883-a154-f97644a03401" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1a78fdb6-d8b4-49fe-b538-b4068d02d215" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsTable_2ae28422-88a1-43bf-a077-baa82bb78521" xlink:to="loc_dei_LegalEntityAxis_1a78fdb6-d8b4-49fe-b538-b4068d02d215" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1a78fdb6-d8b4-49fe-b538-b4068d02d215_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1a78fdb6-d8b4-49fe-b538-b4068d02d215" xlink:to="loc_dei_EntityDomain_1a78fdb6-d8b4-49fe-b538-b4068d02d215_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_84633e34-6d1a-44df-81e2-ca6aaf7421c1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1a78fdb6-d8b4-49fe-b538-b4068d02d215" xlink:to="loc_dei_EntityDomain_84633e34-6d1a-44df-81e2-ca6aaf7421c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_fb36975f-5340-4285-b24d-0591bf853c8f" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryHoldingsCompanyLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_84633e34-6d1a-44df-81e2-ca6aaf7421c1" xlink:to="loc_sre_OncorElectricDeliveryHoldingsCompanyLLCMember_fb36975f-5340-4285-b24d-0591bf853c8f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RegulatedOperatingRevenue_de1587a1-3470-41ee-9bd7-9c8569f1cde5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RegulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_RegulatedOperatingRevenue_de1587a1-3470-41ee-9bd7-9c8569f1cde5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_6e6df575-ffdd-49d7-b6e2-c835372db2ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpenses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_OperatingExpenses_6e6df575-ffdd-49d7-b6e2-c835372db2ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_c7c675ea-120d-4bb1-a650-e06b2aaf996f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_OperatingIncomeLoss_c7c675ea-120d-4bb1-a650-e06b2aaf996f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_b58fad55-b192-4694-b9af-600c2f6acf58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_InterestExpense_b58fad55-b192-4694-b9af-600c2f6acf58" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_fd98495f-fd4e-4078-8382-a7f5157eb250" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_fd98495f-fd4e-4078-8382-a7f5157eb250" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_12ad7b80-390d-4d68-b301-8321d51f87a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfitLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_ProfitLoss_12ad7b80-390d-4d68-b301-8321d51f87a7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_bf6e6620-9eb5-4156-845a-ebe449bb3056" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_bf6e6620-9eb5-4156-845a-ebe449bb3056" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e29c606c-4dda-4cee-9952-1d953facf479" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfEquityMethodInvestmentsLineItems_f1607272-9e63-44ea-a75a-ba840713cdbf" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_e29c606c-4dda-4cee-9952-1d953facf479" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DEBTANDCREDITFACILITIESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DEBTANDCREDITFACILITIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DEBTANDCREDITFACILITIESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_c781902a-7553-4b42-84ab-7928596c828e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_dei_LegalEntityAxis_c781902a-7553-4b42-84ab-7928596c828e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_c781902a-7553-4b42-84ab-7928596c828e_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_c781902a-7553-4b42-84ab-7928596c828e" xlink:to="loc_dei_EntityDomain_c781902a-7553-4b42-84ab-7928596c828e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_c781902a-7553-4b42-84ab-7928596c828e" xlink:to="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_47b8c331-be3c-462a-8917-03c01db0a312" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_47b8c331-be3c-462a-8917-03c01db0a312" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_20ae015c-8fcf-4472-88be-629dc252e3bc" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_20ae015c-8fcf-4472-88be-629dc252e3bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SIPartnersMember_86d4d436-30ce-4e7d-b0ef-7b59fe48e6dd" xlink:href="sre-20240630.xsd#sre_SIPartnersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_SIPartnersMember_86d4d436-30ce-4e7d-b0ef-7b59fe48e6dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaAndSIPartnersMember_0962da22-f779-47e0-b06a-9f0a7bfcb3d8" xlink:href="sre-20240630.xsd#sre_IEnovaAndSIPartnersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_IEnovaAndSIPartnersMember_0962da22-f779-47e0-b06a-9f0a7bfcb3d8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_f57ed438-b3bb-4027-b58c-f60bdc81ee2b" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_SempraInfrastructureMember_f57ed438-b3bb-4027-b58c-f60bdc81ee2b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaMember_6463dee4-7bb2-47f1-9dd9-935a43c0ee24" xlink:href="sre-20240630.xsd#sre_IEnovaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_IEnovaMember_6463dee4-7bb2-47f1-9dd9-935a43c0ee24" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SubsidiaryOfTOTALSEMember_7fcb293b-95df-4f17-a980-4567791d1d47" xlink:href="sre-20240630.xsd#sre_SubsidiaryOfTOTALSEMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_SubsidiaryOfTOTALSEMember_7fcb293b-95df-4f17-a980-4567791d1d47" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PortArthurLNGMember_787ea45c-7d68-4b1e-901a-ae39ba511ea7" xlink:href="sre-20240630.xsd#sre_PortArthurLNGMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_PortArthurLNGMember_787ea45c-7d68-4b1e-901a-ae39ba511ea7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ECALNGPhase1Member_57e070b3-2a52-4107-b602-eec3136d100c" xlink:href="sre-20240630.xsd#sre_ECALNGPhase1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_8f36ef25-e955-4f19-800d-0347589d01ae" xlink:to="loc_sre_ECALNGPhase1Member_57e070b3-2a52-4107-b602-eec3136d100c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_5e4d56ae-1721-4ae5-aba5-8c0a5c4e9ff0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_505e748e-756f-4ee8-bd26-c199ad75fbdd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:to="loc_us-gaap_SecuredDebtMember_505e748e-756f-4ee8-bd26-c199ad75fbdd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticLineOfCreditMember_c69034bc-898e-485a-a27b-167ce10577bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DomesticLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:to="loc_us-gaap_DomesticLineOfCreditMember_c69034bc-898e-485a-a27b-167ce10577bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_bd1522a5-d1ff-4a22-b0f5-34a726b362f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:to="loc_us-gaap_LineOfCreditMember_bd1522a5-d1ff-4a22-b0f5-34a726b362f7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ECALNGPhase1Member_9e97aaef-cc52-43f6-a17b-49fc26fe1dce" xlink:href="sre-20240630.xsd#sre_ECALNGPhase1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_a7b6e18d-4726-456e-bdb4-d2a7b24c3b7e" xlink:to="loc_sre_ECALNGPhase1Member_9e97aaef-cc52-43f6-a17b-49fc26fe1dce" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_711bbdd3-7eda-468b-a365-0760bf9fc924" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_us-gaap_DebtInstrumentAxis_711bbdd3-7eda-468b-a365-0760bf9fc924" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_711bbdd3-7eda-468b-a365-0760bf9fc924_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_711bbdd3-7eda-468b-a365-0760bf9fc924" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_711bbdd3-7eda-468b-a365-0760bf9fc924_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_711bbdd3-7eda-468b-a365-0760bf9fc924" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaUncommittedLineOfCreditDue2024Member_8942b86c-bf8b-4559-9b9b-c04e4b9ac162" xlink:href="sre-20240630.xsd#sre_IEnovaUncommittedLineOfCreditDue2024Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_IEnovaUncommittedLineOfCreditDue2024Member_8942b86c-bf8b-4559-9b9b-c04e4b9ac162" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LoanAgreementToFinanceNaturalGasLiquefactionExportFacilityMember_0e091ef1-fa17-4d74-a954-22a85ed00460" xlink:href="sre-20240630.xsd#sre_LoanAgreementToFinanceNaturalGasLiquefactionExportFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_LoanAgreementToFinanceNaturalGasLiquefactionExportFacilityMember_0e091ef1-fa17-4d74-a954-22a85ed00460" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LoanAgreementToFinanceTheCostOfDevelopmentAndConstructionOfThePALNGPhase1ProjectMember_6a52a9d2-a82e-4169-b2b2-c9edd580cd1b" xlink:href="sre-20240630.xsd#sre_LoanAgreementToFinanceTheCostOfDevelopmentAndConstructionOfThePALNGPhase1ProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_LoanAgreementToFinanceTheCostOfDevelopmentAndConstructionOfThePALNGPhase1ProjectMember_6a52a9d2-a82e-4169-b2b2-c9edd580cd1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointFiveFivePercentFirstMortgageBondsDueApril152054Member_572ee95a-43bf-45b7-b9d7-5960ed3bf4fc" xlink:href="sre-20240630.xsd#sre_FivePointFiveFivePercentFirstMortgageBondsDueApril152054Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_FivePointFiveFivePercentFirstMortgageBondsDueApril152054Member_572ee95a-43bf-45b7-b9d7-5960ed3bf4fc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FivePointSixPercentFirstMortgageBondsDueApril12054Member_e44ee21c-aa6a-459b-8499-b49a969ffb6c" xlink:href="sre-20240630.xsd#sre_FivePointSixPercentFirstMortgageBondsDueApril12054Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_FivePointSixPercentFirstMortgageBondsDueApril12054Member_e44ee21c-aa6a-459b-8499-b49a969ffb6c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_A6.875JuniorSubordinatedNotesDueOctober12054Member_fefd9497-5a34-4001-9b48-098212661861" xlink:href="sre-20240630.xsd#sre_A6.875JuniorSubordinatedNotesDueOctober12054Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_A6.875JuniorSubordinatedNotesDueOctober12054Member_fefd9497-5a34-4001-9b48-098212661861" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherLongTermDebt4.125JuniorSubordinatedNotesDue2052Member_d036a318-6286-461e-9e5a-c18cc64edd7e" xlink:href="sre-20240630.xsd#sre_OtherLongTermDebt4.125JuniorSubordinatedNotesDue2052Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_OtherLongTermDebt4.125JuniorSubordinatedNotesDue2052Member_d036a318-6286-461e-9e5a-c18cc64edd7e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherLongTermDebt5.75JuniorSubordinatedNotesDue2079Member_c0d431b9-3730-4f02-b04c-0bf992d64089" xlink:href="sre-20240630.xsd#sre_OtherLongTermDebt5.75JuniorSubordinatedNotesDue2079Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_OtherLongTermDebt5.75JuniorSubordinatedNotesDue2079Member_c0d431b9-3730-4f02-b04c-0bf992d64089" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_A364DayTermLoanDueMay222025Member_fe4111a1-7422-484b-aeb9-7c7aadf0a995" xlink:href="sre-20240630.xsd#sre_A364DayTermLoanDueMay222025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_87337325-3917-4221-bdbe-c4a97556a664" xlink:to="loc_sre_A364DayTermLoanDueMay222025Member_fe4111a1-7422-484b-aeb9-7c7aadf0a995" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_2bdd7af0-f58d-4852-84e6-0544afeecb57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_us-gaap_VariableRateAxis_2bdd7af0-f58d-4852-84e6-0544afeecb57" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2bdd7af0-f58d-4852-84e6-0544afeecb57_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_2bdd7af0-f58d-4852-84e6-0544afeecb57" xlink:to="loc_us-gaap_VariableRateDomain_2bdd7af0-f58d-4852-84e6-0544afeecb57_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_59722887-9e28-4ebd-97e1-9eafa7ff931a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_2bdd7af0-f58d-4852-84e6-0544afeecb57" xlink:to="loc_us-gaap_VariableRateDomain_59722887-9e28-4ebd-97e1-9eafa7ff931a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_InterbankEquilibriumInterestRateMember_3d9c89b1-28d0-414c-a98b-4d8da8484761" xlink:href="sre-20240630.xsd#sre_InterbankEquilibriumInterestRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_59722887-9e28-4ebd-97e1-9eafa7ff931a" xlink:to="loc_sre_InterbankEquilibriumInterestRateMember_3d9c89b1-28d0-414c-a98b-4d8da8484761" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_99685903-996f-4384-833d-a34925c28f68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_59722887-9e28-4ebd-97e1-9eafa7ff931a" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_99685903-996f-4384-833d-a34925c28f68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FiveYearUSTreasuryRateMember_8a2ac7d1-ef50-4793-9bfb-395c8d3ebbd9" xlink:href="sre-20240630.xsd#sre_FiveYearUSTreasuryRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_59722887-9e28-4ebd-97e1-9eafa7ff931a" xlink:to="loc_sre_FiveYearUSTreasuryRateMember_8a2ac7d1-ef50-4793-9bfb-395c8d3ebbd9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_srt_OwnershipAxis_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629" xlink:to="loc_srt_OwnershipDomain_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_a62f6c06-5b2c-4a58-b5f0-f507450946bb" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_fe6e4f7d-7daa-40af-bbb0-1cdb7fb8f629" xlink:to="loc_srt_OwnershipDomain_a62f6c06-5b2c-4a58-b5f0-f507450946bb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ECALNGJVMember_4a15f52e-7ed0-4e13-9e3c-b6e5ecdaf9e4" xlink:href="sre-20240630.xsd#sre_ECALNGJVMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_a62f6c06-5b2c-4a58-b5f0-f507450946bb" xlink:to="loc_sre_ECALNGJVMember_4a15f52e-7ed0-4e13-9e3c-b6e5ecdaf9e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_6dffc85c-729c-4e44-a058-69fd874b5078" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_6dffc85c-729c-4e44-a058-69fd874b5078" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_6dffc85c-729c-4e44-a058-69fd874b5078_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_6dffc85c-729c-4e44-a058-69fd874b5078" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_6dffc85c-729c-4e44-a058-69fd874b5078_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_c6a90bc5-9354-4296-8065-7c2b259f61a5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodAxis_6dffc85c-729c-4e44-a058-69fd874b5078" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_c6a90bc5-9354-4296-8065-7c2b259f61a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_f79e13d0-8ffc-4e55-898d-e30255bf8612" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_c6a90bc5-9354-4296-8065-7c2b259f61a5" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodOneMember_f79e13d0-8ffc-4e55-898d-e30255bf8612" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_075cedd5-e1bc-4983-b6d7-47a393eac8dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_c6a90bc5-9354-4296-8065-7c2b259f61a5" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodTwoMember_075cedd5-e1bc-4983-b6d7-47a393eac8dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPeriodThreeMember_871c53c2-b6cd-41c1-a4e3-051d021bc034" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPeriodThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentRedemptionPeriodDomain_c6a90bc5-9354-4296-8065-7c2b259f61a5" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPeriodThreeMember_871c53c2-b6cd-41c1-a4e3-051d021bc034" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_e71f618d-fded-4ce9-8ebc-4ad53a83aca4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_us-gaap_CreditFacilityAxis_e71f618d-fded-4ce9-8ebc-4ad53a83aca4" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_e71f618d-fded-4ce9-8ebc-4ad53a83aca4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_e71f618d-fded-4ce9-8ebc-4ad53a83aca4" xlink:to="loc_us-gaap_CreditFacilityDomain_e71f618d-fded-4ce9-8ebc-4ad53a83aca4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_0ddd9b37-7ad9-4f18-a37c-d0566ceffbe8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_e71f618d-fded-4ce9-8ebc-4ad53a83aca4" xlink:to="loc_us-gaap_CreditFacilityDomain_0ddd9b37-7ad9-4f18-a37c-d0566ceffbe8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_b1b6648e-9860-4df3-ab98-c6f7568e0255" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0ddd9b37-7ad9-4f18-a37c-d0566ceffbe8" xlink:to="loc_us-gaap_SecuredDebtMember_b1b6648e-9860-4df3-ab98-c6f7568e0255" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VariableRateComponentAxis_d677ec6a-1053-4418-87aa-a7c5f8a1083c" xlink:href="sre-20240630.xsd#sre_VariableRateComponentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_511b3828-74db-4317-a61c-bfdc797938a9" xlink:to="loc_sre_VariableRateComponentAxis_d677ec6a-1053-4418-87aa-a7c5f8a1083c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VariableRateComponentDomain_d677ec6a-1053-4418-87aa-a7c5f8a1083c_default" xlink:href="sre-20240630.xsd#sre_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_sre_VariableRateComponentAxis_d677ec6a-1053-4418-87aa-a7c5f8a1083c" xlink:to="loc_sre_VariableRateComponentDomain_d677ec6a-1053-4418-87aa-a7c5f8a1083c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VariableRateComponentDomain_183c9479-8214-44f5-a059-05a82a5ac17a" xlink:href="sre-20240630.xsd#sre_VariableRateComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_sre_VariableRateComponentAxis_d677ec6a-1053-4418-87aa-a7c5f8a1083c" xlink:to="loc_sre_VariableRateComponentDomain_183c9479-8214-44f5-a059-05a82a5ac17a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VariableRateComponentOneMember_d55949b8-ab99-4e5d-aed7-467d04a53248" xlink:href="sre-20240630.xsd#sre_VariableRateComponentOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_VariableRateComponentDomain_183c9479-8214-44f5-a059-05a82a5ac17a" xlink:to="loc_sre_VariableRateComponentOneMember_d55949b8-ab99-4e5d-aed7-467d04a53248" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VariableRateComponentTwoMember_f5b839ff-7d42-4b49-a5e5-61a273bad471" xlink:href="sre-20240630.xsd#sre_VariableRateComponentTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_VariableRateComponentDomain_183c9479-8214-44f5-a059-05a82a5ac17a" xlink:to="loc_sre_VariableRateComponentTwoMember_f5b839ff-7d42-4b49-a5e5-61a273bad471" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_9283ae56-04d7-49b5-a933-4ef7f0028acb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_9283ae56-04d7-49b5-a933-4ef7f0028acb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LineOfCreditFacilityNumberOfCommittedLinesOfCredit_7fc273f3-7000-4ddd-afee-c4ba460d1abe" xlink:href="sre-20240630.xsd#sre_LineOfCreditFacilityNumberOfCommittedLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_LineOfCreditFacilityNumberOfCommittedLinesOfCredit_7fc273f3-7000-4ddd-afee-c4ba460d1abe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RatioOfIndebtednessToNetCapital1_091e1fd1-ac28-44fd-a766-14a54b052ec8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RatioOfIndebtednessToNetCapital1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_RatioOfIndebtednessToNetCapital1_091e1fd1-ac28-44fd-a766-14a54b052ec8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfLinesOfCredit_97485680-1a61-4e62-8c8e-b925f8e6bf60" xlink:href="sre-20240630.xsd#sre_NumberOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_NumberOfLinesOfCredit_97485680-1a61-4e62-8c8e-b925f8e6bf60" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DebtInstrumentCovenantMaximumRequiredAdjustmentEBITDA_f57547b3-6828-421a-9a34-a0e5ed33a89e" xlink:href="sre-20240630.xsd#sre_DebtInstrumentCovenantMaximumRequiredAdjustmentEBITDA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_DebtInstrumentCovenantMaximumRequiredAdjustmentEBITDA_f57547b3-6828-421a-9a34-a0e5ed33a89e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditCurrent_f2ccde0f-62f6-4a2f-aa79-f199830b0019" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LinesOfCreditCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_LinesOfCreditCurrent_f2ccde0f-62f6-4a2f-aa79-f199830b0019" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_4f9d688e-272c-4500-ae2f-488f7ee1d883" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_4f9d688e-272c-4500-ae2f-488f7ee1d883" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_b8b9eba3-efb6-4027-9ced-8fb5c234fba8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_b8b9eba3-efb6-4027-9ced-8fb5c234fba8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_3a04568b-9f7e-46a1-b0b6-ae032de3970e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_3a04568b-9f7e-46a1-b0b6-ae032de3970e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTerm_1c81f488-cb66-49b1-9164-8a9965a049dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentTerm_1c81f488-cb66-49b1-9164-8a9965a049dc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_6496d851-f9bd-45e9-ae60-be07292b707e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_6496d851-f9bd-45e9-ae60-be07292b707e" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_65235190-0c26-4206-b746-302e0745eb45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_65235190-0c26-4206-b746-302e0745eb45" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LineofCreditFacilityAccordionFeatureIncreaseLimit_3983914c-cfca-495d-aad0-01accac09a15" xlink:href="sre-20240630.xsd#sre_LineofCreditFacilityAccordionFeatureIncreaseLimit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_LineofCreditFacilityAccordionFeatureIncreaseLimit_3983914c-cfca-495d-aad0-01accac09a15" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_be081e8c-ba7e-4242-a49b-9d5b64027562" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_be081e8c-ba7e-4242-a49b-9d5b64027562" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_52b35279-aa66-481a-9195-fbc711b8ef04" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_52b35279-aa66-481a-9195-fbc711b8ef04" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_11848158-7110-4fff-a32f-6fd54f630a60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_11848158-7110-4fff-a32f-6fd54f630a60" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DebtInstrumentInterestRatePeriod_c6ca8132-4c64-4e68-bee6-2cd493a44879" xlink:href="sre-20240630.xsd#sre_DebtInstrumentInterestRatePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_DebtInstrumentInterestRatePeriod_c6ca8132-4c64-4e68-bee6-2cd493a44879" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfDaysBeforeInterestRatePeriod_6f2549c7-6091-4829-a9d9-2336e466777c" xlink:href="sre-20240630.xsd#sre_NumberOfDaysBeforeInterestRatePeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_NumberOfDaysBeforeInterestRatePeriod_6f2549c7-6091-4829-a9d9-2336e466777c" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_d29ce850-27d7-4184-b919-289e4ef930aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_InterestExpenseDebt_d29ce850-27d7-4184-b919-289e4ef930aa" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed_30839101-8d6a-496e-a25b-f14bf432a950" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentageOfPrincipalAmountRedeemed_30839101-8d6a-496e-a25b-f14bf432a950" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DebtInstrumentNumberOfBanksInLendingGroup_9ad43292-d7d6-4a25-999f-bffb50654c63" xlink:href="sre-20240630.xsd#sre_DebtInstrumentNumberOfBanksInLendingGroup"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_sre_DebtInstrumentNumberOfBanksInLendingGroup_9ad43292-d7d6-4a25-999f-bffb50654c63" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_00afbb28-c6f3-4d17-812d-c9ea98ae752c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeCumulativePercentageOwnershipAfterAllTransactions_00afbb28-c6f3-4d17-812d-c9ea98ae752c" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_3158c2a0-0178-4b3d-95c2-57a46ffa5df2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_3158c2a0-0178-4b3d-95c2-57a46ffa5df2" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtWeightedAverageInterestRate_6564b279-d812-49e4-a377-cc82aa3f43d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_7ffc1ea4-fd5b-432c-a892-2f8f61cce816" xlink:to="loc_us-gaap_DebtWeightedAverageInterestRate_6564b279-d812-49e4-a377-cc82aa3f43d0" xlink:type="arc" order="23"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DEBTANDCREDITFACILITIESCOMMITTEDLINESOFCREDITDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DEBTANDCREDITFACILITIESCOMMITTEDLINESOFCREDITDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DEBTANDCREDITFACILITIESCOMMITTEDLINESOFCREDITDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_eeac8dd1-cdd3-4513-8af0-cd4e28d79f14" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_eeac8dd1-cdd3-4513-8af0-cd4e28d79f14" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_3be3767d-56ec-4076-9bd9-e0874fadf80d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:to="loc_dei_LegalEntityAxis_3be3767d-56ec-4076-9bd9-e0874fadf80d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_3be3767d-56ec-4076-9bd9-e0874fadf80d_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_3be3767d-56ec-4076-9bd9-e0874fadf80d" xlink:to="loc_dei_EntityDomain_3be3767d-56ec-4076-9bd9-e0874fadf80d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_3be3767d-56ec-4076-9bd9-e0874fadf80d" xlink:to="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraMember_fa9823a0-f920-40b5-8735-0db75f3d20c4" xlink:href="sre-20240630.xsd#sre_SempraMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:to="loc_sre_SempraMember_fa9823a0-f920-40b5-8735-0db75f3d20c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_399b82d9-a23c-41f5-9bee-1c27304639d0" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_399b82d9-a23c-41f5-9bee-1c27304639d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_5bbd1208-87f2-4370-9ded-3ac8d36d4545" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_5bbd1208-87f2-4370-9ded-3ac8d36d4545" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaAndSIPartnersMember_44e290d7-6f27-467e-a701-c8fc3e01bce9" xlink:href="sre-20240630.xsd#sre_IEnovaAndSIPartnersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:to="loc_sre_IEnovaAndSIPartnersMember_44e290d7-6f27-467e-a701-c8fc3e01bce9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraPALNGHoldingsLLCMember_79553f0f-46f1-406f-9a56-695bee21dfca" xlink:href="sre-20240630.xsd#sre_SempraPALNGHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b4265f79-8a98-486b-86be-f14a4702a712" xlink:to="loc_sre_SempraPALNGHoldingsLLCMember_79553f0f-46f1-406f-9a56-695bee21dfca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_4048380b-0d76-4890-bab4-c322e0ecb167" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_4048380b-0d76-4890-bab4-c322e0ecb167" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_4048380b-0d76-4890-bab4-c322e0ecb167_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4048380b-0d76-4890-bab4-c322e0ecb167" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_4048380b-0d76-4890-bab4-c322e0ecb167_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_51d6ff5e-2938-4ae3-b801-37be289aca1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_4048380b-0d76-4890-bab4-c322e0ecb167" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_51d6ff5e-2938-4ae3-b801-37be289aca1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_8521aa63-54b3-4df0-8f89-d6862e328562" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_51d6ff5e-2938-4ae3-b801-37be289aca1c" xlink:to="loc_us-gaap_CommercialPaperMember_8521aa63-54b3-4df0-8f89-d6862e328562" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DebtOnCreditFacilitiesExcludingCommercialPaperMember_ff0a7a19-6a67-457a-8706-be7eb8a51234" xlink:href="sre-20240630.xsd#sre_DebtOnCreditFacilitiesExcludingCommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_51d6ff5e-2938-4ae3-b801-37be289aca1c" xlink:to="loc_sre_DebtOnCreditFacilitiesExcludingCommercialPaperMember_ff0a7a19-6a67-457a-8706-be7eb8a51234" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_67874c66-01f6-4ca9-a7d4-7553efa87fdd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:to="loc_us-gaap_DebtInstrumentAxis_67874c66-01f6-4ca9-a7d4-7553efa87fdd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_67874c66-01f6-4ca9-a7d4-7553efa87fdd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_67874c66-01f6-4ca9-a7d4-7553efa87fdd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_67874c66-01f6-4ca9-a7d4-7553efa87fdd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_67874c66-01f6-4ca9-a7d4-7553efa87fdd" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueSeptember2025Member_9ecf6409-2339-4e41-b210-5bf4f18059ed" xlink:href="sre-20240630.xsd#sre_IEnovaAndSIPartnersCommittedLineOfCreditDueSeptember2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:to="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueSeptember2025Member_9ecf6409-2339-4e41-b210-5bf4f18059ed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2026Member_97365749-f7c3-4ce7-a1af-eca23a86f484" xlink:href="sre-20240630.xsd#sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:to="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2026Member_97365749-f7c3-4ce7-a1af-eca23a86f484" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2028Member_c03bcead-8ac2-4694-a6c0-de8f29a7e506" xlink:href="sre-20240630.xsd#sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:to="loc_sre_IEnovaAndSIPartnersCommittedLineOfCreditDueAugust2028Member_c03bcead-8ac2-4694-a6c0-de8f29a7e506" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PortArthurLNGCommittedLineOfCreditDue2030Member_01d33076-ea55-412c-a36d-524e6b31afa7" xlink:href="sre-20240630.xsd#sre_PortArthurLNGCommittedLineOfCreditDue2030Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_1724720c-d87b-4eb0-a4a9-28a7a3393d79" xlink:to="loc_sre_PortArthurLNGCommittedLineOfCreditDue2030Member_01d33076-ea55-412c-a36d-524e6b31afa7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_5c292ee8-4263-4879-8829-fe7dcb78f126" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_886e3a85-6452-4bc7-9e81-f3c5daa2176c" xlink:to="loc_us-gaap_CreditFacilityAxis_5c292ee8-4263-4879-8829-fe7dcb78f126" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_5c292ee8-4263-4879-8829-fe7dcb78f126_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_5c292ee8-4263-4879-8829-fe7dcb78f126" xlink:to="loc_us-gaap_CreditFacilityDomain_5c292ee8-4263-4879-8829-fe7dcb78f126_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_e13cf9b8-df38-4728-9527-9980f435d526" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_5c292ee8-4263-4879-8829-fe7dcb78f126" xlink:to="loc_us-gaap_CreditFacilityDomain_e13cf9b8-df38-4728-9527-9980f435d526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_8843d200-62c9-4cba-b4af-85bb07d204c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_e13cf9b8-df38-4728-9527-9980f435d526" xlink:to="loc_us-gaap_LetterOfCreditMember_8843d200-62c9-4cba-b4af-85bb07d204c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_d130b0d7-0756-4f12-b871-dfcb6ab2e7b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_eeac8dd1-cdd3-4513-8af0-cd4e28d79f14" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_d130b0d7-0756-4f12-b871-dfcb6ab2e7b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_37d1972f-5b68-42e7-98a2-884bf3a8303a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_eeac8dd1-cdd3-4513-8af0-cd4e28d79f14" xlink:to="loc_us-gaap_LineOfCredit_37d1972f-5b68-42e7-98a2-884bf3a8303a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_f67c71d3-29ad-4e9b-9046-75f6a52f92c6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_eeac8dd1-cdd3-4513-8af0-cd4e28d79f14" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_f67c71d3-29ad-4e9b-9046-75f6a52f92c6" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DEBTANDCREDITFACILITIESUNCOMMITTEDLETTERSOFCREDITDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DEBTANDCREDITFACILITIESUNCOMMITTEDLETTERSOFCREDITDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DEBTANDCREDITFACILITIESUNCOMMITTEDLETTERSOFCREDITDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_c47f9893-7152-4724-ad6a-53f13f7d6f11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_7fb3a05a-2ade-4fc6-8bff-0797d3fdf162" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c47f9893-7152-4724-ad6a-53f13f7d6f11" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_7fb3a05a-2ade-4fc6-8bff-0797d3fdf162" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_82f7927e-abd7-40c5-b476-3a6d569ac11c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_7fb3a05a-2ade-4fc6-8bff-0797d3fdf162" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_82f7927e-abd7-40c5-b476-3a6d569ac11c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_82f7927e-abd7-40c5-b476-3a6d569ac11c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_82f7927e-abd7-40c5-b476-3a6d569ac11c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_82f7927e-abd7-40c5-b476-3a6d569ac11c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f173ec51-c66f-4428-99d3-0e3d85468dbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_82f7927e-abd7-40c5-b476-3a6d569ac11c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f173ec51-c66f-4428-99d3-0e3d85468dbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LetterOfCreditMember_c9c41134-0867-436f-a74f-180f4d6a911c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LetterOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_f173ec51-c66f-4428-99d3-0e3d85468dbb" xlink:to="loc_us-gaap_LetterOfCreditMember_c9c41134-0867-436f-a74f-180f4d6a911c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_394d1c5c-9466-4955-812c-5776cda5ef84" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_7fb3a05a-2ade-4fc6-8bff-0797d3fdf162" xlink:to="loc_dei_LegalEntityAxis_394d1c5c-9466-4955-812c-5776cda5ef84" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_394d1c5c-9466-4955-812c-5776cda5ef84_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_394d1c5c-9466-4955-812c-5776cda5ef84" xlink:to="loc_dei_EntityDomain_394d1c5c-9466-4955-812c-5776cda5ef84_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2d3b013b-51ee-4d47-96ec-77aa99b7e85b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_394d1c5c-9466-4955-812c-5776cda5ef84" xlink:to="loc_dei_EntityDomain_2d3b013b-51ee-4d47-96ec-77aa99b7e85b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_0aeddc14-d575-421b-9b29-b4deb7e84a66" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2d3b013b-51ee-4d47-96ec-77aa99b7e85b" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_0aeddc14-d575-421b-9b29-b4deb7e84a66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ca6cc1a1-fa8e-4446-87e5-ea189e4bf30a" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2d3b013b-51ee-4d47-96ec-77aa99b7e85b" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ca6cc1a1-fa8e-4446-87e5-ea189e4bf30a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherSempraMember_844b3e7b-ac81-42b1-8ff8-aca8bcedcff0" xlink:href="sre-20240630.xsd#sre_OtherSempraMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2d3b013b-51ee-4d47-96ec-77aa99b7e85b" xlink:to="loc_sre_OtherSempraMember_844b3e7b-ac81-42b1-8ff8-aca8bcedcff0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_2d3873b1-6f63-4bb2-866c-5273f974be42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_c47f9893-7152-4724-ad6a-53f13f7d6f11" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_2d3873b1-6f63-4bb2-866c-5273f974be42" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DEBTANDCREDITFACILITIESWEIGHTEDAVERAGEINTERESTRATESANDINTERESTRATESWAPSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DEBTANDCREDITFACILITIESWEIGHTEDAVERAGEINTERESTRATESANDINTERESTRATESWAPSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DEBTANDCREDITFACILITIESWEIGHTEDAVERAGEINTERESTRATESANDINTERESTRATESWAPSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_679e1d99-2a87-4c6d-ace5-ef1c5bb52700" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_b089191c-5910-48f1-bb87-f953b934c9b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_679e1d99-2a87-4c6d-ace5-ef1c5bb52700" xlink:to="loc_us-gaap_DebtInstrumentTable_b089191c-5910-48f1-bb87-f953b934c9b6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_c80bdd58-1b7f-48e1-b888-940d97a2ebbc" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_b089191c-5910-48f1-bb87-f953b934c9b6" xlink:to="loc_dei_LegalEntityAxis_c80bdd58-1b7f-48e1-b888-940d97a2ebbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_c80bdd58-1b7f-48e1-b888-940d97a2ebbc_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_c80bdd58-1b7f-48e1-b888-940d97a2ebbc" xlink:to="loc_dei_EntityDomain_c80bdd58-1b7f-48e1-b888-940d97a2ebbc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_f9fc1330-f5da-4cf7-8893-6c60cc36fbb3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_c80bdd58-1b7f-48e1-b888-940d97a2ebbc" xlink:to="loc_dei_EntityDomain_f9fc1330-f5da-4cf7-8893-6c60cc36fbb3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_ae87adb2-9d74-46c4-958f-22a82c038e75" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_f9fc1330-f5da-4cf7-8893-6c60cc36fbb3" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_ae87adb2-9d74-46c4-958f-22a82c038e75" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_d15e30ed-45ca-4bfd-9f4f-26db8802b907" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShortTermDebtWeightedAverageInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_679e1d99-2a87-4c6d-ace5-ef1c5bb52700" xlink:to="loc_us-gaap_ShortTermDebtWeightedAverageInterestRate_d15e30ed-45ca-4bfd-9f4f-26db8802b907" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVECOMMODITYVOLUMESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVECOMMODITYVOLUMESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVECOMMODITYVOLUMESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_4bccc7da-d015-4ec4-bba2-ae44550fb279" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_ac4f6428-a5e7-4a2e-9aff-396524724a98" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_4bccc7da-d015-4ec4-bba2-ae44550fb279" xlink:to="loc_us-gaap_DerivativeTable_ac4f6428-a5e7-4a2e-9aff-396524724a98" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_ac4f6428-a5e7-4a2e-9aff-396524724a98" xlink:to="loc_dei_LegalEntityAxis_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6" xlink:to="loc_dei_EntityDomain_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_54f376e5-be90-46bd-b260-3191395beeff" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1cdbf0a3-4e35-4da5-b671-ee0e699a14b6" xlink:to="loc_dei_EntityDomain_54f376e5-be90-46bd-b260-3191395beeff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_cdb1aa1c-32a3-42f1-8db5-65a8b441b179" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_54f376e5-be90-46bd-b260-3191395beeff" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_cdb1aa1c-32a3-42f1-8db5-65a8b441b179" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_18c799e9-d2b7-4743-a365-f7274f196aa3" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_54f376e5-be90-46bd-b260-3191395beeff" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_18c799e9-d2b7-4743-a365-f7274f196aa3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_3feef62e-bae8-4fac-814b-5f58d99114a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_ac4f6428-a5e7-4a2e-9aff-396524724a98" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_3feef62e-bae8-4fac-814b-5f58d99114a2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_3feef62e-bae8-4fac-814b-5f58d99114a2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3feef62e-bae8-4fac-814b-5f58d99114a2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_3feef62e-bae8-4fac-814b-5f58d99114a2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_77457534-6d47-42d4-b18e-80c600f49d87" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_3feef62e-bae8-4fac-814b-5f58d99114a2" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_77457534-6d47-42d4-b18e-80c600f49d87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NaturalGasDerivativeMember_e09c3144-f8d8-4654-9c7f-5767991f144d" xlink:href="sre-20240630.xsd#sre_NaturalGasDerivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_77457534-6d47-42d4-b18e-80c600f49d87" xlink:to="loc_sre_NaturalGasDerivativeMember_e09c3144-f8d8-4654-9c7f-5767991f144d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ElectricEnergyDerivativeMember_cf9c8131-4454-4d37-9a76-787660e8669a" xlink:href="sre-20240630.xsd#sre_ElectricEnergyDerivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_77457534-6d47-42d4-b18e-80c600f49d87" xlink:to="loc_sre_ElectricEnergyDerivativeMember_cf9c8131-4454-4d37-9a76-787660e8669a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CongestionRevenueRightsDerivativeMember_4bc636b7-e7cd-49dc-9705-f7c157ae218e" xlink:href="sre-20240630.xsd#sre_CongestionRevenueRightsDerivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_77457534-6d47-42d4-b18e-80c600f49d87" xlink:to="loc_sre_CongestionRevenueRightsDerivativeMember_4bc636b7-e7cd-49dc-9705-f7c157ae218e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_e6d94b68-28ab-46cc-b72e-b1bdb92dc6ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_4bccc7da-d015-4ec4-bba2-ae44550fb279" xlink:to="loc_us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure_e6d94b68-28ab-46cc-b72e-b1bdb92dc6ae" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSINTERESTRATEANDFOREIGNCURRENCYDERIVATIVESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSINTERESTRATEANDFOREIGNCURRENCYDERIVATIVESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSINTERESTRATEANDFOREIGNCURRENCYDERIVATIVESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_aa3a00bd-f811-4b34-ab7d-e48c2089896f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_d0d791c8-e323-490e-93cd-8505389fb9a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_aa3a00bd-f811-4b34-ab7d-e48c2089896f" xlink:to="loc_us-gaap_DerivativeTable_d0d791c8-e323-490e-93cd-8505389fb9a2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_da36a825-3efd-49a9-9b6f-95ac268dad54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_d0d791c8-e323-490e-93cd-8505389fb9a2" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_da36a825-3efd-49a9-9b6f-95ac268dad54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_da36a825-3efd-49a9-9b6f-95ac268dad54_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_da36a825-3efd-49a9-9b6f-95ac268dad54" xlink:to="loc_us-gaap_HedgingRelationshipDomain_da36a825-3efd-49a9-9b6f-95ac268dad54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_f08e8ab0-d3a1-4dde-83e5-aee37506d8b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_da36a825-3efd-49a9-9b6f-95ac268dad54" xlink:to="loc_us-gaap_HedgingRelationshipDomain_f08e8ab0-d3a1-4dde-83e5-aee37506d8b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_b3866a20-bd02-4ef4-8cce-0326ecfe3a35" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_f08e8ab0-d3a1-4dde-83e5-aee37506d8b3" xlink:to="loc_us-gaap_CashFlowHedgingMember_b3866a20-bd02-4ef4-8cce-0326ecfe3a35" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_d0d791c8-e323-490e-93cd-8505389fb9a2" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_c9d16027-d2fe-4eeb-a108-d18d38e845a2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_51f74bbc-3d45-4b6e-aaf8-309f1be4c3af" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_c9d16027-d2fe-4eeb-a108-d18d38e845a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_7b70e44c-74e8-4f0c-9f2e-2e1bb8697178" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c9d16027-d2fe-4eeb-a108-d18d38e845a2" xlink:to="loc_us-gaap_InterestRateContractMember_7b70e44c-74e8-4f0c-9f2e-2e1bb8697178" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateSwapMember_3f4bd762-122f-47aa-b8a4-08a41300bd4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateSwapMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c9d16027-d2fe-4eeb-a108-d18d38e845a2" xlink:to="loc_us-gaap_InterestRateSwapMember_3f4bd762-122f-47aa-b8a4-08a41300bd4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeMember_2a54b4c2-6f83-4156-b764-9f2c40d1191a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_c9d16027-d2fe-4eeb-a108-d18d38e845a2" xlink:to="loc_us-gaap_ForeignExchangeMember_2a54b4c2-6f83-4156-b764-9f2c40d1191a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityNotionalAmount_744a6b5c-71c5-4de4-a971-0e9203bb61ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_aa3a00bd-f811-4b34-ab7d-e48c2089896f" xlink:to="loc_us-gaap_DerivativeLiabilityNotionalAmount_744a6b5c-71c5-4de4-a971-0e9203bb61ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNotionalAmount_2543cc3f-35b8-4577-b50e-7b277ebb5898" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeNotionalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_aa3a00bd-f811-4b34-ab7d-e48c2089896f" xlink:to="loc_us-gaap_DerivativeNotionalAmount_2543cc3f-35b8-4577-b50e-7b277ebb5898" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSONTHECONDENSEDBALANCESHEETDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSONTHECONDENSEDBALANCESHEETDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSONTHECONDENSEDBALANCESHEETDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativesFairValueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_98743d53-2180-460b-a80b-9a391c8fefc7" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:to="loc_dei_LegalEntityAxis_98743d53-2180-460b-a80b-9a391c8fefc7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_98743d53-2180-460b-a80b-9a391c8fefc7_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_98743d53-2180-460b-a80b-9a391c8fefc7" xlink:to="loc_dei_EntityDomain_98743d53-2180-460b-a80b-9a391c8fefc7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_87090d5f-f749-45a9-bf5b-bf12ce16ed99" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_98743d53-2180-460b-a80b-9a391c8fefc7" xlink:to="loc_dei_EntityDomain_87090d5f-f749-45a9-bf5b-bf12ce16ed99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_d7523ccd-d640-4bc4-b6f9-97d9d6c94544" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_87090d5f-f749-45a9-bf5b-bf12ce16ed99" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_d7523ccd-d640-4bc4-b6f9-97d9d6c94544" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_27056ebb-0df7-4686-bdac-009084e20826" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_87090d5f-f749-45a9-bf5b-bf12ce16ed99" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_27056ebb-0df7-4686-bdac-009084e20826" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_8bf1a014-e0c6-4806-a548-6e9e103f1e67" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:to="loc_us-gaap_HedgingDesignationAxis_8bf1a014-e0c6-4806-a548-6e9e103f1e67" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_8bf1a014-e0c6-4806-a548-6e9e103f1e67_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_8bf1a014-e0c6-4806-a548-6e9e103f1e67" xlink:to="loc_us-gaap_HedgingDesignationDomain_8bf1a014-e0c6-4806-a548-6e9e103f1e67_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_c02ac816-bb69-45e2-82c3-a4d60b40381c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_8bf1a014-e0c6-4806-a548-6e9e103f1e67" xlink:to="loc_us-gaap_HedgingDesignationDomain_c02ac816-bb69-45e2-82c3-a4d60b40381c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_29b5aed9-61ac-412b-8c5f-fe6b35ef8c80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_c02ac816-bb69-45e2-82c3-a4d60b40381c" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_29b5aed9-61ac-412b-8c5f-fe6b35ef8c80" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_8ba9bda1-c6cc-492f-905b-66b311ee9ff3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_c02ac816-bb69-45e2-82c3-a4d60b40381c" xlink:to="loc_us-gaap_NondesignatedMember_8ba9bda1-c6cc-492f-905b-66b311ee9ff3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_f1bbc951-2b66-4b3b-b167-0cbca69d454f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_f1bbc951-2b66-4b3b-b167-0cbca69d454f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_f1bbc951-2b66-4b3b-b167-0cbca69d454f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f1bbc951-2b66-4b3b-b167-0cbca69d454f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_f1bbc951-2b66-4b3b-b167-0cbca69d454f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f1bbc951-2b66-4b3b-b167-0cbca69d454f" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_bcbad4b7-312f-4bfe-9612-8e3c22267565" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_bcbad4b7-312f-4bfe-9612-8e3c22267565" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_bdf140ae-230e-4af2-be28-8826abbf84d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_bdf140ae-230e-4af2-be28-8826abbf84d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_a59dd8e1-71d8-4f0c-8506-6e735e779845" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_a59dd8e1-71d8-4f0c-8506-6e735e779845" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentLiabilitiesMember_8f88ac65-5a9b-4548-af93-f3f386fc951a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_20859c34-312a-4345-ad48-78629b88f235" xlink:to="loc_us-gaap_OtherNoncurrentLiabilitiesMember_8f88ac65-5a9b-4548-af93-f3f386fc951a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_10386222-8b7d-4fe3-a3cf-12cc5c35068a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable_ee9da72d-45b6-413d-ad8e-8c75246bdeee" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_10386222-8b7d-4fe3-a3cf-12cc5c35068a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_10386222-8b7d-4fe3-a3cf-12cc5c35068a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_10386222-8b7d-4fe3-a3cf-12cc5c35068a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_10386222-8b7d-4fe3-a3cf-12cc5c35068a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_10386222-8b7d-4fe3-a3cf-12cc5c35068a" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_57e6e829-fe34-42c6-9324-d277dad145c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:to="loc_us-gaap_InterestRateContractMember_57e6e829-fe34-42c6-9324-d277dad145c2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_a0c83dac-692f-40e6-aa4d-1e0efc65919c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:to="loc_us-gaap_ForeignExchangeContractMember_a0c83dac-692f-40e6-aa4d-1e0efc65919c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommodityContractsNotSubjectToRateRecoveryMember_f98829bf-9444-417e-bb59-ecda9d9279a7" xlink:href="sre-20240630.xsd#sre_CommodityContractsNotSubjectToRateRecoveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:to="loc_sre_CommodityContractsNotSubjectToRateRecoveryMember_f98829bf-9444-417e-bb59-ecda9d9279a7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommodityContractsSubjectToRateRecoveryMember_c9a4ba50-3846-403a-923c-f7bf037ebe2e" xlink:href="sre-20240630.xsd#sre_CommodityContractsSubjectToRateRecoveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_7e2e76bd-8fc0-4124-8b2c-7ea150dbc263" xlink:to="loc_sre_CommodityContractsSubjectToRateRecoveryMember_c9a4ba50-3846-403a-923c-f7bf037ebe2e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_981eab89-e830-42dc-8de0-2f41b9fbf3a4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_981eab89-e830-42dc-8de0-2f41b9fbf3a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_938e96ea-d7dd-408b-bdda-d75751c76be5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_938e96ea-d7dd-408b-bdda-d75751c76be5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset_285f982b-09c0-4b5d-a894-d66f030c7296" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset_285f982b-09c0-4b5d-a894-d66f030c7296" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetAfterOffsetSubjectToMasterNettingArrangement_6d676177-ba6f-4997-ab7f-bd34ab0e2dcd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetAfterOffsetSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeAssetAfterOffsetSubjectToMasterNettingArrangement_6d676177-ba6f-4997-ab7f-bd34ab0e2dcd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery_ce117135-e3e6-4b39-b6f2-3d96e55bfc31" xlink:href="sre-20240630.xsd#sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery_ce117135-e3e6-4b39-b6f2-3d96e55bfc31" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery_1edadfda-ef6e-485d-b27a-225ab3acff02" xlink:href="sre-20240630.xsd#sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_sre_DerivativeAssetAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery_1edadfda-ef6e-485d-b27a-225ab3acff02" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_1db0320b-338f-4df1-a02d-9c46f9a94ad7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeAssets_1db0320b-338f-4df1-a02d-9c46f9a94ad7" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_8c218550-ae48-4446-b981-81b1cb407410" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_8c218550-ae48-4446-b981-81b1cb407410" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_753514f3-d89f-4b54-896c-32cda9d1cd3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_753514f3-d89f-4b54-896c-32cda9d1cd3f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset_3b3628c4-48df-4b3b-98a1-4c5cf96ac36e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset_3b3628c4-48df-4b3b-98a1-4c5cf96ac36e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityAfterOffsetSubjectToMasterNettingArrangement_982d5fbd-572f-4631-a0c3-794b0f634b54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityAfterOffsetSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeLiabilityAfterOffsetSubjectToMasterNettingArrangement_982d5fbd-572f-4631-a0c3-794b0f634b54" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery_6b8eeff7-9f5f-4242-b7e8-ec5bab763c7c" xlink:href="sre-20240630.xsd#sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsNotSubjectToRateRecovery_6b8eeff7-9f5f-4242-b7e8-ec5bab763c7c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery_1d999000-d9bf-449b-9959-ea67727cfa50" xlink:href="sre-20240630.xsd#sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_sre_DerivativeLiabilityAdditionalMarginPostedForCommodityContractsSubjectToRateRecovery_1d999000-d9bf-449b-9959-ea67727cfa50" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_065dc9e8-7687-4662-986e-e75fa8ef2881" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativesFairValueLineItems_ea9a44ca-a9e4-4284-8ea6-9e4e0275512d" xlink:to="loc_us-gaap_DerivativeLiabilities_065dc9e8-7687-4662-986e-e75fa8ef2881" xlink:type="arc" order="13"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEIMPACTONINCOMEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEIMPACTONINCOMEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEIMPACTONINCOMEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:to="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationAxis_441127b5-56cc-437d-903b-f85950b03503" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_us-gaap_HedgingDesignationAxis_441127b5-56cc-437d-903b-f85950b03503" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_441127b5-56cc-437d-903b-f85950b03503_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_HedgingDesignationAxis_441127b5-56cc-437d-903b-f85950b03503" xlink:to="loc_us-gaap_HedgingDesignationDomain_441127b5-56cc-437d-903b-f85950b03503_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingDesignationDomain_70f84d60-275f-437e-afa9-1efbb5e9ae16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingDesignationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_HedgingDesignationAxis_441127b5-56cc-437d-903b-f85950b03503" xlink:to="loc_us-gaap_HedgingDesignationDomain_70f84d60-275f-437e-afa9-1efbb5e9ae16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DesignatedAsHedgingInstrumentMember_7b7461c7-bf4e-462d-aecf-682715e4e09a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DesignatedAsHedgingInstrumentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_70f84d60-275f-437e-afa9-1efbb5e9ae16" xlink:to="loc_us-gaap_DesignatedAsHedgingInstrumentMember_7b7461c7-bf4e-462d-aecf-682715e4e09a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NondesignatedMember_f1e4604f-f1f5-4ae2-964b-21041c990a22" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NondesignatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingDesignationDomain_70f84d60-275f-437e-afa9-1efbb5e9ae16" xlink:to="loc_us-gaap_NondesignatedMember_f1e4604f-f1f5-4ae2-964b-21041c990a22" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_cf2a45f2-f77a-4d49-b0eb-7a0c5b65589e" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseMember_38819699-c549-4d73-ac9e-1c21a0acf88f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_us-gaap_InterestExpenseMember_38819699-c549-4d73-ac9e-1c21a0acf88f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EquityEarningsNetOfIncomeTaxMember_e7820a12-30d9-44d7-8201-fa1a62bfd752" xlink:href="sre-20240630.xsd#sre_EquityEarningsNetOfIncomeTaxMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_sre_EquityEarningsNetOfIncomeTaxMember_e7820a12-30d9-44d7-8201-fa1a62bfd752" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesMember_948ccf8e-f306-4a00-8a21-1262b83782a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_us-gaap_SalesMember_948ccf8e-f306-4a00-8a21-1262b83782a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncomeMember_9b3cd581-004e-47ab-86b5-46aa0310d422" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_us-gaap_OtherIncomeMember_9b3cd581-004e-47ab-86b5-46aa0310d422" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CostOfNaturalGasMember_fdd02488-332c-4ea1-bd8d-2e63d2a2c280" xlink:href="sre-20240630.xsd#sre_CostOfNaturalGasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_sre_CostOfNaturalGasMember_fdd02488-332c-4ea1-bd8d-2e63d2a2c280" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CostOfElectricFuelAndPurchasedPowerMember_f814311e-b6e5-4168-a61a-a89427d2e397" xlink:href="sre-20240630.xsd#sre_CostOfElectricFuelAndPurchasedPowerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_8900e272-bc35-49b1-b887-cdc3d082382d" xlink:to="loc_sre_CostOfElectricFuelAndPurchasedPowerMember_f814311e-b6e5-4168-a61a-a89427d2e397" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea" xlink:to="loc_us-gaap_HedgingRelationshipDomain_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_HedgingRelationshipDomain_dca6088c-7edc-417a-851f-9916d43388f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_HedgingRelationshipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis_ef5ea358-ee80-4c6c-b36c-8a1bc64b1dea" xlink:to="loc_us-gaap_HedgingRelationshipDomain_dca6088c-7edc-417a-851f-9916d43388f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgingMember_9fab24b6-8393-4bb9-8eab-342eaf0e75b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_dca6088c-7edc-417a-851f-9916d43388f2" xlink:to="loc_us-gaap_CashFlowHedgingMember_9fab24b6-8393-4bb9-8eab-342eaf0e75b6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueHedgingMember_78ec9e55-fc9a-4945-b165-4462d9c1ffb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueHedgingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_HedgingRelationshipDomain_dca6088c-7edc-417a-851f-9916d43388f2" xlink:to="loc_us-gaap_FairValueHedgingMember_78ec9e55-fc9a-4945-b165-4462d9c1ffb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_4967aee8-9205-4075-9c20-bd7d40d0268f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_4967aee8-9205-4075-9c20-bd7d40d0268f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_4967aee8-9205-4075-9c20-bd7d40d0268f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4967aee8-9205-4075-9c20-bd7d40d0268f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_4967aee8-9205-4075-9c20-bd7d40d0268f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_4967aee8-9205-4075-9c20-bd7d40d0268f" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_d50a67ba-471d-4a0a-890a-ef9e65b7da40" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_us-gaap_InterestRateContractMember_d50a67ba-471d-4a0a-890a-ef9e65b7da40" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeMember_e036ceb0-3817-436b-95d3-8414c596ed92" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_us-gaap_ForeignExchangeMember_e036ceb0-3817-436b-95d3-8414c596ed92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CrossCurrencyInterestRateContractMember_76950972-aa56-43ea-96aa-0b6f514ae3d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CrossCurrencyInterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_us-gaap_CrossCurrencyInterestRateContractMember_76950972-aa56-43ea-96aa-0b6f514ae3d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommodityContractMember_ed04ad48-6153-4fa4-b539-97de4aba8019" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommodityContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_us-gaap_CommodityContractMember_ed04ad48-6153-4fa4-b539-97de4aba8019" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommodityContractsSubjectToRateRecoveryMember_96be2567-1576-4286-8782-115d6ff025e4" xlink:href="sre-20240630.xsd#sre_CommodityContractsSubjectToRateRecoveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_sre_CommodityContractsSubjectToRateRecoveryMember_96be2567-1576-4286-8782-115d6ff025e4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ContingentInterestRateDerivativeMember_33a14756-20a3-4b91-b389-1990a5758907" xlink:href="sre-20240630.xsd#sre_ContingentInterestRateDerivativeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_384186cd-abc5-4f21-a3bf-cb8b92d3df1d" xlink:to="loc_sre_ContingentInterestRateDerivativeMember_33a14756-20a3-4b91-b389-1990a5758907" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_7ed1cae0-eec2-41b9-8571-5073dffab75a" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_dei_LegalEntityAxis_7ed1cae0-eec2-41b9-8571-5073dffab75a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_7ed1cae0-eec2-41b9-8571-5073dffab75a_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_7ed1cae0-eec2-41b9-8571-5073dffab75a" xlink:to="loc_dei_EntityDomain_7ed1cae0-eec2-41b9-8571-5073dffab75a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_24772271-e6ad-433a-a5a9-8a31abdb8ffb" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_7ed1cae0-eec2-41b9-8571-5073dffab75a" xlink:to="loc_dei_EntityDomain_24772271-e6ad-433a-a5a9-8a31abdb8ffb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_84280bfe-57a0-430d-962f-65181276bf64" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_24772271-e6ad-433a-a5a9-8a31abdb8ffb" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_84280bfe-57a0-430d-962f-65181276bf64" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_b32027db-4245-49bb-86c2-b746cc23e077" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_24772271-e6ad-433a-a5a9-8a31abdb8ffb" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_b32027db-4245-49bb-86c2-b746cc23e077" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_63fa8187-08be-40d1-afb7-c072896922a4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_b91b9948-9f05-49e9-9e64-3b7d1da3aaba" xlink:to="loc_srt_ProductOrServiceAxis_63fa8187-08be-40d1-afb7-c072896922a4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_63fa8187-08be-40d1-afb7-c072896922a4_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_63fa8187-08be-40d1-afb7-c072896922a4" xlink:to="loc_srt_ProductsAndServicesDomain_63fa8187-08be-40d1-afb7-c072896922a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_e6a131f1-bf04-47dc-b569-0526db3536ec" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_63fa8187-08be-40d1-afb7-c072896922a4" xlink:to="loc_srt_ProductsAndServicesDomain_e6a131f1-bf04-47dc-b569-0526db3536ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NaturalGasUsRegulatedMember_10543664-f84d-445e-b1b8-c3cf1aec03ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NaturalGasUsRegulatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_e6a131f1-bf04-47dc-b569-0526db3536ec" xlink:to="loc_us-gaap_NaturalGasUsRegulatedMember_10543664-f84d-445e-b1b8-c3cf1aec03ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ElectricityUsRegulatedMember_9a286250-c04e-48a4-a067-4739657c6983" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ElectricityUsRegulatedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_e6a131f1-bf04-47dc-b569-0526db3536ec" xlink:to="loc_us-gaap_ElectricityUsRegulatedMember_9a286250-c04e-48a4-a067-4739657c6983" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_ec81c28e-c779-4dab-8ffc-5d0526da3d7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAndTax_ec81c28e-c779-4dab-8ffc-5d0526da3d7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_6d00267d-2106-4149-992b-8d1561655250" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax_6d00267d-2106-4149-992b-8d1561655250" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossOnDerivativeNet_c9707271-8317-4196-988e-3c59e01e6474" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeGainLossOnDerivativeNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:to="loc_us-gaap_DerivativeGainLossOnDerivativeNet_c9707271-8317-4196-988e-3c59e01e6474" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration_e835e965-018e-40e2-b645-4753f7603a83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_e85c12e3-dcc9-468a-a74a-0e0ad3f1765c" xlink:to="loc_us-gaap_DerivativeGainLossStatementOfIncomeOrComprehensiveIncomeExtensibleEnumeration_e835e965-018e-40e2-b645-4753f7603a83" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSCASHFLOWHEDGESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSCASHFLOWHEDGESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSCASHFLOWHEDGESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_908e1107-efbd-4e61-91fa-887a5b303c6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_4c0dbd68-e91d-43c9-a8f6-77005fe9825a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_908e1107-efbd-4e61-91fa-887a5b303c6a" xlink:to="loc_us-gaap_DerivativeTable_4c0dbd68-e91d-43c9-a8f6-77005fe9825a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesAxis_ddb7a5fa-c157-41a7-b81e-075673eee1ef" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_4c0dbd68-e91d-43c9-a8f6-77005fe9825a" xlink:to="loc_srt_ConsolidatedEntitiesAxis_ddb7a5fa-c157-41a7-b81e-075673eee1ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_ddb7a5fa-c157-41a7-b81e-075673eee1ef_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ddb7a5fa-c157-41a7-b81e-075673eee1ef" xlink:to="loc_srt_ConsolidatedEntitiesDomain_ddb7a5fa-c157-41a7-b81e-075673eee1ef_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidatedEntitiesDomain_25d3b10f-1b85-46c0-959e-2e2c751252a6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidatedEntitiesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidatedEntitiesAxis_ddb7a5fa-c157-41a7-b81e-075673eee1ef" xlink:to="loc_srt_ConsolidatedEntitiesDomain_25d3b10f-1b85-46c0-959e-2e2c751252a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvesteeMember_0439ec44-bbb3-45fd-9816-46576f12ce4c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvesteeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidatedEntitiesDomain_25d3b10f-1b85-46c0-959e-2e2c751252a6" xlink:to="loc_us-gaap_EquityMethodInvesteeMember_0439ec44-bbb3-45fd-9816-46576f12ce4c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_708c0f8e-3030-43c5-8247-00ef6a54f21f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_4c0dbd68-e91d-43c9-a8f6-77005fe9825a" xlink:to="loc_dei_LegalEntityAxis_708c0f8e-3030-43c5-8247-00ef6a54f21f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_708c0f8e-3030-43c5-8247-00ef6a54f21f_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_708c0f8e-3030-43c5-8247-00ef6a54f21f" xlink:to="loc_dei_EntityDomain_708c0f8e-3030-43c5-8247-00ef6a54f21f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4bc8b36d-fc4d-4bb7-a9ba-804449f06ced" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_708c0f8e-3030-43c5-8247-00ef6a54f21f" xlink:to="loc_dei_EntityDomain_4bc8b36d-fc4d-4bb7-a9ba-804449f06ced" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_497b1619-418b-406f-9b86-ad71e03659d2" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_4bc8b36d-fc4d-4bb7-a9ba-804449f06ced" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_497b1619-418b-406f-9b86-ad71e03659d2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_3bd47958-e0c7-49fc-8fd0-669435a873b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_908e1107-efbd-4e61-91fa-887a5b303c6a" xlink:to="loc_us-gaap_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonths_3bd47958-e0c7-49fc-8fd0-669435a873b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonthsAttributableToNoncontrollingInterest_f5820805-a052-4092-969b-61ea0db5d56d" xlink:href="sre-20240630.xsd#sre_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonthsAttributableToNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_908e1107-efbd-4e61-91fa-887a5b303c6a" xlink:to="loc_sre_CashFlowHedgeGainLossToBeReclassifiedWithinTwelveMonthsAttributableToNoncontrollingInterest_f5820805-a052-4092-969b-61ea0db5d56d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaximumLengthOfTimeHedgedInInterestRateCashFlowHedge1_d907c0ed-7407-445f-afa4-7637851c7758" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MaximumLengthOfTimeHedgedInInterestRateCashFlowHedge1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_908e1107-efbd-4e61-91fa-887a5b303c6a" xlink:to="loc_us-gaap_MaximumLengthOfTimeHedgedInInterestRateCashFlowHedge1_d907c0ed-7407-445f-afa4-7637851c7758" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSWITHCONTINGENTFEATURESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSWITHCONTINGENTFEATURESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/DERIVATIVEFINANCIALINSTRUMENTSDERIVATIVEINSTRUMENTSWITHCONTINGENTFEATURESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLineItems_402d10f3-5917-462d-8b7f-61600aa0053a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeTable_88c6a190-68c9-4670-8e15-6a369364046f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DerivativeLineItems_402d10f3-5917-462d-8b7f-61600aa0053a" xlink:to="loc_us-gaap_DerivativeTable_88c6a190-68c9-4670-8e15-6a369364046f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_b4455662-b541-4dfb-bf68-1ec980cb056f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DerivativeTable_88c6a190-68c9-4670-8e15-6a369364046f" xlink:to="loc_dei_LegalEntityAxis_b4455662-b541-4dfb-bf68-1ec980cb056f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b4455662-b541-4dfb-bf68-1ec980cb056f_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_b4455662-b541-4dfb-bf68-1ec980cb056f" xlink:to="loc_dei_EntityDomain_b4455662-b541-4dfb-bf68-1ec980cb056f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_41c34217-126b-4d5b-9e2e-b448a8fa8a40" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_b4455662-b541-4dfb-bf68-1ec980cb056f" xlink:to="loc_dei_EntityDomain_41c34217-126b-4d5b-9e2e-b448a8fa8a40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_c9c494d7-d59a-4557-9246-0a2d1c90154a" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_41c34217-126b-4d5b-9e2e-b448a8fa8a40" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_c9c494d7-d59a-4557-9246-0a2d1c90154a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_aff06a80-c518-43b4-8d06-f9fb9b501431" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeNetLiabilityPositionAggregateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_402d10f3-5917-462d-8b7f-61600aa0053a" xlink:to="loc_us-gaap_DerivativeNetLiabilityPositionAggregateFairValue_aff06a80-c518-43b4-8d06-f9fb9b501431" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalCollateralAggregateFairValue_fb2b19fc-103c-4eee-aa49-3b87fdee9002" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalCollateralAggregateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeLineItems_402d10f3-5917-462d-8b7f-61600aa0053a" xlink:to="loc_us-gaap_AdditionalCollateralAggregateFairValue_fb2b19fc-103c-4eee-aa49-3b87fdee9002" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSRECURRINGFAIRVALUEMEASURESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#FAIRVALUEMEASUREMENTSRECURRINGFAIRVALUEMEASURESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSRECURRINGFAIRVALUEMEASURESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0bede34f-daac-4b06-8619-578133e7c48f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0bede34f-daac-4b06-8619-578133e7c48f" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:to="loc_dei_LegalEntityAxis_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c" xlink:to="loc_dei_EntityDomain_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_57529cb6-5ebe-418c-b64a-867c1099c972" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_0890accd-bb9d-4a54-96d8-d9cf74fd4c2c" xlink:to="loc_dei_EntityDomain_57529cb6-5ebe-418c-b64a-867c1099c972" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_e452e6bd-499c-4279-8816-d029c70828fc" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_57529cb6-5ebe-418c-b64a-867c1099c972" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_e452e6bd-499c-4279-8816-d029c70828fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_890fb19c-9edf-4160-b12f-b18d6771c029" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_57529cb6-5ebe-418c-b64a-867c1099c972" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_890fb19c-9edf-4160-b12f-b18d6771c029" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22292e25-6565-41a9-8f61-77830e6aa648" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22292e25-6565-41a9-8f61-77830e6aa648" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_22292e25-6565-41a9-8f61-77830e6aa648_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22292e25-6565-41a9-8f61-77830e6aa648" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_22292e25-6565-41a9-8f61-77830e6aa648_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_deb1bd6d-1c91-414e-a536-335512f0365e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_22292e25-6565-41a9-8f61-77830e6aa648" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_deb1bd6d-1c91-414e-a536-335512f0365e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_a7bf838e-0278-496a-91cd-e83f562ba84e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_deb1bd6d-1c91-414e-a536-335512f0365e" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_a7bf838e-0278-496a-91cd-e83f562ba84e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1a4157ff-38ce-4f98-ae99-69b79f62bcd8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_25ecbd0b-5f4b-48d5-95b5-8ee98d7f2633" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1a4157ff-38ce-4f98-ae99-69b79f62bcd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_01edc6c8-3a60-4b7e-8246-a4074cf8bfa8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1a4157ff-38ce-4f98-ae99-69b79f62bcd8" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_01edc6c8-3a60-4b7e-8246-a4074cf8bfa8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_e3aa3299-f519-414b-8cf0-d9c2e0c99efe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1a4157ff-38ce-4f98-ae99-69b79f62bcd8" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_e3aa3299-f519-414b-8cf0-d9c2e0c99efe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_f7373537-9c0e-4e7c-b87b-0b7dc75ac0ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_1a4157ff-38ce-4f98-ae99-69b79f62bcd8" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_f7373537-9c0e-4e7c-b87b-0b7dc75ac0ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeInstrumentRiskAxis_fd74fc6e-8668-4a6f-968a-e919fcc56a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeInstrumentRiskAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:to="loc_us-gaap_DerivativeInstrumentRiskAxis_fd74fc6e-8668-4a6f-968a-e919fcc56a6d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_fd74fc6e-8668-4a6f-968a-e919fcc56a6d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_fd74fc6e-8668-4a6f-968a-e919fcc56a6d" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_fd74fc6e-8668-4a6f-968a-e919fcc56a6d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeContractTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DerivativeInstrumentRiskAxis_fd74fc6e-8668-4a6f-968a-e919fcc56a6d" xlink:to="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestRateContractMember_21d97377-e2aa-4089-99e2-41c99b032c7c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestRateContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:to="loc_us-gaap_InterestRateContractMember_21d97377-e2aa-4089-99e2-41c99b032c7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommodityContractsNotSubjectToRateRecoveryMember_3874aad0-e238-4d75-b3ff-82a0b6c156e9" xlink:href="sre-20240630.xsd#sre_CommodityContractsNotSubjectToRateRecoveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:to="loc_sre_CommodityContractsNotSubjectToRateRecoveryMember_3874aad0-e238-4d75-b3ff-82a0b6c156e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CommodityContractsSubjectToRateRecoveryMember_7f1d9431-041d-498c-8f2d-1846fcdd443c" xlink:href="sre-20240630.xsd#sre_CommodityContractsSubjectToRateRecoveryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:to="loc_sre_CommodityContractsSubjectToRateRecoveryMember_7f1d9431-041d-498c-8f2d-1846fcdd443c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignExchangeContractMember_47228745-3685-4a0a-8f11-a4d95beebedf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignExchangeContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DerivativeContractTypeDomain_d9ab8687-1650-42ef-9d50-66c580c9708d" xlink:to="loc_us-gaap_ForeignExchangeContractMember_47228745-3685-4a0a-8f11-a4d95beebedf" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_fd0680de-e48b-4332-a35d-7e3c343155c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_e587f6c3-b812-452a-bd8d-19f071d83224" xlink:to="loc_us-gaap_FinancialInstrumentAxis_fd0680de-e48b-4332-a35d-7e3c343155c3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_fd0680de-e48b-4332-a35d-7e3c343155c3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_fd0680de-e48b-4332-a35d-7e3c343155c3" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_fd0680de-e48b-4332-a35d-7e3c343155c3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_fd0680de-e48b-4332-a35d-7e3c343155c3" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_665b2cab-dd30-499a-be59-59192c007131" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_665b2cab-dd30-499a-be59-59192c007131" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityFundsMember_d4e6bc3e-d995-400e-9322-d39a3a039b45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_EquityFundsMember_d4e6bc3e-d995-400e-9322-d39a3a039b45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USGovernmentDebtSecuritiesMember_3f5cffad-08b5-4a61-b813-41031048368d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USGovernmentDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_USGovernmentDebtSecuritiesMember_3f5cffad-08b5-4a61-b813-41031048368d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_3bc9722d-cfd2-4b1a-9629-7a8acbc53148" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_MunicipalBondsMember_3bc9722d-cfd2-4b1a-9629-7a8acbc53148" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_393be81d-f19c-48b4-ad1c-96950c7c5c61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_393be81d-f19c-48b4-ad1c-96950c7c5c61" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtMember_07c86a37-fd85-48c2-854e-b879756b2664" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_8d2873a4-e320-4dba-8fee-9566b350f248" xlink:to="loc_us-gaap_DebtMember_07c86a37-fd85-48c2-854e-b879756b2664" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0bede34f-daac-4b06-8619-578133e7c48f" xlink:to="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DecommissioningTrustAssetsAmount_597057ff-6fcd-4e0f-a057-39b5fb4cc612" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DecommissioningTrustAssetsAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_us-gaap_DecommissioningTrustAssetsAmount_597057ff-6fcd-4e0f-a057-39b5fb4cc612" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_ShortTermInvestmentsHeldInTrustsFairValueDisclosure_d57706c9-8e42-4029-9747-ef069986f2cf" xlink:href="sre-20240630.xsd#sre_ShortTermInvestmentsHeldInTrustsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_sre_ShortTermInvestmentsHeldInTrustsFairValueDisclosure_d57706c9-8e42-4029-9747-ef069986f2cf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_GuarantorObligationsAssetFairValueDisclosure_d6abcbf9-2fb6-4df2-ab15-81dd367d462a" xlink:href="sre-20240630.xsd#sre_GuarantorObligationsAssetFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_sre_GuarantorObligationsAssetFairValueDisclosure_d6abcbf9-2fb6-4df2-ab15-81dd367d462a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_c59821f0-ad3a-4937-b13e-27164029d3bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement_c59821f0-ad3a-4937-b13e-27164029d3bb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_400dcd67-d3ec-446a-8765-59483077b677" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiabilityAndObligationToReturnCashOffset_400dcd67-d3ec-446a-8765-59483077b677" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_d7703ba0-6d87-48d9-adf0-f0280b3403d5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_us-gaap_DerivativeAssets_d7703ba0-6d87-48d9-adf0-f0280b3403d5" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_83d3718d-6485-40b9-9c28-6dde8f7d80c1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsFairValueDisclosureAbstract_35a95b28-115a-4d66-afb7-bd8753b76521" xlink:to="loc_us-gaap_AssetsFairValueDisclosure_83d3718d-6485-40b9-9c28-6dde8f7d80c1" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosureAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_0bede34f-daac-4b06-8619-578133e7c48f" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_12a2f621-58e8-44a3-8bf7-9b5df493ce3f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement_12a2f621-58e8-44a3-8bf7-9b5df493ce3f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_f3abcbc7-5b05-430c-984c-8f75be51efab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAssetAndRightToReclaimCashOffset_f3abcbc7-5b05-430c-984c-8f75be51efab" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_2ea2888c-32d6-413a-8432-febb1361b709" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:to="loc_us-gaap_DerivativeLiabilities_2ea2888c-32d6-413a-8432-febb1361b709" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_a2a594c4-a0f6-44d4-9d1b-2d8e330aaa15" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosureAbstract_15ae0f47-f297-4862-9edb-eb554b9d411f" xlink:to="loc_us-gaap_LiabilitiesFairValueDisclosure_a2a594c4-a0f6-44d4-9d1b-2d8e330aaa15" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSRECONOFLEVEL3ASSETSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#FAIRVALUEMEASUREMENTSRECONOFLEVEL3ASSETSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSRECONOFLEVEL3ASSETSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_dd5613dc-e446-461d-b017-42d3d4aebecc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_dd5613dc-e446-461d-b017-42d3d4aebecc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_dd5613dc-e446-461d-b017-42d3d4aebecc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_dd5613dc-e446-461d-b017-42d3d4aebecc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_dd5613dc-e446-461d-b017-42d3d4aebecc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39ee75ae-6cf4-4bc6-8fc6-22113e54d5ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_dd5613dc-e446-461d-b017-42d3d4aebecc" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39ee75ae-6cf4-4bc6-8fc6-22113e54d5ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_ddee6556-1800-489f-afc2-dbe569233d9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_39ee75ae-6cf4-4bc6-8fc6-22113e54d5ca" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_ddee6556-1800-489f-afc2-dbe569233d9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_4f74b184-2b57-4030-8e20-a57c770b0fa1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:to="loc_dei_LegalEntityAxis_4f74b184-2b57-4030-8e20-a57c770b0fa1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4f74b184-2b57-4030-8e20-a57c770b0fa1_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_4f74b184-2b57-4030-8e20-a57c770b0fa1" xlink:to="loc_dei_EntityDomain_4f74b184-2b57-4030-8e20-a57c770b0fa1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_b91af1f5-4338-4b30-9b2a-ff7e1815e0b1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_4f74b184-2b57-4030-8e20-a57c770b0fa1" xlink:to="loc_dei_EntityDomain_b91af1f5-4338-4b30-9b2a-ff7e1815e0b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_5a5cff83-daba-4da1-8040-d05771ab9058" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_b91af1f5-4338-4b30-9b2a-ff7e1815e0b1" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_5a5cff83-daba-4da1-8040-d05771ab9058" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_37cc2e9d-930c-4727-b1db-e6c9339f8883" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:to="loc_srt_RangeAxis_37cc2e9d-930c-4727-b1db-e6c9339f8883" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_37cc2e9d-930c-4727-b1db-e6c9339f8883_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_37cc2e9d-930c-4727-b1db-e6c9339f8883" xlink:to="loc_srt_RangeMember_37cc2e9d-930c-4727-b1db-e6c9339f8883_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_845b4604-5ec1-46fe-998b-8c576a6d91a2" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_37cc2e9d-930c-4727-b1db-e6c9339f8883" xlink:to="loc_srt_RangeMember_845b4604-5ec1-46fe-998b-8c576a6d91a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_717fe03f-97cb-4533-98d8-31fb61cae2e2" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_845b4604-5ec1-46fe-998b-8c576a6d91a2" xlink:to="loc_srt_MinimumMember_717fe03f-97cb-4533-98d8-31fb61cae2e2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_12394068-623e-46cc-b2a9-9e6530c198cd" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_845b4604-5ec1-46fe-998b-8c576a6d91a2" xlink:to="loc_srt_MaximumMember_12394068-623e-46cc-b2a9-9e6530c198cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_cd37212e-32f4-4d70-8e05-4c6d5a5ba5e7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_845b4604-5ec1-46fe-998b-8c576a6d91a2" xlink:to="loc_srt_WeightedAverageMember_cd37212e-32f4-4d70-8e05-4c6d5a5ba5e7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_d4d16864-face-4ccc-af66-42f6fc9fe851" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_d4d16864-face-4ccc-af66-42f6fc9fe851" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d4d16864-face-4ccc-af66-42f6fc9fe851_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d4d16864-face-4ccc-af66-42f6fc9fe851" xlink:to="loc_us-gaap_SegmentDomain_d4d16864-face-4ccc-af66-42f6fc9fe851_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d8864ca6-77cb-487d-808a-8861974ec446" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_d4d16864-face-4ccc-af66-42f6fc9fe851" xlink:to="loc_us-gaap_SegmentDomain_d8864ca6-77cb-487d-808a-8861974ec446" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OtherSempraMember_088f8ef7-c384-4ba5-9ef0-01db4fafe30b" xlink:href="sre-20240630.xsd#sre_OtherSempraMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d8864ca6-77cb-487d-808a-8861974ec446" xlink:to="loc_sre_OtherSempraMember_088f8ef7-c384-4ba5-9ef0-01db4fafe30b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_b56ba326-0772-4699-aef2-aa0375639965" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_1e36b5b4-008e-47da-9481-c8e51c8194cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_f1cc8040-547b-4d7f-98a0-9ec48ffe5fb2" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_1e36b5b4-008e-47da-9481-c8e51c8194cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentAssetsMember_ab1c67a4-6ef5-4641-9c75-2f7b5dcc448d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1e36b5b4-008e-47da-9481-c8e51c8194cf" xlink:to="loc_us-gaap_OtherCurrentAssetsMember_ab1c67a4-6ef5-4641-9c75-2f7b5dcc448d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncurrentAssetsMember_6bc8c511-bed7-44fe-b809-3374c971fb9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncurrentAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_1e36b5b4-008e-47da-9481-c8e51c8194cf" xlink:to="loc_us-gaap_OtherNoncurrentAssetsMember_6bc8c511-bed7-44fe-b809-3374c971fb9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs_f98ea88b-c3d9-43cc-a403-cbed9ed5886d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs_f98ea88b-c3d9-43cc-a403-cbed9ed5886d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings_62e2d4ae-5df6-48e8-a2ba-1a92a66b3834" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings_62e2d4ae-5df6-48e8-a2ba-1a92a66b3834" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetAllocatedTransmissionInstruments_e975a4bf-e652-45dc-a8e3-ccc08a4bb6a5" xlink:href="sre-20240630.xsd#sre_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetAllocatedTransmissionInstruments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:to="loc_sre_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetAllocatedTransmissionInstruments_e975a4bf-e652-45dc-a8e3-ccc08a4bb6a5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements_b6ae3a3c-7181-47d1-ace2-9e4f9bd5f4f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_eaf86abf-bfe8-4d82-b472-dd197b035e07" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements_b6ae3a3c-7181-47d1-ace2-9e4f9bd5f4f5" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs_498de3b4-979b-484d-9f60-9fc4325a892b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss_f8b4ad8b-2aab-41cd-8d6b-c8bd8b57c3c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss_f8b4ad8b-2aab-41cd-8d6b-c8bd8b57c3c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_CongestionRevenueRights_dc455b72-531d-416a-aca7-16d00a7294e0" xlink:href="sre-20240630.xsd#sre_CongestionRevenueRights"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:to="loc_sre_CongestionRevenueRights_dc455b72-531d-416a-aca7-16d00a7294e0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_ba59ef28-3dbc-4a25-a504-76fcca5ca1d9" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_93bc00e2-86f8-4bf1-ac5a-24ec2b781811" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_93bc00e2-86f8-4bf1-ac5a-24ec2b781811" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_7b4a4c8d-43b9-4f46-8dc3-bf2e98c38af8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_7b4a4c8d-43b9-4f46-8dc3-bf2e98c38af8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_f210c866-a11d-4b9b-8d4c-12a9c0e8e6aa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_f210c866-a11d-4b9b-8d4c-12a9c0e8e6aa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_90f6f838-5392-4e00-be2f-93f6daa0633d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss_f33c9122-b06f-4f69-b5e6-ccd65d05976e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_af77f113-87d8-4995-9cae-0fdf62dcc609" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss_f33c9122-b06f-4f69-b5e6-ccd65d05976e" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSFINANCIALINSTRUMENTSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#FAIRVALUEMEASUREMENTSFINANCIALINSTRUMENTSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/FAIRVALUEMEASUREMENTSFINANCIALINSTRUMENTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_f3246d53-02bf-4983-80d4-30572ff4590b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_f3246d53-02bf-4983-80d4-30572ff4590b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_063b7496-11cc-415f-9e85-b8945fe66153" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_f3246d53-02bf-4983-80d4-30572ff4590b" xlink:to="loc_dei_LegalEntityAxis_063b7496-11cc-415f-9e85-b8945fe66153" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_063b7496-11cc-415f-9e85-b8945fe66153_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_063b7496-11cc-415f-9e85-b8945fe66153" xlink:to="loc_dei_EntityDomain_063b7496-11cc-415f-9e85-b8945fe66153_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_03089965-bba4-4b95-8451-49826aadffa0" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_063b7496-11cc-415f-9e85-b8945fe66153" xlink:to="loc_dei_EntityDomain_03089965-bba4-4b95-8451-49826aadffa0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_e31f741f-ef79-4fe8-98e9-0028851ebc78" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_03089965-bba4-4b95-8451-49826aadffa0" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_e31f741f-ef79-4fe8-98e9-0028851ebc78" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_6ff012ff-5759-4fc3-8306-b33e730fe35c" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_03089965-bba4-4b95-8451-49826aadffa0" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_6ff012ff-5759-4fc3-8306-b33e730fe35c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementBasisAxis_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementBasisAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_f3246d53-02bf-4983-80d4-30572ff4590b" xlink:to="loc_us-gaap_FairValueByMeasurementBasisAxis_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f5de573c-8347-43bf-af1b-281276d644ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementBasisAxis_f2662d0c-db62-41fc-8fa9-8f173d8fbe3a" xlink:to="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f5de573c-8347-43bf-af1b-281276d644ef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_379a4a48-3342-401a-90ea-4da9d5215812" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PortionAtFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueDisclosureItemAmountsDomain_f5de573c-8347-43bf-af1b-281276d644ef" xlink:to="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_379a4a48-3342-401a-90ea-4da9d5215812" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_0e089d40-a48f-45e1-b9e6-42557841486c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_379a4a48-3342-401a-90ea-4da9d5215812" xlink:to="loc_us-gaap_CarryingReportedAmountFairValueDisclosureMember_0e089d40-a48f-45e1-b9e6-42557841486c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_0e248ad4-28c4-4a9a-9f9b-3464c8a76a0f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PortionAtFairValueFairValueDisclosureMember_379a4a48-3342-401a-90ea-4da9d5215812" xlink:to="loc_us-gaap_EstimateOfFairValueFairValueDisclosureMember_0e248ad4-28c4-4a9a-9f9b-3464c8a76a0f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a148a6fb-9810-4fe3-aa66-9071276fac26" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_f3246d53-02bf-4983-80d4-30572ff4590b" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a148a6fb-9810-4fe3-aa66-9071276fac26" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a148a6fb-9810-4fe3-aa66-9071276fac26_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a148a6fb-9810-4fe3-aa66-9071276fac26" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a148a6fb-9810-4fe3-aa66-9071276fac26_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a32d7daa-dfc9-4170-afd7-82db3c05b116" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_a148a6fb-9810-4fe3-aa66-9071276fac26" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a32d7daa-dfc9-4170-afd7-82db3c05b116" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_b85dd641-e82e-4bdd-8fc5-e9d79d20f559" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a32d7daa-dfc9-4170-afd7-82db3c05b116" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_b85dd641-e82e-4bdd-8fc5-e9d79d20f559" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_aaa5f6c9-d0db-4af8-9a55-c6e6e3f5966c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a32d7daa-dfc9-4170-afd7-82db3c05b116" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_aaa5f6c9-d0db-4af8-9a55-c6e6e3f5966c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_a855a092-e35c-46c0-8414-083cb1f7e8c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_a32d7daa-dfc9-4170-afd7-82db3c05b116" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_a855a092-e35c-46c0-8414-083cb1f7e8c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableFairValueDisclosure_dfcf8f6f-6aa5-45cb-9b12-d59fb9262dbf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesReceivableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_us-gaap_NotesReceivableFairValueDisclosure_dfcf8f6f-6aa5-45cb-9b12-d59fb9262dbf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AdvancesFromAffiliatesAtFairValue_84842f1a-d50f-47c5-84b8-6b35b92649a2" xlink:href="sre-20240630.xsd#sre_AdvancesFromAffiliatesAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_sre_AdvancesFromAffiliatesAtFairValue_84842f1a-d50f-47c5-84b8-6b35b92649a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_85800978-d8aa-4740-b51f-8c5fc8b5e78c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_us-gaap_LongTermDebtFairValue_85800978-d8aa-4740-b51f-8c5fc8b5e78c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_f29848be-d168-43b5-a298-11de481f84e1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_f29848be-d168-43b5-a298-11de481f84e1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NotesReceivableUnamortizedIssuanceCosts_b79f1016-77e0-445d-84c2-b5368c746600" xlink:href="sre-20240630.xsd#sre_NotesReceivableUnamortizedIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_sre_NotesReceivableUnamortizedIssuanceCosts_b79f1016-77e0-445d-84c2-b5368c746600" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_UnamortizedDiscountAndDebtIssuanceCosts_f32f56e5-4ca9-4fb6-82be-6c2b9e86f947" xlink:href="sre-20240630.xsd#sre_UnamortizedDiscountAndDebtIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_sre_UnamortizedDiscountAndDebtIssuanceCosts_f32f56e5-4ca9-4fb6-82be-6c2b9e86f947" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiability_ebda3e16-5949-49c3-b156-8742307a8940" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinanceLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_45ca4a7f-25a0-40f4-8ccc-9a102b6c8afe" xlink:to="loc_us-gaap_FinanceLeaseLiability_ebda3e16-5949-49c3-b156-8742307a8940" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREPREFERREDSTOCKNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREPREFERREDSTOCKNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREPREFERREDSTOCKNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_sre_PreferredStockLineItems_104cf913-8245-4050-b0c6-53640d60763b" xlink:href="sre-20240630.xsd#sre_PreferredStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PreferredStockTable_a80bf373-099a-49a9-aa5e-3a49ffb7420c" xlink:href="sre-20240630.xsd#sre_PreferredStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_sre_PreferredStockLineItems_104cf913-8245-4050-b0c6-53640d60763b" xlink:to="loc_sre_PreferredStockTable_a80bf373-099a-49a9-aa5e-3a49ffb7420c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_4e5ecdd3-b575-4410-b51a-e6a2b59239b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_sre_PreferredStockTable_a80bf373-099a-49a9-aa5e-3a49ffb7420c" xlink:to="loc_us-gaap_StatementClassOfStockAxis_4e5ecdd3-b575-4410-b51a-e6a2b59239b3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_4e5ecdd3-b575-4410-b51a-e6a2b59239b3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4e5ecdd3-b575-4410-b51a-e6a2b59239b3" xlink:to="loc_us-gaap_ClassOfStockDomain_4e5ecdd3-b575-4410-b51a-e6a2b59239b3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_fb5453e6-7ffc-4f77-b1bd-53390b3e561b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_4e5ecdd3-b575-4410-b51a-e6a2b59239b3" xlink:to="loc_us-gaap_ClassOfStockDomain_fb5453e6-7ffc-4f77-b1bd-53390b3e561b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_d0c51cef-c05f-4b72-9705-eaf19500f30b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_fb5453e6-7ffc-4f77-b1bd-53390b3e561b" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_d0c51cef-c05f-4b72-9705-eaf19500f30b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesBPreferredStockMember_d7db1d8c-11c6-4a54-a2db-b66f1d0a914c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesBPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_fb5453e6-7ffc-4f77-b1bd-53390b3e561b" xlink:to="loc_us-gaap_SeriesBPreferredStockMember_d7db1d8c-11c6-4a54-a2db-b66f1d0a914c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_82e85c94-4483-4c4b-9fb6-f19cc46a5a55" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_sre_PreferredStockLineItems_104cf913-8245-4050-b0c6-53640d60763b" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_82e85c94-4483-4c4b-9fb6-f19cc46a5a55" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHARECOMMONSTOCKNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAEQUITYANDEARNINGSPERCOMMONSHARECOMMONSTOCKNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHARECOMMONSTOCKNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityClassOfTreasuryStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfTreasuryStockTable_e9d494da-2c33-4ba5-b41c-e5798c84ba54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfTreasuryStockTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_ClassOfTreasuryStockTable_e9d494da-2c33-4ba5-b41c-e5798c84ba54" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_0669492a-dfe0-4412-a6bf-2efb47b30e1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_e9d494da-2c33-4ba5-b41c-e5798c84ba54" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_0669492a-dfe0-4412-a6bf-2efb47b30e1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_0669492a-dfe0-4412-a6bf-2efb47b30e1d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_0669492a-dfe0-4412-a6bf-2efb47b30e1d" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_0669492a-dfe0-4412-a6bf-2efb47b30e1d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_41bcc9fc-b8e1-41a8-ad07-44553512a04b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_0669492a-dfe0-4412-a6bf-2efb47b30e1d" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_41bcc9fc-b8e1-41a8-ad07-44553512a04b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PublicStockOfferingMember_d28fa2a1-81de-452f-a170-f0b61138f1cb" xlink:href="sre-20240630.xsd#sre_PublicStockOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_41bcc9fc-b8e1-41a8-ad07-44553512a04b" xlink:to="loc_sre_PublicStockOfferingMember_d28fa2a1-81de-452f-a170-f0b61138f1cb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PublicStockOfferingPursuantToForwardSaleAgreementMember_82301ef5-7ab1-4dce-94a8-2db7c1db0bc8" xlink:href="sre-20240630.xsd#sre_PublicStockOfferingPursuantToForwardSaleAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_41bcc9fc-b8e1-41a8-ad07-44553512a04b" xlink:to="loc_sre_PublicStockOfferingPursuantToForwardSaleAgreementMember_82301ef5-7ab1-4dce-94a8-2db7c1db0bc8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_ab8c1950-f17b-4751-8db5-017a5c1aecfc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_e9d494da-2c33-4ba5-b41c-e5798c84ba54" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_ab8c1950-f17b-4751-8db5-017a5c1aecfc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_ab8c1950-f17b-4751-8db5-017a5c1aecfc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ab8c1950-f17b-4751-8db5-017a5c1aecfc" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_ab8c1950-f17b-4751-8db5-017a5c1aecfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_49bd9df3-dcf8-489e-a5dc-abc556be3013" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_ab8c1950-f17b-4751-8db5-017a5c1aecfc" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_49bd9df3-dcf8-489e-a5dc-abc556be3013" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_595ff6fe-16b3-41ad-8312-0b8768a9c486" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_49bd9df3-dcf8-489e-a5dc-abc556be3013" xlink:to="loc_us-gaap_SubsequentEventMember_595ff6fe-16b3-41ad-8312-0b8768a9c486" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_222adfbd-bc07-45a2-8c44-94b2babc4ce7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfTreasuryStockTable_e9d494da-2c33-4ba5-b41c-e5798c84ba54" xlink:to="loc_us-gaap_StatementClassOfStockAxis_222adfbd-bc07-45a2-8c44-94b2babc4ce7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_222adfbd-bc07-45a2-8c44-94b2babc4ce7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_222adfbd-bc07-45a2-8c44-94b2babc4ce7" xlink:to="loc_us-gaap_ClassOfStockDomain_222adfbd-bc07-45a2-8c44-94b2babc4ce7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_eb7d0056-1fdf-44aa-891a-15300fafe4db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_222adfbd-bc07-45a2-8c44-94b2babc4ce7" xlink:to="loc_us-gaap_ClassOfStockDomain_eb7d0056-1fdf-44aa-891a-15300fafe4db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_15ece283-a504-4a69-a94c-481c3f6e4e6d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_eb7d0056-1fdf-44aa-891a-15300fafe4db" xlink:to="loc_us-gaap_CommonStockMember_15ece283-a504-4a69-a94c-481c3f6e4e6d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_936ed0e3-d100-477e-ad88-a24c8df67a68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_936ed0e3-d100-477e-ad88-a24c8df67a68" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_StockholdersEquityNoteStockSplitResultingStockDividend_f394cda5-fb53-4738-929d-35b9a39b2a32" xlink:href="sre-20240630.xsd#sre_StockholdersEquityNoteStockSplitResultingStockDividend"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_sre_StockholdersEquityNoteStockSplitResultingStockDividend_f394cda5-fb53-4738-929d-35b9a39b2a32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_c733ec8b-3779-45cb-a534-30431d1ef3f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_c733ec8b-3779-45cb-a534-30431d1ef3f8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_396d9930-17ee-4882-8ad2-ba3bbf2d1e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_396d9930-17ee-4882-8ad2-ba3bbf2d1e4e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_e28153ab-b28b-48fe-8f5f-a03532c1cc62" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_e28153ab-b28b-48fe-8f5f-a03532c1cc62" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_48295b88-689d-4666-aef2-5b690c8d0700" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockPricePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_48295b88-689d-4666-aef2-5b690c8d0700" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SaleOfStockPricePerShareAfterUnderwritingDiscounts_2d8464ac-1553-4236-bee1-f79cecd45f0e" xlink:href="sre-20240630.xsd#sre_SaleOfStockPricePerShareAfterUnderwritingDiscounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_sre_SaleOfStockPricePerShareAfterUnderwritingDiscounts_2d8464ac-1553-4236-bee1-f79cecd45f0e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SaleOfStockSharesAvailableForFutureSettlement_a08e9e8c-d979-42e8-b973-b7362e8ebe03" xlink:href="sre-20240630.xsd#sre_SaleOfStockSharesAvailableForFutureSettlement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_sre_SaleOfStockSharesAvailableForFutureSettlement_a08e9e8c-d979-42e8-b973-b7362e8ebe03" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockSharesAcquired_e0364521-2896-4ded-84f3-e03a771d71da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockSharesAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_TreasuryStockSharesAcquired_e0364521-2896-4ded-84f3-e03a771d71da" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_d800ecb4-e887-4b93-938a-99bcf7141d91" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityClassOfTreasuryStockLineItems_e15592e0-69d4-400e-b420-134dd03971af" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_d800ecb4-e887-4b93-938a-99bcf7141d91" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHARENCINARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAEQUITYANDEARNINGSPERCOMMONSHARENCINARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHARENCINARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestTable_3ccf0317-4e27-4feb-a508-adb0d3ba1898" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_us-gaap_MinorityInterestTable_3ccf0317-4e27-4feb-a508-adb0d3ba1898" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_829aa211-1739-49f4-bbd4-74abfd0061d5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_3ccf0317-4e27-4feb-a508-adb0d3ba1898" xlink:to="loc_srt_OwnershipAxis_829aa211-1739-49f4-bbd4-74abfd0061d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_829aa211-1739-49f4-bbd4-74abfd0061d5_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_829aa211-1739-49f4-bbd4-74abfd0061d5" xlink:to="loc_srt_OwnershipDomain_829aa211-1739-49f4-bbd4-74abfd0061d5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_4d32a36c-7cf4-4562-833c-250d672fd179" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_829aa211-1739-49f4-bbd4-74abfd0061d5" xlink:to="loc_srt_OwnershipDomain_4d32a36c-7cf4-4562-833c-250d672fd179" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraPALNGHoldingsLLCMember_6333e16f-0d73-4b71-a1d2-601ccab2e858" xlink:href="sre-20240630.xsd#sre_SempraPALNGHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_4d32a36c-7cf4-4562-833c-250d672fd179" xlink:to="loc_sre_SempraPALNGHoldingsLLCMember_6333e16f-0d73-4b71-a1d2-601ccab2e858" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_33c37597-12c4-404b-b98b-8d8a438cc38b" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_3ccf0317-4e27-4feb-a508-adb0d3ba1898" xlink:to="loc_dei_LegalEntityAxis_33c37597-12c4-404b-b98b-8d8a438cc38b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_33c37597-12c4-404b-b98b-8d8a438cc38b_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_33c37597-12c4-404b-b98b-8d8a438cc38b" xlink:to="loc_dei_EntityDomain_33c37597-12c4-404b-b98b-8d8a438cc38b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_552cd0f8-0e38-43f0-9e72-77ff35bf9a3e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_33c37597-12c4-404b-b98b-8d8a438cc38b" xlink:to="loc_dei_EntityDomain_552cd0f8-0e38-43f0-9e72-77ff35bf9a3e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IndirectSubsidiaryOfSIPartnersMember_c490b88c-f706-4e3a-b29c-69e834df182e" xlink:href="sre-20240630.xsd#sre_IndirectSubsidiaryOfSIPartnersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_552cd0f8-0e38-43f0-9e72-77ff35bf9a3e" xlink:to="loc_sre_IndirectSubsidiaryOfSIPartnersMember_c490b88c-f706-4e3a-b29c-69e834df182e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_bdc0a971-18d4-4568-b0cb-7875fd8e358f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_MinorityInterestTable_3ccf0317-4e27-4feb-a508-adb0d3ba1898" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_bdc0a971-18d4-4568-b0cb-7875fd8e358f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_bdc0a971-18d4-4568-b0cb-7875fd8e358f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_bdc0a971-18d4-4568-b0cb-7875fd8e358f" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_bdc0a971-18d4-4568-b0cb-7875fd8e358f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_63bc5059-9eda-4659-9bd1-103a209fe4b1" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_bdc0a971-18d4-4568-b0cb-7875fd8e358f" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_63bc5059-9eda-4659-9bd1-103a209fe4b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraPALNGHoldingsLLCMember_ede864c2-9c56-48fb-80da-5ac785700ea2" xlink:href="sre-20240630.xsd#sre_SempraPALNGHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_63bc5059-9eda-4659-9bd1-103a209fe4b1" xlink:to="loc_sre_SempraPALNGHoldingsLLCMember_ede864c2-9c56-48fb-80da-5ac785700ea2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_9127de7b-5b88-474b-a308-7fd328049dad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners_9127de7b-5b88-474b-a308-7fd328049dad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDivestitureOfInterestInJointVenture_e0ccf1f7-d5bb-42fd-abd1-3ad2e4c474d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDivestitureOfInterestInJointVenture"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_us-gaap_ProceedsFromDivestitureOfInterestInJointVenture_e0ccf1f7-d5bb-42fd-abd1-3ad2e4c474d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_6c500fe0-2c85-41d7-8463-69f73c9e186f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance_6c500fe0-2c85-41d7-8463-69f73c9e186f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest_09fc975c-b68b-40f0-9185-baf40b4ee8d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_us-gaap_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterest_09fc975c-b68b-40f0-9185-baf40b4ee8d9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestNetOfTransactionCosts_6328353c-2d8d-4a47-8305-ee87a5d4b5f0" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestNetOfTransactionCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestNetOfTransactionCosts_6328353c-2d8d-4a47-8305-ee87a5d4b5f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestTaxExpenseBenefit_2df17eb0-162e-441d-b9ee-e61667a2f2ec" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestIncreaseFromSaleOfParentEquityInterestTaxExpenseBenefit_2df17eb0-162e-441d-b9ee-e61667a2f2ec" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestFundingCommitmentPercentage_0481ce4a-c93b-413c-ad32-7d24132231af" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestFundingCommitmentPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestFundingCommitmentPercentage_0481ce4a-c93b-413c-ad32-7d24132231af" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestFundingCommitment_d4319885-e2f1-4048-b853-756d56be8440" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestFundingCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestFundingCommitment_d4319885-e2f1-4048-b853-756d56be8440" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestGuaranteedFundingCommitmentPercentage_5fa69dac-2423-4847-b0f3-81c5454ca0d9" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestGuaranteedFundingCommitmentPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestGuaranteedFundingCommitmentPercentage_5fa69dac-2423-4847-b0f3-81c5454ca0d9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NoncontrollingInterestFundingCommitmentPaid_53b893c8-5d07-4dbd-8592-607322555336" xlink:href="sre-20240630.xsd#sre_NoncontrollingInterestFundingCommitmentPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MinorityInterestLineItems_7d026468-9e79-49b3-983d-6375175d5e57" xlink:to="loc_sre_NoncontrollingInterestFundingCommitmentPaid_53b893c8-5d07-4dbd-8592-607322555336" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREEARNINGSPERCOMMONSHAREDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREEARNINGSPERCOMMONSHAREDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRAEQUITYANDEARNINGSPERCOMMONSHAREEARNINGSPERCOMMONSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_41a9f989-f124-44c2-85f9-21ed4509a602" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_41a9f989-f124-44c2-85f9-21ed4509a602" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_41a9f989-f124-44c2-85f9-21ed4509a602" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f8778a13-19c4-463d-9ccf-672a67482d8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_82f7ea1c-814c-4ab5-9fde-5697d99cfc3a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f8778a13-19c4-463d-9ccf-672a67482d8b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_StockoptionsRSAsandRSUsMember_425f4dd3-7c59-4faa-b7c6-aef4fe8151fa" xlink:href="sre-20240630.xsd#sre_StockoptionsRSAsandRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_f8778a13-19c4-463d-9ccf-672a67482d8b" xlink:to="loc_sre_StockoptionsRSAsandRSUsMember_425f4dd3-7c59-4faa-b7c6-aef4fe8151fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_420fe02d-6af9-4bca-b653-693556e13904" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfDeferredCompensationArrangementWithIndividualShareBasedPaymentsTable_41a9f989-f124-44c2-85f9-21ed4509a602" xlink:to="loc_us-gaap_AwardTypeAxis_420fe02d-6af9-4bca-b653-693556e13904" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_420fe02d-6af9-4bca-b653-693556e13904_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_420fe02d-6af9-4bca-b653-693556e13904" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_420fe02d-6af9-4bca-b653-693556e13904_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b2799412-46ad-46c2-99c1-2b96c37057e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_420fe02d-6af9-4bca-b653-693556e13904" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b2799412-46ad-46c2-99c1-2b96c37057e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_StockoptionsRSAsandRSUsMember_939cfd03-730a-41cc-a560-569645c7a423" xlink:href="sre-20240630.xsd#sre_StockoptionsRSAsandRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b2799412-46ad-46c2-99c1-2b96c37057e5" xlink:to="loc_sre_StockoptionsRSAsandRSUsMember_939cfd03-730a-41cc-a560-569645c7a423" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RestrictedStockUnitsRSUsPerformancebasedMember_4cdffc82-77cf-48ab-98e6-f37eea0df00b" xlink:href="sre-20240630.xsd#sre_RestrictedStockUnitsRSUsPerformancebasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b2799412-46ad-46c2-99c1-2b96c37057e5" xlink:to="loc_sre_RestrictedStockUnitsRSUsPerformancebasedMember_4cdffc82-77cf-48ab-98e6-f37eea0df00b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RestrictedStockUnitsRSUsServicebasedMember_e3cb4d56-f0e5-455c-8d6e-2686c30db413" xlink:href="sre-20240630.xsd#sre_RestrictedStockUnitsRSUsServicebasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_b2799412-46ad-46c2-99c1-2b96c37057e5" xlink:to="loc_sre_RestrictedStockUnitsRSUsServicebasedMember_e3cb4d56-f0e5-455c-8d6e-2686c30db413" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_52381bf5-3911-4747-9ec5-ebcad04f03e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersBasic_52381bf5-3911-4747-9ec5-ebcad04f03e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_0c6336a6-d05e-4c36-b446-09ad1cac775e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_NetIncomeLossFromContinuingOperationsAvailableToCommonShareholdersDiluted_0c6336a6-d05e-4c36-b446-09ad1cac775e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_8acac45f-0d96-470d-b4cd-6a0a4d5170c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_8acac45f-0d96-470d-b4cd-6a0a4d5170c9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToEquityForwardAgreements_9e5e7535-9e16-45bb-b959-081bb7eb3696" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToEquityForwardAgreements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToEquityForwardAgreements_9e5e7535-9e16-45bb-b959-081bb7eb3696" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_60fb578d-af11-4f01-9763-0d5de5acc1b3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_60fb578d-af11-4f01-9763-0d5de5acc1b3" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_d44ee61f-c2bf-412f-9c5a-2f46460059ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_d44ee61f-c2bf-412f-9c5a-2f46460059ef" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_c6f702f4-a1f7-4e46-bc83-ae95ca8a2ded" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_EarningsPerShareBasic_c6f702f4-a1f7-4e46-bc83-ae95ca8a2ded" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_ff5e6bc6-9e9b-4c25-bfe1-5060d066e569" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_EarningsPerShareDiluted_ff5e6bc6-9e9b-4c25-bfe1-5060d066e569" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_VestedRSUsIncludedInBasicWASO_523b0203-ff16-4ef0-9023-563a6a9c3f7a" xlink:href="sre-20240630.xsd#sre_VestedRSUsIncludedInBasicWASO"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_sre_VestedRSUsIncludedInBasicWASO_523b0203-ff16-4ef0-9023-563a6a9c3f7a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_4f8c37e2-a706-42c0-b5c0-298d0b737021" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_4f8c37e2-a706-42c0-b5c0-298d0b737021" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_dbbcc1e3-7efe-48b8-86e2-d3d600a76eb0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_dbbcc1e3-7efe-48b8-86e2-d3d600a76eb0" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_61653914-070d-4df2-adb0-4adc2e14c124" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsLineItems_21ec2ee6-0a10-443c-88ec-a2b1eb4dfad3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_61653914-070d-4df2-adb0-4adc2e14c124" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SANONOFRENUCLEARGENERATINGSTATIONNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SANONOFRENUCLEARGENERATINGSTATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SANONOFRENUCLEARGENERATINGSTATIONNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantInterestsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantInterestsTable_33357f0f-5d59-4a31-a34f-342d1522a39f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantInterestsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_us-gaap_JointlyOwnedUtilityPlantInterestsTable_33357f0f-5d59-4a31-a34f-342d1522a39f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis_657b5095-ffe8-403a-996e-57360bbf4e74" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsTable_33357f0f-5d59-4a31-a34f-342d1522a39f" xlink:to="loc_us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis_657b5095-ffe8-403a-996e-57360bbf4e74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProjectMember_657b5095-ffe8-403a-996e-57360bbf4e74_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis_657b5095-ffe8-403a-996e-57360bbf4e74" xlink:to="loc_us-gaap_ProjectMember_657b5095-ffe8-403a-996e-57360bbf4e74_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProjectMember_38d1f1e3-2dfe-4203-9512-f65578e7f494" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProjectMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CapitalizedCostsOfUnprovedPropertiesExcludedFromAmortizationByPropertyOrProjectAxis_657b5095-ffe8-403a-996e-57360bbf4e74" xlink:to="loc_us-gaap_ProjectMember_38d1f1e3-2dfe-4203-9512-f65578e7f494" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SONGS2and3DecommissioningMember_ef0d40c0-afc4-484c-a883-011522e24e4a" xlink:href="sre-20240630.xsd#sre_SONGS2and3DecommissioningMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ProjectMember_38d1f1e3-2dfe-4203-9512-f65578e7f494" xlink:to="loc_sre_SONGS2and3DecommissioningMember_ef0d40c0-afc4-484c-a883-011522e24e4a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantAxis_b1c44dbe-87e8-4318-b424-37090d5e1043" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsTable_33357f0f-5d59-4a31-a34f-342d1522a39f" xlink:to="loc_us-gaap_JointlyOwnedUtilityPlantAxis_b1c44dbe-87e8-4318-b424-37090d5e1043" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantDomain_b1c44dbe-87e8-4318-b424-37090d5e1043_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantAxis_b1c44dbe-87e8-4318-b424-37090d5e1043" xlink:to="loc_us-gaap_JointlyOwnedUtilityPlantDomain_b1c44dbe-87e8-4318-b424-37090d5e1043_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantDomain_df674c6c-a85c-4bba-8363-560edc90e5ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantAxis_b1c44dbe-87e8-4318-b424-37090d5e1043" xlink:to="loc_us-gaap_JointlyOwnedUtilityPlantDomain_df674c6c-a85c-4bba-8363-560edc90e5ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedNuclearPowerPlantMember_6d21aa94-b8b5-4f51-917f-476260e608e6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedNuclearPowerPlantMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantDomain_df674c6c-a85c-4bba-8363-560edc90e5ca" xlink:to="loc_us-gaap_JointlyOwnedNuclearPowerPlantMember_6d21aa94-b8b5-4f51-917f-476260e608e6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_6977ad46-c3eb-4409-a3ff-65fd6da2666c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsTable_33357f0f-5d59-4a31-a34f-342d1522a39f" xlink:to="loc_dei_LegalEntityAxis_6977ad46-c3eb-4409-a3ff-65fd6da2666c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_6977ad46-c3eb-4409-a3ff-65fd6da2666c_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_6977ad46-c3eb-4409-a3ff-65fd6da2666c" xlink:to="loc_dei_EntityDomain_6977ad46-c3eb-4409-a3ff-65fd6da2666c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_56315652-53a3-4a08-8d8f-64a4cccf8749" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_6977ad46-c3eb-4409-a3ff-65fd6da2666c" xlink:to="loc_dei_EntityDomain_56315652-53a3-4a08-8d8f-64a4cccf8749" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_dfa74b54-1e92-428b-b255-b4ee3d6f1b13" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_56315652-53a3-4a08-8d8f-64a4cccf8749" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_dfa74b54-1e92-428b-b255-b4ee3d6f1b13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_JointlyOwnedUtilityPlantProportionateOwnershipShare_ef55e14c-8eb8-4462-b160-67397b570057" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_JointlyOwnedUtilityPlantProportionateOwnershipShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_us-gaap_JointlyOwnedUtilityPlantProportionateOwnershipShare_ef55e14c-8eb8-4462-b160-67397b570057" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnvironmentalExitCostsAnticipatedCostPercentage_0ac52968-6fb1-4f6d-b639-58e804c5e203" xlink:href="sre-20240630.xsd#sre_EnvironmentalExitCostsAnticipatedCostPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_EnvironmentalExitCostsAnticipatedCostPercentage_0ac52968-6fb1-4f6d-b639-58e804c5e203" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AuthorizedRecoveryAmountNuclearDecommissioningTrustFunding_7dc8332e-6579-461a-8c4a-57c706a54e86" xlink:href="sre-20240630.xsd#sre_AuthorizedRecoveryAmountNuclearDecommissioningTrustFunding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_AuthorizedRecoveryAmountNuclearDecommissioningTrustFunding_7dc8332e-6579-461a-8c4a-57c706a54e86" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DecommissioningLiabilityNoncurrent_5ac162bf-27aa-488f-b987-ff4e4da820bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DecommissioningLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_us-gaap_DecommissioningLiabilityNoncurrent_5ac162bf-27aa-488f-b987-ff4e4da820bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NuclearLiabilityInsuranceCoverageMaximum_e4115021-e486-47b3-b2d7-e5477bfa6053" xlink:href="sre-20240630.xsd#sre_NuclearLiabilityInsuranceCoverageMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_NuclearLiabilityInsuranceCoverageMaximum_e4115021-e486-47b3-b2d7-e5477bfa6053" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecondaryFinancialProtectionMaximum_d0d2d89f-c5f6-4a37-afa7-4426555752e4" xlink:href="sre-20240630.xsd#sre_SecondaryFinancialProtectionMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_SecondaryFinancialProtectionMaximum_d0d2d89f-c5f6-4a37-afa7-4426555752e4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecondaryFinancialProtectionCompanyContributionAnnualMaximum_fc3db482-b0dc-4b01-98f0-c12ce035d06e" xlink:href="sre-20240630.xsd#sre_SecondaryFinancialProtectionCompanyContributionAnnualMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_SecondaryFinancialProtectionCompanyContributionAnnualMaximum_fc3db482-b0dc-4b01-98f0-c12ce035d06e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_FederalNuclearPropertyDamageInsurance_0f1b364b-c802-42b0-985a-cf15ee544b1c" xlink:href="sre-20240630.xsd#sre_FederalNuclearPropertyDamageInsurance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_FederalNuclearPropertyDamageInsurance_0f1b364b-c802-42b0-985a-cf15ee544b1c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_Federalnuclearpropertydamageinsuranceminimumrequired_4030e082-06b4-44dd-b8b4-1f4744ec7bfc" xlink:href="sre-20240630.xsd#sre_Federalnuclearpropertydamageinsuranceminimumrequired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_Federalnuclearpropertydamageinsuranceminimumrequired_4030e082-06b4-44dd-b8b4-1f4744ec7bfc" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NuclearPropertyInsuranceTerrorismCoverageMaximum_beca6381-3ac0-4b47-a0ee-14bc6f9cb023" xlink:href="sre-20240630.xsd#sre_NuclearPropertyInsuranceTerrorismCoverageMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_JointlyOwnedUtilityPlantInterestsLineItems_3e87992f-52d2-4da9-bce0-bc20899a91a8" xlink:to="loc_sre_NuclearPropertyInsuranceTerrorismCoverageMaximum_beca6381-3ac0-4b47-a0ee-14bc6f9cb023" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SANONOFRENUCLEARGENERATINGSTATIONNUCLEARDECOMMISSIONINGTRUSTSDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SANONOFRENUCLEARGENERATINGSTATIONNUCLEARDECOMMISSIONINGTRUSTSDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SANONOFRENUCLEARGENERATINGSTATIONNUCLEARDECOMMISSIONINGTRUSTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_83499b11-1d9a-4d0e-a21e-06ed85064d01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_83499b11-1d9a-4d0e-a21e-06ed85064d01" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_83499b11-1d9a-4d0e-a21e-06ed85064d01" xlink:to="loc_us-gaap_FinancialInstrumentAxis_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_d7d7e9fd-2cd7-48bd-b8be-0407453a12ed" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_bf05ea9c-ebf9-4d6a-8a2e-ee37fdfff3fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_bf05ea9c-ebf9-4d6a-8a2e-ee37fdfff3fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_94773c7e-447b-4357-81d9-8c67dbf62166" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:to="loc_us-gaap_EquitySecuritiesMember_94773c7e-447b-4357-81d9-8c67dbf62166" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_9da72c14-6999-4bca-bbf8-a0b0f4418757" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:to="loc_us-gaap_DebtSecuritiesMember_9da72c14-6999-4bca-bbf8-a0b0f4418757" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_759e5b58-15f4-44ac-97e3-c0a3dcca74bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USTreasuryAndGovernmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_9da72c14-6999-4bca-bbf8-a0b0f4418757" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_759e5b58-15f4-44ac-97e3-c0a3dcca74bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_c5eefb7e-c0fa-4318-ad9a-a3ba4972fc7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_9da72c14-6999-4bca-bbf8-a0b0f4418757" xlink:to="loc_us-gaap_USStatesAndPoliticalSubdivisionsMember_c5eefb7e-c0fa-4318-ad9a-a3ba4972fc7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_8731e14b-7485-4dae-aef0-c68bf8eb4e01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_9da72c14-6999-4bca-bbf8-a0b0f4418757" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_8731e14b-7485-4dae-aef0-c68bf8eb4e01" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableMember_fe6fe896-43a4-4675-b5e2-534950e54759" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4de12f0c-5359-400b-a1a7-54d08efb3a20" xlink:to="loc_us-gaap_AccountsPayableMember_fe6fe896-43a4-4675-b5e2-534950e54759" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAmortizedCosts_71b23e29-2315-4f26-a0be-4330e7f26880" xlink:href="sre-20240630.xsd#sre_SecuritiesHeldInNuclearDecommissioningTrustsAmortizedCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAmortizedCosts_71b23e29-2315-4f26-a0be-4330e7f26880" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedGainBeforeTax_8afba6fe-bab1-4488-bb26-212835148855" xlink:href="sre-20240630.xsd#sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedGainBeforeTax_8afba6fe-bab1-4488-bb26-212835148855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedLossBeforeTax_5236abf7-2e09-4756-997b-50bc109d72c6" xlink:href="sre-20240630.xsd#sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustsAccumulatedGrossUnrealizedLossBeforeTax_5236abf7-2e09-4756-997b-50bc109d72c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustFairValue_e042ebdb-dcec-42a3-b324-8646b8d3a494" xlink:href="sre-20240630.xsd#sre_SecuritiesHeldInNuclearDecommissioningTrustFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_sre_SecuritiesHeldInNuclearDecommissioningTrustFairValue_e042ebdb-dcec-42a3-b324-8646b8d3a494" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_6945b46a-62ca-4a28-84ab-d1234c8e6953" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_6945b46a-62ca-4a28-84ab-d1234c8e6953" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGain_107596e2-8eca-4295-9f51-761e7d09f7e7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGain_107596e2-8eca-4295-9f51-761e7d09f7e7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_d3bcf166-a10c-471f-86fc-1b902e1d42b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_217600de-7149-43df-95eb-ecebd66a2c35" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss_d3bcf166-a10c-471f-86fc-1b902e1d42b7" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#COMMITMENTSANDCONTINGENCIESNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_a21502b6-a7e7-461b-b5cf-baf916b717c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_a21502b6-a7e7-461b-b5cf-baf916b717c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_a21502b6-a7e7-461b-b5cf-baf916b717c9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_a21502b6-a7e7-461b-b5cf-baf916b717c9" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_a21502b6-a7e7-461b-b5cf-baf916b717c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_9c06a1ee-d62c-4b0e-9c1a-b00c519700ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_a21502b6-a7e7-461b-b5cf-baf916b717c9" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_9c06a1ee-d62c-4b0e-9c1a-b00c519700ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DeferredCreditsandOtherMember_6fb1493b-2114-440a-b3f6-fffa047b81b7" xlink:href="sre-20240630.xsd#sre_DeferredCreditsandOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9c06a1ee-d62c-4b0e-9c1a-b00c519700ea" xlink:to="loc_sre_DeferredCreditsandOtherMember_6fb1493b-2114-440a-b3f6-fffa047b81b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCurrentLiabilitiesMember_bfb91c70-abe9-4dc3-8114-17efbb5ee2d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCurrentLiabilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_9c06a1ee-d62c-4b0e-9c1a-b00c519700ea" xlink:to="loc_us-gaap_OtherCurrentLiabilitiesMember_bfb91c70-abe9-4dc3-8114-17efbb5ee2d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_1a2808c9-3bdc-430a-8ad8-578f0958534d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_dei_LegalEntityAxis_1a2808c9-3bdc-430a-8ad8-578f0958534d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_1a2808c9-3bdc-430a-8ad8-578f0958534d_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_1a2808c9-3bdc-430a-8ad8-578f0958534d" xlink:to="loc_dei_EntityDomain_1a2808c9-3bdc-430a-8ad8-578f0958534d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_71e14687-f4a9-4393-8ccf-9dabef796ec6" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_1a2808c9-3bdc-430a-8ad8-578f0958534d" xlink:to="loc_dei_EntityDomain_71e14687-f4a9-4393-8ccf-9dabef796ec6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_a6071d63-7db3-4019-a18c-6657f9a24d65" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_71e14687-f4a9-4393-8ccf-9dabef796ec6" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_a6071d63-7db3-4019-a18c-6657f9a24d65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_09a437b4-48a9-4959-8256-0f251290d33d" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_71e14687-f4a9-4393-8ccf-9dabef796ec6" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_09a437b4-48a9-4959-8256-0f251290d33d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnergyFutureHoldingsCorp.Member_0e8a0aa3-334b-402f-b574-7c47c2302f4c" xlink:href="sre-20240630.xsd#sre_EnergyFutureHoldingsCorp.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_71e14687-f4a9-4393-8ccf-9dabef796ec6" xlink:to="loc_sre_EnergyFutureHoldingsCorp.Member_0e8a0aa3-334b-402f-b574-7c47c2302f4c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseAxis_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_srt_LitigationCaseAxis_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_LitigationCaseAxis_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476" xlink:to="loc_srt_LitigationCaseTypeDomain_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_LitigationCaseTypeDomain_152583c9-ac9b-4173-9fd6-497f77f633af" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_LitigationCaseTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_LitigationCaseAxis_17cf61e8-2eec-4bbd-aa51-73b5c2d9e476" xlink:to="loc_srt_LitigationCaseTypeDomain_152583c9-ac9b-4173-9fd6-497f77f633af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IndividualPlaintiffLitigationMember_a2441286-78ce-4f7a-bb56-525491e3d333" xlink:href="sre-20240630.xsd#sre_IndividualPlaintiffLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_152583c9-ac9b-4173-9fd6-497f77f633af" xlink:to="loc_sre_IndividualPlaintiffLitigationMember_a2441286-78ce-4f7a-bb56-525491e3d333" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NonSettlingIndividualPlaintiffsMember_4a5ef8a5-7b56-473e-8fdb-a82d9e134893" xlink:href="sre-20240630.xsd#sre_NonSettlingIndividualPlaintiffsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_152583c9-ac9b-4173-9fd6-497f77f633af" xlink:to="loc_sre_NonSettlingIndividualPlaintiffsMember_4a5ef8a5-7b56-473e-8fdb-a82d9e134893" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RBSSempraCommoditiesMember_b5d31872-b4a8-4662-bf3d-eb39d2afe5ad" xlink:href="sre-20240630.xsd#sre_RBSSempraCommoditiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_LitigationCaseTypeDomain_152583c9-ac9b-4173-9fd6-497f77f633af" xlink:to="loc_sre_RBSSempraCommoditiesMember_b5d31872-b4a8-4662-bf3d-eb39d2afe5ad" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6d32357c-cbca-434a-a38c-20ae4c7a1e75" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesByNatureOfContingencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6d32357c-cbca-434a-a38c-20ae4c7a1e75" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_6d32357c-cbca-434a-a38c-20ae4c7a1e75_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6d32357c-cbca-434a-a38c-20ae4c7a1e75" xlink:to="loc_us-gaap_LossContingencyNatureDomain_6d32357c-cbca-434a-a38c-20ae4c7a1e75_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNatureDomain_46497ef1-2471-47ec-abe9-996253ff7206" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LossContingenciesByNatureOfContingencyAxis_6d32357c-cbca-434a-a38c-20ae4c7a1e75" xlink:to="loc_us-gaap_LossContingencyNatureDomain_46497ef1-2471-47ec-abe9-996253ff7206" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_AlisoCanyonNaturalGasStorageFacilityGasLeakMember_b7d96871-1205-4002-aa4a-3fbf6f77dea8" xlink:href="sre-20240630.xsd#sre_AlisoCanyonNaturalGasStorageFacilityGasLeakMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_46497ef1-2471-47ec-abe9-996253ff7206" xlink:to="loc_sre_AlisoCanyonNaturalGasStorageFacilityGasLeakMember_b7d96871-1205-4002-aa4a-3fbf6f77dea8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_HmrcVatClaimMember_e1280fd0-8b6b-4e36-88e0-bf0583b2791c" xlink:href="sre-20240630.xsd#sre_HmrcVatClaimMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingencyNatureDomain_46497ef1-2471-47ec-abe9-996253ff7206" xlink:to="loc_sre_HmrcVatClaimMember_e1280fd0-8b6b-4e36-88e0-bf0583b2791c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_a152b07d-b93f-4184-b6e3-c9ca92f7e9be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_a152b07d-b93f-4184-b6e3-c9ca92f7e9be" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_a152b07d-b93f-4184-b6e3-c9ca92f7e9be_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_a152b07d-b93f-4184-b6e3-c9ca92f7e9be" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_a152b07d-b93f-4184-b6e3-c9ca92f7e9be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_2cb3ab2d-079f-4f47-a310-5f2764dc4ae6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_a152b07d-b93f-4184-b6e3-c9ca92f7e9be" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_2cb3ab2d-079f-4f47-a310-5f2764dc4ae6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_acbcf23e-87cd-4a46-8c02-c8fd8be50eb8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_2cb3ab2d-079f-4f47-a310-5f2764dc4ae6" xlink:to="loc_us-gaap_SubsequentEventMember_acbcf23e-87cd-4a46-8c02-c8fd8be50eb8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_2e1219bc-7e87-4e7e-8634-05032e379535" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1" xlink:to="loc_us-gaap_SegmentDomain_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0f5aceaa-3614-4132-9a90-51ae940ef5d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_20f3b0fc-4d4b-4c2d-89e3-81e2a9bf45d1" xlink:to="loc_us-gaap_SegmentDomain_0f5aceaa-3614-4132-9a90-51ae940ef5d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_c0e89aed-7e92-42cd-bd50-950b9916c9e0" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0f5aceaa-3614-4132-9a90-51ae940ef5d9" xlink:to="loc_sre_SempraInfrastructureMember_c0e89aed-7e92-42cd-bd50-950b9916c9e0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LitigationReserve_342b8563-b47f-4b4b-9609-19f8260b11ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LitigationReserve"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LitigationReserve_342b8563-b47f-4b4b-9609-19f8260b11ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyPendingClaimsNumber_0b46ffe0-389d-4891-8e05-b4c4f3f17cb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyPendingClaimsNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingencyPendingClaimsNumber_0b46ffe0-389d-4891-8e05-b4c4f3f17cb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_InjectionAndWithdrawalWellsWithGasLeak_0adb1c74-abfd-4b9b-a4b5-06d0398939cd" xlink:href="sre-20240630.xsd#sre_InjectionAndWithdrawalWellsWithGasLeak"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_InjectionAndWithdrawalWellsWithGasLeak_0adb1c74-abfd-4b9b-a4b5-06d0398939cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyNumberOfPlaintiffs_6c42e5dc-aa76-415c-945d-5b84a4bd6c24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyNumberOfPlaintiffs"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingencyNumberOfPlaintiffs_6c42e5dc-aa76-415c-945d-5b84a4bd6c24" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_c6ec8a52-8aa2-48a7-b556-5d8f524c6a82" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingencyEstimateOfPossibleLoss_c6ec8a52-8aa2-48a7-b556-5d8f524c6a82" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LossContingencyPercentageOfPlaintiffsAgreeingToParticipateAndSubmitReleases_3852f3cc-6e7f-4c03-bd99-292a6e86a3c2" xlink:href="sre-20240630.xsd#sre_LossContingencyPercentageOfPlaintiffsAgreeingToParticipateAndSubmitReleases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_LossContingencyPercentageOfPlaintiffsAgreeingToParticipateAndSubmitReleases_3852f3cc-6e7f-4c03-bd99-292a6e86a3c2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesPaidValue_920d6579-e031-4c2c-b841-66f41395809e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyDamagesPaidValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingencyDamagesPaidValue_920d6579-e031-4c2c-b841-66f41395809e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NaturalGasInventoryLevelMaximum_e2639061-2ffd-4ddd-bea0-1ce3ce904763" xlink:href="sre-20240630.xsd#sre_NaturalGasInventoryLevelMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_NaturalGasInventoryLevelMaximum_e2639061-2ffd-4ddd-bea0-1ce3ce904763" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PublicUtilitiesPropertyPlantAndEquipmentOtherPropertyPlantAndEquipment_1d09d9b5-880b-4dd7-8be7-881e0bf99110" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PublicUtilitiesPropertyPlantAndEquipmentOtherPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_PublicUtilitiesPropertyPlantAndEquipmentOtherPropertyPlantAndEquipment_1d09d9b5-880b-4dd7-8be7-881e0bf99110" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PayableRelatedToNaturalGasLeak_91a4d062-93d8-4d38-a845-1f8312f89858" xlink:href="sre-20240630.xsd#sre_PayableRelatedToNaturalGasLeak"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_PayableRelatedToNaturalGasLeak_91a4d062-93d8-4d38-a845-1f8312f89858" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfClaimants_b00bec84-7d56-45a3-9954-7b389c6992b8" xlink:href="sre-20240630.xsd#sre_NumberOfClaimants"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_NumberOfClaimants_b00bec84-7d56-45a3-9954-7b389c6992b8" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NumberOfLiquidatingCompanies_1a7ac136-674d-48c4-989e-cc6eea4f67e9" xlink:href="sre-20240630.xsd#sre_NumberOfLiquidatingCompanies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_NumberOfLiquidatingCompanies_1a7ac136-674d-48c4-989e-cc6eea4f67e9" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingencyDamagesAwardedValue_76e2543a-c764-4430-849c-ffd3532122bb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingencyDamagesAwardedValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_LossContingencyDamagesAwardedValue_76e2543a-c764-4430-849c-ffd3532122bb" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_35485672-f59c-4660-991d-2c14087fec05" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_35485672-f59c-4660-991d-2c14087fec05" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LossContingencyNumberOfLawsuitsPending_1f93116d-cdfc-45ac-80af-4bbd772edcbb" xlink:href="sre-20240630.xsd#sre_LossContingencyNumberOfLawsuitsPending"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_LossContingencyNumberOfLawsuitsPending_1f93116d-cdfc-45ac-80af-4bbd772edcbb" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LossContingencyProofofClaimsNumber_1d994b65-4fbd-429e-8bc5-3acc0e64f19d" xlink:href="sre-20240630.xsd#sre_LossContingencyProofofClaimsNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_7717be44-8334-49bb-aa82-eead9bc9629e" xlink:to="loc_sre_LossContingencyProofofClaimsNumber_1d994b65-4fbd-429e-8bc5-3acc0e64f19d" xlink:type="arc" order="15"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_07f9252e-e82f-4c42-a187-6891580e6aab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_07f9252e-e82f-4c42-a187-6891580e6aab" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_07f9252e-e82f-4c42-a187-6891580e6aab" xlink:to="loc_dei_LegalEntityAxis_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf" xlink:to="loc_dei_EntityDomain_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_4a7eaca4-29b6-4bf8-8c18-2be2c868d36c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_dd1fdcaa-6ba0-4d83-8af8-6fbb202813bf" xlink:to="loc_dei_EntityDomain_4a7eaca4-29b6-4bf8-8c18-2be2c868d36c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_bed33400-8665-4b5d-8da0-01407229be65" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_4a7eaca4-29b6-4bf8-8c18-2be2c868d36c" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_bed33400-8665-4b5d-8da0-01407229be65" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_be59b0f5-3eed-40d5-bded-8695297e921f" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_4a7eaca4-29b6-4bf8-8c18-2be2c868d36c" xlink:to="loc_sre_SempraInfrastructureMember_be59b0f5-3eed-40d5-bded-8695297e921f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_07f9252e-e82f-4c42-a187-6891580e6aab" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6bcbbce1-06ce-456a-8f48-dd501e4665f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_f683b879-5ef8-4f1d-bf9c-59bcdbdb8bb6" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6bcbbce1-06ce-456a-8f48-dd501e4665f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_PurchasedPowerContractsMember_65c743a2-116a-4ee6-906e-b95371111807" xlink:href="sre-20240630.xsd#sre_PurchasedPowerContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6bcbbce1-06ce-456a-8f48-dd501e4665f0" xlink:to="loc_sre_PurchasedPowerContractsMember_65c743a2-116a-4ee6-906e-b95371111807" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TugboatLeaseAgreementMember_42d14b96-5d4f-4e5f-a332-75eeb2a56ebe" xlink:href="sre-20240630.xsd#sre_TugboatLeaseAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6bcbbce1-06ce-456a-8f48-dd501e4665f0" xlink:to="loc_sre_TugboatLeaseAgreementMember_42d14b96-5d4f-4e5f-a332-75eeb2a56ebe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LesseeNumberOfPurchasedPowerContracts_e63fc347-560e-4877-a2aa-5a8a3b986597" xlink:href="sre-20240630.xsd#sre_LesseeNumberOfPurchasedPowerContracts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_sre_LesseeNumberOfPurchasedPowerContracts_e63fc347-560e-4877-a2aa-5a8a3b986597" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedRemainderOfYear_eac8783a-b5a6-47fa-a9ea-3c74a9acca68" xlink:href="sre-20240630.xsd#sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedRemainderOfYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedRemainderOfYear_eac8783a-b5a6-47fa-a9ea-3c74a9acca68" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearOne_a3d18e55-cc8a-4cd0-bdb9-4e2c3a071fa3" xlink:href="sre-20240630.xsd#sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearOne_a3d18e55-cc8a-4cd0-bdb9-4e2c3a071fa3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearTwo_523d2c80-8b52-4235-b679-a4e0f098ba05" xlink:href="sre-20240630.xsd#sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_sre_LesseeNumberOfPurchasedPowerContractsToBeCommencedYearTwo_523d2c80-8b52-4235-b679-a4e0f098ba05" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_bb17a602-f5c1-45aa-a55e-ab3955a17ae4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationDueInRemainderOfFiscalYear_bb17a602-f5c1-45aa-a55e-ab3955a17ae4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_4526bb59-5243-4e36-b6af-46eda45aa6ef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary_4526bb59-5243-4e36-b6af-46eda45aa6ef" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_5392be6e-7081-42ac-a87f-89847788e74c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary_5392be6e-7081-42ac-a87f-89847788e74c" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_1288a14c-f96b-4f52-b3d7-73f6751e6269" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary_1288a14c-f96b-4f52-b3d7-73f6751e6269" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_33e60a73-b8ef-47ff-9966-dae7ee7214bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary_33e60a73-b8ef-47ff-9966-dae7ee7214bf" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_6192ee22-f5f5-468a-9f98-5d13d953beb6" xlink:href="sre-20240630.xsd#sre_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_sre_UnrecordedUnconditionalPurchaseObligationToBePaidAfterYearFour_6192ee22-f5f5-468a-9f98-5d13d953beb6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_85cb3d76-a06e-4423-b949-aa060d48b46c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b47a1309-d5e0-413c-a354-b4b205c5784e" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_85cb3d76-a06e-4423-b949-aa060d48b46c" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESLEASEINFORMATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_b39f0f89-6c51-4c66-a09e-4acea0914fab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_cd7372bf-d2da-4807-a315-fdad5204443f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_b39f0f89-6c51-4c66-a09e-4acea0914fab" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_cd7372bf-d2da-4807-a315-fdad5204443f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6b5a221d-96b7-4ebe-b3b2-9ae432885bda" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_cd7372bf-d2da-4807-a315-fdad5204443f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6b5a221d-96b7-4ebe-b3b2-9ae432885bda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6b5a221d-96b7-4ebe-b3b2-9ae432885bda_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6b5a221d-96b7-4ebe-b3b2-9ae432885bda" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_6b5a221d-96b7-4ebe-b3b2-9ae432885bda_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_843acafe-6352-4740-a4bd-dac699fd8785" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_6b5a221d-96b7-4ebe-b3b2-9ae432885bda" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_843acafe-6352-4740-a4bd-dac699fd8785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_TugboatLeaseAgreementMember_db2e1252-a287-4881-a8e9-cb682357c7e4" xlink:href="sre-20240630.xsd#sre_TugboatLeaseAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_843acafe-6352-4740-a4bd-dac699fd8785" xlink:to="loc_sre_TugboatLeaseAgreementMember_db2e1252-a287-4881-a8e9-cb682357c7e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_cd7372bf-d2da-4807-a315-fdad5204443f" xlink:to="loc_dei_LegalEntityAxis_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa" xlink:to="loc_dei_EntityDomain_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a2910031-f0c2-4e97-98c7-2ae2f656faac" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_a7fe4828-b7a8-4b23-91ec-7cf0df9a8faa" xlink:to="loc_dei_EntityDomain_a2910031-f0c2-4e97-98c7-2ae2f656faac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_ce1054a9-d528-495e-8b9f-7241648c45df" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_a2910031-f0c2-4e97-98c7-2ae2f656faac" xlink:to="loc_sre_SempraInfrastructureMember_ce1054a9-d528-495e-8b9f-7241648c45df" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESCONTRACTUALCOMMITMENTSENVIRONMENTALISSUESDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#COMMITMENTSANDCONTINGENCIESCONTRACTUALCOMMITMENTSENVIRONMENTALISSUESDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/COMMITMENTSANDCONTINGENCIESCONTRACTUALCOMMITMENTSENVIRONMENTALISSUESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_975818bf-9300-485d-843b-a9ded1627ef1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_us-gaap_LossContingenciesTable_975818bf-9300-485d-843b-a9ded1627ef1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LegalEntityAxis_a746f323-edfa-42d7-8778-3ab73bb9f490" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_975818bf-9300-485d-843b-a9ded1627ef1" xlink:to="loc_dei_LegalEntityAxis_a746f323-edfa-42d7-8778-3ab73bb9f490" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_a746f323-edfa-42d7-8778-3ab73bb9f490_default" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_LegalEntityAxis_a746f323-edfa-42d7-8778-3ab73bb9f490" xlink:to="loc_dei_EntityDomain_a746f323-edfa-42d7-8778-3ab73bb9f490_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityDomain_2dac2f22-4e9d-4ac4-9492-570395e8dabf" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_LegalEntityAxis_a746f323-edfa-42d7-8778-3ab73bb9f490" xlink:to="loc_dei_EntityDomain_2dac2f22-4e9d-4ac4-9492-570395e8dabf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_60ea4024-1a14-4c59-9043-67b81d2d2049" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2dac2f22-4e9d-4ac4-9492-570395e8dabf" xlink:to="loc_sre_SempraInfrastructureMember_60ea4024-1a14-4c59-9043-67b81d2d2049" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SanDiegoGasAndElectricCompanyMember_e2e16dd7-231c-440a-ada4-442b9e317994" xlink:href="sre-20240630.xsd#sre_SanDiegoGasAndElectricCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2dac2f22-4e9d-4ac4-9492-570395e8dabf" xlink:to="loc_sre_SanDiegoGasAndElectricCompanyMember_e2e16dd7-231c-440a-ada4-442b9e317994" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SouthernCaliforniaGasCompanyMember_6766059c-041d-4bab-af29-0062e3cd0ac0" xlink:href="sre-20240630.xsd#sre_SouthernCaliforniaGasCompanyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_EntityDomain_2dac2f22-4e9d-4ac4-9492-570395e8dabf" xlink:to="loc_sre_SouthernCaliforniaGasCompanyMember_6766059c-041d-4bab-af29-0062e3cd0ac0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_975818bf-9300-485d-843b-a9ded1627ef1" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_4e7f923e-10f7-4369-8e9a-6a2ed7005bc2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis_15a9fed7-3d9d-4dc2-87b3-3c3ddf93cc39" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_4e7f923e-10f7-4369-8e9a-6a2ed7005bc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_LiquefiedNaturalGasContractsMember_86ff70ae-4ffe-4949-a342-dcf651d998bf" xlink:href="sre-20240630.xsd#sre_LiquefiedNaturalGasContractsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_4e7f923e-10f7-4369-8e9a-6a2ed7005bc2" xlink:to="loc_sre_LiquefiedNaturalGasContractsMember_86ff70ae-4ffe-4949-a342-dcf651d998bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_NaturalGasContractsAndTransportationCommitmentsMember_f24c7218-e9a5-472f-80da-c677c71262ab" xlink:href="sre-20240630.xsd#sre_NaturalGasContractsAndTransportationCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain_4e7f923e-10f7-4369-8e9a-6a2ed7005bc2" xlink:to="loc_sre_NaturalGasContractsAndTransportationCommitmentsMember_f24c7218-e9a5-472f-80da-c677c71262ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligation_54afac63-50d1-4d31-9289-a63c4e82f009" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligation_54afac63-50d1-4d31-9289-a63c4e82f009" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationRemainderOfFiscalYear_2c250a0a-8247-49ff-b6c8-51208f93bc33" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationRemainderOfFiscalYear_2c250a0a-8247-49ff-b6c8-51208f93bc33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationYearOne_ec125c22-a702-4aeb-91dd-d6e85275dee1" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationYearOne"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationYearOne_ec125c22-a702-4aeb-91dd-d6e85275dee1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearTwo_245d0c42-3ee7-48b2-aa6e-3759f8036807" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearTwo_245d0c42-3ee7-48b2-aa6e-3759f8036807" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearThree_629fc805-bd4f-47c4-b929-8dff52d21de1" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearThree_629fc805-bd4f-47c4-b929-8dff52d21de1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearFour_0446545c-6d35-43e6-91a0-d1ca189b28d4" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseinUnrecordedUnconditionalPurchaseObligationYearFour_0446545c-6d35-43e6-91a0-d1ca189b28d4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationAfterFourYears_9f72edfa-637f-4fdf-ab1d-ad05d9a45c9b" xlink:href="sre-20240630.xsd#sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationAfterFourYears"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_IncreaseDecreaseInUnrecordedUnconditionalPurchaseObligationAfterFourYears_9f72edfa-637f-4fdf-ab1d-ad05d9a45c9b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnvironmentalCostsPotentialMonetarySanctionsThreshold_2f7fca0b-9d4a-4c9f-8c93-c0d3522ddd8e" xlink:href="sre-20240630.xsd#sre_EnvironmentalCostsPotentialMonetarySanctionsThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_EnvironmentalCostsPotentialMonetarySanctionsThreshold_2f7fca0b-9d4a-4c9f-8c93-c0d3522ddd8e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnvironmentalCostsPotentialMonetarySanctionsThresholdPercentage_430e233e-cf66-40e8-a93a-8484d4e27555" xlink:href="sre-20240630.xsd#sre_EnvironmentalCostsPotentialMonetarySanctionsThresholdPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_EnvironmentalCostsPotentialMonetarySanctionsThresholdPercentage_430e233e-cf66-40e8-a93a-8484d4e27555" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_EnvironmentalCostPotentialMonetarySanctionsThresholdActualAmount_8806864b-95a0-4a7e-8aa2-e7e8d387c983" xlink:href="sre-20240630.xsd#sre_EnvironmentalCostPotentialMonetarySanctionsThresholdActualAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_b00c0c10-565b-48ab-9d8a-a3d2eb186db9" xlink:to="loc_sre_EnvironmentalCostPotentialMonetarySanctionsThresholdActualAmount_8806864b-95a0-4a7e-8aa2-e7e8d387c983" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRASEGMENTINFORMATIONNARRATIVEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRASEGMENTINFORMATIONNARRATIVEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRASEGMENTINFORMATIONNARRATIVEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_30c9fe1d-54b7-423e-9473-7ace6988c800" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6f84ac8a-632d-4af8-a080-686d70c4bc6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_30c9fe1d-54b7-423e-9473-7ace6988c800" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6f84ac8a-632d-4af8-a080-686d70c4bc6c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6f84ac8a-632d-4af8-a080-686d70c4bc6c" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e39a2bb-f37c-427c-9b90-77507ed0cb06" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_382c19f2-f9d8-4f33-b6ee-9fadecc2f0ec" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e39a2bb-f37c-427c-9b90-77507ed0cb06" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_OncorElectricDeliveryCompanyLLCAdditionalAcquisitionMember_7dd1edde-3ba3-45ba-80eb-4437e52fbb55" xlink:href="sre-20240630.xsd#sre_OncorElectricDeliveryCompanyLLCAdditionalAcquisitionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e39a2bb-f37c-427c-9b90-77507ed0cb06" xlink:to="loc_sre_OncorElectricDeliveryCompanyLLCAdditionalAcquisitionMember_7dd1edde-3ba3-45ba-80eb-4437e52fbb55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SharylandHoldingsLPMember_c7b8e0b8-a515-4353-b44d-c5ff7bcd34a4" xlink:href="sre-20240630.xsd#sre_SharylandHoldingsLPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e39a2bb-f37c-427c-9b90-77507ed0cb06" xlink:to="loc_sre_SharylandHoldingsLPMember_c7b8e0b8-a515-4353-b44d-c5ff7bcd34a4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6f84ac8a-632d-4af8-a080-686d70c4bc6c" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c" xlink:to="loc_us-gaap_SegmentDomain_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_d43b1bbc-dc6e-480a-ad3c-4241605280f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_6098aa1b-a1e8-4660-b16a-5db78a8d4e9c" xlink:to="loc_us-gaap_SegmentDomain_d43b1bbc-dc6e-480a-ad3c-4241605280f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraTexasUtilitiesMember_5713173b-5a1a-4a71-8ca1-ad94a1caf03a" xlink:href="sre-20240630.xsd#sre_SempraTexasUtilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d43b1bbc-dc6e-480a-ad3c-4241605280f1" xlink:to="loc_sre_SempraTexasUtilitiesMember_5713173b-5a1a-4a71-8ca1-ad94a1caf03a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_e48d2fa9-8d88-403f-9496-0799cc4a3cf4" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_d43b1bbc-dc6e-480a-ad3c-4241605280f1" xlink:to="loc_sre_SempraInfrastructureMember_e48d2fa9-8d88-403f-9496-0799cc4a3cf4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_d9532d50-34c7-4d8b-8210-a2f1c0e966b6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_6f84ac8a-632d-4af8-a080-686d70c4bc6c" xlink:to="loc_srt_OwnershipAxis_d9532d50-34c7-4d8b-8210-a2f1c0e966b6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_d9532d50-34c7-4d8b-8210-a2f1c0e966b6_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_d9532d50-34c7-4d8b-8210-a2f1c0e966b6" xlink:to="loc_srt_OwnershipDomain_d9532d50-34c7-4d8b-8210-a2f1c0e966b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_fb423a2e-1951-4ff3-ab35-a9c21400734e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_d9532d50-34c7-4d8b-8210-a2f1c0e966b6" xlink:to="loc_srt_OwnershipDomain_fb423a2e-1951-4ff3-ab35-a9c21400734e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SIPartnersMember_66592f25-86aa-4a1c-82f8-1606504f710f" xlink:href="sre-20240630.xsd#sre_SIPartnersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_fb423a2e-1951-4ff3-ab35-a9c21400734e" xlink:to="loc_sre_SIPartnersMember_66592f25-86aa-4a1c-82f8-1606504f710f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_68ff05a2-a851-4c2c-a8c8-8a47d7eab2b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_30c9fe1d-54b7-423e-9473-7ace6988c800" xlink:to="loc_us-gaap_NumberOfReportableSegments_68ff05a2-a851-4c2c-a8c8-8a47d7eab2b7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_3f0ee2da-e158-4f0a-995f-605469440554" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_30c9fe1d-54b7-423e-9473-7ace6988c800" xlink:to="loc_us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired_3f0ee2da-e158-4f0a-995f-605469440554" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_fc8209ef-fe12-4ba4-bab0-682e48eeb547" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_30c9fe1d-54b7-423e-9473-7ace6988c800" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_fc8209ef-fe12-4ba4-bab0-682e48eeb547" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.sempra.com/role/SEMPRASEGMENTINFORMATIONSCHEDULEDetails" xlink:type="simple" xlink:href="sre-20240630.xsd#SEMPRASEGMENTINFORMATIONSCHEDULEDetails"/>
  <link:definitionLink xlink:role="http://www.sempra.com/role/SEMPRASEGMENTINFORMATIONSCHEDULEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_a8a7c9ae-509a-4b64-a4db-296c0d50f150" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_50564ed8-414e-42cf-9de6-d5fce798a95b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a8a7c9ae-509a-4b64-a4db-296c0d50f150" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_50564ed8-414e-42cf-9de6-d5fce798a95b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_2f6a299c-8dbd-4676-9aca-e7fcfabded1e" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_50564ed8-414e-42cf-9de6-d5fce798a95b" xlink:to="loc_srt_ConsolidationItemsAxis_2f6a299c-8dbd-4676-9aca-e7fcfabded1e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_2f6a299c-8dbd-4676-9aca-e7fcfabded1e_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_2f6a299c-8dbd-4676-9aca-e7fcfabded1e" xlink:to="loc_srt_ConsolidationItemsDomain_2f6a299c-8dbd-4676-9aca-e7fcfabded1e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_2f6a299c-8dbd-4676-9aca-e7fcfabded1e" xlink:to="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_a42bd79b-9dcb-4d30-9c90-41ab098dd8bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:to="loc_us-gaap_OperatingSegmentsMember_a42bd79b-9dcb-4d30-9c90-41ab098dd8bc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateNonSegmentMember_058b5a03-4b05-48d0-9a99-b31840bbd4c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CorporateNonSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:to="loc_us-gaap_CorporateNonSegmentMember_058b5a03-4b05-48d0-9a99-b31840bbd4c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MaterialReconcilingItemsMember_14f977b8-9ca4-4600-a259-7e8f4b66f052" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MaterialReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:to="loc_us-gaap_MaterialReconcilingItemsMember_14f977b8-9ca4-4600-a259-7e8f4b66f052" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntersegmentEliminationMember_ac532b81-d938-444b-b8b2-a1d4824e5ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntersegmentEliminationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_fabc9aca-cce5-4ad6-beac-ec80e2b11ef7" xlink:to="loc_us-gaap_IntersegmentEliminationMember_ac532b81-d938-444b-b8b2-a1d4824e5ca6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_9c1d570f-86c9-4556-8b24-041780fe0384" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_50564ed8-414e-42cf-9de6-d5fce798a95b" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9c1d570f-86c9-4556-8b24-041780fe0384" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9c1d570f-86c9-4556-8b24-041780fe0384_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9c1d570f-86c9-4556-8b24-041780fe0384" xlink:to="loc_us-gaap_SegmentDomain_9c1d570f-86c9-4556-8b24-041780fe0384_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e096d14e-f7cf-4301-a464-53affeea0940" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9c1d570f-86c9-4556-8b24-041780fe0384" xlink:to="loc_us-gaap_SegmentDomain_e096d14e-f7cf-4301-a464-53affeea0940" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCaliforniaMember_5f5d3c8f-8306-4680-992f-7e209495c0c9" xlink:href="sre-20240630.xsd#sre_SempraCaliforniaMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e096d14e-f7cf-4301-a464-53affeea0940" xlink:to="loc_sre_SempraCaliforniaMember_5f5d3c8f-8306-4680-992f-7e209495c0c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraTexasUtilitiesMember_22e72b25-ddb5-40ba-b4cf-12421811a6a0" xlink:href="sre-20240630.xsd#sre_SempraTexasUtilitiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e096d14e-f7cf-4301-a464-53affeea0940" xlink:to="loc_sre_SempraTexasUtilitiesMember_22e72b25-ddb5-40ba-b4cf-12421811a6a0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraInfrastructureMember_5018627a-fa1c-4b8e-9576-0ebf0650c5ac" xlink:href="sre-20240630.xsd#sre_SempraInfrastructureMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_e096d14e-f7cf-4301-a464-53affeea0940" xlink:to="loc_sre_SempraInfrastructureMember_5018627a-fa1c-4b8e-9576-0ebf0650c5ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_fd439626-8601-4114-a1e4-07e38482035b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationAdditionalInformationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a8a7c9ae-509a-4b64-a4db-296c0d50f150" xlink:to="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_fd439626-8601-4114-a1e4-07e38482035b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_f9c1d7c9-9e54-4256-ae8a-90ce2103d35c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_fd439626-8601-4114-a1e4-07e38482035b" xlink:to="loc_us-gaap_Assets_f9c1d7c9-9e54-4256-ae8a-90ce2103d35c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_feb1b7fb-58dd-434f-9330-cfc01c917cc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_fd439626-8601-4114-a1e4-07e38482035b" xlink:to="loc_us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures_feb1b7fb-58dd-434f-9330-cfc01c917cc9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_9d523e04-2c71-4037-8afa-3bff0c665e13" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentExpenditureAdditionToLongLivedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationAdditionalInformationAbstract_fd439626-8601-4114-a1e4-07e38482035b" xlink:to="loc_us-gaap_SegmentExpenditureAdditionToLongLivedAssets_9d523e04-2c71-4037-8afa-3bff0c665e13" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SegmentReportingInformationProfitLossAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_a8a7c9ae-509a-4b64-a4db-296c0d50f150" xlink:to="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_5a781bdd-d2a2-4024-bf89-3c0de75eb066" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_Revenues_5a781bdd-d2a2-4024-bf89-3c0de75eb066" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_511ef106-c637-48f2-b27c-3da241224e68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_511ef106-c637-48f2-b27c-3da241224e68" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_f1814e39-0bfe-4170-aff6-3b0e2df8bf2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_InvestmentIncomeInterest_f1814e39-0bfe-4170-aff6-3b0e2df8bf2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_4cc02a5a-d111-4f83-9303-c0eb174f3d09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_InterestExpense_4cc02a5a-d111-4f83-9303-c0eb174f3d09" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_f2352a90-6a2b-4573-b861-c3f6f4b6bcb3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_f2352a90-6a2b-4573-b861-c3f6f4b6bcb3" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeLossFromEquityMethodInvestmentsBeforeTax_03118457-8bcf-430a-9470-2f3a7ed8aedb" xlink:href="sre-20240630.xsd#sre_IncomeLossFromEquityMethodInvestmentsBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_sre_IncomeLossFromEquityMethodInvestmentsBeforeTax_03118457-8bcf-430a-9470-2f3a7ed8aedb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_IncomeLossFromEquityMethodInvestmentsEarningsLossesRecordedNetOfTax_39a94de1-f08d-430f-854e-16471b617e85" xlink:href="sre-20240630.xsd#sre_IncomeLossFromEquityMethodInvestmentsEarningsLossesRecordedNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_sre_IncomeLossFromEquityMethodInvestmentsEarningsLossesRecordedNetOfTax_39a94de1-f08d-430f-854e-16471b617e85" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromEquityMethodInvestments_fd663adf-2492-46d9-b4fd-f184b8aa1c0a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromEquityMethodInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_IncomeLossFromEquityMethodInvestments_fd663adf-2492-46d9-b4fd-f184b8aa1c0a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_fe980039-2216-4ed4-8a27-d7d3e84c8f72" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationProfitLossAbstract_2aee2f73-707c-4b00-9ac6-2bb9dd76c9cd" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_fe980039-2216-4ed4-8a27-d7d3e84c8f72" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#AwardTypeOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/AwardTypeOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_StockoptionsRSAsandRSUsMember_d19a6db4-72dc-4d7f-a841-33da955b3a2e" xlink:href="sre-20240630.xsd#sre_StockoptionsRSAsandRSUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_sre_StockoptionsRSAsandRSUsMember_d19a6db4-72dc-4d7f-a841-33da955b3a2e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RestrictedStockUnitsRSUsPerformancebasedMember_db5bf329-d77d-4a9f-91e3-166a1dddc40f" xlink:href="sre-20240630.xsd#sre_RestrictedStockUnitsRSUsPerformancebasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_sre_RestrictedStockUnitsRSUsPerformancebasedMember_db5bf329-d77d-4a9f-91e3-166a1dddc40f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_RestrictedStockUnitsRSUsServicebasedMember_a0e05faa-5854-44ad-9a51-bbf79a339568" xlink:href="sre-20240630.xsd#sre_RestrictedStockUnitsRSUsServicebasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="loc_sre_RestrictedStockUnitsRSUsServicebasedMember_a0e05faa-5854-44ad-9a51-bbf79a339568" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#TradingArrangmentsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllTradingArrangementsMember" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#ecd_AllTradingArrangementsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2025Member_0931b2e7-ed56-4740-b746-ca3936469c1f" xlink:href="sre-20240630.xsd#sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2025Member_0931b2e7-ed56-4740-b746-ca3936469c1f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2026Member_7aff9174-a200-4753-931b-acd6fd40e06a" xlink:href="sre-20240630.xsd#sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_sre_SempraCommonStockSubjectToTimeBasedRSUsVestingIn2026Member_7aff9174-a200-4753-931b-acd6fd40e06a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2025Member_c46b10e6-a631-4437-903b-cddae3a7e78d" xlink:href="sre-20240630.xsd#sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2025Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2025Member_c46b10e6-a631-4437-903b-cddae3a7e78d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2026Member_07d408ea-92ae-4bf8-a978-41c7464dfdca" xlink:href="sre-20240630.xsd#sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_sre_SempraCommonStockSubjectToPerformanceBasedRSUsVestingIn2026Member_07d408ea-92ae-4bf8-a978-41c7464dfdca" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_sre_DianaL.DayMember_6483f8b7-a70d-48ed-a4a0-79d2c60e5d52" xlink:href="sre-20240630.xsd#sre_DianaL.DayMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_sre_DianaL.DayMember_6483f8b7-a70d-48ed-a4a0-79d2c60e5d52" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-roles-2024.xsd#eedm"/>
  <link:definitionLink xlink:role="http://fasb.org/us-gaap/role/eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnregulatedOperatingRevenue" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnregulatedOperatingRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementAbstract" xlink:to="loc_us-gaap_UnregulatedOperatingRevenue" xlink:type="arc" order="1"/>
  </link:definitionLink>
</link:linkbase>
